/* Publisher pages (index_epsilon.html): the header (#ep-hero), and the journals list
 * (index_epsilon.html?journals_list.html) with search box, field filter and grouped list.
 * The list is scoped to #ep-journals-page; the menu and footer are the site's own. */

/* ---------------------------------------------------------------- publisher header */
#top_cover_wrapper_epsilon { background: none; }
#ep-hero {
	position: relative;
	box-sizing: border-box;
	height: 150px;
	overflow: hidden;
	border-radius: 8px;
	padding: 22px 30px 18px;
	color: #fff;
	font-family: var(--ep-font);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(67, 108, 168, .55) 0%, rgba(67, 108, 168, 0) 55%),
		radial-gradient(80% 120% at 0% 100%, rgba(207, 86, 0, .22) 0%, rgba(207, 86, 0, 0) 60%),
		linear-gradient(120deg, #0B2147 0%, #163D79 100%);
}
/* faint dot grid */
#ep-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1.2px);
	background-size: 16px 16px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%);
	pointer-events: none;
}
/* thin orange rule at the bottom (Epsilon logo colour) */
#ep-hero::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, #CF5600, #F28C28 60%, rgba(242, 140, 40, 0));
}
.ep-hero-text { position: relative; z-index: 1; max-width: 640px; }
#ep-hero .ep-hero-eyebrow {
	margin: 0 0 2px;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #F6A35B;
}
#ep-hero h1 {
	margin: 0;
	padding: 0;
	font-family: var(--ep-font);
	font-size: 32px;
	line-height: 1.15;
	font-weight: bold;
	letter-spacing: -.01em;
}
#ep-hero h1 a { color: #fff; text-decoration: none; }
#ep-hero .ep-hero-tag { margin: 3px 0 0; font-size: 13px; letter-spacing: -0.005em; line-height: 1.4; color: #D5E1F2; }
.ep-hero-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ep-hero-facts li {
	font-size: 11.5px;
	line-height: 1;
	padding: 5px 9px;
	border-radius: 999px;
	color: #E8EFF9;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
}
/* fan of journal covers on the right */
.ep-hero-covers { position: absolute; z-index: 1; right: 22px; top: 0; bottom: 0; width: 300px; }
.ep-hero-covers a {
	position: absolute;
	top: 24px;
	right: calc(var(--i) * 40px);
	transform: rotate(calc((var(--i) - 3) * 3deg)) translateY(calc((var(--i) - 3) * (var(--i) - 3) * 1.4px - 6px));
	transition: transform .2s ease;
	z-index: calc(10 - var(--i));
}
.ep-hero-covers img {
	display: block;
	width: 66px;
	height: 93px;
	object-fit: cover;
	border-radius: 3px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .15);
}
.ep-hero-covers a:hover { transform: translateY(-8px); z-index: 20; }

@media only screen and (max-device-width: 800px), screen and (max-width: 760px) {
	#top_cover_wrapper_epsilon { height: auto; }
	#ep-hero { height: auto; padding: 18px 16px 20px; border-radius: 0; }
	#ep-hero h1 { font-size: 26px; }
	.ep-hero-covers { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ep-hero-covers a { transition: none; } }


#ep-journals-page {
	--ep-ink: #163D79;      /* site heading blue (.text_header) */
	--ep-blue: #436CA8;     /* site link / button blue */
	--ep-text: #333;
	--ep-muted: #5C6A7E;
	--ep-rule: #DDE3EC;
	--ep-panel: #F4F6FA;
	--ep-accent: #A84A00;   /* Epsilon logo orange, darkened for text contrast */
	/* floated like the site's #content_full, so the footer (which clears floats) stays below */
	float: left;
	clear: both;
	width: 100%;
	box-sizing: border-box;
	padding: 18px 5px 30px;
	color: var(--ep-text);
	font-family: var(--ep-font);
	font-size: 14px;
	line-height: 1.55;
}
#ep-journals-page a { color: var(--ep-ink); }
#ep-journals-page a:focus-visible,
#ep-journals-page button:focus-visible,
#ep-journals-page input:focus-visible {
	outline: 3px solid var(--ep-blue);
	outline-offset: 2px;
}

#ep-journals-page h2.text_header { margin: 0 0 6px; }
#ep-journals-page .ep-intro { margin: 0 0 18px; max-width: 46em; font-size: 14px; }

