/* ==========================================================================
   NACC clean time calculator
   Plain CSS override file. Enqueue after original nacc.css.
   ========================================================================== */

.NACC-Instance {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 1.75rem 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	border: 0 !important;
	border-radius: 0 !important;

	background: var(--color-stone, #e9e2d8) !important;
	background-color: var(--color-stone, #e9e2d8) !important;
	background-image: none !important;
	box-shadow: none !important;

	color: var(--color-dark, #1d2528);
	font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif);
}

.NACC-Instance.NACC-BT,
.NACC-Instance.NACC-GNYR2,
.NACC-Instance.NACC-HOLI,
.NACC-Instance.NACC-NERNA,
.NACC-Instance.NACC-CRNA,
.NACC-Instance.NACC-SEZF {
	border-color: transparent !important;
	background: var(--color-stone, #e9e2d8) !important;
	background-color: var(--color-stone, #e9e2d8) !important;
	background-image: none !important;
	box-shadow: none !important;
	font-family: var(--font-sans, ui-sans-serif, system-ui, sans-serif) !important;
}

/* Kill inner gray gradients/panels */
.NACC-Instance .NACC-Fieldset,
.NACC-Instance fieldset,
.NACC-Instance .NACC-Legend-div,
.NACC-Instance .NACC-Results,
.NACC-Instance .NACC-Keytags,
.NACC-Instance .NACC-Keytag-Tabular {
	border: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

/* Header: h2-ish */
.NACC-Instance .NACC-Header {
	margin: 0 0 1.25rem;
	color: var(--color-primary, #073b5a);
	font-family: var(--font-display, ui-sans-serif, system-ui, sans-serif);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.025em;
	text-align: center;
}

/* Make the calculator form area a centered control cluster */
.NACC-Instance .NACC-Fieldset {
	width: min(100%, 42rem);
	margin: 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
}

/* Label gets its own row */
.NACC-Instance .NACC-Prompt-Label,
.NACC-Prompt-Label {
	display: block;
	width: 100%;
	margin: 0 0 0.75rem;
	color: var(--color-dark, #1d2528);
	font-size: 1rem;
	text-align: center;
}

/* Input/button row */
.NACC-Instance .NACC-Legend-div {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;

	width: 100%;
	margin: 0 auto !important;
	padding: 0.75rem 0 !important;

	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

/* Date input */
.NACC-Instance .NACC-Legend-div input[type="date"],
.NACC-Instance .NACC-Legend-div input[type="text"],
.NACC-Instance .NACC-Legend-div input[type="number"] {
	min-height: 3rem;
	padding: 0.55rem 1rem;
	border: 1px solid rgba(29, 37, 40, 0.9);
	border-radius: var(--radius-control, 0.5rem);
	background-color: #fff;
	color: var(--color-dark, #1d2528);
	font-size: 1rem;
	line-height: 1.3;
	box-shadow: none;
}

.NACC-Instance .NACC-Show-Special-Tags-Checkbox {
	display: inline-block;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0 0.5rem 0 0 !important;
	vertical-align: middle;
}

.NACC-Instance .NACC-Show-Special-Tags-Checkbox-Label {
	display: inline-block;
	margin: 0.75rem 0 0;
	color: var(--color-dark, #1d2528);
	font-size: 0.95rem;
	line-height: 1.2;
	vertical-align: middle;
}

/* -------- Keytags -------- */

.NACC-Instance .NACC-Keytag {
	margin: 0;
	overflow: visible;
	background-color: transparent !important;
}

/* Do not force tabular into flex. Let the calculator script control layout. */
.NACC-Instance .NACC-Keytag-Tabular {
	margin-top: 1rem;
	background: transparent !important;
}

/* Basic keytag cleanup only */
.NACC-Instance .NACC-Keytag {
	margin: 0;
	overflow: visible;
	background-color: transparent !important;
}

/* Only kill the old ringtop background image */
.NACC-Instance .NACC-Keytag.NACC-Keytag-Ringtop {
	background-image: none !important;
}

.NACC-Instance .NACC-Keytag img {
	max-width: 100%;
	height: auto;
}

/* Results text spacing */
.NACC-Instance .NACC-Results {
	padding-top: 2rem;
	text-align: center;
}

.NACC-Instance .NACC-Days,
.NACC-Instance .NACC-MainBlurb,
.NACC-Instance .NACC-Results-Text {
	display: block;
	margin: 0 0 0.45rem;
	font-size: 1rem;
	line-height: 1.45;
}

/* Give keytags their own space so they don't climb into the result text */
.NACC-Instance .NACC-Keytags,
.NACC-Instance .NACC-Keytag-Tabular {
	position: relative;
	clear: both;
	margin-top: 2.5rem;
	min-height: 13rem;
	text-align: center;
	background: transparent !important;
}

/* Small screens */
@media (max-width: 575.98px) {
	.NACC-Instance {
		padding: 1.5rem 1.25rem;
	}

	.NACC-Instance .NACC-Legend-div {
		justify-content: flex-start;
	}
}

/* Tailwind sm:text-3xl equivalent */
@media (min-width: 40rem) {
	.NACC-Instance .NACC-Header {
		font-size: 1.875rem;
		line-height: 1.2;
	}
}

/* Force keytags/results back into normal document flow */
.NACC-Instance .NACC-Results {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 0.5rem !important;
	padding-top: 2rem !important;
	text-align: center !important;
}

.NACC-Instance .NACC-Keytags,
.NACC-Instance .NACC-Keytag-Tabular {
	position: static !important;
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: flex-end !important;
	justify-content: center !important;
	gap: 0.9rem !important;
	width: 100% !important;
	min-height: 0 !important;
	margin: 2rem auto 0 !important;
	padding: 0 !important;
	text-align: center !important;
	background: transparent !important;
}

/* Kill old positioning/overlap rules on each tag */
.NACC-Instance .NACC-Keytag,
.NACC-Instance .NACC-Keytag-Tabular .NACC-Keytag {
	position: static !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	float: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	max-width: 5.5rem !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	background: transparent !important;
}

.NACC-Instance .NACC-Keytag img {
	display: block !important;
	width: auto !important;
	max-width: 5.5rem !important;
	height: auto !important;
	margin: 0 !important;
}

.NACC-Instance .NACC-Change-Layout-Button {
	display: none !important;
}