/* Journal Article System — front & admin styles */

.jas-form { max-width: 720px; margin: 0 auto 2em; }
.jas-field { margin-bottom: 1.25em; }
.jas-field label { display:block; font-weight:600; margin-bottom:.4em; }
.jas-field .req { color:#c0392b; }
.jas-field input[type=text],
.jas-field input[type=email],
.jas-field input[type=file],
.jas-field textarea {
	width:100%; padding:.6em .7em; border:1px solid #d0d5dd; border-radius:6px; font-size:1em; box-sizing:border-box;
}
.jas-field textarea { resize:vertical; }

.jas-author-row { display:flex; flex-wrap:wrap; gap:.5em; align-items:center; margin-bottom:.6em; padding:.6em; background:#f7f8fa; border-radius:6px; }
.jas-author-row input[type=text],
.jas-author-row input[type=email] { flex:1 1 150px; padding:.5em; border:1px solid #d0d5dd; border-radius:5px; }
.jas-author-row .jas-corr { flex:0 0 auto; font-weight:400; font-size:.9em; display:flex; align-items:center; gap:.3em; }
.jas-author-row .jas-remove-author { flex:0 0 auto; color:#c0392b; }

.jas-btn, .jas-btn-submit, button.jas-btn {
	display:inline-block; background:#1a5276; color:#fff !important; border:none; padding:.7em 1.4em;
	border-radius:6px; font-size:1em; cursor:pointer; text-decoration:none; transition:background .15s ease;
}
.jas-btn:hover { background:#123a54; }
.jas-btn-pdf { background:#186a3b; }
.jas-btn-pdf:hover { background:#0e4324; }
.jas-btn-cite { background:#7d6608; }
.jas-btn-cite:hover { background:#5a4906; }

.jas-notice { padding:1em 1.2em; border-radius:6px; margin-bottom:1.5em; }
.jas-notice-success { background:#e9f7ef; border:1px solid #7dcea0; }
.jas-notice-error { background:#fdedec; border:1px solid #f1948a; }

.jas-tracking-wrapper { max-width:600px; margin:0 auto; }
.jas-track-form { display:flex; gap:.6em; align-items:end; flex-wrap:wrap; margin-bottom:1.5em; }
.jas-track-form label { display:block; font-weight:600; margin-bottom:.3em; width:100%; }
.jas-track-form input[type=text] { flex:1 1 220px; padding:.6em; border:1px solid #d0d5dd; border-radius:6px; }

.jas-status-result { padding:1.4em; background:#f7f8fa; border-radius:8px; }
.jas-status-badge { display:inline-block; padding:.3em .9em; border-radius:20px; font-weight:600; color:#fff; background:#7f8c8d; }
.jas-status-submitted { background:#5b7fb5; }
.jas-status-under-review { background:#b9770e; }
.jas-status-revision-requested { background:#af601a; }
.jas-status-accepted { background:#1e8449; }
.jas-status-rejected { background:#943126; }
.jas-status-published { background:#117864; }
.jas-editor-notes { margin-top:1em; padding:.8em 1em; background:#fff; border-left:4px solid #b9770e; border-radius:4px; }

/* Issue display */
.jas-issue-wrapper { max-width:900px; margin:0 auto; }
.jas-issue-header { text-align:center; margin-bottom:1.5em; padding-bottom:1em; border-bottom:3px double #1a5276; }
.jas-issue-toc { background:#f7f8fa; padding:1.2em 1.6em; border-radius:8px; margin-bottom:2em; }
.jas-issue-toc h3 { margin-top:0; }
.jas-issue-toc ol { margin:0; padding-left:1.4em; }
.jas-issue-toc a { text-decoration:none; }
.jas-issue-toc a:hover { text-decoration:underline; }

.jas-article-entry { padding:1.4em 0; border-bottom:1px solid #e5e7eb; }
.jas-article-entry:last-child { border-bottom:none; }
.jas-article-title { margin:0 0 .3em; }
.jas-article-authors { font-weight:600; margin:.2em 0; }
.jas-article-affiliation { color:#555; margin:.2em 0; }
.jas-article-doi { margin:.4em 0; }
.jas-article-customfield { margin:.3em 0; color:#333; }
.jas-article-actions { display:flex; gap:.7em; margin-top:.8em; flex-wrap:wrap; }

/* Cite modal */
.jas-modal { position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:9999; display:flex; align-items:center; justify-content:center; }
.jas-modal-content { background:#fff; padding:2em; border-radius:8px; max-width:520px; width:90%; position:relative; }
.jas-modal-close { position:absolute; top:.6em; right:1em; font-size:1.5em; cursor:pointer; color:#888; }
#jas-cite-text { background:#f7f8fa; padding:1em; border-radius:6px; font-style:italic; }

/* Admin meta boxes */
#jas-admin-authors-wrap .jas-author-row,
#jas-authors-wrap .jas-author-row { margin-bottom:.5em; }
.jas-pdf-preview { margin-left:.8em; }

/* Elementor: Article Card (Loop Item use) */
.jas-elementor-card { border:1px solid #e5e7eb; border-radius:8px; padding:1.2em; height:100%; box-sizing:border-box; }
.jas-elementor-card .jas-card-thumb { display:block; margin-bottom:.8em; }
.jas-elementor-card .jas-card-thumb img { width:100%; height:auto; border-radius:6px; display:block; }
.jas-elementor-card .jas-article-title { margin-top:0; }
.jas-elementor-card .jas-article-title a { text-decoration:none; color:inherit; }
.jas-elementor-card .jas-article-title a:hover { text-decoration:underline; }
.jas-elementor-card .jas-article-excerpt { color:#444; }
