/**
 * Press-On Nail Size Finder — tool-specific styles.
 *
 * Loaded after cna-core.css (declared as a dependency in wp_enqueue_style),
 * so it can rely on core's --cna-* custom properties for brand colours.
 *
 * @package CNA_Press_On_Size_Finder
 */

.cna-posf {
	max-width: 920px;
}

.cna-posf__title {
	margin: 0 0 4px;
	font-size: 1.5rem;
}

.cna-posf__intro {
	margin: 0 0 16px;
	opacity: 0.85;
}

.cna-posf__guide {
	margin: 16px 0;
	padding: 12px 16px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: var(--cna-radius, 14px);
	background: var(--cna-bg, #fff7fb);
}

.cna-posf__guide summary {
	cursor: pointer;
	font-weight: 600;
}

.cna-posf__ruler {
	display: block;
	margin: 12px 0;
	color: var(--cna-text, #2b2130);
}

.cna-posf__calibration {
	font-size: 0.86rem;
	opacity: 0.85;
}

.cna-posf__hand {
	border: none;
	padding: 0;
	margin: 0 0 16px;
}

.cna-posf__hand legend {
	font-weight: 600;
	padding: 0 0 6px;
}

.cna-posf__mirror {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	margin-bottom: 4px;
}

.cna-posf__warning {
	color: #9a5b00;
	background: #fff3cd;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 0.9rem;
}

.cna-posf__table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.9rem;
}

.cna-posf__table th,
.cna-posf__table td {
	border: 1px solid rgba(0, 0, 0, 0.08);
	padding: 6px 8px;
	text-align: center;
	white-space: nowrap;
}

.cna-posf__table thead th {
	background: var(--cna-bg, #fff7fb);
	position: sticky;
	top: 0;
}

.cna-posf__table tbody th {
	text-align: left;
	white-space: nowrap;
	background: rgba(0, 0, 0, 0.02);
}

.cna-posf__cell--not_measured {
	color: rgba(0, 0, 0, 0.35);
}

.cna-posf__cell--below,
.cna-posf__cell--above {
	color: #b3261e;
	font-weight: 600;
}

.cna-posf__cell--between {
	background: #fff3cd;
}

.cna-posf__badge {
	display: block;
	font-size: 0.65rem;
	line-height: 1.2;
	margin-top: 2px;
	opacity: 0.8;
}

.cna-posf__card-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 8px 0 12px;
}

.cna-posf__card-line {
	font-size: 0.95rem;
}

.cna-posf__accuracy {
	border-top: 1px dashed rgba(0, 0, 0, 0.15);
	padding-top: 10px;
	margin-top: 16px;
}

/* ------------------------------------------------------------------
 * Print — the measurement ruler and calibration check are the whole
 * point of a print pass; everything interactive is hidden.
 * --------------------------------------------------------------- */
@media print {
	.cna-posf__header,
	.cna-posf__form,
	.cna-posf__results,
	.cna-posf__card,
	.cna-posf__suggestions,
	.cna-capture,
	.cna-toolbar {
		display: none !important;
	}

	.cna-posf__guide {
		display: block !important;
		border: none;
		padding: 0;
	}

	.cna-posf__guide[open],
	.cna-posf__guide {
		display: block;
	}

	.cna-posf__guide summary {
		display: none;
	}

	.cna-posf__ruler {
		color: #000 !important;
	}
}
