/* EIU Journal Manager – front end. Inherits the theme fonts; accent = EIU red (#990000), links = theme blue. */
.eiujm-home, .eiujm-archive, .eiujm-article { --eiujm-border: #e4e4e7; --eiujm-muted: #5f6368; --eiujm-link: #36597c; --eiujm-soft: #f7f5f5; font-size: 1rem; line-height: 1.6; }
.eiujm-btn { display: inline-flex; align-items: center; gap: .4em; background: var(--eiujm-accent, #990000); color: #fff !important; border: 0; border-radius: 4px; padding: .6em 1.2em; font-weight: 600; text-decoration: none !important; cursor: pointer; font-size: .95rem; line-height: 1.2; }
.eiujm-btn:hover, .eiujm-btn:focus { background: #7a0000; }
.eiujm-btn-sm { padding: .45em .9em; font-size: .85rem; white-space: nowrap; }
.eiujm-pdf-icon { flex: none; }
.eiujm-chip { display: inline-block; background: #f6eaea; color: var(--eiujm-accent, #990000) !important; border-radius: 999px; padding: .15em .75em; font-size: .8rem; line-height: 1.6; margin: 0 .3em .35em 0; text-decoration: none !important; border: 1px solid transparent; }
a.eiujm-chip:hover, .eiujm-chip.is-active { background: var(--eiujm-accent, #990000); color: #fff !important; }
.eiujm-chip-plain { background: #fff; border-color: var(--eiujm-border); color: #333 !important; }
.eiujm-chip-count { opacity: .7; font-size: .75em; margin-left: .2em; }
.eiujm-h { font-size: 1.15rem; margin: 1.4em 0 .6em; padding-bottom: .35em; border-bottom: 2px solid var(--eiujm-accent, #990000); display: inline-block; }

/* Home */
.eiujm-hero { background: linear-gradient(180deg, #fff 0%, var(--eiujm-soft) 100%); border: 1px solid var(--eiujm-border); border-top: 4px solid var(--eiujm-accent, #990000); border-radius: 6px; padding: 2em 1.5em; text-align: center; margin-bottom: 1.5em; }
.eiujm-hero-title { margin: 0 0 .2em; font-size: 1.7rem; }
.eiujm-hero-sub { margin: 0 0 1.1em; color: var(--eiujm-muted); }
.eiujm-hero-search { display: flex; gap: .5em; max-width: 620px; margin: 0 auto; }
.eiujm-hero-search input { flex: 1; padding: .7em .9em; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; background: #fff; }
.eiujm-home-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2em; }
.eiujm-home-grid .eiujm-h:first-child { margin-top: 0; }
.eiujm-box { margin-bottom: 1.5em; }
.eiujm-popular { margin: 0; padding-left: 1.3em; }
.eiujm-popular li { margin-bottom: .6em; line-height: 1.35; }
.eiujm-popular a { color: var(--eiujm-link); text-decoration: none; font-weight: 600; font-size: .92rem; }
.eiujm-popular .eiujm-count { display: block; font-size: .8rem; }
.eiujm-more { font-weight: 600; color: var(--eiujm-link); text-decoration: none; }

/* Archive */
.eiujm-filters { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; padding: 1em; background: var(--eiujm-soft); border: 1px solid var(--eiujm-border); border-radius: 6px; margin-bottom: .9em; }
.eiujm-filters .eiujm-search { flex: 1 1 280px; margin: 0; }
.eiujm-filters input[type=search], .eiujm-filters select { width: 100%; padding: .55em .7em; border: 1px solid #ccc; border-radius: 4px; background: #fff; font-size: .95rem; }
.eiujm-filters select { width: auto; }
.eiujm-reset { font-size: .9rem; color: var(--eiujm-link); }
.eiujm-subject-chips { margin: 0 0 .6em; }
.eiujm-results-count { color: var(--eiujm-muted); font-size: .9rem; margin: 0 0 .5em; }
.eiujm-list { list-style: none; margin: 0; padding: 0; }
.eiujm-item { display: flex; gap: 1em; align-items: flex-start; justify-content: space-between; background: #fff; border: 1px solid var(--eiujm-border); border-left: 3px solid var(--eiujm-accent, #990000); border-radius: 4px; padding: 1em 1.1em; margin: 0 0 .75em; transition: box-shadow .15s; }
.eiujm-item:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.eiujm-item-body { min-width: 0; flex: 1; }
.eiujm-item-title { font-size: 1.05rem; margin: 0 0 .2em; line-height: 1.35; font-weight: 600; }
.eiujm-item-title a { text-decoration: none; color: var(--eiujm-link); }
.eiujm-item-title a:hover { color: var(--eiujm-accent, #990000); }
.eiujm-item-authors { margin: 0 0 .25em; font-size: .92rem; color: #333; }
.eiujm-item-meta { margin: 0; color: var(--eiujm-muted); font-size: .82rem; display: flex; flex-wrap: wrap; gap: .2em .9em; align-items: center; }
.eiujm-item-meta .eiujm-chip { margin: 0; }
.eiujm-item-excerpt { margin: .5em 0 0; font-size: .92rem; color: #444; }
.eiujm-item-actions { flex: none; }
.eiujm-pagination { margin-top: 1.5em; display: flex; gap: .3em; flex-wrap: wrap; }
.eiujm-pagination .page-numbers { padding: .3em .75em; border: 1px solid var(--eiujm-border); border-radius: 4px; text-decoration: none; color: var(--eiujm-link); }
.eiujm-pagination .current { background: var(--eiujm-accent, #990000); color: #fff; border-color: transparent; }

/* Single article */
.eiujm-authors { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: .5em 1.8em; }
.eiujm-author-name { font-weight: 600; display: block; }
.eiujm-author-aff { display: block; font-size: .85rem; color: var(--eiujm-muted); }
.eiujm-meta { display: flex; flex-wrap: wrap; gap: .6em 2.2em; margin: 0 0 1em; padding: .9em 1.1em; background: var(--eiujm-soft); border: 1px solid var(--eiujm-border); border-radius: 6px; }
.eiujm-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--eiujm-muted); margin: 0; }
.eiujm-meta dd { margin: 0; font-weight: 600; }
.eiujm-meta dd a { color: var(--eiujm-link); }
.eiujm-meta dd .eiujm-chip { margin: .2em .3em 0 0; font-weight: 500; }
.eiujm-download { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.eiujm-count { color: var(--eiujm-muted); font-size: .9rem; }
.eiujm-abstract { text-align: justify; }
.eiujm-cite { border-top: 1px solid var(--eiujm-border); margin-top: 1.5em; }
.eiujm-tabs { display: flex; gap: .3em; margin-bottom: .5em; }
.eiujm-tabs button { background: #f0f0f3; border: 1px solid var(--eiujm-border); border-radius: 4px; padding: .3em .9em; cursor: pointer; font-size: .9rem; color: #333; }
.eiujm-tabs button.is-active { background: var(--eiujm-accent, #990000); color: #fff; border-color: transparent; }
.eiujm-tab-panel { display: none; position: relative; }
.eiujm-tab-panel.is-active { display: block; }
.eiujm-cite-text { white-space: pre-wrap; word-break: break-word; background: #fafafa; border: 1px solid var(--eiujm-border); border-radius: 4px; padding: 1em 4.5em 1em 1em; font-size: .85rem; margin: 0; }
.eiujm-copy { position: absolute; top: .5em; right: .5em; font-size: .75rem; padding: .2em .6em; cursor: pointer; }
.eiujm-cite-dl { font-size: .85rem; }
.eiujm-cite-dl a, .eiujm-article > p > a { color: var(--eiujm-link); }

@media (max-width: 782px) {
	.eiujm-home-grid { grid-template-columns: 1fr; }
	.eiujm-item { flex-direction: column; }
	.eiujm-filters select { width: 100%; }
	.eiujm-hero-search { flex-direction: column; }
}

/* Neutralise common theme list/paragraph spacing inside plugin blocks. */
.eiujm-home ol.eiujm-list, .eiujm-archive ol.eiujm-list { list-style: none; margin: 0 !important; padding: 0 !important; }
.eiujm-item p { margin-bottom: 0; }
.eiujm-item p.eiujm-item-meta { margin-top: .15em; }
body .entry-content .eiujm-home a, body .entry-content .eiujm-archive a, body .entry-content .eiujm-article a, .eiujm-home a, .eiujm-archive a, .eiujm-article a { text-decoration: none; }
body .entry-content .eiujm-cite-dl a, body .entry-content .eiujm-article > p > a { text-decoration: underline; }
.eiujm-item-title a:hover, .eiujm-popular a:hover, .eiujm-more:hover { text-decoration: underline; }
.eiujm-hero p, .eiujm-box p { margin-bottom: 0; }
.eiujm-article ul.eiujm-authors { margin-left: 0 !important; padding: 0 !important; }

/* Small link polish on article pages. */
body .eiujm-article a, body .eiujm-back a, body .eiujm-cite-files a { text-decoration: none; }
body .eiujm-article a:hover { text-decoration: underline; }
