/* ============================================================================
   Solace Resource Library — archive + single
   Brand tokens: green #00C895 · gradient #ABFF88→#00C895 · navy #3F4955
   ============================================================================ */

.rl-archive {
	padding: 40px 0 0;
	background: #fff;
}

.rl-archive .container {
	max-width: 1350px;
}

/* Hide the theme's empty dark header hero — the library uses its own WYSIWYG hero. */
.post-type-archive-library_resource .site-header {
	display: none;
}

.rl-hero__content {
	min-height: 33vh;
	align-content: center;
}

.rl-hero__content h1 {
	font-weight: 600;
    font-size: 80px;
}

@media (max-width: 900px) {
	.rl-hero__content h1 {
		font-weight: 600;
		font-size: 30px;
	}
}

/* ── Hero (WYSIWYG + background image) ────────────────────────────────────── */

.rl-hero {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	padding: 20px 0;
	
	text-align: center;
}

.rl-hero__content {
	max-width: 820px;
	margin: 0 auto;
}

.rl-hero__content > *:last-child {
	margin-bottom: 0;
}

.rl-hero__content img {
	max-width: 100%;
	height: auto;
}

/* ── Featured (WYSIWYG, 1 or 2 columns) ───────────────────────────────────── */

.rl-featured {
	padding: 50px 0;
	margin-bottom: 50px;
}

.rl-featured__row {
	display: flex;
	align-items: center;
	gap: 56px;
}

.rl-featured__main,
.rl-featured__aside {
	flex: 1 1 0;
	min-width: 0;
}

.rl-featured__main > *:last-child,
.rl-featured__aside > *:last-child {
	margin-bottom: 0;
}

.rl-featured img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* One-column: single full-width WYSIWYG */
.rl-featured--one .rl-featured__row {
	display: block;
}

.rl-featured--one .rl-featured__main {
	max-width: 900px;
	margin: 0 auto;
}

@media (max-width: 900px) {
	.rl-featured__row {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
	}
	.rl-hero {
		padding: 50px 0 20px;
	}
}

/* ── Footer CTA (WYSIWYG) ─────────────────────────────────────────────────── */

.rl-footer-cta {
	background: #EAFBEF;
	padding: 72px 0;
	text-align: center;
}

.rl-footer-cta__content {
	max-width: 1150px;
	margin: 0 auto;
}

.rl-footer-cta__content > *:last-child {
	margin-bottom: 0;
}

.rl-footer-cta__content img {
	max-width: 100%;
	height: auto;
}

/* Heavier, larger heading to match the live footer */
.rl-footer-cta h2 {
	font-weight: 700;
	font-size: clamp(30px, 4vw, 50px);
	line-height: 1.15;
	margin-bottom: 22px;
}

/* Button row — horizontal + centered. Wrap the buttons in <p class="rl-btns">. */
.rl-btns {
	display: flex;
	gap: 16px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin: 30px 0 0;
}

