/* Discernment plugin - public styles */

.discernment-wrap {
	max-width: 760px;
	margin: 2rem auto;
	padding: 1.5rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1f2937;
	line-height: 1.55;
}

.discernment-results-wrap {
	max-width: 960px;
}

.discernment-header {
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 1rem;
}

.discernment-title {
	font-size: 1.6rem;
	margin: 0 0 .4rem;
	font-weight: 600;
}

.discernment-intro {
	font-size: .95rem;
	color: #4b5563;
	margin: 0;
}

.discernment-meta {
	font-size: .9rem;
	color: #6b7280;
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
	margin: 0;
}

.discernment-meta strong {
	color: #111827;
}

.discernment-question {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1rem 1.25rem 1.15rem;
	margin: 0 0 1rem;
	background: #fff;
}

.discernment-question-legend {
	display: block;
	font-weight: 600;
	font-size: 1.02rem;
	margin: 0 0 1rem;
	padding: 0;
	color: #111827;
	line-height: 1.45;
}

.discernment-q-number {
	display: inline-block;
	margin-right: .35rem;
	color: #6b7280;
}

.discernment-q-emphasis {
	color: #b91c1c;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.discernment-options {
	display: flex;
	flex-direction: column;
	gap: .55rem;
}

.discernment-option {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	padding: .6rem .75rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s, border-color .15s;
	background: #f9fafb;
}

.discernment-option:hover {
	background: #f3f4f6;
}

.discernment-option input[type="radio"] {
	margin-top: .25rem;
}

.discernment-option-letter {
	font-weight: 700;
	color: #2563eb;
	min-width: 1.2rem;
}

.discernment-option-text {
	flex: 1;
}

.discernment-option input[type="radio"]:checked + .discernment-option-letter {
	color: #1d4ed8;
}

.discernment-option:has(input[type="radio"]:checked) {
	border-color: #2563eb;
	background: #eff6ff;
}

.discernment-actions {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	align-items: flex-start;
	margin-top: 1.25rem;
}

.discernment-submit {
	background: #2563eb;
	color: #fff;
	border: 0;
	padding: .75rem 1.5rem;
	font-size: 1rem;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: background .15s;
}

