/* ==========================================================================
   EM3 Reports - index + single + gated dialog. Markup: inc/reports.php. With resources.css.
   ========================================================================== */

/* ---- Index cards ---- */
.em3-rep-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.em3-rep-card[hidden] {
	display: none;
}
.em3-rep-card__link {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--em3-line-onwhite);
	border-radius: var(--em3-radius-card);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	height: 100%;
	transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.em3-rep-card__link:hover,
.em3-rep-card__link:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(46, 93, 255, 0.4);
	box-shadow: 0 30px 60px -28px rgba(10, 24, 88, 0.28);
}
.em3-rep-card__coverwrap {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 30px 30px;
	/* Blue panel so the white 3D covers pop. */
	background: radial-gradient(125% 100% at 50% 0%, #3a63ee 0%, #1c357f 60%, #0d1c54 100%);
	min-height: 256px;
}
.em3-rep-card__cover {
	width: auto;
	max-width: 60%;
	height: auto;
	/* Cap so the uncropped portrait render keeps the panel balanced. */
	max-height: 270px;
	filter: drop-shadow(0 18px 26px rgba(4, 10, 40, 0.45));
	transition: transform 0.4s;
}
.em3-rep-card__link:hover .em3-rep-card__cover {
	transform: translateY(-6px);
}
.em3-rep-card__body {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 22px 22px 24px;
	flex: 1;
}
.em3-rep-card__type {
	color: var(--em3-accent);
}
.em3-rep-card__title {
	font-size: 19px;
	line-height: 1.25;
	color: var(--em3-ink-navy);
	margin: 0;
}
.em3-rep-card__sum {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--em3-charcoal);
	margin: 0;
}
.em3-rep-card__cta {
	margin-top: auto;
	padding-top: 6px;
}
.em3-rep-cards--dark .em3-rep-card__link {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
	border-color: var(--em3-line-soft);
}
.em3-rep-cards--dark .em3-rep-card__title {
	color: var(--em3-ink);
}
.em3-rep-cards--dark .em3-rep-card__sum {
	color: var(--em3-ink-dim);
}
.em3-rep-cards--dark .em3-rep-card__type {
	color: var(--em3-accent-hot);
}

/* ---- Single hero ---- */
.em3-rep-hero {
	padding: calc(var(--em3-space-4) + 30px) 0 var(--em3-space-4);
}
.em3-rep-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 56px;
	align-items: center;
}
.em3-rep-hero__type {
	color: var(--em3-accent-hot);
}
.em3-rep-hero__title {
	margin: 14px 0 0;
	font-size: clamp(32px, 4.2vw, 56px);
	line-height: 1.05;
	letter-spacing: -0.025em;
	text-wrap: balance;
}
.em3-rep-hero__sub {
	margin: 16px 0 0;
	font-size: 19px;
	color: var(--em3-ink-muted);
}
.em3-rep-hero__summary {
	margin: 16px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--em3-ink-dim);
	max-width: 620px;
}
.em3-rep-hero__actions {
	margin-top: 28px;
}
.em3-rep-meta {
	margin-top: 32px;
}
.em3-rep-hero__cover {
	position: relative;
	display: flex;
	justify-content: center;
}
.em3-rep-hero__cover::before {
	content: "";
	position: absolute;
	inset: -10% -6%;
	background: radial-gradient(60% 55% at 50% 45%, rgba(106, 138, 255, 0.32), rgba(46, 93, 255, 0.12) 45%, transparent 72%);
	z-index: 0;
	pointer-events: none;
}
.em3-rep-hero__coverimg {
	position: relative;
	z-index: 1;
}
.em3-rep-hero__coverimg {
	width: auto;
	max-width: 100%;
	height: auto;
	filter: drop-shadow(28px 40px 50px rgba(2, 6, 20, 0.55));
}

