/* HerMoment Article Experience */

/* The default previous/next links are replaced by the dynamically loaded article feed. */
.single-post .post-links {
	display: none !important;
}

/* Readable Thrive splash copy, retained directly beneath the post image. */
.single-post .hermoment-quiz-intro {
	max-width: 100%;
	margin: 2rem 0 2.5rem;
	padding: 1.5rem 1.75rem;
	border-left: 4px solid #e65045;
	background: #fff8f7;
	box-sizing: border-box;
}

.single-post .hermoment-quiz-intro h1,
.single-post .hermoment-quiz-intro h2,
.single-post .hermoment-quiz-intro h3,
.single-post .hermoment-quiz-intro h4,
.single-post .hermoment-quiz-intro h5,
.single-post .hermoment-quiz-intro h6 {
	margin: 0 0 0.55rem;
	font-size: clamp(1.35rem, 2.3vw, 1.85rem);
	line-height: 1.22;
}

.single-post .hermoment-quiz-intro p {
	max-width: 58rem;
	margin: 0.65rem 0 0;
	line-height: 1.65;
}

.single-post .hermoment-quiz-intro p:first-of-type {
	margin-top: 0;
}

/* Thrive quiz answer choices: a single vertical, touch-friendly list at every breakpoint. */
.single-post .tqb-shortcode-wrapper .tqb-answers-container,
.single-post .tqb-shortcode-wrapper .tqb-answers-container .tqb-answers,
.single-post .tqb-shortcode-wrapper .tqb-question-wrapper .tqb-answers-container {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: 0.9rem !important;
	width: 100% !important;
	max-width: none !important;
}

.single-post .tqb-shortcode-wrapper .tqb-answer,
.single-post .tqb-shortcode-wrapper .tqb-answer-wrapper,
.single-post .tqb-shortcode-wrapper .tqb-answer-action {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	box-sizing: border-box !important;
}

.single-post .tqb-shortcode-wrapper .tqb-answer-action {
	min-height: 3.35rem;
}

/* Contextual Related Posts — “Currently Trending” — must occupy every usable pixel of its column. */
.single-post .entry-content > .crp_related,
.single-post .article-content > .crp_related,
.single-post .crp_related,
.single-post .crp_related .crp_list,
.single-post .crp_related ul,
.single-post .crp_related .crp_list li,
.single-post .crp_related ul li,
.single-post .crp_related .crp_link {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
}

