/* ============================================================
   J-HyTEL Editorial Performance 1.3.0
   Theme-match release.

   Values intentionally mirror the current J-HyTEL
   Journal Performance / Impact & Scholarly Visibility visual system:
   - Perpetua + italic unicase kicker/title
   - burgundy left accent
   - pale rose metric tiles
   - Impact-style modal, source cards, and metric cards
   ============================================================ */

.jh-ep,
.jh-ep-modal,
.jh-ep *,
.jh-ep-modal *,
.jh-ep *::before,
.jh-ep *::after,
.jh-ep-modal *::before,
.jh-ep-modal *::after {
	box-sizing: border-box;
}

.jh-ep,
.jh-ep-modal {
	--jh-ep-wine: #790746;
	--jh-ep-wine-deep: #51022e;
	--jh-ep-wine-text: #610c3a;
	--jh-ep-plum: #35122f;
	--jh-ep-ink: #30272d;
	--jh-ep-muted: #756970;
	--jh-ep-border: #ead8e4;
	--jh-ep-border-hover: #d7b7c8;
	--jh-ep-tile: #fff5fb;
	--jh-ep-blue: #315f91;
	--jh-ep-gold: #b58a45;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-weight: 400;
}

/* ============================================================
   HOMEPAGE — mirrors .jhytel-impact-card
   ============================================================ */

.jh-ep {
	width: 100%;
	margin: 20px 0;
	color: var(--jh-ep-ink);
}

.jh-ep__shell {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) minmax(470px, 1.45fr) auto;
	align-items: center;
	gap: 22px;
	width: 100%;
	padding: 20px 22px;
	background:
		radial-gradient(circle at top right, rgba(121, 7, 70, 0.055), transparent 42%),
		linear-gradient(145deg, #ffffff 0%, #fffafd 100%);
	border: 1px solid var(--jh-ep-border);
	border-left: 4px solid var(--jh-ep-wine);
	border-radius: 0 14px 14px 0;
	box-shadow:
		0 8px 20px rgba(81, 2, 46, 0.075),
		inset 0 1px 0 rgba(255, 255, 255, 0.85);
	transition:
		border-color .18s ease,
		box-shadow .18s ease;
}

.jh-ep__shell:hover,
.jh-ep__shell:focus-within {
	border-color: var(--jh-ep-border-hover);
	border-left-color: var(--jh-ep-wine);
	box-shadow:
		0 12px 26px rgba(81, 2, 46, 0.11),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.jh-ep__intro {
	display: flex;
	align-items: flex-start;
	gap: 0;
	min-width: 0;
}

.jh-ep__intro > div {
	min-width: 0;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
}

/* EXACT heading language used by Journal Performance / Editorial Process. */
.jh-ep__kicker {
	display: block;
	margin: 0 0 3px;
	color: #610c3a;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 1rem;
	font-style: italic;
	font-variant: unicase;
	font-variant-caps: unicase;
	font-weight: 400;
	letter-spacing: .065em;
	line-height: 1.2;
	text-transform: none;
}

.jh-ep__intro h2 {
	margin: 0;
	color: #30272d;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: clamp(1.48rem, 2.4vw, 1.95rem);
	font-style: italic;
	font-variant: unicase;
	font-variant-caps: unicase;
	font-weight: 400;
	letter-spacing: -.012em;
	line-height: 1.06;
	text-transform: none;
}

.jh-ep__intro p {
	max-width: 42rem;
	margin: 6px 0 0;
	color: #756970;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 1.1rem;
	font-style: normal;
	font-weight: 400;
	line-height: 1.42;
	text-align: left;
}

/* EXACT metric-card geometry/language used by Journal Performance. */
.jh-ep__metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(92px, 1fr));
	gap: 10px;
	min-width: 0;
}

