/*
 * Submit Manuscript plugin - every rule is scoped under .smx-* so nothing
 * on the existing site (homepage, journals, articles, theme) is affected.
 */
.smx-page { padding: 32px 16px 56px; color: #1f2937; }
.smx-container { max-width: 960px; margin: 0 auto; }
.smx-container-narrow { max-width: 760px; }
.smx-header { margin-bottom: 24px; }
.smx-title { margin: 0 0 10px; font-size: 2rem; line-height: 1.2; color: #1f2937; }
.smx-lead { margin: 0; font-size: 1.05rem; line-height: 1.6; color: #4b5563; }

.smx-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 22px 24px;
	margin-bottom: 20px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.smx-card-title { margin: 0 0 16px; font-size: 1.2rem; color: #1c4f9c; }

.smx-field { margin-bottom: 16px; min-width: 0; }
.smx-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; }
.smx-field input[type="text"],
.smx-field input[type="email"],
.smx-field input[type="tel"],
.smx-field input[type="file"],
.smx-field select,
.smx-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	font: inherit;
	color: #1f2937;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
}
.smx-field input:focus,
.smx-field select:focus,
.smx-field textarea:focus { outline: 2px solid #1c4f9c; outline-offset: 1px; border-color: #1c4f9c; }
.smx-field textarea { resize: vertical; }
.smx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.smx-req { color: #e31b23; }
.smx-opt { font-weight: 400; color: #6b7280; }
.smx-help { margin: 6px 0 0; font-size: 0.875rem; color: #6b7280; }
.smx-error { margin: 6px 0 0; font-size: 0.875rem; color: #b91c1c; }
.smx-error[hidden] { display: none; }
.smx-invalid { border-color: #b91c1c !important; background: #fef2f2 !important; }

.smx-check { display: flex; align-items: flex-start; gap: 10px; }
.smx-check input[type="checkbox"] { width: 20px; height: 20px; margin-top: 3px; flex: 0 0 auto; }
.smx-check label { margin: 0; font-weight: 500; }

/* Honeypot: off-screen, never display:none (bots skip display:none fields) */
.smx-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.smx-alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; border: 1px solid transparent; }
.smx-alert ul { margin: 8px 0 0; padding-left: 20px; }
.smx-alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.smx-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.smx-alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.smx-actions { margin-top: 8px; }
.smx-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 12px 28px;
	font: inherit; font-weight: 700; line-height: 1.2;
	color: #fff !important; background: #1c4f9c;
	border: 1px solid #1c4f9c; border-radius: 10px;
	cursor: pointer; text-decoration: none !important;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.smx-btn:hover { background: #163f7d; box-shadow: 0 6px 18px rgba(28, 79, 156, 0.25); }
.smx-btn[disabled] { opacity: .65; cursor: progress; }
.smx-btn-secondary { background: #fff; color: #1c4f9c !important; border-color: #d8e2f0; }
.smx-btn-secondary:hover { background: #f3f7fc; }

.smx-success .smx-title { color: #166534; font-size: 1.6rem; }
.smx-idbox { margin: 18px 0; padding: 16px 20px; background: #f3f7fc; border: 1px solid #d8e2f0; border-radius: 8px; font-size: 1.1rem; }
.smx-id { font-size: 1.35rem; letter-spacing: .5px; color: #1c4f9c; }

.smx-details { margin: 0 0 16px; }
.smx-details dt { margin-top: 12px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.smx-details dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.smx-details-compact dt { margin-top: 8px; }

/* ---------- Administration ---------- */
.smx-admin .smx-h2 { margin: 24px 0 10px; font-size: 1.1rem; }
.smx-muted { color: #6b7280; font-size: .875em; }
.smx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.smx-chip { padding: 6px 12px; border: 1px solid #d1d5db; border-radius: 999px; text-decoration: none; color: #1f2937; background: #fff; font-size: .875rem; }
.smx-chip-active { background: #1c4f9c; border-color: #1c4f9c; color: #fff; }
.smx-chip-count { opacity: .75; margin-left: 4px; }
.smx-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.smx-filter { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.smx-filter label { font-size: .8rem; font-weight: 600; }
.smx-filter input, .smx-filter select { padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; }
.smx-filter-actions { flex-direction: row; gap: 8px; }
.smx-total { margin: 8px 0; color: #6b7280; }
.smx-table-wrap { overflow-x: auto; }
.smx-table td, .smx-table th { vertical-align: top; }
.smx-pager { display: flex; gap: 12px; align-items: center; margin: 16px 0; }
.smx-settings input[type="email"] { min-width: 280px; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; }
.smx-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 32px; }
.smx-files { list-style: none; margin: 0; padding: 0; }
.smx-files li { margin-bottom: 10px; }
.smx-notes { list-style: none; margin: 0 0 12px; padding: 0; }
.smx-notes li { padding: 10px 12px; margin-bottom: 8px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; }
.smx-note-system { background: #f9fafb !important; color: #4b5563; }
.smx-note-meta { font-size: .75rem; color: #6b7280; margin-bottom: 4px; }
.smx-noteform textarea { width: 100%; box-sizing: border-box; margin: 6px 0 8px; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; }
.smx-col-side select { width: 100%; margin: 6px 0 8px; padding: 8px 10px; }

.smx-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: #e5e7eb; color: #374151; }
.smx-badge-submitted { background: #dbeafe; color: #1e40af; }
.smx-badge-under-review { background: #fef3c7; color: #92400e; }
.smx-badge-revision-required { background: #ffedd5; color: #9a3412; }
.smx-badge-accepted { background: #dcfce7; color: #166534; }
.smx-badge-rejected { background: #fee2e2; color: #991b1b; }
.smx-badge-withdrawn { background: #e5e7eb; color: #4b5563; }

@media (max-width: 720px) {
	.smx-row { grid-template-columns: 1fr; }
	.smx-card { padding: 18px 16px; }
	.smx-title { font-size: 1.6rem; }
	.smx-grid { grid-template-columns: 1fr; }
	.smx-btn { width: 100%; }
}