.single-post .crp_related {
	clear: both;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

.single-post .crp_related .crp_list,
.single-post .crp_related ul {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 1rem;
	margin: 1rem 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.single-post .crp_related .crp_list li,
.single-post .crp_related ul li {
	margin: 0 !important;
	float: none !important;
}

.single-post .crp_related .crp_link {
	display: flex !important;
	flex-direction: column;
	height: 100%;
}

.single-post .crp_related .crp_link figure,
.single-post .crp_related .crp_link picture,
.single-post .crp_related .crp_link img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
}

.single-post .crp_related .crp_link img {
	aspect-ratio: 4 / 3;
	height: auto !important;
	object-fit: cover;
}

/* Infinite article feed. Each loaded post keeps the theme's article rhythm and is clearly separated. */
.hermoment-infinite-feed {
	width: 100%;
	margin-top: 3.5rem;
}

.hermoment-infinite-article {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 4rem 0 0;
	border-top: 1px solid rgba(0, 0, 0, 0.14);
}

.hermoment-infinite-article + .hermoment-infinite-article {
	margin-top: 4rem;
}

.hermoment-infinite-header {
	margin-bottom: 1.5rem;
}

.hermoment-infinite-header .entry-title {
	margin: 0;
	font-size: clamp(1.7rem, 3vw, 2.5rem);
	line-height: 1.18;
}

.hermoment-infinite-header .entry-title a {
	color: inherit;
	text-decoration: none;
}

.hermoment-infinite-header .entry-title a:hover,
.hermoment-infinite-header .entry-title a:focus-visible {
	text-decoration: underline;
}

.hermoment-infinite-categories {
	margin: 0 0 0.6rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hermoment-infinite-featured-image {
	margin: 0 0 2rem;
}

.hermoment-infinite-featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.hermoment-infinite-sentinel {
	min-height: 2px;
	margin-top: 2.75rem;
}

.hermoment-infinite-status {
	padding: 1.25rem 0;
	font-size: 0.95rem;
	text-align: center;
	color: #555;
}

@media (max-width: 640px) {
	.single-post .hermoment-quiz-intro {
		margin: 1.5rem 0 2rem;
		padding: 1.2rem;
	}

	.single-post .crp_related .crp_list,
	.single-post .crp_related ul {
		grid-template-columns: 1fr;
	}

	.hermoment-infinite-article {
		padding-top: 2.75rem;
	}
}

/* Final quiz layout refinements. */
.single-post .hermoment-quiz-intro {
	margin: 0.65rem 0 1.1rem !important;
	padding: 1rem 1.25rem !important;
}

.single-post .post-image + .hermoment-quiz-intro,
.single-post .entry-content > figure + .hermoment-quiz-intro,
.single-post .article-content > figure + .hermoment-quiz-intro {
	margin-top: 0.45rem !important;
}

/* Thrive places each response inside several nested grid/flex wrappers. Flatten every layer. */
.single-post .tqb-shortcode-wrapper .tqb-question-wrapper,
.single-post .tqb-shortcode-wrapper .tqb-question-container,
.single-post .tqb-shortcode-wrapper .tqb-answers-container,
.single-post .tqb-shortcode-wrapper .tqb-answers-container > *,
.single-post .tqb-shortcode-wrapper .tqb-answer,
.single-post .tqb-shortcode-wrapper .tqb-answer-wrapper,
.single-post .tqb-shortcode-wrapper .tqb-answer-action {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	flex: 0 0 100% !important;
	grid-column: 1 / -1 !important;
}

.single-post .tqb-shortcode-wrapper .tqb-answers-container {
	display: block !important;
}

.single-post .tqb-shortcode-wrapper .tqb-answer,
.single-post .tqb-shortcode-wrapper .tqb-answer-wrapper {
	display: block !important;
	float: none !important;
	margin: 0 0 0.7rem !important;
}

/* Keep Continue / Next controls compact instead of stretching across the question card. */
.single-post .tqb-shortcode-wrapper .tqb-nav-button,
.single-post .tqb-shortcode-wrapper .tqb-nav-button a,
.single-post .tqb-shortcode-wrapper .tqb-next-button,
.single-post .tqb-shortcode-wrapper .tqb-finish-button,
.single-post .tqb-shortcode-wrapper .tqb-check-button {
	display: inline-flex !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 2.35rem !important;
	padding: 0.42rem 0.82rem !important;
	border-radius: 999px !important;
	font-size: 0.76rem !important;
	line-height: 1.1 !important;
	letter-spacing: 0.035em !important;
}

/* Thrive image-answer template: its actual cards use .tqb-answer-inner-wrapper. */
.single-post .tqb-shortcode-wrapper .tqb-answers-container.tqb-answer-has-image,
.single-post .tqb-shortcode-wrapper .tqb-answers-container.tqb-answer-has-image > .tqb-answer-inner-wrapper,
.single-post .tqb-shortcode-wrapper .tqb-answer-inner-wrapper {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	margin: 0 0 0.85rem !important;
	box-sizing: border-box !important;
}

.single-post .tqb-shortcode-wrapper .tqb-answer-inner-wrapper .tqb-answer-action,
.single-post .tqb-shortcode-wrapper .tqb-answer-inner-wrapper .tqb-answer-image-type {
	display: flex !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 7.25rem !important;
	box-sizing: border-box !important;
}

.single-post .tqb-shortcode-wrapper .tqb-answer-inner-wrapper .tqb-answer-image-container {
	flex: 0 0 clamp(9rem, 28%, 14rem) !important;
	width: auto !important;
	max-width: none !important;
}

.single-post .tqb-shortcode-wrapper .tqb-answer-inner-wrapper .tqb-answer-image,
.single-post .tqb-shortcode-wrapper .tqb-answer-inner-wrapper .tqb-answer-image-container img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 7.25rem !important;
	object-fit: cover !important;
}

.single-post .tqb-shortcode-wrapper .tqb-answer-inner-wrapper .tqb-answer-text-container {
	display: flex !important;
	align-items: center !important;
	flex: 1 1 auto !important;
	width: auto !important;
	max-width: none !important;
	padding: 1rem 1.1rem !important;
}

.single-post .tqb-shortcode-wrapper .tqb-answer-inner-wrapper .tqb-answer-text {
	width: 100% !important;
	font-size: 1rem !important;
	line-height: 1.4 !important;
}

@media (max-width: 640px) {
	.single-post .tqb-shortcode-wrapper .tqb-answer-inner-wrapper .tqb-answer-image-container {
		flex-basis: 7.5rem !important;
	}
}
/* Her Moment quiz answers: use brand pink rather than the default blue hover border. */
.tqb-quiz-container .tqb-answer-inner-wrapper:hover .tqb-answer-action,
.tqb-quiz-container .tqb-answer-inner-wrapper:focus-within .tqb-answer-action,
.tqb-quiz-container .tqb-answer-action:hover,
.tqb-quiz-container .tqb-answer-action:focus-visible {
	border-color: #e86e93 !important;
	outline-color: #e86e93 !important;
	box-shadow: none !important;
}

/* Treasure Chest campaign layout refinements: centered upper search overlay and full-width desktop trending cards. */
.potter-menu-item-search .potter-menu-search.full-screen-search #searchform {
	top: clamp(3rem, 8vh, 6rem) !important;
	left: 50% !important;
	display: grid;
	width: min(90%, 680px) !important;
	max-width: 680px !important;
	margin: 0 !important;
	justify-items: center;
	transform: translateX(-50%) !important;
}