.jh-ep__metric {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 72px;
	padding: 11px 10px;
	overflow: hidden;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #5f4653;
	background: linear-gradient(145deg, #fffafd 0%, #fff5fb 100%);
	border: 1px solid #ead8e4;
	border-radius: 10px;
	box-shadow:
		inset 0 2px 0 rgba(121, 7, 70, 0.11),
		0 3px 9px rgba(81, 2, 46, 0.045);
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 15px;
	line-height: 1.22;
	text-align: center;
	transition:
		border-color .18s ease,
		box-shadow .18s ease,
		transform .18s ease;
}

.jh-ep__metric:hover {
	border-color: #d7b7c8;
	box-shadow:
		inset 0 2px 0 rgba(121, 7, 70, 0.14),
		0 7px 16px rgba(81, 2, 46, 0.075);
	transform: translateY(-1px);
}

.jh-ep__metric strong {
	display: block;
	margin: 0;
	color: #790746;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-style: italic;
	font-variant: unicase;
	font-variant-caps: unicase;
	font-weight: 400;
	letter-spacing: .015em;
	line-height: 1;
}

.jh-ep__metric strong em {
	color: #790746;
	font-size: .62em;
	font-style: italic;
	font-weight: 400;
}

.jh-ep__metric > span {
	display: block;
	margin: 0;
	color: #755664;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-style: italic;
	font-variant: unicase;
	font-variant-caps: unicase;
	font-weight: 400;
	letter-spacing: .045em;
	line-height: 1.2;
	text-transform: none;
}

.jh-ep__metric > small {
	display: block;
	margin: -1px 0 0;
	color: #8a7781;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 11.5px;
	font-style: normal;
	font-variant: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.15;
	text-transform: none;
}

/* Same homepage action typography as Journal Performance. */
.jh-ep__actions {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jh-ep__details {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 220px;
	min-width: 220px;
	max-width: 100%;
	min-height: 41px;
	padding: 8px 14px;
	color: #ffffff;
	background: linear-gradient(135deg, #851758, #35122f);
	border: 1px solid #610c3a;
	border-radius: 0;
	box-shadow: 0 6px 14px rgba(53, 18, 47, 0.18);
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 16px;
	font-style: italic;
	font-variant: unicase;
	font-variant-caps: unicase;
	font-weight: 300;
	letter-spacing: .045em;
	line-height: 1.15;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		transform .18s ease,
		box-shadow .18s ease,
		background .18s ease;
}

.jh-ep__details:hover,
.jh-ep__details:focus-visible {
	color: #ffffff;
	background: linear-gradient(135deg, #961b62, #481035);
	border-color: #610c3a;
	box-shadow: 0 9px 19px rgba(53, 18, 47, 0.27);
	outline: none;
	transform: translateY(-2px);
}

/* ============================================================
   POPUP — mirrors current J-HyTEL Impact modal language
   ============================================================ */

.jh-ep-modal[hidden] {
	display: none !important;
}

.jh-ep-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
	visibility: visible;
	opacity: 1;
}

.jh-ep-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(24, 9, 22, .78);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}

.jh-ep-modal__panel {
	position: relative;
	z-index: 1;
	display: flex;
	width: min(1040px, 100%);
	max-width: 1040px;
	max-height: calc(100vh - 44px);
	flex-direction: column;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(227, 17, 255, .36);
	border-top: 4px solid #e311ff;
	border-radius: 18px;
	box-shadow: 0 25px 75px rgba(24, 9, 22, .38);
	outline: none;
}

.jh-ep-modal__header {
	display: flex;
	flex: 0 0 auto;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 22px 15px;
	background:
		radial-gradient(circle at top right, rgba(227,17,255,.10), transparent 48%),
		#ffffff;
	border-bottom: 1px solid #eadfe7;
}

.jh-ep-modal__header .jh-ep__kicker {
	margin-bottom: 3px;
}

.jh-ep-modal__header h2 {
	margin: 0 0 3px;
	color: #35122f;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 23px;
	font-style: italic;
	font-variant: unicase;
	font-variant-caps: unicase;
	font-weight: 400;
	letter-spacing: -.012em;
	line-height: 1.2;
}

.jh-ep-modal__header p {
	max-width: 720px;
	margin: 0;
	color: #756970;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
}

.jh-ep-modal__close {
	display: inline-flex;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	color: #610c3a;
	background: #f7eff4;
	border: 1px solid #e3d3dd;
	border-radius: 50%;
	cursor: pointer;
}

.jh-ep-modal__close svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
}

.jh-ep-modal__close:hover,
.jh-ep-modal__close:focus-visible {
	color: #ffffff;
	background: #610c3a;
	border-color: #610c3a;
	outline: none;
}

.jh-ep-modal__toolbar {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 22px 0;
	background: #ffffff;
}

.jh-ep-segmented {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px;
	background: #f7edf3;
	border: 1px solid #e6d4df;
	border-radius: 999px;
}

.jh-ep-segmented button {
	min-height: 29px;
	padding: 5px 10px;
	color: #6f174b;
	background: transparent;
	border: 0;
	border-radius: 999px;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-style: italic;
	font-variant: unicase;
	font-weight: 400;
	line-height: 1.3;
	cursor: pointer;
}

.jh-ep-segmented button.is-active {
	color: #ffffff;
	background: #610c3a;
}

.jh-ep-modal__range {
	color: #82747c;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 14px;
	line-height: 1.3;
}

.jh-ep-modal__summary,
.jh-ep-modal__grid,
.jh-ep-modal__chartCard {
	flex: 0 0 auto;
}

/* Main modal content scroll container feel */
.jh-ep-modal__summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 15px 22px 0;
}

.jh-ep-modal__summary > div {
	display: flex;
	min-width: 0;
	min-height: 86px;
	padding: 12px 9px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	color: #463b41;
	background: #ffffff;
	border: 1px solid #e9dfe5;
	border-radius: 10px;
	box-shadow: 0 2px 7px rgba(53, 18, 47, .035);
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 16px;
	line-height: 1.25;
	text-align: center;
	overflow-wrap: anywhere;
}

.jh-ep-modal__summary span {
	display: block;
	margin: 0;
	color: #610c3a;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 19px;
	font-style: italic;
	font-variant: unicase;
	font-weight: 400;
	line-height: 1;
}

.jh-ep-modal__summary small {
	display: block;
	margin: 0;
	color: #755664;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-style: italic;
	font-variant: unicase;
	font-weight: 400;
	line-height: 1.2;
}

.jh-ep-modal__grid {
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	align-items: start;
	gap: 18px;
	min-height: 0;
	margin: 18px 22px 0;
}

.jh-ep-modal__card,
.jh-ep-modal__chartCard {
	min-width: 0;
	padding: 18px;
	background: #fcfafb;
	border: 1px solid #e7dbe3;
	border-radius: 14px;
	box-shadow: 0 5px 14px rgba(53, 18, 47, .045);
}

.jh-ep-modal__cardHead {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px 18px;
	margin: 0 0 15px;
	padding: 0 0 13px;
	border-bottom: 1px solid #eee4ea;
}

.jh-ep-modal__eyebrow {
	display: block;
	margin: 0;
	color: #82747c;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 14px;
	font-style: italic;
	font-variant: unicase;
	font-weight: 400;
	letter-spacing: .04em;
	line-height: 1.25;
}

.jh-ep-modal__cardHead h3 {
	margin: 4px 0 0;
	color: #35122f;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-style: italic;
	font-variant: unicase;
	font-weight: 400;
	line-height: 1.15;
}

.jh-ep-rate + .jh-ep-rate {
	margin-top: 14px;
}

.jh-ep-rate__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
	color: #574c52;
	font-size: 15px;
	line-height: 1.4;
}

