/* Research Submissions */

.rs-form-wrap,
.rs-admin-wrap {
	max-width: 720px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.rs-admin-wrap {
	max-width: none;
}

.rs-form-title {
	margin-bottom: 1.5rem;
	font-size: 1.75rem;
	font-weight: 600;
	color: #1d2327;
}

.rs-notice {
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	border-radius: 6px;
	border-left: 4px solid;
}

.rs-notice-title {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 1rem;
	font-weight: 700;
}

.rs-notice-text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

.rs-notice-error {
	background: #fcf0f1;
	border-color: #d63638;
	color: #8a1f1f;
}

.rs-notice-success {
	background: #edfaef;
	border-color: #00a32a;
	color: #1e4620;
}

.rs-field {
	margin-bottom: 1.25rem;
}

.rs-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 500;
	color: #1d2327;
}

.rs-asterisk {
	color: #d63638;
}

.rs-field-hint {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	color: #646970;
}

.rs-field input[type="text"],
.rs-field input[type="email"],
.rs-field input[type="tel"],
.rs-field input[type="file"],
.rs-field select,
.rs-field textarea {
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.rs-field input:focus,
.rs-field select:focus,
.rs-field textarea:focus {
	border-color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

.rs-searchable-select {
	position: relative;
}

.rs-searchable-list {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 200px;
	overflow-y: auto;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-top: none;
	border-radius: 0 0 4px 4px;
	z-index: 100;
	display: none;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rs-searchable-list.rs-open {
	display: block;
}

.rs-searchable-list li {
	padding: 0.5rem 0.75rem;
	cursor: pointer;
}

.rs-searchable-list li:hover,
.rs-searchable-list li.rs-highlighted {
	background: #f0f6fc;
}

.rs-btn {
	display: inline-block;
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
	font-weight: 500;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.4;
}

.rs-btn-primary {
	color: #fff;
	background: #2271b1;
}

.rs-btn-primary:hover {
	background: #135e96;
}

.rs-btn-secondary {
	color: #1d2327;
	background: #f0f0f1;
	border: 1px solid #c3c4c7;
}

.rs-btn-sm {
	padding: 0.35rem 0.75rem;
	font-size: 0.85rem;
}

.rs-submit-wrap {
	margin-top: 1.5rem;
}

.rs-admin-search {
	margin: 1rem 0;
}

.rs-table-responsive {
	overflow-x: auto;
}

.rs-admin-table th a {
	text-decoration: none;
	color: inherit;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.rs-admin-table th.sortable a:hover {
	color: #2271b1;
}

.rs-empty {
	text-align: center;
	color: #646970;
	padding: 2rem !important;
}

.rs-detail-list {
	margin: 0;
	display: grid;
	grid-template-columns: minmax(140px, 200px) 1fr;
	gap: 0.75rem 1rem;
}

.rs-detail-list dt {
	margin: 0;
	font-weight: 600;
	color: #1d2327;
}

.rs-detail-list dd {
	margin: 0;
	color: #3c434a;
}

.rs-modal[hidden] {
	display: none !important;
}

.rs-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.rs-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.rs-modal-content {
	position: relative;
	width: min(640px, 100%);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.rs-modal-close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #646970;
}

.rs-modal-title {
	margin: 0 0 1rem;
	padding-right: 2rem;
	font-size: 1.25rem;
}

.rs-modal-body {
	font-size: 0.95rem;
}

@media (max-width: 600px) {
	.rs-detail-list {
		grid-template-columns: 1fr;
	}
}