.potter-menu-item-search .potter-menu-search.full-screen-search #searchform .search-logo-container {
	width: 100%;
	margin: 0 auto 1.15rem !important;
	text-align: center;
}

.potter-menu-item-search .potter-menu-search.full-screen-search #searchform label {
	display: block;
	width: 100%;
}

.potter-menu-item-search .potter-menu-search.full-screen-search #searchform input[type="search"] {
	box-sizing: border-box;
	width: 100% !important;
}

@media (min-width: 641px) {
	.single-post .entry-content > .crp_related,
	.single-post .article-content > .crp_related,
	.single-post .entry-content .widget_crp_posts_list_widget,
	.single-post .article-content .widget_crp_posts_list_widget,
	.single-post .entry-content .crp_related,
	.single-post .article-content .crp_related {
		float: none !important;
		width: 100% !important;
		max-width: none !important;
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	.single-post .entry-content .crp_related .crp_list,
	.single-post .article-content .crp_related .crp_list,
	.single-post .entry-content .crp_related ul,
	.single-post .article-content .crp_related ul {
		grid-template-columns: minmax(0, 1fr) !important;
		width: 100% !important;
	}

	.single-post .entry-content .crp_related .crp_link,
	.single-post .article-content .crp_related .crp_link,
	.single-post .entry-content .crp_related figure,
	.single-post .article-content .crp_related figure,
	.single-post .entry-content .crp_related img,
	.single-post .article-content .crp_related img {
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* Desktop sidebar: the Current Trending widget lives in .potter-sidebar, not the article body. */
@media (min-width: 641px) {
	.single-post .potter-sidebar #widget_crp-2,
	.single-post .potter-sidebar .crp_posts_list_widget,
	.single-post .potter-sidebar .crp_related,
	.single-post .potter-sidebar .crp_related ul,
	.single-post .potter-sidebar .crp_related li,
	.single-post .potter-sidebar .crp_related .crp_link {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
	}

	.single-post .potter-sidebar .crp_related ul {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 1rem;
		margin: 1rem 0 0 !important;
		padding: 0 !important;
	}

	.single-post .potter-sidebar .crp_related li {
		float: none !important;
		margin: 0 !important;
	}

	.single-post .potter-sidebar .crp_related .crp_link {
		display: block !important;
	}

	.single-post .potter-sidebar .crp_related .crp_link figure,
	.single-post .potter-sidebar .crp_related .crp_link picture,
	.single-post .potter-sidebar .crp_related .crp_link img {
		display: block;
		width: 100% !important;
		max-width: 100% !important;
	}
}