.jh-ep-rate__row strong {
	color: #610c3a;
	font-weight: 400;
}

.jh-ep-rate__track {
	height: 6px;
	overflow: hidden;
	background: #eee4ea;
	border-radius: 999px;
}

.jh-ep-rate__track span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #315f91, #4a79a9);
	border-radius: inherit;
}

.jh-ep-rate:nth-of-type(2) .jh-ep-rate__track span {
	background: linear-gradient(90deg, #851758, #610c3a);
}

.jh-ep-modal__micro {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 8px;
	margin-top: 15px;
}

.jh-ep-modal__micro > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 42px;
	padding: 8px 10px;
	background: #ffffff;
	border: 1px solid #e9dfe5;
	border-radius: 9px;
	color: #756970;
	font-size: 14px;
}

.jh-ep-modal__micro strong {
	color: #610c3a;
	font-weight: 400;
}

.jh-ep-timing {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 10px;
}

.jh-ep-timing > div {
	display: flex;
	min-width: 0;
	min-height: 96px;
	padding: 12px 9px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	color: #463b41;
	background: #ffffff;
	border: 1px solid #e9dfe5;
	border-radius: 10px;
	box-shadow: 0 2px 7px rgba(53,18,47,.035);
	text-align: center;
}

.jh-ep-timing strong {
	display: block;
	color: #610c3a;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-style: italic;
	font-variant: unicase;
	font-weight: 400;
	line-height: 1;
}

.jh-ep-timing > div > span {
	display: block;
	color: #755664;
	font-size: 14px;
	font-style: italic;
	font-variant: unicase;
	line-height: 1.25;
}

