/* ============================================================
   NUMEROLOGY PAGE (page-templates/page-numerology.php)
   theme.css already carries the full .nm-* system ported from the
   astrocronyHTML source (nm-wrap/nm-head/nm-h2/nm-sub/nm-how/nm-step/
   nm-cta/nm-note) — this file only adds the bits that are new because
   the page now mounts the custom-chaldean-numerology plugin's own
   [custom_chaldean_numerology] shortcode instead of the source's
   hand-rolled #nmForm calculator.
============================================================ */

/* Wrapper around the plugin's .ccn-calculator root. The plugin renders its
   own card/surface (themed via assets/css/plugin-overrides.css), so this
   only controls the mount point's width and rhythm within the section. */
.nm-calc-mount {
	max-width: 44rem;
	margin: 2rem auto 0;
}

@media (max-width: 720px) {
	.nm-calc-mount {
		margin-top: 1.5rem;
	}
}

/* Defensive fallback: assets/js/pages/numerology-results.js intercepts the
   calculator's submit event before the plugin's own calculator.js runs, so
   .ccn-results is never actually populated — this just guarantees it stays
   invisible even if that script fails to load for some reason. */
.ccn-calculator .ccn-results {
	display: none !important;
}

/* ============================================================
   Custom themed report (#anrReport) — same colour language as
   assets/css/plugin-overrides.css's .ccn-calculator overrides, laid out as
   one narrative reading instead of a tile grid.
============================================================ */
.anr-report {
	margin-top: 1.6rem;
	padding: clamp(1.4rem, 3vw, 2.2rem);
	border-radius: 22px;
	background: linear-gradient(160deg, rgba(41, 25, 96, .9), rgba(18, 11, 52, .95));
	border: 1px solid rgba(198, 168, 255, .26);
	box-shadow: 0 22px 50px -30px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.anr-title {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: clamp(1.15rem, 2.6vw, 1.5rem);
	text-align: center;
	color: #FBE6A2;
	margin: 0 0 1.4rem;
}

.anr-spelled {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
	margin-bottom: 1.2rem;
}
.anr-spelled-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .2rem;
	min-width: 1.6rem;
}
.anr-spelled-letter {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: clamp(1.1rem, 3vw, 1.4rem);
	color: #F4C542;
	text-transform: uppercase;
}
.anr-spelled-value {
	font-family: 'Outfit', sans-serif;
	font-size: .78rem;
	color: rgba(198, 168, 255, .8);
}

.anr-compound {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: .5rem;
	text-align: center;
	color: #F3EEFF;
	font-family: 'Outfit', sans-serif;
	padding-bottom: 1.4rem;
	margin-bottom: 1.4rem;
	border-bottom: 1px solid rgba(244, 197, 66, .22);
}

.anr-sections {
	display: flex;
	flex-direction: column;
	gap: 1.4rem;
}
.anr-section {
	padding-top: 1.4rem;
	border-top: 1px solid rgba(198, 168, 255, .16);
}
.anr-section:first-child {
	padding-top: 0;
	border-top: none;
}
.anr-section-intro,
.anr-section-value,
.anr-section-text {
	font-family: 'Outfit', sans-serif;
	color: #E6DDFF;
	line-height: 1.65;
	margin: 0 0 .55rem;
}
.anr-section-intro b,
.anr-section-value b {
	font-family: 'Cinzel', serif;
	color: #FFF6E4;
}
.anr-section-value {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
}
.anr-chain {
	font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
	font-size: .78rem;
	letter-spacing: .02em;
	color: #C8C1E8;
	margin: 0 0 .55rem;
}
.anr-section-text {
	color: #D8D1FF;
}

.anr-badge-wrap {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
}
.anr-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	height: 2.6rem;
	padding: 0 .4rem;
	border-radius: 50%;
	background: linear-gradient(160deg, rgba(126, 86, 236, .65), rgba(32, 20, 92, .95));
	border: 1px solid rgba(244, 197, 66, .5);
	color: #F4C542;
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: 1.15rem;
	box-shadow: 0 0 20px -4px rgba(244, 197, 66, .5);
}
.anr-master {
	font-family: 'Outfit', sans-serif;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #FBE6A2;
	background: rgba(244, 197, 66, .18);
	border: 1px solid rgba(244, 197, 66, .4);
	border-radius: 100px;
	padding: .2rem .6rem;
}

.anr-error {
	padding: 1rem 1.2rem;
	border-radius: 12px;
	background: rgba(255, 138, 138, .12);
	border: 1px solid #FF8A8A;
	color: #FFB4A8;
	font-family: 'Outfit', sans-serif;
}
