/**
 * Visit Depth Progressive Disclosure — BEHAVIORAL_RULES §3.1
 * Uses html[data-depth] and body[data-depth] for broad compat.
 * Pattern: .depth-N-visible shows at depth N+, hidden below.
 * Pattern: .depth-N-only shows ONLY at depth N, hidden at all others.
 */

/* === Progressive visibility (show at depth N and above) === */

/* depth-1-visible: hidden at depth 0, shown at 1+ */
.depth-1-visible { display: none; }
[data-depth="1"] .depth-1-visible,
[data-depth="2"] .depth-1-visible,
[data-depth="3"] .depth-1-visible,
[data-depth="4"] .depth-1-visible,
[data-depth="5"] .depth-1-visible { display: revert; }

/* depth-2-visible: hidden at 0-1, shown at 2+ */
.depth-2-visible { display: none; }
[data-depth="2"] .depth-2-visible,
[data-depth="3"] .depth-2-visible,
[data-depth="4"] .depth-2-visible,
[data-depth="5"] .depth-2-visible { display: revert; }

/* depth-3-visible: hidden at 0-2, shown at 3+ */
.depth-3-visible { display: none; }
[data-depth="3"] .depth-3-visible,
[data-depth="4"] .depth-3-visible,
[data-depth="5"] .depth-3-visible { display: revert; }

/* depth-4-visible: hidden at 0-3, shown at 4+ */
.depth-4-visible { display: none; }
[data-depth="4"] .depth-4-visible,
[data-depth="5"] .depth-4-visible { display: revert; }

/* depth-5-visible: shown only at depth 5 */
.depth-5-visible { display: none; }
[data-depth="5"] .depth-5-visible { display: revert; }

/* === Swap pattern (show at depth 0, hide at N+) === */

/* depth-0-visible: shown at 0, hidden at 3+ (current agents.html pattern) */
.depth-0-visible { display: inline-flex; }
[data-depth="3"] .depth-0-visible,
[data-depth="4"] .depth-0-visible,
[data-depth="5"] .depth-0-visible { display: none; }

/* === Depth-specific only (show at exactly depth N) === */
.depth-0-only { display: block; }
[data-depth="1"] .depth-0-only,
[data-depth="2"] .depth-0-only,
[data-depth="3"] .depth-0-only,
[data-depth="4"] .depth-0-only,
[data-depth="5"] .depth-0-only { display: none; }

/* Local composition inspection belongs behind the finished public experience.
   It uses the same visual materials without becoming another customer surface. */
.hv-compose-simulator {
	position: fixed;
	left: 1rem;
	bottom: 1rem;
	z-index: 95;
	font-family: var(--hv-font-body, "Instrument Sans", sans-serif);
}

.hv-compose-simulator__toggle,
.hv-compose-simulator__close,
.hv-compose-simulator__choices button,
#compose-simulator-reset {
	border: 1px solid rgba(16, 32, 51, 0.12);
	background: rgba(252, 248, 242, 0.9);
	color: var(--hv-text-primary, #102033);
	font: inherit;
	cursor: pointer;
}

.hv-compose-simulator__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.65rem 0.9rem;
	border-radius: 999px;
	box-shadow: 0 0.75rem 2rem rgba(16, 32, 51, 0.14);
	backdrop-filter: blur(16px);
}

.hv-compose-simulator__toggle .material-symbols-outlined { font-size: 1rem; }

.hv-compose-simulator__panel {
	position: absolute;
	left: 0;
	bottom: calc(100% + 0.65rem);
	width: min(22rem, calc(100vw - 2rem));
	padding: 1.1rem;
	border: 1px solid rgba(16, 32, 51, 0.1);
	border-radius: 1rem;
	background: rgba(252, 248, 242, 0.96);
	box-shadow: 0 1.5rem 4rem rgba(16, 32, 51, 0.18);
	backdrop-filter: blur(20px);
}

.hv-compose-simulator__panel[hidden] { display: none; }

.hv-compose-simulator__header,
.hv-compose-simulator__footer,
.hv-compose-simulator__choices {
	display: flex;
}

.hv-compose-simulator__header {
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.hv-compose-simulator__eyebrow,
.hv-compose-simulator__label {
	color: var(--hv-accent, #a64f2a);
	font-size: 0.625rem;
	font-weight: 750;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.hv-compose-simulator__title {
	margin-top: 0.2rem;
	color: var(--hv-text-primary, #102033);
	font-family: var(--hv-font-display, "Instrument Sans", sans-serif);
	font-size: 1.05rem;
	font-weight: 750;
	letter-spacing: -0.025em;
}

.hv-compose-simulator__copy,
.hv-compose-simulator__footer {
	color: var(--hv-text-secondary, #5e6875);
	font-size: 0.72rem;
	line-height: 1.45;
}

.hv-compose-simulator__copy { margin-top: 0.2rem; }

.hv-compose-simulator__close {
	display: inline-flex;
	padding: 0.3rem;
	border: 0;
	background: transparent;
}

.hv-compose-simulator__close .material-symbols-outlined { font-size: 1rem; }

.hv-compose-simulator__fields {
	display: grid;
	gap: 0.9rem;
}

.hv-compose-simulator__choices {
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-top: 0.4rem;
}

.hv-compose-simulator__choices button,
#compose-simulator-reset {
	padding: 0.35rem 0.55rem;
	border-radius: 999px;
	font-size: 0.7rem;
}

.hv-compose-simulator__choices button[aria-pressed="true"] {
	border-color: var(--hv-primary, #092847);
	background: var(--hv-primary, #092847);
	color: #fff8ec;
}

.hv-compose-simulator__footer {
	align-items: center;
	gap: 0.65rem;
	padding-top: 0.15rem;
}

.hv-javascript-required {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 120;
	width: 100%;
	padding: 0.75rem 1rem;
	background: #8b2e2e;
	color: #fff;
	font-family: var(--hv-font-body, "Instrument Sans", sans-serif);
	font-size: 0.8rem;
	text-align: center;
}

.hv-javascript-required p { margin: 0; }