/* ---------------------------------------------------------------- search + filter */
.ep-tools {
	background: var(--ep-panel);
	border: 1px solid var(--ep-rule);
	border-radius: 6px;
	padding: 16px 18px 14px;
}
.ep-search { display: flex; gap: 10px; align-items: center; }
.ep-search label { font-weight: bold; color: var(--ep-ink); white-space: nowrap; }
#ep-journals-page .ep-search input {
	flex: 1;
	min-width: 0;
	font: 15px/1.3 var(--ep-font);
	color: var(--ep-text);
	padding: 9px 12px;
	border: 1px solid #B9C4D4;
	border-radius: 4px;
	background: #fff;
}
#ep-journals-page .ep-search input::placeholder { color: #8090A5; }
#ep-journals-page .ep-search select {
	flex: 0 1 300px;
	min-width: 0;
	font: 15px/1.3 var(--ep-font);
	color: var(--ep-ink);
	padding: 8px 10px;
	border: 1px solid #B9C4D4;
	border-radius: 4px;
	background: #fff;
}
.ep-search .ep-field-label { margin-left: 6px; }

.ep-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
#ep-journals-page .ep-filter button {
	font: 13px/1 var(--ep-font);
	color: var(--ep-ink);
	background: #fff;
	border: 1px solid #C7D1DF;
	border-radius: 999px;
	padding: 7px 12px;
	cursor: pointer;
}
#ep-journals-page .ep-filter button:hover { border-color: var(--ep-blue); }
#ep-journals-page .ep-filter button[aria-pressed="true"] { background: var(--ep-blue); border-color: var(--ep-blue); color: #fff; }
.ep-filter .ep-n { opacity: .75; margin-left: 4px; }

#ep-journals-page .ep-status { margin: 14px 0 0; color: var(--ep-muted); font-size: 13px; min-height: 1.4em; }
.ep-empty { margin: 16px 0 0; padding: 16px 18px; border: 1px dashed #C7D1DF; border-radius: 6px; }
.ep-empty[hidden] { display: none; }
#ep-journals-page .ep-empty button {
	font: bold 13px var(--ep-font);
	color: var(--ep-ink);
	background: none;
	border: 0;
	padding: 0;
	text-decoration: underline;
	cursor: pointer;
}

/* ---------------------------------------------------------------- groups and journals */
.ep-field { margin-top: 26px; }
.ep-field[hidden] { display: none; }
#ep-journals-page .ep-field h3 {
	margin: 0;
	font-size: 15px;
	color: var(--ep-ink);
	padding-bottom: 6px;
	border-bottom: 2px solid var(--ep-ink);
}
.ep-field h3 .ep-n { font-weight: normal; color: var(--ep-muted); font-size: 13px; margin-left: 6px; }
.ep-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.ep-journal {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--ep-rule);
}
.ep-journal[hidden] { display: none; }
.ep-journal img {
	width: 70px;
	aspect-ratio: 793 / 1120;
	object-fit: cover;
	border-radius: 3px;
	border: 1px solid var(--ep-rule);
	display: block;
}
#ep-journals-page .ep-journal h4 { margin: 0 0 4px; font-size: 15px; font-weight: bold; line-height: 1.3; }
#ep-journals-page .ep-journal h4 a { text-decoration: none; }
#ep-journals-page .ep-journal h4 a:hover { text-decoration: underline; }
.ep-abbr { font-weight: normal; color: var(--ep-muted); margin-left: 4px; white-space: nowrap; }
#ep-journals-page .ep-journal p {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ep-more { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
#ep-journals-page .ep-more a { color: var(--ep-blue); text-decoration: underline; }
#ep-journals-page .ep-more a.ep-submit { color: var(--ep-accent); }
#ep-journals-page mark { background: #FFE9B8; color: inherit; padding: 0 1px; }

#ep-journals-page .ep-hit { margin: 0 0 6px; font-size: 13px; color: var(--ep-ink); }
#ep-journals-page .ep-hit[hidden] { display: none; }
.ep-flag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: normal; color: var(--ep-muted); border: 1px solid var(--ep-rule); border-radius: 3px; padding: 0 5px; vertical-align: 2px; }
#ep-journals-page .ep-closing { margin: 30px 0 0; max-width: 46em; color: var(--ep-text); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 760px) {
	#ep-journals-page { padding: 14px 12px 24px; box-sizing: border-box; font-size: 15px; }
	.ep-list { grid-template-columns: 1fr; }
	.ep-search { flex-direction: column; align-items: stretch; gap: 6px; }
	.ep-search .ep-field-label { margin: 8px 0 0; }
	#ep-journals-page .ep-search select { flex: none; font-size: 16px; }
	#ep-journals-page .ep-search input { font-size: 16px; } /* no zoom on iPhone */
}
@media (prefers-reduced-motion: no-preference) {
	.ep-field { animation: ep-in .2s ease-out; }
	@keyframes ep-in { from { opacity: 0; } to { opacity: 1; } }
}
