/* ==========================================================================
   공개검증(대국민 심사) — /nsimsa
   ========================================================================== */

.nsimsa-page {
	--nsimsa-gap: 1.5rem;
	--nsimsa-radius: 14px;
	padding-bottom: 3.5rem;
}

.nsimsa-banner {
	margin-bottom: var(--nsimsa-gap);
	overflow: hidden;
	border-radius: var(--nsimsa-radius);
}

.nsimsa-banner__image {
	display: block;
	width: 100%;
	height: auto;
}

.nsimsa-info {
	margin-bottom: calc(var(--nsimsa-gap) + 0.5rem);
	overflow: hidden;
	border: 1px solid color-mix(in srgb, var(--primary, #0088cc) 18%, #e9ecef);
	border-radius: var(--nsimsa-radius);
	background: #fff;
}

.nsimsa-info__image {
	display: block;
	width: 100%;
	height: auto;
}

.nsimsa-section-title {
	margin-bottom: 0.85rem;
	color: #1e293b;
	font-size: 1.15rem;
	font-weight: 700;
}

.nsimsa-privacy {
	margin-bottom: var(--nsimsa-gap);
}

.nsimsa-privacy__box {
	max-height: 12rem;
	overflow-y: auto;
}

.nsimsa-participant-panel {
	margin-bottom: var(--nsimsa-gap);
}

.nsimsa-step--hidden {
	display: none;
}

.nsimsa-works {
	margin-bottom: var(--nsimsa-gap);
}

.nsimsa-works-guide {
	margin-bottom: 1.25rem;
	padding: 1rem 1.15rem;
	border-radius: 12px;
	background: #f5f6f8;
}

.nsimsa-works-guide__list {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nsimsa-works-guide__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	color: #4b5563;
	font-size: 0.92rem;
	line-height: 1.55;
}

.nsimsa-works-guide__list strong {
	color: #374151;
	font-weight: 700;
}

.nsimsa-works-guide__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.12rem;
	color: #9ca3af;
}

.nsimsa-works-guide__icon .lucide-icon,
.nsimsa-works-guide__icon svg.lucide-icon {
	width: 1rem;
	height: 1rem;
}

.nsimsa-works-guide__vote {
	color: #1f2937;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.6;
}

.nsimsa-works-guide__vote strong {
	color: var(--primary, #0088cc);
	font-weight: 800;
}

.nsimsa-works-guide__note {
	display: block;
	margin-top: 0.35rem;
	color: var(--primary, #0088cc);
	font-size: 0.98rem;
	font-weight: 700;
}

.nsimsa-submit-note {
	color: #667085;
	font-size: 0.88rem;
}

.nsimsa-work-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.35rem;
}

.nsimsa-works .gallery-card__serial {
	display: inline;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #94a3b8;
	font-size: 0.8125rem;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
	line-height: 1.3;
	text-align: left;
}

.nsimsa-work-card__division {
	display: inline-flex;
	align-items: center;
	padding: 0.08rem 0.45rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--primary, #0088cc) 12%, #fff);
	color: var(--primary, #0088cc);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.35;
}

.nsimsa-works .gallery-card .card-title {
	margin-bottom: 0;
	color: #374151;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	text-align: left;
	word-break: keep-all;
}

.nsimsa-work-card__body {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.nsimsa-works .gallery-card .card-img-wrapper[data-work-open] .gallery-card__empty-thumb {
	cursor: pointer;
}

.nsimsa-works .gallery-card .card-img-wrapper[data-work-open]:hover .card-img-top,
.nsimsa-works .gallery-card .card-img-wrapper[data-work-open]:hover .gallery-card__empty-thumb {
	filter: brightness(0.96);
}

/* 썸네일 영역 높이 통일 (placeholder / 등록 썸네일) */
.nsimsa-works .gallery-card .card-img-wrapper {
	aspect-ratio: 4 / 3;
}

.nsimsa-works .gallery-card .card-img-wrapper > a {
	display: block;
	width: 100%;
	height: 100%;
}

.nsimsa-works .gallery-card .card-img-top {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nsimsa-works .gallery-card .card-img-wrapper .gallery-card__empty-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	background: linear-gradient(180deg, #f8f9fb 0%, #eef1f5 100%);
	border: 0;
	cursor: default;
	text-decoration: none;
	line-height: 0;
}

.nsimsa-works .gallery-card .card-img-wrapper .gallery-card__empty-thumb-icon,
.nsimsa-works .gallery-card .card-img-wrapper .gallery-card__empty-thumb .gallery-card__empty-thumb-icon,
.nsimsa-works .gallery-card .card-img-wrapper .gallery-card__empty-thumb .lucide-icon,
.nsimsa-works .gallery-card .card-img-wrapper .gallery-card__empty-thumb svg.lucide-icon,
.nsimsa-works .gallery-card .card-img-wrapper .gallery-card__empty-thumb svg.lucide {
	flex-shrink: 0;
	display: block;
	width: 2rem;
	height: 2rem;
	max-width: 2rem;
	max-height: 2rem;
	color: #c5cad3;
	vertical-align: unset;
	stroke-width: 1.75;
}

.nsimsa-works a.gallery-card__empty-thumb {
	cursor: pointer;
}

.nsimsa-works a.gallery-card__empty-thumb:hover {
	background: linear-gradient(180deg, #f3f5f8 0%, #e8ecf0 100%);
}

.nsimsa-works a.gallery-card__empty-thumb:hover .gallery-card__empty-thumb-icon,
.nsimsa-works a.gallery-card__empty-thumb:hover .lucide-icon,
.nsimsa-works a.gallery-card__empty-thumb:hover svg.lucide-icon {
	color: #aeb6c2;
}

/* 투표 선택 */
.nsimsa-works .nsimsa-work-card {
	position: relative;
	transition:
		transform 0.25s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.nsimsa-works .nsimsa-work-card:hover {
	border-color: var(--primary, #0088cc);
}

.nsimsa-work-card {
	position: relative;
}

.nsimsa-work-card--clickable {
	cursor: pointer;
}

.nsimsa-work-card--clickable:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.nsimsa-work-card--clickable:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--primary, #0088cc) 55%, #fff);
	outline-offset: 2px;
}

.nsimsa-work-card--voting {
	cursor: default;
}

.nsimsa-work-card--voting:hover {
	box-shadow: none;
	transform: none;
}

.nsimsa-work-card__body {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.nsimsa-work-card--voting .nsimsa-work-card__body {
	padding-bottom: 0;
}

.nsimsa-work-card__actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
	margin: 0.85rem -1.1rem 0;
	padding: 0.75rem 1.1rem;
	border-top: 1px solid #eef2f6;
	background: #f8fafc;
}

.nsimsa-work-card__actions--dual {
	grid-template-columns: 1fr 1fr;
}

.nsimsa-work-card__action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	min-height: 2.375rem;
	margin: 0;
	padding: 0.5rem 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.5rem;
	background: #fff;
	color: #334155;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nsimsa-work-card__action-btn--select:hover:not(:has(input:disabled)) {
	border-color: color-mix(in srgb, var(--primary, #0088cc) 40%, #cbd5e1);
	color: var(--primary, #0088cc);
}

.nsimsa-work-card__action-btn--select:has(input:checked) {
	border-color: var(--primary, #0088cc);
	background: color-mix(in srgb, var(--primary, #0088cc) 10%, #fff);
	color: var(--primary, #0088cc);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary, #0088cc) 15%, transparent);
}

.nsimsa-work-card__action-btn--select:has(input:disabled) {
	opacity: 0.55;
	cursor: not-allowed;
}

.nsimsa-work-card__action-btn--select input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.nsimsa-work-card__action-btn__box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 0.95rem;
	height: 0.95rem;
	border: 1.5px solid #94a3b8;
	border-radius: 0.2rem;
	background: #fff;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nsimsa-work-card__action-btn--select:has(input:checked) .nsimsa-work-card__action-btn__box {
	background: var(--primary, #0088cc);
	border-color: var(--primary, #0088cc);
}

.nsimsa-work-card__action-btn--select:has(input:checked) .nsimsa-work-card__action-btn__box::after {
	content: '';
	display: block;
	width: 0.32rem;
	height: 0.55rem;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg) translate(-1px, -1px);
}

.nsimsa-work-card__action-btn--report {
	background: color-mix(in srgb, #f97316 8%, #fff);
	color: #c2410c;
	border-color: color-mix(in srgb, #ea580c 40%, #cbd5e1);
}

.nsimsa-work-card__action-btn--report:hover {
	background: color-mix(in srgb, #f97316 14%, #fff);
	border-color: #ea580c;
	color: #9a3412;
}

.nsimsa-work-card__action-btn__icon {
	width: 0.95rem;
	height: 0.95rem;
	flex-shrink: 0;
}

.nsimsa-work-card--selected {
	border-color: color-mix(in srgb, var(--primary, #0088cc) 45%, #dee2e6);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary, #0088cc) 18%, transparent);
}

.nsimsa-work-card--disabled:not(.nsimsa-work-card--selected) {
	opacity: 0.55;
}

.nsimsa-vote-bar {
	position: sticky;
	bottom: 1rem;
	z-index: 5;
	margin-top: 1.5rem;
}

.nsimsa-vote-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-radius: 1rem;
	background: #fff;
	border: 1px solid #e5e7eb;
}

.nsimsa-vote-bar__status {
	color: #475467;
	font-size: 0.95rem;
}

.nsimsa-vote-bar__status strong {
	color: var(--primary, #0088cc);
	font-size: 1.1rem;
}

.nsimsa-vote-complete {
	border-radius: 0.75rem;
}

/* 작품 상세 모달 */
.nsimsa-work-modal__content {
	border: 0;
	border-radius: 1rem;
	overflow: hidden;
}

.nsimsa-work-modal .modal-body {
	padding: 1.25rem 1.5rem 1.5rem;
}

.nsimsa-work-modal .register-field-panel {
	padding-top: 2rem;
}

@media (min-width: 768px) {
	.nsimsa-work-modal .register-field-panel {
		padding-top: 2.5rem;
	}
}

.nsimsa-work-modal__preview-panel {
	margin-bottom: 0;
}

.nsimsa-work-modal__document-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.nsimsa-work-modal__document-tabs[hidden] {
	display: none;
}

.nsimsa-work-modal__document-tab {
	min-width: 7rem;
	padding: 0.55rem 1rem;
	border: 1px solid color-mix(in srgb, var(--primary, #0088cc) 40%, #d1d5db);
	border-radius: 6px;
	background: #fff;
	color: var(--primary, #0088cc);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.nsimsa-work-modal__document-tab:hover,
.nsimsa-work-modal__document-tab.is-active {
	border-color: var(--primary, #0088cc);
	background: var(--primary, #0088cc);
	color: var(--primary-inverse, #fff);
}

.nsimsa-work-modal__zoom {
	display: flex;
	justify-content: flex-end;
	gap: 0.4rem;
	margin-bottom: 0.75rem;
}

.nsimsa-work-modal__zoom[hidden] {
	display: none;
}

.nsimsa-work-modal__zoom-button {
	padding: 0.4rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	color: #344054;
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.nsimsa-work-modal__zoom-button:hover:not(:disabled) {
	border-color: var(--primary, #0088cc);
	color: var(--primary, #0088cc);
}

.nsimsa-work-modal__zoom-button:disabled {
	opacity: 0.45;
	cursor: default;
}

.nsimsa-work-modal__title-text {
	display: inline;
}

.nsimsa-work-modal__title {
	margin-bottom: 0;
	font-weight: 700;
}

.nsimsa-work-modal__preview {
	display: block;
	padding: 0.75rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	overflow: auto;
	text-align: center;
}

.nsimsa-work-modal__description {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #eef2f6;
}

.nsimsa-work-modal__description-label {
	margin-bottom: 0.5rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: #64748b;
}

.nsimsa-work-modal__description-text {
	margin: 0;
	white-space: pre-line;
	word-break: break-word;
	color: #344054;
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.65;
}

.nsimsa-plagiarism-file-upload .invalid-feedback {
	margin-top: 0.5rem;
}

.nsimsa-plagiarism-file-upload .register-work-file-error:not([hidden]) + .invalid-feedback {
	display: none !important;
}

.nsimsa-report-panel__note {
	margin: 0 0 0.75rem;
	color: var(--primary, #0088cc);
	font-size: 0.92rem;
	font-weight: 600;
}

.nsimsa-report-label {
	color: var(--primary, #0088cc);
}

.nsimsa-report-label__hint {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.8rem;
	font-weight: 600;
}

.nsimsa-report-panel .register-radio-group {
	padding-top: 0.45rem;
}

.nsimsa-report-panel .info-item:last-child {
	margin-bottom: 0;
}

.nsimsa-report-panel .form-text {
	color: #667085;
	font-size: 0.88rem;
}

.nsimsa-work-modal__guide {
	padding: 0.85rem 1rem;
	border-radius: 0.75rem;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	color: #475467;
	font-size: 0.92rem;
	line-height: 1.6;
}

.nsimsa-work-modal__media {
	display: inline-block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: none;
	vertical-align: top;
}

.nsimsa-work-modal__media--pdf {
	width: 100%;
	min-height: 400px;
	min-height: 70dvh;
	height: 70dvh;
	max-height: none;
	border: 0;
}

.nsimsa-pdf-viewer {
	width: 100%;
	max-width: 100%;
	max-height: 70dvh;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #525659;
	box-sizing: border-box;
}

.nsimsa-pdf-viewer__status {
	padding: 2rem 1rem;
	background: #fff;
}

.nsimsa-pdf-viewer__page {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0 auto 0.5rem;
	background: #fff;
	box-sizing: border-box;
}

.nsimsa-pdf-viewer__page:last-child {
	margin-bottom: 0;
}

@media (max-width: 767.98px) {
	.nsimsa-work-modal .modal-dialog {
		margin: 0.5rem;
		max-width: calc(100% - 1rem);
	}

	.nsimsa-work-modal .modal-body {
		padding: 1rem;
	}

	.nsimsa-work-modal__preview {
		padding: 0;
	}

	.nsimsa-work-modal__media--pdf,
	.nsimsa-pdf-viewer {
		min-height: 70dvh;
		max-height: 70dvh;
		height: 70dvh;
	}

	.nsimsa-vote-bar__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.nsimsa-vote-submit {
		width: 100%;
	}
}

/* 부문별 가로형 작품 목록 */
.nsimsa-division-list {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.nsimsa-division {
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
}

.nsimsa-division__heading {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0.8rem 1.15rem;
	border-bottom: 1px solid color-mix(in srgb, var(--primary, #0088cc) 18%, #e2e8f0);
	background: color-mix(in srgb, var(--primary, #0088cc) 8%, #f8fafc);
	overflow-x: auto;
}

.nsimsa-division__heading h3 {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	color: #0f172a;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.nsimsa-division__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--primary, #0088cc);
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0;
}

.nsimsa-division__works {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	width: 100%;
	padding: 1.1rem 1rem 1.15rem;
}

.nsimsa-work-card__documents {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 0.85rem;
}

.nsimsa-work-card__vote {
	margin-top: 0.85rem;
}

.nsimsa-works .nsimsa-work-card--selected {
	border-color: color-mix(in srgb, var(--primary, #0088cc) 50%, #d1d5db);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary, #0088cc) 25%, transparent);
}

.nsimsa-works .nsimsa-work-card--disabled:not(.nsimsa-work-card--selected) {
	opacity: 0.58;
}

.nsimsa-document-button,
.nsimsa-report-button {
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 0;
	min-height: 2.35rem;
	padding: 0.5rem 0.4rem;
	border: 1px solid var(--primary, #0088cc);
	border-radius: 6px;
	background: var(--primary, #0088cc);
	color: var(--primary-inverse, #fff);
	cursor: pointer;
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.nsimsa-document-button:hover {
	border-color: var(--primary-100, #0077b3);
	background: var(--primary-100, #0077b3);
	color: var(--primary-inverse, #fff);
}

.nsimsa-work-card__documents .lucide-icon {
	width: 0.85rem;
	height: 0.85rem;
}

.nsimsa-vote-select {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	color: #374151;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.nsimsa-vote-select input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.nsimsa-vote-select > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid #111827;
	background: #fff;
}

.nsimsa-vote-select input:checked + span {
	border-color: var(--primary, #0088cc);
	background: var(--primary, #0088cc);
}

.nsimsa-vote-select input:checked + span::after {
	content: '';
	width: 0.35rem;
	height: 0.65rem;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg) translate(-1px, -1px);
}

.nsimsa-vote-select input:focus-visible + span {
	outline: 3px solid color-mix(in srgb, var(--primary, #0088cc) 25%, transparent);
	outline-offset: 2px;
}

.nsimsa-vote-select input:disabled ~ * {
	cursor: not-allowed;
}

.nsimsa-vote-select em {
	font-style: normal;
}

.nsimsa-report-button {
	border-color: var(--secondary, #e36159);
	background: var(--secondary, #e36159);
}

.nsimsa-report-button:hover {
	border-color: var(--secondary-100, #df4c43);
	background: var(--secondary-100, #df4c43);
}

.nsimsa-division__empty,
.nsimsa-work-list__empty {
	margin: 0;
	padding: 1.5rem;
	background: #f8fafc;
	color: #94a3b8;
	text-align: center;
}

@media (max-width: 991.98px) {
	.nsimsa-division__works {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.nsimsa-division__works {
		grid-template-columns: 1fr;
	}

	.nsimsa-document-button,
	.nsimsa-report-button {
		flex: 1 1 auto;
	}
}