/* Green gradient on the primary "Try for Free" button */
.rl-footer-cta .button {
	background: var(--gradient-brightgreen-green, linear-gradient(90deg, #ABFF88 0%, #00C895 100%));
}

.rl-footer-cta .button:hover {
	background: var(--gradient-brightgreen-green, linear-gradient(90deg, #00C895 0%, #ABFF88 100%));
}

/* ── WYSIWYG helper classes (use inside any of the sections above) ─────────── */

/* Eyebrow / overline — e.g. "WHITE PAPER", "CONNECT WITH US" */
.rl-eyebrow {
	display: block;
	font-family: var(--font-family-monospace, "SFMono-Regular", Menlo, monospace);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #5A6572;
	margin: 0 0 18px;
}

/* Green eyebrow variant (matches the "Connect with us" footer style) */
.rl-eyebrow--green {
	color: #00C895;
}

/* ── Filter bar ───────────────────────────────────────────────────────────── */

.rl-filters {
	text-align: center;
	margin: 0 0 40px;
}

.rl-filters__label {
	font-size: 18px;
	font-weight: 700;
	color: #3F4955;
	margin: 0 0 18px;
}

.rl-filters__row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}

.rl-facet {
	min-width: 190px;
}

.rl-facet--search {
	min-width: 230px;
}

/* FacetWP fSelect → rounded pill dropdown */
.rl-facet .facetwp-facet {
	margin: 0;
}

.rl-facet .fs-wrap {
	width: 100%;
}

.rl-facet .fs-label-wrap {
	border: 1.5px solid #D1D9E0;
	border-radius: 30px;
	background: #fff;
	transition: border-color .2s;
}

.rl-facet .fs-wrap.fs-open .fs-label-wrap,
.rl-facet .fs-label-wrap:hover {
	border-color: #00C895;
}

.rl-facet .fs-label {
	padding: 11px 40px 11px 20px;
	font-size: 15px;
	color: #3F4955;
}

.rl-facet .fs-arrow {
	border-top-color: #00C895;
	right: 18px;
}

.rl-facet .fs-dropdown {
	min-width: 260px;
	border-radius: 10px;
	border: 1px solid #E8EEF3;
	box-shadow: 0 10px 30px rgba(24,50,71,.14);
	margin-top: 8px;
	padding: 8px;
	background: #fff;
	z-index: 60!important;
}

.rl-facet .fs-dropdown .fs-search {
	padding: 4px 4px 8px;
}

.rl-facet .fs-dropdown .fs-search input {
	border: 1.5px solid #E1E8EE;
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 14px;
	width: 100%;
}

.rl-facet .fs-dropdown .fs-options {
	padding: 2px 0;
	max-height: 360px;
}

.rl-facet .fs-option {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	margin: 1px 0;
	font-size: 15px;
	line-height: 1.2;
	color: #3F4955;
	border-radius: 8px;
	white-space: nowrap;
}

.rl-facet .fs-option > * {
	line-height: 1.2;
}

.rl-facet .fs-option:hover {
	background: #F1FBF6;
}

.rl-facet .fs-option.fs-checked {
	color: #00A97E;
	font-weight: 600;
}

/* Checkbox square */
.rl-facet .fs-checkbox {
	position: relative;
	width: 16px;
	height: 16px;
	min-width: 16px;	
	border-radius: 3px;
	flex-shrink: 0;
	box-sizing: border-box;
}

.rl-facet .fs-option.fs-checked .fs-checkbox {
	background: #00C895;
	border-color: #00C895;
}

/* White check mark when selected */
.rl-facet .fs-option.fs-checked .fs-checkbox::after {
	content: "";
	position: absolute;
	left: 4.5px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Hide any option counts that slip through the PHP filter */
.rl-facet .facetwp-counter,
.rl-facet .fs-option .fs-option-label span.facetwp-counter {
	display: none !important;
}

/* Search facet pill */
.rl-facet--search .facetwp-search-wrap {
	position: relative;
}

.rl-facet--search input.facetwp-search {
	width: 100%;
	border: 1.5px solid #D1D9E0;
	border-radius: 30px;
	padding: 11px 44px 11px 20px;
	font-size: 15px;
	color: #3F4955;
	background: #fff;
	transition: border-color .2s;
}

.rl-facet--search input.facetwp-search:focus {
	outline: none;
	border-color: #00C895;
}

.rl-facet--search .facetwp-icon,
.rl-facet--search .facetwp-btn {
	right: 16px;
}

.rl-filters__clear {
	display: inline-block;
	margin-top: 16px;
	color: #00C895;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.rl-filters__clear:hover {
	color: #3F4955;
	text-decoration: underline;
}

/* ── Card grid ────────────────────────────────────────────────────────────── */

.rl-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 26px;
}

.rl-card {
	position: relative;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 3px 18px rgba(24, 50, 71, .08);
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s, transform .2s;
}

.rl-card:hover {
	box-shadow: 0 8px 28px rgba(24, 50, 71, .14);
	transform: translateY(-2px);
}

.rl-card__bar {
	height: 5px;
	background: linear-gradient(90deg, #ABFF88 0%, #00C895 100%);
	flex-shrink: 0;
}

.rl-card__inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 26px 26px 28px;
	text-decoration: none;
	color: inherit;
}

.rl-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 22px;
	min-height: 44px;
}

.rl-card__type {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #8A97A5;
	line-height: 1.4;
	padding-top: 12px;
}

.rl-card__icon {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Bundled live-site SVG carries its own mint circle */
.rl-card__icon svg {
	width: 52px;
	height: 52px;
	display: block;
}

/* Fallback badge (custom image / Font Awesome class) */
.rl-icon-badge {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #C7FFCB;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #093B5F;
	font-size: 19px;
}

.rl-icon-badge img {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.rl-card__title {
	font-size: 21px;
	line-height: 1.28;
	font-weight: 700;
	color: #14345B;
	margin: 0 0 14px;
}

.rl-card:hover .rl-card__title {
	color: #00C895;
}

.rl-card__excerpt {
	font-size: 15px;
	line-height: 1.55;
	color: #5A6572;
	margin: 0 0 22px;
}

.rl-card__cta {
	margin-top: auto;
	font-size: 15px;
	font-weight: 600;
	color: #00A97E;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.rl-card__arrow {
	transition: transform .2s;
}

.rl-card:hover .rl-card__arrow {
	transform: translateX(4px);
}

/* ── No results ───────────────────────────────────────────────────────────── */

.rl-no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 50px 0;
}

.rl-no-results p {
	color: #8A97A5;
	font-size: 17px;
	margin-bottom: 14px;
}

.rl-no-results button {
	background: none;
	border: none;
	color: #00C895;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

/* ── Pager ────────────────────────────────────────────────────────────────── */

.rl-pager {
	margin-top: 56px;
	text-align: center;
}

/* Hide the "1 of 79" mobile counter on desktop */
.rl-pager .page-number--mobile-count {
	display: none;
}

/* Center the whole pager row (theme leaves the wrappers shrink-to-fit + left). */
#interior .rl-pager .facetwp-pager,
#interior .rl-pager .pagination {
	display: flex !important;
	justify-content: center !important;
	width: 100% !important;
}

#interior .rl-pager .pagination ul {
	width: auto !important;
}

/* Keep the theme's circle size/colors — only fix the vertical centering of the
   number / arrow, which the theme top-aligns via line-height. Flex + !important
   beats the theme's #interior-scoped rule. */
#interior .rl-pager .pagination li a.facetwp-page {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
	width: 37px;
	height: 37px;
}

/* ── Single ───────────────────────────────────────────────────────────────── */

/* Full-width header title on resource singles (the theme's header has an empty
   right column, so the title otherwise sits at 50%). */
.single-library_resource .header-detail-php .right_side {
	display: none !important;
}
.single-library_resource .header-detail-php .left_side {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
}

.rl-single {
	max-width: 900px;
	padding: 30px 15px 70px;
}

/* Content Type eyebrow above the title in the dark page header (injected into the
   theme's eyebrow_headline field). Overrides the theme's 28px heading style. */
.single-library_resource .eb-title h2,
.single-library_resource .eb-title h2 a {
	font-family: var(--font-family-monospace);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin: 0 0 14px;
	line-height: 1.2;
}

.rl-single__title {
	font-size: 32px;
	line-height: 1.25;
	color: #14345B;
	margin: 0 0 28px;
}

.rl-single__embed {
	margin: 0 0 34px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(24, 50, 71, .12);
}

.rl-single__content {
	font-size: 17px;
	line-height: 1.7;
	color: #3F4955;
}

/* Breathing room under an inline embed (pdf-embedder viewer, video, framed report)
   so the description below isn't crowded against it. */
.rl-single__content .pdfemb-viewer,
.rl-single__content .rl-video-embed,
.rl-single__content > iframe {
	margin-bottom: 34px;
}

/* The shortcode/iframe often lands inside its own <p> — space that too. */
.rl-single__content p:has(> .pdfemb-viewer),
.rl-single__content p:has(> iframe) {
	margin-bottom: 34px;
}

.rl-single__content iframe {
	max-width: 100%;
}

/* Fallback link shown only when a resource has no inline embed. */
.rl-single__cta {
	margin: 26px 0 0;
}

/* ── Other resources (single) ─────────────────────────────────────────────── */

/* Full-width band. Content sits directly in a full-width <main>, so a plain
   block already spans the viewport; the inner element re-centres the content. */
.rl-related {
	background: #f1f3f5;
	padding: 56px 0 66px;
	margin-top: 20px;
}

.rl-related__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}

