/**
 * Skin Candid Core frontend styles.
 *
 * Styles only components explicitly rendered by plugin shortcodes or templates.
 */

:root {
	--sc-core-text: #2f2a26;
	--sc-core-muted: #6f665f;
	--sc-core-border: #e6ddd4;
	--sc-core-surface: #fffaf6;
	--sc-core-surface-soft: #f8f2ec;
	--sc-core-accent: #8c6549;
	--sc-core-radius: 18px;
	--sc-core-shadow: 0 12px 30px rgba(47, 42, 38, 0.06);
}

.sc-editorial-record {
	margin: 2rem 0;
	padding: 1.5rem;
	color: var(--sc-core-text);
	background: var(--sc-core-surface);
	border: 1px solid var(--sc-core-border);
	border-radius: var(--sc-core-radius);
	box-shadow: var(--sc-core-shadow);
}

.sc-editorial-record__title {
	margin: 0 0 1rem;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	line-height: 1.25;
	color: var(--sc-core-text);
}

.sc-editorial-record__list {
	display: grid;
	gap: 0;
	margin: 0;
}

.sc-editorial-record__row {
	display: grid;
	grid-template-columns: minmax(150px, 0.38fr) minmax(0, 1fr);
	gap: 1rem;
	padding: 0.9rem 0;
	border-top: 1px solid var(--sc-core-border);
}

.sc-editorial-record__row:first-child {
	padding-top: 0;
	border-top: 0;
}

.sc-editorial-record__row:last-child {
	padding-bottom: 0;
}

.sc-editorial-record__label,
.sc-editorial-record__value {
	margin: 0;
}

.sc-editorial-record__label {
	font-weight: 700;
	color: var(--sc-core-text);
}

.sc-editorial-record__value {
	color: var(--sc-core-muted);
	overflow-wrap: anywhere;
}

.sc-field {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.45rem;
	margin: 0.75rem 0;
	color: var(--sc-core-text);
}

.sc-field__label {
	color: var(--sc-core-text);
}

.sc-field__label::after {
	content: ":";
}

.sc-field__value {
	color: var(--sc-core-muted);
	overflow-wrap: anywhere;
}

.sc-updated-date {
	display: inline-block;
	font-size: 0.95em;
	color: var(--sc-core-muted);
}

@media (max-width: 680px) {
	.sc-editorial-record {
		padding: 1.1rem;
		border-radius: 14px;
	}

	.sc-editorial-record__row {
		grid-template-columns: 1fr;
		gap: 0.3rem;
	}

	.sc-field {
		display: block;
	}

	.sc-field__label {
		display: block;
		margin-bottom: 0.2rem;
	}
}