.discernment-submit:hover { background: #1d4ed8; }
.discernment-submit:disabled { opacity: .6; cursor: progress; }

.discernment-form-message {
	margin: 0;
	font-size: .95rem;
}

.discernment-form-message.error { color: #b91c1c; }
.discernment-form-message.success { color: #047857; }

.discernment-notice {
	padding: 1rem 1.25rem;
	border-radius: 8px;
	border: 1px solid #fde68a;
	background: #fef3c7;
	color: #92400e;
}

.discernment-notice-warning {
	border-color: #fde68a;
	background: #fef3c7;
	color: #92400e;
}

/* Results */

.discernment-block {
	margin: 1.5rem 0;
}

.discernment-block h3 {
	font-size: 1.1rem;
	margin: 0 0 .8rem;
	color: #111827;
}

.discernment-bars {
	display: flex;
	flex-direction: column;
	gap: .6rem;
}

.discernment-bar-row {
	display: grid;
	grid-template-columns: minmax(160px, 28%) 1fr 70px;
	gap: .85rem;
	align-items: center;
}

.discernment-bar-row .discernment-bar {
	background: #e5e7eb;
	border-radius: 6px;
	height: 14px;
	overflow: hidden;
}

.discernment-bar-row .discernment-bar-fill {
	background: linear-gradient(90deg, #2563eb, #60a5fa);
	height: 100%;
	transition: width .4s;
}

.discernment-bar-row.is-top .discernment-bar-fill {
	background: linear-gradient(90deg, #b45309, #f59e0b);
}

.discernment-bar-row .discernment-bar-label {
	font-size: .92rem;
	color: #1f2937;
}

.discernment-bar-row .discernment-bar-value {
	text-align: right;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.discernment-questions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}

.discernment-q-card {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: .9rem 1rem;
	background: #fff;
}

.discernment-q-card h4 {
	font-size: .95rem;
	margin: 0 0 .5rem;
	color: #111827;
}

.discernment-q-card .discernment-q-bars {
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.discernment-q-card .discernment-q-bar {
	display: grid;
	grid-template-columns: 24px 1fr 50px;
	align-items: center;
	gap: .5rem;
}

.discernment-q-card .discernment-q-bar-letter {
	font-weight: 700;
	color: #2563eb;
}

.discernment-q-card .discernment-q-bar-fill-wrap {
	background: #f3f4f6;
	height: 8px;
	border-radius: 4px;
	overflow: hidden;
}

.discernment-q-card .discernment-q-bar-fill {
	background: #2563eb;
	height: 100%;
}

.discernment-q-card .discernment-q-bar-value {
	text-align: right;
	font-size: .85rem;
	font-variant-numeric: tabular-nums;
}

.discernment-patterns {
	margin: 0;
	padding-left: 1.2rem;
}

.discernment-patterns li {
	margin: .25rem 0;
}

.discernment-patterns li strong {
	color: #111827;
}

.discernment-conclusion {
	font-size: 1.05rem;
	font-style: italic;
	color: #1f2937;
	background: #f9fafb;
	border-left: 4px solid #2563eb;
	padding: 1rem 1.25rem;
	border-radius: 6px;
	margin: 0;
}

@media (max-width: 600px) {
	.discernment-bar-row {
		grid-template-columns: 1fr;
	}
	.discernment-bar-row .discernment-bar-value {
		text-align: left;
	}
}

/* adminScoreboard */

.discernment-scoreboard-wrap {
	max-width: 1000px;
}

.discernment-scoreboard-wrap .discernment-summary-box {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-left: 4px solid #2563eb;
	border-radius: 6px;
	padding: 1rem 1.25rem;
}

.discernment-scoreboard-wrap .discernment-summary-box p {
	margin: 0 0 .55rem;
	line-height: 1.55;
}

.discernment-scoreboard-wrap .discernment-summary-box p:last-child {
	margin-bottom: 0;
}

.discernment-scoreboard-list {
	margin: 0;
	padding-left: 1.2rem;
}

.discernment-scoreboard-list li {
	margin: .35rem 0;
}

.discernment-scoreboard-list li strong {
	color: #111827;
}

.discernment-pct {
	font-variant-numeric: tabular-nums;
	color: #2563eb;
	font-weight: 600;
	margin-left: .35rem;
}

.discernment-count {
	color: #6b7280;
	margin-left: .35rem;
}

.discernment-pill {
	display: inline-block;
	padding: .05rem .55rem;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .02em;
	background: #e5e7eb;
	color: #374151;
	margin-left: .35rem;
}

.discernment-pill-visoko    { background: #fee2e2; color: #991b1b; }
.discernment-pill-povišeno  { background: #fef3c7; color: #92400e; }
.discernment-pill-povi\0161eno { background: #fef3c7; color: #92400e; } /* fallback */
.discernment-pill-umjereno  { background: #dbeafe; color: #1e40af; }
.discernment-pill-nisko     { background: #e5e7eb; color: #374151; }

.discernment-scoreboard-table-wrap {
	overflow-x: auto;
}

.discernment-scoreboard-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.discernment-scoreboard-table th,
.discernment-scoreboard-table td {
	text-align: left;
	padding: .55rem .85rem;
	border-bottom: 1px solid #e5e7eb;
	font-size: .95rem;
}

.discernment-scoreboard-table th {
	background: #f9fafb;
	font-weight: 600;
	color: #111827;
}

.discernment-scoreboard-table tr:last-child td {
	border-bottom: 0;
}

.discernment-submit-state strong {
	color: #111827;
}

.discernment-muted {
	color: #6b7280;
	font-style: italic;
	margin: 0;
}

.discernment-scoreboard-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1rem;
	margin: 0 0 1.5rem;
}

.discernment-scoreboard-wrap .discernment-block--card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 1rem 1.15rem;
	margin: 0;
}

.discernment-scoreboard-wrap .discernment-block--card h3 {
	margin: 0 0 0.65rem;
	font-size: 0.95rem;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.discernment-block--interpretation h2 {
	font-size: 1.25rem;
	margin: 0 0 0.75rem;
	color: #111827;
}

.discernment-scoreboard-lead {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	color: #4b5563;
	line-height: 1.5;
}

.discernment-scoreboard-wrap .discernment-tension-block,
.discernment-scoreboard-wrap .discernment-pattern-block {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 1rem 1.2rem;
	margin: 0 0 1rem;
}

.discernment-scoreboard-wrap .discernment-tension-block h2,
.discernment-scoreboard-wrap .discernment-pattern-block h3 {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin: 0 0 0.5rem;
	font-size: 1.05rem;
	line-height: 1.35;
	color: #111827;
}

.discernment-scoreboard-wrap .discernment-tension-meta {
	margin: 0 0 0.35rem;
	font-size: 0.95rem;
}

.discernment-scoreboard-wrap .discernment-scoreboard-raw {
	color: #6b7280;
	font-weight: 400;
	font-size: 0.9rem;
}

.discernment-scoreboard-wrap .discernment-tension-block .discernment-bar {
	background: #e5e7eb;
	border-radius: 6px;
	height: 12px;
	overflow: hidden;
	margin: 0.5rem 0;
}

.discernment-scoreboard-wrap .discernment-tension-block .discernment-bar-fill {
	background: linear-gradient(90deg, #2563eb, #60a5fa);
	height: 100%;
}

.discernment-scoreboard-wrap .discernment-scoreboard-interpretation {
	margin: 0.65rem 0 0;
	line-height: 1.55;
	color: #1f2937;
	font-size: 0.95rem;
}

.discernment-scoreboard-wrap .discernment-pattern-block .discernment-pct {
	color: #2563eb;
	font-weight: 600;
	margin-left: 0.35rem;
}

.discernment-scoreboard-wrap .discernment-pattern-block .discernment-count {
	color: #6b7280;
	font-size: 0.9rem;
}

