/**
 * razorpay.com/rize/blogs: the parts only Rize has (variants/rize/functions.php): the intro and key
 * takeaways above a post, its FAQs and author card below it, the CTA shortcodes, the document
 * gallery, and the author pages. Everything else comes from variants/curlec.
 */

.rize-intro {
	margin-bottom: 24px;
}

.rize-takeaways {
	margin: 0 0 32px;
	padding: 20px 24px;
	border-left: 4px solid var(--rzpb-c-blue-620);
	border-radius: 6px;
	background: var(--rzpb-c-slate-50);
}
.rize-takeaways__title {
	margin: 0 0 8px;
	font-size: 20px;
}
.rize-takeaways > :last-child {
	margin-bottom: 0;
}

/* FAQs: first one open */
.rize-faqs {
	display: grid;
	gap: 12px;
	margin: 32px 0;
}
.rize-faq {
	border: 1px solid var(--rzpb-border);
	border-radius: 6px;
	background: var(--rzpb-c-white);
}
.rize-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	cursor: pointer;
	list-style: none;
}
.rize-faq__question::-webkit-details-marker {
	display: none;
}
.rize-faq__question h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.4;
	text-align: left;
}
.rize-faq__icon {
	flex: none;
	width: 14px;
	height: 14px;
	transition: transform 0.2s;
}
.rize-faq[open] .rize-faq__icon {
	transform: rotate(180deg);
}
.rize-faq__answer {
	padding: 0 20px 16px;
}
.rize-faq__answer > :last-child {
	margin-bottom: 0;
}

/* Author card under a post */
.rize-author {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	margin: 48px 0 0;
	padding-top: 32px;
	border-top: 1px solid var(--rzpb-border);
	text-align: center;
}
.rize-author__photo img {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}
.rize-author__name {
	color: var(--rzpb-strong);
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}
.rize-author__bio {
	max-width: 640px;
}
.rize-author__bio p {
	text-align: center;
}
.rize-author__more {
	color: var(--rzpb-link);
	font-weight: 700;
	text-decoration: none;
}

/* [ns_cta], [company_reg_cta], [opc_cta], [popup_cta] */
.rize-cta {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 32px 0;
	padding: 20px 24px;
	border: 1px solid var(--rzpb-border);
	border-radius: 8px;
	background: var(--rzpb-c-white);
	box-shadow: 0 6px 16px var(--rzpb-c-black-a10);
}
.rize-cta__image {
	flex: none;
	width: 72px;
	height: auto;
}
.rize-cta .rize-cta__text {
	flex: 1;
	margin: 0;
	color: var(--rzpb-strong);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
}
.rize-cta__price {
	color: var(--rzpb-c-coral-400);
	font-weight: 800;
}
.rize-cta__fee {
	color: var(--rzpb-muted);
	font-size: 13px;
	font-weight: 400;
}
.rize-cta__button {
	flex: none;
}
.rize-cta__button .rzpb-icon {
	width: 10px;
	height: 10px;
}

/* [did_you_know_cta] */
.rize-note {
	margin: 32px 0;
	padding: 20px 24px;
	border-radius: 8px;
	background: var(--rzpb-c-slate-50);
}
.rize-note__title {
	margin: 0 0 8px;
	color: var(--rzpb-c-blue-620);
	font-weight: 800;
}

/* [document_gallery] */
.rize-gallery__strip {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding-bottom: 8px;
}
.rize-gallery__strip img {
	flex: none;
	width: auto;
	height: 260px;
	border: 1px solid var(--rzpb-border);
	border-radius: 6px;
}

/* Author page (/authors/<name>/) */
.rize-profile {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 48px;
	align-items: start;
	padding-top: 48px;
	padding-bottom: 48px;
}
.rize-profile__photo img {
	width: 100%;
	height: auto;
	border-radius: 12px;
}
.rize-profile__name {
	margin: 0 0 4px;
	color: var(--rzpb-strong);
	font-size: 36px;
}
.rize-profile__role {
	margin: 0 0 12px;
	color: var(--rzpb-soft);
}
.rize-profile__linkedin {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	color: var(--rzpb-c-linkedin);
	font-weight: 700;
	text-decoration: none;
}
.rize-profile__linkedin .rzpb-icon {
	width: 16px;
	height: 16px;
}

/* Authors list (/authors/) */
.rize-authors {
	padding-bottom: 48px;
}
.rize-authors__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}
.rize-authors__photo {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	border-radius: 12px;
	object-fit: cover;
}
.rize-authors__name {
	margin-top: 8px;
	color: var(--rzpb-strong);
	font-size: 18px;
	font-weight: 700;
}
.rize-authors__role,
.rize-authors__bio {
	font-size: 14px;
}
.rize-authors__role {
	color: var(--rzpb-soft);
}

@media (max-width: 767px) {
	.rize-cta {
		flex-direction: column;
		align-items: flex-start;
	}
	.rize-profile {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.rize-profile__photo img {
		max-width: 220px;
	}
	.rize-gallery__strip img {
		height: 200px;
	}
}
