/* NexMind Segnalazioni: usa i token del child theme (--nx-*) */

.nxs {
	--nxs-text: var(--nx-text, #1d1d1f);
	--nxs-muted: var(--nx-muted, #6e6e73);
	--nxs-border: var(--nx-border, rgba(0, 0, 0, .08));
	--nxs-surface: var(--nx-surface, #f5f5f7);
	--nxs-bg: var(--nx-bg, #fff);
	max-width: 680px;
	margin: 8px 0 40px;
	color: var(--nxs-text);
	font-size: 16px;
	line-height: 1.5;
}
.nxs *, .nxs *::before, .nxs *::after { box-sizing: border-box; }

.nxs .nxs-types { margin: 0 0 22px; padding: 0; border: 0; }
.nxs .nxs-types legend { margin: 0 0 10px; padding: 0; font-size: 15px; font-weight: 700; }
.nxs-types { display: flex; flex-wrap: wrap; gap: 8px; }
.nxs-type { position: relative; margin: 0; cursor: pointer; }
.nxs-type input { position: absolute; opacity: 0; pointer-events: none; }
.nxs-type span {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--nxs-border);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
html.nx-dark .nxs-type span { border-color: rgba(255, 255, 255, .2); }
.nxs-type input:checked + span { background: var(--nx-button, #d45500); border-color: var(--nx-button, #d45500); color: #fff; }
.nxs-type input:focus-visible + span { outline: 2px solid var(--nx-accent, #ff6a00); outline-offset: 2px; }

.nxs .nxs-field { display: block; margin: 0 0 18px; }
.nxs .nxs-field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.site-inner .nxs input[type=text],
.site-inner .nxs input[type=email],
.site-inner .nxs input[type=url],
.site-inner .nxs textarea {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--nxs-border);
	border-radius: 12px;
	background: var(--nxs-bg);
	color: var(--nxs-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.45;
}
html.nx-dark .site-inner .nxs input[type=text],
html.nx-dark .site-inner .nxs input[type=email],
html.nx-dark .site-inner .nxs input[type=url],
html.nx-dark .site-inner .nxs textarea { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); }
.site-inner .nxs textarea { min-height: 150px; resize: vertical; }
.site-inner .nxs input:focus,
.site-inner .nxs textarea:focus { outline: none; border-color: var(--nx-accent, #ff6a00); box-shadow: 0 0 0 3px rgba(255, 106, 0, .18); }
.nxs input[type=file] { font-size: 14px; color: var(--nxs-muted); }

.nxs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.nxs-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 20px; font-size: 14px; color: var(--nxs-muted); cursor: pointer; }
.nxs-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--nx-button, #d45500); }
.nxs-check a { color: var(--nx-accent-text, #e65c00); }
.nxs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.site-inner .nxs .nxs-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--nx-button, #d45500);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}
.site-inner .nxs .nxs-btn:hover { background: var(--nx-button-hover, #bf4d00); }

.nxs .nxs-about, .nxs .nxs-error {
	margin: 0 0 20px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 15px;
}
.nxs .nxs-about { background: var(--nxs-surface); }
.nxs .nxs-about a { color: var(--nx-accent-text, #e65c00); font-weight: 600; }
.nxs .nxs-error { background: rgba(215, 0, 21, .08); color: #d70015; }
html.nx-dark .nxs .nxs-error { color: #ff6961; background: rgba(255, 105, 97, .12); }

.nxs-done { padding: 24px; border-radius: 16px; background: var(--nxs-surface); }
.nxs .nxs-done-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.nxs-done p { margin: 0 0 10px; }
.nxs-done a { color: var(--nx-accent-text, #e65c00); font-weight: 600; }

/* Invito in fondo agli articoli */
.entry-content .nxs-invite {
	margin: 2em 0 0;
	padding-top: 1.2em;
	border-top: 1px solid var(--nx-border, rgba(0, 0, 0, .08));
	font-size: 15px;
	color: var(--nx-muted, #6e6e73);
}

@media (max-width: 600px) {
	.nxs-row { grid-template-columns: 1fr; }
	.site-inner .nxs .nxs-btn { width: 100%; justify-content: center; }
}

.site-inner .nxs input::placeholder,
.site-inner .nxs textarea::placeholder { color: var(--nxs-muted); opacity: 1; }