.rl-related__title {
	color: #14345B;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 26px;
}

/* Related cards drop the type badge/icon (all share this page's type), so the
   title sits at the top of the card. */
.rl-related .rl-card__title {
	margin-top: 4px;
}

/* ── [resource-library] shortcode ─────────────────────────────────────────── */

/* Drops into arbitrary page content, so it inherits the surrounding width and
   just adds vertical rhythm; the card grid reuses .rl-grid. */
.rl-shortcode {
	margin: 32px 0;
}

.rl-shortcode__title {
	color: #14345B;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 22px;
}

/* ── Lightbox (PDFs + frameable analyst pages) ────────────────────────────── */

.rl-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 3vh 3vw;
}

.rl-modal.is-open {
	display: flex;
}

body.rl-modal-lock {
	overflow: hidden;
}

.rl-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(9, 26, 43, .72);
	cursor: pointer;
}

.rl-modal__panel {
	position: relative;
	width: min(1100px, 94vw);
	height: 90vh;
	background: #fff;	
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
	display: flex;
	flex-direction: column;
}

.rl-modal__close {
	position: absolute;
	top: 0;
	right: 0;
	width: 40px;
	height: 40px;	
	border: none;
	background: #00C895;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s;
}

.rl-modal__close:hover {
	background: #00A97E;
}

.rl-modal__iframe {
	flex: 1;
	width: 100%;
	border: 0;
	background: #f4f7fa;
}

.rl-modal__fallback {
	display: none;
	padding: 12px 18px;
	font-size: 14px;
	color: #5A6572;
	background: #FFF7E6;
	border-bottom: 1px solid #F0E4C8;
}

.rl-modal__fallback.is-visible {
	display: block;
}

.rl-modal__fallback a {
	color: #00A97E;
	font-weight: 600;
}

.fs-wrap.multiple .fs-options .fs-checkbox {
	position: relative;

}
.fs-wrap.multiple .fs-options .fs-option {
	padding-left: 2px;
}
/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1199px) {
	.rl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
	.rl-grid { grid-template-columns: repeat(2, 1fr); }
	.rl-facet, .rl-facet--search { min-width: 44%; flex: 1 1 44%; }
}

@media (max-width: 560px) {
	.rl-grid { grid-template-columns: 1fr; }
	.rl-facet, .rl-facet--search { min-width: 100%; flex: 1 1 100%; }
	.rl-single__title { font-size: 26px; }

	/* Full-screen lightbox on phones */
	.rl-modal { padding: 0; }
	.rl-modal__panel { width: 100vw; height: 100vh; border-radius: 0; }
	.rl-modal__close { top: 8px; right: 8px; }
}
