/**
 * CNA Nail Art Difficulty & Time Estimator — tool-specific layout only.
 *
 * Everything generic (the shell, fields, buttons, stats, suggestions, capture
 * box, disclaimer, print rules) comes from cna-core.css or its bundled
 * fallback. This file adds only what is particular to this tool, and every
 * selector is scoped under .cna-de so it cannot reach a sibling CNA tool
 * sharing the page.
 */

.cna-de__title {
	margin-bottom: 0.25em;
}

.cna-de__intro {
	margin: 0 0 1.25rem;
	color: var(--cna-muted, #6d6377);
}

.cna-de__h3 {
	margin: 1.5rem 0 0.35rem;
	font-size: 1.02rem;
}

.cna-de__card .cna-de__h3:first-of-type {
	margin-top: 1.25rem;
}

/* ---------- Difficulty badge and meter ---------- */

.cna-de__difficulty {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0.75rem 0 0.35rem;
}

.cna-de__score {
	font-size: 0.86rem;
	color: var(--cna-muted, #6d6377);
}

/*
 * The badge shifts hue with the score so the card is scannable at a glance and
 * reads as a ladder in a Pinterest thumbnail. Colour is never the only signal:
 * the label text and the pip count both carry the same information.
 */
.cna-de__badge--1 {
	background: #bde5c8;
}

.cna-de__badge--2 {
	background: #d9edb0;
}

.cna-de__badge--3 {
	background: var(--cna-accent, #ffd166);
}

.cna-de__badge--4 {
	background: #ffbe8a;
}

.cna-de__badge--5 {
	background: #ff9f9f;
}

.cna-de__meter {
	display: flex;
	gap: 5px;
	margin: 0 0 0.75rem;
}

.cna-de__pip {
	width: 34px;
	height: 7px;
	border-radius: 999px;
	background: rgba(43, 33, 48, 0.12);
}

.cna-de__pip.is-on {
	background: var(--cna-primary, #e8639b);
}

/* ---------- Result detail ---------- */

.cna-de__stat-sub {
	margin-top: 2px;
	opacity: 0.85;
}

.cna-de__verdict {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.cna-de__finish {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	color: var(--cna-muted, #6d6377);
}

.cna-de__note {
	margin: 0.35rem 0 0;
}

.cna-de__why {
	margin: 0.35rem 0 0;
	padding-left: 1.15rem;
}

.cna-de__why li {
	margin-bottom: 0.4rem;
}

/* ---------- Tools and techniques lists ---------- */

.cna-de__tools,
.cna-de__techniques {
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 6px 14px;
}

.cna-de__tool,
.cna-de__technique {
	position: relative;
	padding-left: 1.5rem;
	font-size: 0.94rem;
	line-height: 1.5;
}

.cna-de__tool::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 13px;
	height: 13px;
	border: 1.5px solid var(--cna-line, rgba(43, 33, 48, 0.12));
	border-radius: 3px;
	background: #fff;
}

.cna-de__technique::before {
	content: '→';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--cna-primary, #e8639b);
	font-weight: 700;
}

/* ---------- Practise-this-first callout ---------- */

.cna-de__practice {
	margin-top: 1.5rem;
	padding: 14px 16px;
	background: var(--cna-bg, #fff7fb);
	border: 1px solid var(--cna-line, rgba(43, 33, 48, 0.12));
	border-left: 4px solid var(--cna-secondary, #7b4fa8);
	border-radius: 0 calc(var(--cna-radius, 14px) - 4px) calc(var(--cna-radius, 14px) - 4px) 0;
}

.cna-de__practice .cna-de__h3 {
	margin-top: 0;
}

.cna-de__practice p {
	margin: 0;
}

/* ---------- Actions ---------- */

.cna-de__actions {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--cna-line, rgba(43, 33, 48, 0.12));
	align-items: center;
}

.cna-de__pdf-note {
	flex: 1 1 100%;
}

.cna-de__ai-disclaimer {
	border-left-color: var(--cna-secondary, #7b4fa8);
}

/* ---------- Print: the card is the shareable artefact ---------- */

@media print {
	.cna-de__intro,
	.cna-de__form,
	.cna-de__pdf-note {
		display: none !important;
	}

	.cna-de__practice {
		break-inside: avoid;
	}

	.cna-de__tools,
	.cna-de__techniques {
		grid-template-columns: 1fr 1fr;
	}

	.cna-de__pip {
		border: 1px solid #666;
	}

	.cna-de__pip.is-on {
		background: #666;
	}
}
