/* ==========================================================================
   EM3 Resources suite - SHARED chrome
   Loaded on every Resources view (case studies / reports / webinars / FAQs)
   before the per-family stylesheet. Uses brand.css tokens + components.
   Markup contract: inc/resources.php.
   ========================================================================== */

/* ---- Visually-hidden (sr-only) - resources pages do not load blog/careers CSS ---- */
.em3-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Filter chips (shared by case-studies / reports / webinars archives) ---- */
.em3-cs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
}
.em3-cs-chip {
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--em3-line-onwhite);
	border-radius: var(--em3-radius);
	background: #fff;
	color: var(--em3-ink-navy);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}
.em3-cs-chip:hover,
.em3-cs-chip:focus,
.em3-cs-chip:focus-visible,
.em3-cs-chip:active {
	background: #fff;
	border-color: var(--em3-accent);
	color: var(--em3-accent);
}
.em3-cs-chip.is-active {
	background: var(--em3-ink-navy);
	border-color: var(--em3-ink-navy);
	color: #fff;
}
.em3-cs-empty,
.em3-filter-empty {
	color: var(--em3-charcoal);
	font-size: 16px;
}

/* ---- Archive / index hero (dark) ---- */
.em3-res-hero {
	position: relative;
	padding: calc(var(--em3-space-4) + 40px) 0 var(--em3-space-4);
	overflow: hidden;
}
.em3-res-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.28;
	z-index: 0;
}
.em3-res-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--em3-bg-deep) 18%, rgba(5, 13, 51, 0.74) 100%);
	z-index: 1;
}
.em3-res-hero__inner {
	position: relative;
	z-index: 2;
}
.em3-res-hero__title {
	margin: 14px 0 0;
}
.em3-res-hero__sub {
	margin: 18px 0 0;
	font-size: 18px;
	line-height: 1.5;
	color: var(--em3-ink-muted);
	max-width: 640px;
}
.em3-res-hero__intro {
	margin: 14px 0 0;
	color: var(--em3-ink-dim);
	max-width: 640px;
}

/* ---- Breadcrumb (on dark) ---- */
.em3-res-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--em3-ink-dim);
	margin-bottom: 22px;
}
.em3-res-crumb a {
	color: var(--em3-ink-dim);
	text-decoration: none;
	transition: color 0.2s;
}
.em3-res-crumb a:hover,
.em3-res-crumb a:focus {
	color: var(--em3-accent-hot);
}
.em3-res-crumb__cur {
	color: var(--em3-ink-muted);
}

/* ---- Pagination ---- */
.em3-res-pagination {
	margin-top: 56px;
}
.em3-res-pagination ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding: 0;
	margin: 0;
}
.em3-res-pagination a,
.em3-res-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--em3-line-onwhite);
	border-radius: var(--em3-radius);
	color: var(--em3-ink-navy);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.2s;
}
.em3-res-pagination a:hover,
.em3-res-pagination a:focus {
	border-color: var(--em3-accent);
	color: var(--em3-accent);
}
.em3-res-pagination .current {
	background: var(--em3-ink-navy);
	border-color: var(--em3-ink-navy);
	color: #fff;
}
.em3-res-pagination .dots {
	border-color: transparent;
}

/* ---- Shared CTA band overrides (uses .em3-cta-section/.em3-cta-block from brand.css) ---- */
.em3-res-cta__text {
	margin: 18px auto 0;
	max-width: 600px;
	color: var(--em3-ink-muted);
	font-size: 17px;
	line-height: 1.55;
}

/* ---- Share cluster (singles) ---- */
.em3-res-share {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--em3-line-onwhite);
}
.em3-res-share__label {
	display: block;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(10, 24, 88, 0.6);
	margin-bottom: 12px;
}
.em3-res-share__links {
	display: flex;
	gap: 10px;
}
.em3-res-share__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--em3-line-onwhite);
	border-radius: var(--em3-radius);
	background: #fff;
	color: var(--em3-ink-navy);
	cursor: pointer;
	transition: all 0.2s;
}
.em3-res-share__btn svg {
	width: 18px;
	height: 18px;
}
.em3-res-share__btn:hover,
.em3-res-share__btn:focus,
.em3-res-share__btn:focus-visible,
.em3-res-share__btn:active {
	background: #fff;
	border-color: var(--em3-accent);
	color: var(--em3-accent);
	transform: translateY(-1px);
}
.em3-res-share__btn::after {
	content: attr(data-tip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: var(--em3-ink-navy);
	color: #fff;
	font-size: 12px;
	white-space: nowrap;
	padding: 5px 9px;
	border-radius: var(--em3-radius);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s;
}
.em3-res-share__btn:hover::after,
.em3-res-share__btn:focus-visible::after {
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	.em3-res-share__btn,
	.em3-res-share__btn::after {
		transition: none;
	}
}

/* ---- Sector backlink band (case-study / report / webinar singles -> their
   industry page; the other half of the Industries interlinking). Markup:
   em3_ind_sector_band() in inc/industries.php. Duplicated in blog.css for
   posts (same precedent as .em3-sr-only - shared chrome per CSS family). ---- */
.em3-ind-sectorband {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--em3-line-onwhite);
	border-radius: var(--em3-radius-card);
}
.em3-ind-sectorband__label {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(10, 24, 88, 0.6);
}
.em3-ind-sectorband .em3-ind-sectorband__link {
	color: var(--em3-accent);
	font-weight: 600;
}
.em3-ind-sectorband .em3-ind-sectorband__link:hover,
.em3-ind-sectorband .em3-ind-sectorband__link:focus {
	color: var(--em3-ink-navy);
}
/* Compact strip wrapper used on webinar singles (band between dark acts). */
.em3-ind-sectorband-strip {
	padding: 40px 0;
}
.em3-ind-sectorband-strip .em3-ind-sectorband {
	margin-top: 0;
}
