/* Sundance Seller Net Proceeds (Module 01 V1). Every selector is scoped to .sundance-snp.
 * Typography is inherited from the theme (no font-family is set; no external fonts).
 * Colors are limited to existing production values: navy #274565 and panel #F2F4F7, as used on the
 * sundancere.com homepage (t1331u carousel CSS), plus white and the inherited text color. */
.sundance-snp { --snp-navy: #274565; --snp-panel: #F2F4F7; --snp-line: rgba(39, 69, 101, 0.35);
	box-sizing: border-box; max-width: 1200px; margin: 0 auto; color: inherit; font: inherit; line-height: 1.5;
	display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "header" "form" "results" "compare" "items" "disclaimer" "actions"; }
.sundance-snp *, .sundance-snp *::before, .sundance-snp *::after { box-sizing: inherit; }
.sundance-snp .snp-header { grid-area: header; }
.sundance-snp .snp-form { grid-area: form; min-width: 0; margin: 0; }
.sundance-snp .snp-results { grid-area: results; }
.sundance-snp .snp-compare { grid-area: compare; }
.sundance-snp .snp-items { grid-area: items; }
.sundance-snp .snp-disclaimer { grid-area: disclaimer; }
.sundance-snp .snp-actions { grid-area: actions; }
@media (min-width: 1024px) {
	.sundance-snp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		grid-template-areas: "header header" "form results" "form items" "form disclaimer" "form ." "compare compare" "actions actions";
		grid-template-rows: auto auto auto auto 1fr auto auto;
		align-items: start; }
	.sundance-snp .snp-results { position: sticky; top: 16px; }
}
.sundance-snp .snp-brand { margin: 0; font-weight: 700; color: var(--snp-navy); letter-spacing: .04em; text-transform: uppercase; font-size: .875em; }
.sundance-snp .snp-title { margin: .15em 0; color: var(--snp-navy); }
.sundance-snp .snp-subtitle { margin: 0; }
.sundance-snp h3 { color: var(--snp-navy); margin: 0 0 .5em; }
.sundance-snp .snp-section { min-width: 0; background: #fff; border: 1px solid var(--snp-line); border-radius: 8px; padding: 16px; }
.sundance-snp .snp-header, .sundance-snp .snp-form { background: none; border: 0; padding: 0; }
.sundance-snp .snp-form > .snp-section + .snp-section { margin-top: 16px; }
.sundance-snp .snp-group { border: 1px solid var(--snp-line); border-radius: 8px; margin: 0 0 12px; padding: 8px 12px 4px; min-width: 0; }
.sundance-snp .snp-group legend { font-weight: 700; color: var(--snp-navy); padding: 0 4px; }
.sundance-snp .snp-field { margin: 0 0 12px; min-width: 0; }
.sundance-snp .snp-field > label { display: block; font-weight: 600; margin-bottom: 4px; }
.sundance-snp .snp-input { display: flex; align-items: center; border: 1px solid var(--snp-line); border-radius: 6px; background: #fff; max-width: 100%; }
.sundance-snp .snp-unit { padding: 0 8px; }
.sundance-snp input[type="text"], .sundance-snp select { font: inherit; color: inherit; min-height: 44px; }
.sundance-snp .snp-input input { flex: 1 1 auto; min-width: 0; width: 100%; border: 0; background: transparent; padding: 8px; text-align: right; }
.sundance-snp select { width: 100%; border: 1px solid var(--snp-line); border-radius: 6px; padding: 6px 8px; background: #fff; }
.sundance-snp input[readonly] { background: var(--snp-panel); }
.sundance-snp :focus-visible, .sundance-snp .snp-input:focus-within { outline: 3px solid var(--snp-navy); outline-offset: 2px; }
.sundance-snp .snp-input input:focus-visible { outline: none; }
.sundance-snp [aria-invalid="true"] { font-weight: 700; }
.sundance-snp .snp-field:has([aria-invalid="true"]) .snp-input { border: 2px dashed var(--snp-navy); }
.sundance-snp .snp-error, .sundance-snp .snp-invalid { margin: 4px 0 0; font-weight: 700; color: var(--snp-navy); border-left: 4px solid var(--snp-navy); padding-left: 8px; }
.sundance-snp .snp-error::before, .sundance-snp .snp-invalid::before { content: "Error: "; }
.sundance-snp .snp-help { margin: 4px 0 0; font-size: .875em; }
.sundance-snp .snp-mode { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0; }
.sundance-snp .snp-mode label { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.sundance-snp .snp-mode input:disabled + * , .sundance-snp .snp-mode label:has(input:disabled) { opacity: .6; }
.sundance-snp .snp-ds-note { font-weight: 600; }
.sundance-snp .snp-results { background: var(--snp-panel); }
.sundance-snp .snp-primary, .sundance-snp .snp-secondary { background: #fff; border-radius: 6px; padding: 12px; margin-bottom: 8px; }
.sundance-snp .snp-label { margin: 0; font-weight: 600; }
.sundance-snp .snp-value { margin: 0; font-weight: 800; color: var(--snp-navy); font-size: 1.75em; overflow-wrap: anywhere; }
.sundance-snp .snp-secondary .snp-value { font-size: 1.25em; }
.sundance-snp[data-snp-negative="1"] .snp-primary { border: 2px dashed var(--snp-navy); }
.sundance-snp .snp-shortfall { font-weight: 700; border-left: 4px solid var(--snp-navy); padding-left: 8px; }
.sundance-snp .snp-summary { margin: 8px 0 0; }
.sundance-snp .snp-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--snp-line); }
.sundance-snp .snp-sum-row dt { min-width: 0; }
.sundance-snp .snp-sum-row dd { margin: 0; font-weight: 700; white-space: nowrap; }
.sundance-snp .snp-adjs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.sundance-snp .snp-table-wrap { overflow-x: auto; max-width: 100%; }
.sundance-snp .snp-table { width: 100%; border-collapse: collapse; }
.sundance-snp .snp-table th, .sundance-snp .snp-table td { padding: 8px; border-bottom: 1px solid var(--snp-line); text-align: left; vertical-align: top; }
.sundance-snp .snp-table td, .sundance-snp .snp-num { text-align: right; white-space: nowrap; }
.sundance-snp .snp-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.sundance-snp .snp-btn { font: inherit; min-height: 44px; padding: 10px 18px; border-radius: 6px; border: 2px solid var(--snp-navy); background: var(--snp-navy); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; max-width: 100%; text-align: center; }
.sundance-snp .snp-btn-secondary { background: #fff; color: var(--snp-navy); }
.sundance-snp .snp-btn:disabled { opacity: .55; cursor: not-allowed; }
.sundance-snp .snp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.sundance-snp .snp-print-only { display: none; }
.sundance-snp [hidden] { display: none !important; }
@media (max-width: 480px) {
	.sundance-snp .snp-table { font-size: .875em; }
	.sundance-snp .snp-table th, .sundance-snp .snp-table td { padding: 6px 4px; }
	/* 1.1.1: 320px overflow fix (spec l.187) - let amounts wrap instead of forcing width. */
	.sundance-snp .snp-sum-row dd, .sundance-snp .snp-table td, .sundance-snp .snp-num { white-space: normal; overflow-wrap: anywhere; }
	.sundance-snp .snp-table th { overflow-wrap: anywhere; }
}
@media print {
	.sundance-snp { display: block; max-width: none; }
	.sundance-snp .snp-form, .sundance-snp .snp-actions, .sundance-snp .snp-adjs, .sundance-snp .snp-help, .sundance-snp .snp-compare-empty { display: none !important; }
	.sundance-snp .snp-print-only { display: block; }
	.sundance-snp .snp-section { border: 0; padding: 0 0 12px; background: none; break-inside: avoid; }
	.sundance-snp .snp-results { position: static; }
	.sundance-snp .snp-table-wrap { overflow: visible; }
	.sundance-snp [data-snp-assumptions] dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; margin: 0; }
	.sundance-snp [data-snp-assumptions] dd { margin: 0; text-align: right; }
}

/*
 * t2635u: print-only theme exception, approved by the owner with strict limits.
 * Selectors come from saved sundancere.com production HTML (/workspace/slci-phase3/raw/html/prod__*.html, 2026-10-07):
 * Houzez Elementor header #header-hz-elementor (inside #main-wrap), the site <footer> as a direct child of <body>,
 * .back-to-top-wrap and #compare-property-panel.
 * They apply only on a page holding the calculator: body.sundance-snp-page (added by the plugin's body_class filter)
 * or body:has(.sundance-snp). The two are kept as separate rules so that a browser without :has support still applies the first.
 * 1.1.1: #concierge-root (concierge widget mount, a direct child of <body>, from staging home HTML 2026-10-26) added, print only.
 * The calculator's own screen and print styles above are unchanged. Final WordPress verification is part of TEST 16.
 */
@media print {
	body.sundance-snp-page #header-hz-elementor,
	body.sundance-snp-page > footer,
	body.sundance-snp-page .back-to-top-wrap,
	body.sundance-snp-page #compare-property-panel,
	body.sundance-snp-page #concierge-root { display: none !important; }
}
@media print {
	body:has(.sundance-snp) #header-hz-elementor,
	body:has(.sundance-snp) > footer,
	body:has(.sundance-snp) .back-to-top-wrap,
	body:has(.sundance-snp) #compare-property-panel,
	body:has(.sundance-snp) #concierge-root { display: none !important; }
}
/* t4695u (Owner t4695u item 2, option A; supersedes t4681u attempts 1-2). Responsive presentation only; no formula/logic/JS change.
 * Two columns only when the calculator's own container is >= 700px wide (container query, not viewport); stacked otherwise.
 * The results panel owns the whole right column (every other section stacks in the left column), so although a sticky
 * element is bounded by the whole grid, its column holds nothing it could cover. Sticky kept where space permits,
 * capped to the viewport height with its own scroll. */
*:has(> .sundance-snp) { container-type: inline-size; }
@media (min-width: 1024px) {
	.sundance-snp { grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "header" "form" "results" "compare" "items" "disclaimer" "actions";
		grid-template-rows: auto; }
	.sundance-snp .snp-results { position: static; }
}
@container (min-width: 700px) {
	.sundance-snp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		grid-template-areas: "header header" "form results" "compare results" "items results" "disclaimer results" "actions results";
		grid-template-rows: auto; align-items: start; }
	.sundance-snp .snp-results { position: sticky; top: 16px; align-self: start; max-height: calc(100vh - 32px); overflow-y: auto; }
}