.jh-ep-modal__note {
	margin: 13px 0 0;
	padding: 12px 14px;
	color: #665a61;
	background: #ffffff;
	border: 1px solid #eee3e9;
	border-radius: 9px;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

/* Chart area */
.jh-ep-modal__chartCard {
	margin: 18px 22px 0;
	padding: 18px;
}

.jh-ep-modal__cardHead--chart {
	align-items: center;
}

.jh-ep-modal__chartSub {
	margin: 5px 0 0;
	color: #756970;
	font-size: 14px;
	line-height: 1.4;
}

.jh-ep-legend {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	color: #756970;
	font-size: 14px;
}

.jh-ep-legend span {
	display: inline-flex;
	align-items: center;
}

.jh-ep-legend span::before {
	content: "";
	display: inline-block;
	width: 11px;
	height: 11px;
	margin-right: 7px;
	border-radius: 3px;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}

.jh-ep-legend__received::before { background: var(--jh-ep-blue); }
.jh-ep-legend__accepted::before { background: var(--jh-ep-gold); }
.jh-ep-legend__declined::before { background: var(--jh-ep-wine); }

.jh-ep-chart {
	position: relative;
	width: 100%;
	min-height: 285px;
	margin-top: 8px;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #eee3e9;
	border-radius: 10px;
}

.jh-ep-chart svg {
	display: block;
	width: 100%;
	height: auto;
}

.jh-ep-chart text {
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	fill: #756970;
}

.jh-ep-chart .jh-grid {
	stroke: #eee4ea;
	stroke-width: 1;
	stroke-dasharray: 3 5;
}

.jh-ep-chart .jh-axis {
	stroke: #ddd0d8;
	stroke-width: 1;
}

.jh-ep-chart .jh-axis-label,
.jh-ep-chart .jh-y-label,
.jh-ep-chart .jh-bar-value {
	font-size: 12.5px;
}

.jh-ep-chart .jh-bar-received {
	fill: #315f91;
}

.jh-ep-chart .jh-bar-accepted {
	fill: #b88a39;
}

.jh-ep-chart .jh-bar-declined {
	fill: #851758;
}

.jh-ep-chart .jh-bar-value {
	font-style: italic;
	font-variant: unicase;
	font-weight: 400;
}

.jh-ep-chart .jh-bar-label-received { fill: #315f91; }
.jh-ep-chart .jh-bar-label-accepted { fill: #9a6f28; }
.jh-ep-chart .jh-bar-label-declined { fill: #851758; }

.jh-ep-modal__footer {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	margin-top: 18px;
	padding: 11px 22px;
	background: #fbf8fa;
	border-top: 1px solid #e8dde4;
	color: #83767e;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 13px;
	line-height: 1.4;
}

body.jh-ep-modal-open {
	overflow: hidden;
}

/* ============================================================
   Responsive behaviour mirrors the J-HyTEL impact component
   ============================================================ */

@media (max-width: 1100px) {
	.jh-ep__shell {
		grid-template-columns: minmax(260px, .8fr) minmax(440px, 1.35fr);
	}

	.jh-ep__actions {
		grid-column: 1 / -1;
		flex-direction: row;
	}

	.jh-ep__details {
		width: 220px;
	}
}

@media (max-width: 900px) {
	.jh-ep__shell {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.jh-ep__metrics {
		grid-template-columns: repeat(2, minmax(120px, 1fr));
	}

	.jh-ep__actions {
		grid-column: 1 / -1;
	}

	.jh-ep-modal__grid {
		grid-template-columns: 1fr;
	}

	.jh-ep-timing {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 650px) {
	.jh-ep__shell {
		grid-template-columns: 1fr;
		gap: 15px;
		padding: 18px;
	}

	.jh-ep__intro h2 {
		font-size: 1.48rem;
	}

	.jh-ep__intro p {
		font-size: 1rem;
	}

	.jh-ep__metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jh-ep__actions {
		flex-direction: column;
	}

	.jh-ep__details {
		width: 100%;
		min-width: 0;
	}

	.jh-ep-modal {
		align-items: flex-end;
		padding: 8px;
	}

	.jh-ep-modal__panel {
		max-height: calc(100vh - 16px);
		border-radius: 14px;
	}

	.jh-ep-modal__header,
	.jh-ep-modal__toolbar,
	.jh-ep-modal__footer {
		padding-right: 16px;
		padding-left: 16px;
	}

	.jh-ep-modal__summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-right: 16px;
		margin-left: 16px;
	}

	.jh-ep-modal__grid,
	.jh-ep-modal__chartCard {
		margin-right: 16px;
		margin-left: 16px;
	}

	.jh-ep-timing {
		grid-template-columns: 1fr;
	}

	.jh-ep-modal__cardHead--chart {
		align-items: flex-start;
		flex-direction: column;
	}

	.jh-ep-chart {
		overflow-x: auto;
	}

	.jh-ep-chart svg {
		min-width: 680px;
	}

	.jh-ep-modal__footer {
		align-items: stretch;
		flex-direction: column;
		gap: 4px;
	}
}

@media (max-width: 420px) {
	.jh-ep__metrics,
	.jh-ep-modal__summary {
		grid-template-columns: 1fr 1fr;
	}

	.jh-ep__metric {
		min-height: 76px;
		padding: 10px 8px;
	}

	.jh-ep__metric > span {
		font-size: 13.5px;
	}

	.jh-ep__metric > small {
		font-size: 10.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jh-ep__shell,
	.jh-ep__metric,
	.jh-ep__details {
		transition: none;
	}

	.jh-ep__metric:hover,
	.jh-ep__details:hover {
		transform: none;
	}
}


/* ============================================================
   1.4.0 — exact J-HyTEL Journal Performance CTA hardening
   The !important declarations are deliberate so theme-level generic
   button rules cannot change this component's final appearance.
   ============================================================ */
.jh-ep .jh-ep__details {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	width: 220px !important;
	min-width: 220px !important;
	max-width: 100% !important;
	min-height: 41px !important;
	height: auto !important;
	padding: 8px 14px !important;
	color: #ffffff !important;
	background: linear-gradient(135deg, #851758, #35122f) !important;
	border: 1px solid #610c3a !important;
	border-radius: 0 !important;
	box-shadow: 0 6px 14px rgba(53, 18, 47, 0.18) !important;
	font-family: "Perpetua", Georgia, "Times New Roman", serif !important;
	font-size: 16px !important;
	font-style: italic !important;
	font-variant: unicase !important;
	font-variant-caps: unicase !important;
	font-weight: 300 !important;
	letter-spacing: .045em !important;
	line-height: 1.15 !important;
	text-align: left !important;
	text-transform: none !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
}

.jh-ep .jh-ep__details:hover,
.jh-ep .jh-ep__details:focus,
.jh-ep .jh-ep__details:focus-visible {
	color: #ffffff !important;
	background: linear-gradient(135deg, #8f1a5f, #35122f) !important;
	border-color: #610c3a !important;
	box-shadow: 0 9px 19px rgba(53, 18, 47, 0.27) !important;
	outline: none !important;
	transform: translateY(-2px);
}

@media (max-width: 650px) {
	.jh-ep .jh-ep__details {
		width: 100% !important;
		min-width: 0 !important;
	}
}

/* ============================================================
   Modal navigation + scroll safety
   ============================================================ */
.jh-ep-modal__panel {
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-gutter: stable;
}

.jh-ep-modal__header {
	position: sticky;
	top: 0;
	z-index: 7;
}

.jh-ep-modal__tabs {
	position: sticky;
	top: 88px;
	z-index: 6;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 4px;
	padding: 9px 22px;
	background: rgba(255,255,255,.97);
	border-bottom: 1px solid #eadfe7;
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}

.jh-ep-modal__tabs button {
	position: relative;
	min-height: 34px;
	padding: 7px 13px;
	color: #786b73;
	background: transparent;
	border: 0;
	border-radius: 0;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 15px;
	font-style: italic;
	font-variant: unicase;
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
}

.jh-ep-modal__tabs button::after {
	position: absolute;
	right: 13px;
	bottom: 0;
	left: 13px;
	height: 2px;
	background: transparent;
	content: "";
}

.jh-ep-modal__tabs button:hover,
.jh-ep-modal__tabs button:focus-visible {
	color: #610c3a;
	outline: none;
}

.jh-ep-modal__tabs button.is-active {
	color: #610c3a;
}

.jh-ep-modal__tabs button.is-active::after {
	background: #610c3a;
}

.jh-ep-modal__tabPanel[hidden] {
	display: none !important;
}

.jh-ep-modal__tabPanel {
	min-width: 0;
}

/* ============================================================
   Dedicated Trends & Details tab
   ============================================================ */
.jh-ep-trend__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin: 16px 22px 0;
	padding-bottom: 14px;
	border-bottom: 1px solid #eee4ea;
}

.jh-ep-trend__header h3 {
	margin: 4px 0 0;
	color: #35122f;
	font-family: "Perpetua", Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-style: italic;
	font-variant: unicase;
	font-weight: 400;
	line-height: 1.15;
}

.jh-ep-trend__header p {
	max-width: 650px;
	margin: 6px 0 0;
	color: #756970;
	font-size: 14px;
	line-height: 1.45;
}

.jh-ep-trend__range {
	flex: 0 0 auto;
	color: #82747c;
	font-size: 13.5px;
	line-height: 1.35;
	white-space: nowrap;
}

.jh-ep-trend__metrics {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 9px;
	margin: 15px 22px 0;
}

.jh-ep-trend__metrics > div {
	display: flex;
	min-width: 0;
	min-height: 94px;
	padding: 12px 10px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	background: linear-gradient(145deg, #fffafd 0%, #fff5fb 100%);
	border: 1px solid #ead8e4;
	border-radius: 10px;
	box-shadow:
		inset 0 2px 0 rgba(121, 7, 70, 0.10),
		0 3px 9px rgba(81, 2, 46, 0.04);
	text-align: center;
}

.jh-ep-trend__metrics strong {
	display: block;
	color: #790746;
	font-size: 20px;
	font-style: italic;
	font-variant: unicase;
	font-weight: 400;
	line-height: 1.05;
}

.jh-ep-trend__metrics span {
	display: block;
	color: #755664;
	font-size: 14px;
	font-style: italic;
	font-variant: unicase;
	line-height: 1.2;
}

.jh-ep-trend__metrics small {
	display: block;
	color: #8a7781;
	font-size: 11px;
	font-style: normal;
	line-height: 1.2;
}

.jh-ep-modal__chartCard--tab {
	margin-top: 15px;
}

.jh-ep-modal__chartCard--tab .jh-ep-chart {
	min-height: 348px;
}

.jh-ep-trend__details {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 9px;
	margin: 12px 22px 0;
}

.jh-ep-trend__details > div {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 46px;
	padding: 9px 11px;
	background: #ffffff;
	border: 1px solid #e9dfe5;
	border-radius: 9px;
	color: #756970;
	font-size: 13.5px;
	line-height: 1.25;
}

.jh-ep-trend__details strong {
	color: #610c3a;
	font-size: 16px;
	font-style: italic;
	font-variant: unicase;
	font-weight: 400;
}

.jh-ep-trend__note {
	margin: 12px 22px 0;
	padding: 11px 13px;
	color: #6e6168;
	background: linear-gradient(90deg, #faf3f8, #ffffff);
	border-left: 3px solid #851758;
	border-radius: 0 8px 8px 0;
	font-size: 13px;
	line-height: 1.48;
}

@media (max-width: 900px) {
	.jh-ep-trend__metrics {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.jh-ep-trend__details {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.jh-ep-modal__tabs {
		top: 95px;
	}
}

@media (max-width: 650px) {
	.jh-ep-modal__header {
		position: relative;
		top: auto;
	}

	.jh-ep-modal__tabs {
		position: sticky;
		top: 0;
		padding-right: 16px;
		padding-left: 16px;
		overflow-x: auto;
	}

	.jh-ep-trend__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 7px;
		margin-right: 16px;
		margin-left: 16px;
	}

	.jh-ep-trend__range {
		white-space: normal;
	}

	.jh-ep-trend__metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-right: 16px;
		margin-left: 16px;
	}

	.jh-ep-trend__details {
		grid-template-columns: 1fr 1fr;
		margin-right: 16px;
		margin-left: 16px;
	}

	.jh-ep-trend__note {
		margin-right: 16px;
		margin-left: 16px;
	}

	.jh-ep-modal__chartCard--tab .jh-ep-chart {
		min-height: 290px;
	}
}

@media (max-width: 420px) {
	.jh-ep-trend__metrics,
	.jh-ep-trend__details {
		grid-template-columns: 1fr 1fr;
	}
}


/* ============================================================
   1.5.0 — administrator-controlled views + one-container Overview
   ============================================================ */
.jh-ep-modal__panel.is-overview {
	max-height: min(92vh, 690px);
	overflow: hidden;
}
.jh-ep-modal__panel.is-overview .jh-ep-modal__header {
	position: relative;
	padding: 14px 20px 12px;
}
.jh-ep-modal__panel.is-overview .jh-ep-modal__header h2 { font-size: 21px; }
.jh-ep-modal__panel.is-overview .jh-ep-modal__header p { margin-top: 4px; font-size: 13.5px; }
.jh-ep-modal__panel.is-overview .jh-ep-modal__tabs {
	position: relative;
	top: auto;
	padding: 6px 20px;
}
.jh-ep-modal__panel.is-overview .jh-ep-modal__toolbar {
	padding: 9px 20px 0;
}
.jh-ep-modal__panel.is-overview .jh-ep-modal__summary {
	gap: 8px;
	margin: 10px 20px 0;
}
.jh-ep-modal__panel.is-overview .jh-ep-modal__summary > div {
	min-height: 66px;
	padding: 9px 8px;
	gap: 4px;
}
.jh-ep-modal__panel.is-overview .jh-ep-modal__summary span { font-size: 18px; }
.jh-ep-modal__panel.is-overview .jh-ep-modal__summary small { font-size: 12.5px; }
.jh-ep-modal__panel.is-overview .jh-ep-modal__grid {
	gap: 12px;
	margin: 12px 20px 0;
}
.jh-ep-modal__panel.is-overview .jh-ep-modal__card {
	padding: 13px 15px;
}
.jh-ep-modal__panel.is-overview .jh-ep-modal__cardHead {
	margin-bottom: 10px;
	padding-bottom: 8px;
}
.jh-ep-modal__panel.is-overview .jh-ep-modal__cardHead h3 { font-size: 19px; }
.jh-ep-modal__panel.is-overview .jh-ep-modal__eyebrow { font-size: 12.5px; }
.jh-ep-modal__panel.is-overview .jh-ep-rate + .jh-ep-rate { margin-top: 10px; }
.jh-ep-modal__panel.is-overview .jh-ep-rate__row { margin-bottom: 4px; font-size: 13.5px; }
.jh-ep-modal__panel.is-overview .jh-ep-modal__micro { margin-top: 10px; padding-top: 9px; }
.jh-ep-modal__panel.is-overview .jh-ep-modal__micro > div { min-height: 34px; padding: 6px 8px; font-size: 12.5px; }
.jh-ep-modal__panel.is-overview .jh-ep-timing { gap: 8px; }
.jh-ep-modal__panel.is-overview .jh-ep-timing > div { min-height: 74px; padding: 9px 7px; gap: 5px; }
.jh-ep-modal__panel.is-overview .jh-ep-timing strong { font-size: 19px; }
.jh-ep-modal__panel.is-overview .jh-ep-timing > div > span { font-size: 12.3px; }
.jh-ep-modal__panel.is-overview .jh-ep-modal__note {
	margin-top: 9px;
	padding: 8px 10px;
	font-size: 12.5px;
	line-height: 1.35;
}
.jh-ep-modal__panel.is-overview .jh-ep-modal__footer {
	margin-top: 11px;
	padding: 8px 20px;
	font-size: 11.8px;
}

/* A single enabled view does not need a tab strip. */
.jh-ep-modal__panel:not(:has(.jh-ep-modal__tabs)) .jh-ep-modal__header {
	border-bottom: 1px solid #eadfe7;
}

/* Safety fallback: very short displays and mobile remain scrollable rather than clipped. */
@media (max-height: 690px), (max-width: 760px) {
	.jh-ep-modal__panel.is-overview {
		max-height: calc(100vh - 16px);
		overflow-y: auto;
	}
}


/* ============================================================
   1.5.1 — popup edge correction + exact homepage card language
   ============================================================ */

/*
 * Keep the modal fully inside the viewport. This prevents a pale/white strip
 * at the right edge when browser zoom, scrollbar width, or a narrow viewport
 * reduces the usable width by a few pixels.
 */
.jh-ep-modal {
	padding: 12px !important;
	overflow: hidden;
}

.jh-ep-modal__panel,
.jh-ep-modal__panel.is-overview {
	width: min(1040px, calc(100vw - 24px)) !important;
	max-width: calc(100vw - 24px) !important;
	margin: 0 auto !important;
	background:
		radial-gradient(circle at top right, rgba(121, 7, 70, .045), transparent 38%),
		linear-gradient(145deg, #ffffff 0%, #fffafd 100%) !important;
	border-right-color: #ead8e4 !important;
	border-bottom-color: #ead8e4 !important;
	border-left-color: #ead8e4 !important;
	box-shadow: 0 25px 75px rgba(24, 9, 22, .38) !important;
	isolation: isolate;
}

/* Paint the same soft background all the way to the rounded right edge. */
.jh-ep-modal__header,
.jh-ep-modal__toolbar,
.jh-ep-modal__tabs,
.jh-ep-modal__tabPanel,
.jh-ep-modal__footer {
	background-color: transparent !important;
}

.jh-ep-modal__header {
	background:
		radial-gradient(circle at top right, rgba(227,17,255,.08), transparent 48%),
		linear-gradient(90deg, rgba(255,255,255,.98), rgba(255,247,253,.94)) !important;
}

.jh-ep-modal__footer {
	background: linear-gradient(90deg, rgba(251,248,250,.96), rgba(255,250,253,.96)) !important;
}

/* ============================================================
   Popup mini-cards = homepage mini-cards
   ============================================================ */

/* Summary: Received / Accepted / Declined / Published */
.jh-ep-modal__summary > div,
.jh-ep-modal__panel.is-overview .jh-ep-modal__summary > div,
/* Turnaround cards */
.jh-ep-timing > div,
.jh-ep-modal__panel.is-overview .jh-ep-timing > div,
/* Desk / after-review cards */
.jh-ep-modal__micro > div,
.jh-ep-modal__panel.is-overview .jh-ep-modal__micro > div {
	position: relative;
	color: #5f4653 !important;
	background: linear-gradient(145deg, #fffafd 0%, #fff5fb 100%) !important;
	border: 1px solid #ead8e4 !important;
	border-radius: 10px !important;
	box-shadow:
		inset 0 2px 0 rgba(121, 7, 70, 0.11),
		0 3px 9px rgba(81, 2, 46, 0.045) !important;
	font-family: "Perpetua", Georgia, "Times New Roman", serif !important;
}

.jh-ep-modal__summary > div:hover,
.jh-ep-timing > div:hover,
.jh-ep-modal__micro > div:hover {
	border-color: #d7b7c8 !important;
	box-shadow:
		inset 0 2px 0 rgba(121, 7, 70, 0.14),
		0 7px 16px rgba(81, 2, 46, 0.075) !important;
}

/* Match the homepage metric value treatment. */
.jh-ep-modal__summary span,
.jh-ep-timing strong,
.jh-ep-modal__micro strong {
	color: #790746 !important;
	font-family: "Perpetua", Georgia, "Times New Roman", serif !important;
	font-style: italic !important;
	font-variant: unicase !important;
	font-variant-caps: unicase !important;
	font-weight: 400 !important;
	letter-spacing: .015em;
}

.jh-ep-modal__summary small,
.jh-ep-timing > div > span,
.jh-ep-modal__micro > div > span {
	color: #755664 !important;
	font-family: "Perpetua", Georgia, "Times New Roman", serif !important;
	font-style: italic !important;
	font-variant: unicase !important;
	font-variant-caps: unicase !important;
	font-weight: 400 !important;
	letter-spacing: .025em;
}

/* The two larger Overview containers use the same shell material as the homepage. */
.jh-ep-modal__card,
.jh-ep-modal__panel.is-overview .jh-ep-modal__card {
	background:
		radial-gradient(circle at top right, rgba(121, 7, 70, .035), transparent 42%),
		linear-gradient(145deg, #ffffff 0%, #fffafd 100%) !important;
	border: 1px solid #ead8e4 !important;
	border-radius: 12px !important;
	box-shadow:
		0 6px 15px rgba(81, 2, 46, .05),
		inset 0 1px 0 rgba(255,255,255,.88) !important;
}

.jh-ep-modal__cardHead {
	border-bottom-color: #eadfe7 !important;
}

/* Explanatory note becomes a quiet theme-matched box instead of plain white. */
.jh-ep-modal__note,
.jh-ep-modal__panel.is-overview .jh-ep-modal__note {
	color: #665a61 !important;
	background: linear-gradient(145deg, #fffafd 0%, #fff8fc 100%) !important;
	border: 1px solid #ead8e4 !important;
	border-radius: 9px !important;
	box-shadow: inset 0 1px 0 rgba(121,7,70,.035) !important;
}

/* Keep the compact Overview dimensions while using the homepage material. */
.jh-ep-modal__panel.is-overview .jh-ep-modal__summary > div {
	min-height: 66px !important;
	padding: 9px 8px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-timing > div {
	min-height: 74px !important;
	padding: 9px 7px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__micro > div {
	min-height: 34px !important;
	padding: 6px 8px !important;
}

/* No accidental horizontal overflow from inner grids. */
.jh-ep-modal__summary,
.jh-ep-modal__grid,
.jh-ep-timing,
.jh-ep-modal__micro,
.jh-ep-modal__tabPanel {
	min-width: 0;
	max-width: 100%;
}

@media (max-width: 760px) {
	.jh-ep-modal {
		padding: 8px !important;
	}

	.jh-ep-modal__panel,
	.jh-ep-modal__panel.is-overview {
		width: calc(100vw - 16px) !important;
		max-width: calc(100vw - 16px) !important;
	}
}


/* ============================================================
   1.5.2 — Overview edge/gutter fix + typography refinement
   ============================================================ */

/*
 * The pale/white strip at the right edge was caused by the modal reserving
 * scrollbar gutter space even when Overview did not need a scrollbar.
 * Do not reserve that gutter. Let a real scrollbar consume space only on
 * small/short viewports where scrolling is actually required.
 */
.jh-ep-modal__panel,
.jh-ep-modal__panel.is-overview {
	scrollbar-gutter: auto !important;
}

/* Ensure every visual layer paints all the way to the panel's inner edge. */
.jh-ep-modal__header,
.jh-ep-modal__tabs,
.jh-ep-modal__tabPanel,
.jh-ep-modal__toolbar,
.jh-ep-modal__summary,
.jh-ep-modal__grid,
.jh-ep-modal__footer {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	align-self: stretch !important;
}

/* Desktop Overview: one complete container, no internal scrollbar/gutter. */
@media (min-width: 761px) and (min-height: 701px) {
	.jh-ep-modal__panel.is-overview {
		width: min(1080px, calc(100vw - 24px)) !important;
		max-width: calc(100vw - 24px) !important;
		max-height: calc(100vh - 20px) !important;
		height: auto !important;
		overflow-x: hidden !important;
		overflow-y: hidden !important;
		scrollbar-gutter: auto !important;
	}
}

/* A little more breathing room while preserving the single-container height. */
.jh-ep-modal__panel.is-overview .jh-ep-modal__header {
	padding: 15px 22px 13px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__header h2 {
	font-size: 23px !important;
	line-height: 1.12 !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__header p {
	margin-top: 5px !important;
	font-size: 14.5px !important;
	line-height: 1.4 !important;
}

.jh-ep-modal__panel.is-overview .jh-ep__kicker {
	font-size: 15px !important;
	line-height: 1.18 !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__tabs {
	padding: 7px 22px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__tabs button {
	font-size: 14.5px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__toolbar {
	padding: 9px 22px 0 !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-segmented button,
.jh-ep-modal__panel.is-overview .jh-ep-modal__range {
	font-size: 14px !important;
}

/* Top four summary cards: same readable scale as homepage mini-cards. */
.jh-ep-modal__panel.is-overview .jh-ep-modal__summary {
	gap: 10px !important;
	margin: 10px 22px 0 !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__summary > div {
	min-height: 70px !important;
	padding: 9px 9px !important;
	gap: 5px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__summary span {
	font-size: 20px !important;
	line-height: 1 !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__summary small {
	font-size: 13.5px !important;
	line-height: 1.18 !important;
}

/* Main two-column overview remains compact but no longer looks undersized. */
.jh-ep-modal__panel.is-overview .jh-ep-modal__grid {
	gap: 14px !important;
	margin: 12px 22px 0 !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__card {
	padding: 14px 16px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__cardHead {
	margin-bottom: 10px !important;
	padding-bottom: 9px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__cardHead h3 {
	font-size: 21px !important;
	line-height: 1.12 !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__eyebrow {
	font-size: 13.5px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-rate + .jh-ep-rate {
	margin-top: 10px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-rate__row {
	margin-bottom: 5px !important;
	font-size: 14.5px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__micro {
	margin-top: 10px !important;
	padding-top: 9px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__micro > div {
	min-height: 36px !important;
	padding: 6px 9px !important;
	font-size: 13.5px !important;
}

/* Turnaround values become easier to read without increasing card height much. */
.jh-ep-modal__panel.is-overview .jh-ep-timing {
	gap: 9px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-timing > div {
	min-height: 78px !important;
	padding: 9px 8px !important;
	gap: 5px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-timing strong {
	font-size: 22px !important;
	line-height: 1 !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-timing > div > span {
	font-size: 13.3px !important;
	line-height: 1.22 !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__note {
	margin-top: 9px !important;
	padding: 9px 11px !important;
	font-size: 13.5px !important;
	line-height: 1.38 !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__footer {
	margin-top: 11px !important;
	padding: 8px 22px !important;
	font-size: 12.8px !important;
	line-height: 1.3 !important;
}

/* Real scroll is retained only where it is needed for short/mobile screens. */
@media (max-height: 700px), (max-width: 760px) {
	.jh-ep-modal__panel.is-overview {
		max-height: calc(100vh - 16px) !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		scrollbar-gutter: auto !important;
	}
}

@media (max-width: 650px) {
	.jh-ep-modal__panel.is-overview .jh-ep-modal__summary span {
		font-size: 19px !important;
	}

	.jh-ep-modal__panel.is-overview .jh-ep-modal__summary small,
	.jh-ep-modal__panel.is-overview .jh-ep-timing > div > span {
		font-size: 12.8px !important;
	}
}


/* ============================================================
   1.5.3 — inner-grid geometry correction
   Fixes the right-side clipping introduced by combining width:100%
   with horizontal margins on Overview summary/grid containers.
   ============================================================ */

/*
 * IMPORTANT: summary and main grid are normal block/grid boxes with
 * horizontal margins. They must use auto width so the browser subtracts
 * those margins from the available panel width. width:100% + 22px + 22px
 * overflows the panel and clips the right-most cards.
 */
.jh-ep-modal__panel.is-overview .jh-ep-modal__summary,
.jh-ep-modal__panel.is-overview .jh-ep-modal__grid {
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	align-self: auto !important;
	box-sizing: border-box !important;
}

/* Equal safe inset from both modal edges. */
.jh-ep-modal__panel.is-overview .jh-ep-modal__summary {
	margin: 12px 24px 0 !important;
	gap: 12px !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__grid {
	margin: 14px 24px 0 !important;
	gap: 16px !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	align-items: stretch !important;
}

/* Prevent any child from forcing its grid track wider than the modal. */
.jh-ep-modal__panel.is-overview .jh-ep-modal__summary > div,
.jh-ep-modal__panel.is-overview .jh-ep-modal__card,
.jh-ep-modal__panel.is-overview .jh-ep-timing > div,
.jh-ep-modal__panel.is-overview .jh-ep-modal__micro > div {
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* More balanced inner spacing; no card should visually touch a neighbour. */
.jh-ep-modal__panel.is-overview .jh-ep-modal__summary > div {
	padding: 10px 12px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__card {
	padding: 16px 18px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-timing {
	width: 100% !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 10px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-timing > div {
	padding: 10px 9px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__micro {
	width: 100% !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: 10px !important;
}

.jh-ep-modal__panel.is-overview .jh-ep-modal__micro > div {
	padding: 7px 10px !important;
}

/* Text can wrap cleanly instead of expanding the card. */
.jh-ep-modal__panel.is-overview .jh-ep-modal__summary small,
.jh-ep-modal__panel.is-overview .jh-ep-timing > div > span,
.jh-ep-modal__panel.is-overview .jh-ep-modal__micro > div > span,
.jh-ep-modal__panel.is-overview .jh-ep-modal__note {
	overflow-wrap: anywhere;
	word-break: normal;
}

/* Keep the lower note fully inside the right card. */
.jh-ep-modal__panel.is-overview .jh-ep-modal__note {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Footer/header/toolbars are edge-to-edge layers; inner content gets padding. */
.jh-ep-modal__panel.is-overview .jh-ep-modal__header,
.jh-ep-modal__panel.is-overview .jh-ep-modal__tabs,
.jh-ep-modal__panel.is-overview .jh-ep-modal__toolbar,
.jh-ep-modal__panel.is-overview .jh-ep-modal__footer {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Tablet/mobile: preserve the same symmetric inset without horizontal clipping. */
@media (max-width: 760px) {
	.jh-ep-modal__panel.is-overview .jh-ep-modal__summary,
	.jh-ep-modal__panel.is-overview .jh-ep-modal__grid {
		margin-right: 14px !important;
		margin-left: 14px !important;
	}

	.jh-ep-modal__panel.is-overview .jh-ep-modal__summary {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.jh-ep-modal__panel.is-overview .jh-ep-modal__grid {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 430px) {
	.jh-ep-modal__panel.is-overview .jh-ep-modal__summary {
		gap: 9px !important;
		margin-right: 12px !important;
		margin-left: 12px !important;
	}

	.jh-ep-modal__panel.is-overview .jh-ep-modal__grid {
		margin-right: 12px !important;
		margin-left: 12px !important;
	}
}


/* ============================================================
   1.5.4 — buttonless compact homepage interaction
   The full Editorial Performance container is the trigger.
   ============================================================ */
.jh-ep__shell {
	grid-template-columns: minmax(270px, .82fr) minmax(0, 1.78fr);
	gap: 18px;
	padding: 17px 20px;
}

.jh-ep__shell[data-jh-ep-open] {
	cursor: pointer;
}

.jh-ep__shell[data-jh-ep-open]:hover {
	border-color: #d7b7c8;
	border-left-color: var(--jh-ep-wine);
	box-shadow:
		0 10px 24px rgba(81, 2, 46, 0.10),
		inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.jh-ep__shell[data-jh-ep-open]:focus-visible {
	outline: 2px solid rgba(121, 7, 70, .42);
	outline-offset: 3px;
	border-color: #d7b7c8;
}

.jh-ep__intro p {
	margin-top: 5px;
}

.jh-ep__metrics {
	gap: 9px;
}

.jh-ep__metric {
	min-height: 68px;
	padding: 10px 9px;
	gap: 5px;
}

/* Old CTA classes remain harmless for upgrade compatibility, but the
   v1.5.4 public template no longer renders the action/button column. */
.jh-ep__actions,
.jh-ep__details {
	display: none !important;
}

@media (max-width: 900px) {
	.jh-ep__shell {
		grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
		gap: 14px;
		padding: 16px 17px;
	}

	.jh-ep__metrics {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 650px) {
	.jh-ep__shell {
		grid-template-columns: 1fr;
		gap: 13px;
		padding: 17px;
	}

	.jh-ep__metric {
		min-height: 70px;
	}
}


/* 1.5.4.1 — homepage metric value scale
   Matches Editorial Performance numeric values to the 22px homepage rhythm. */
.jh-ep__metric > strong {
	font-size: 22px !important;
}