/* ---- Body: what's inside + sticky card ---- */
.em3-rep-body__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 56px;
	align-items: start;
}
.em3-rep-inside__h {
	font-size: clamp(26px, 3vw, 36px);
	margin: 0 0 28px;
}
.em3-rep-points {
	list-style: none;
	margin: 0 0 40px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.em3-rep-point {
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 16px;
	align-items: start;
}
.em3-rep-point__tick {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: var(--em3-radius);
	background: rgba(46, 93, 255, 0.1);
	color: var(--em3-accent);
}
.em3-rep-point__tick svg {
	width: 18px;
	height: 18px;
}
.em3-rep-point__title {
	display: block;
	font-size: 17px;
	font-weight: 600;
	color: var(--em3-ink-navy);
}
.em3-rep-point__body {
	display: block;
	margin-top: 5px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--em3-charcoal);
}
.em3-rep-aside {
	position: sticky;
	top: 110px;
}
.em3-rep-dlcard {
	background: linear-gradient(160deg, #0b1c54, #050d33);
	border: 1px solid var(--em3-line-soft);
	border-radius: var(--em3-radius-card);
	padding: 26px 24px;
	text-align: center;
	color: #fff;
}
.em3-rep-dlcard__cover img {
	width: auto;
	max-width: 150px;
	height: auto;
	margin: 0 auto 18px;
	filter: drop-shadow(0 18px 26px rgba(2, 6, 20, 0.5));
}
.em3-rep-dlcard__h {
	font-size: 20px;
	color: #fff;
	margin: 0 0 6px;
}
.em3-rep-dlcard__fmt {
	font-size: 13px;
	color: var(--em3-ink-dim);
	margin: 0 0 18px;
}
.em3-rep-dlcard__btn {
	width: 100%;
	justify-content: center;
}

/* ---- More ---- */
.em3-rep-more__head {
	max-width: 680px;
	margin-bottom: 40px;
}

/* ---- Gated dialog ---- */
.em3-report-dialog {
	width: min(880px, 92vw);
	max-width: 92vw;
	padding: 0;
	border: 1px solid var(--em3-line-soft);
	border-radius: var(--em3-radius-card);
	background: var(--em3-bg-deep);
	color: #fff;
	overflow: hidden;
}
.em3-report-dialog::backdrop {
	background: rgba(2, 6, 20, 0.74);
	backdrop-filter: blur(4px);
}
.em3-report-dialog__inner {
	display: grid;
	grid-template-columns: 280px 1fr;
}
.em3-report-dialog__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 44px;
	height: 44px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--em3-line-soft);
	border-radius: var(--em3-radius);
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	cursor: pointer;
}
.em3-report-dialog__close svg {
	width: 18px;
	height: 18px;
}
.em3-report-dialog__close:hover,
.em3-report-dialog__close:focus,
.em3-report-dialog__close:focus-visible,
.em3-report-dialog__close:active {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	outline: 2px solid var(--em3-accent-hot);
	outline-offset: 2px;
}
.em3-report-dialog__media {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 36px 24px;
	background: linear-gradient(160deg, #0b1c54, #02071f);
}
.em3-report-dialog__cover {
	width: auto;
	max-width: 190px;
	height: auto;
	filter: drop-shadow(18px 26px 36px rgba(2, 6, 20, 0.6));
}
.em3-report-dialog__form {
	padding: 34px 32px 30px;
}
.em3-report-dialog__form h2 {
	font-size: 28px;
	margin: 10px 0 6px;
}
.em3-report-dialog__note {
	color: var(--em3-ink-dim);
	font-size: 14.5px;
	margin: 0 0 20px;
}

/* Dark GF restyle inside the dialog (mirrors the footer newsletter pattern). */
.em3-report-dialog .gform_wrapper .gfield_label {
	color: var(--em3-ink-muted);
	font-size: 13px;
	font-weight: 600;
}
.em3-report-dialog .gform_wrapper input[type="text"],
.em3-report-dialog .gform_wrapper input[type="email"] {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--em3-line-soft);
	color: #fff;
	border-radius: var(--em3-radius);
	padding: 12px 14px;
	width: 100%;
}
.em3-report-dialog .gform_wrapper input::placeholder {
	color: var(--em3-ink-dim);
}
.em3-report-dialog .gform_wrapper input:focus {
	border-color: var(--em3-accent-hot);
	outline: none;
}
.em3-report-dialog .gform_wrapper .gfield {
	margin-bottom: 16px;
}
.em3-report-dialog .gform_wrapper .gform_footer .gform_button {
	width: 100%;
	justify-content: center;
}
.em3-report-success {
	text-align: center;
	padding: 20px 0;
}
.em3-report-success__icon {
	display: inline-flex;
	width: 56px;
	height: 56px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(46, 93, 255, 0.16);
	color: var(--em3-accent-hot);
	margin-bottom: 14px;
}
.em3-report-success__icon svg {
	width: 26px;
	height: 26px;
}
.em3-report-success h2 {
	font-size: 24px;
	margin: 0 0 10px;
}
.em3-report-success p {
	color: var(--em3-ink-muted);
	margin: 0 0 18px;
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
	.em3-rep-cards {
		grid-template-columns: repeat(2, 1fr);
	}
	.em3-rep-hero__grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.em3-rep-hero__cover {
		order: -1;
	}
	.em3-rep-hero__coverimg {
		max-width: 260px;
	}
	.em3-rep-body__grid {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.em3-rep-aside {
		position: static;
		max-width: 360px;
	}
}
@media (max-width: 680px) {
	.em3-report-dialog__inner {
		grid-template-columns: 1fr;
	}
	.em3-report-dialog__media {
		display: none;
	}
}
@media (max-width: 600px) {
	.em3-rep-cards {
		grid-template-columns: 1fr;
	}
}
@media (prefers-reduced-motion: reduce) {
	.em3-rep-card__link,
	.em3-rep-card__cover {
		transition: none;
	}
}
