/* Address filter section — Representatives page */

.representatives-address-lookup {
	background: var(--gop-cream, #faf7f0);
	border: 1px solid rgba(116, 39, 41, 0.14);
	border-radius: 0.375rem;
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
}

.representatives-address-lookup__label {
	color: var(--gop-navy, #112b4c);
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}

.representatives-address-lookup__row {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.representatives-address-lookup__input {
	background: #fff;
	border: 1px solid rgba(116, 39, 41, 0.35);
	border-radius: 0.25rem;
	color: var(--gop-text, #1a1a1a);
	flex: 1 1 16rem;
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 1.4;
	min-width: 0;
	padding: 0.45rem 0.75rem;
	transition: border-color 0.12s;
}

.representatives-address-lookup__input:focus {
	border-color: var(--gop-red-deep, #742729);
	outline: 2px solid var(--gop-gold, #c49a45);
	outline-offset: 1px;
}

.representatives-address-lookup__submit,
.representatives-address-lookup__clear {
	border-radius: 0.25rem;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.45rem 1rem;
	text-transform: uppercase;
	transition: background 0.12s, color 0.12s;
	white-space: nowrap;
}

.representatives-address-lookup__submit {
	background: var(--gop-red-deep, #742729);
	border: 1px solid var(--gop-red-deep, #742729);
	color: #fff;
}

.representatives-address-lookup__submit:hover {
	background: var(--gop-navy, #112b4c);
	border-color: var(--gop-navy, #112b4c);
}

.representatives-address-lookup__submit:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

.representatives-address-lookup__clear {
	background: transparent;
	border: 1px solid rgba(116, 39, 41, 0.45);
	color: var(--gop-red-deep, #742729);
}

.representatives-address-lookup__clear:hover {
	background: rgba(116, 39, 41, 0.08);
}

.representatives-address-lookup__submit:focus-visible,
.representatives-address-lookup__clear:focus-visible {
	outline: 2px solid var(--gop-gold, #c49a45);
	outline-offset: 2px;
}

.representatives-address-lookup__status {
	color: var(--gop-steel, #4a5568);
	font-size: 0.85rem;
	margin-top: 0.5rem;
	min-height: 1.2em;
}

/* "Did you mean?" candidate selection UI */

.representatives-address-lookup__candidates {
	background: #fff;
	border: 1px solid rgba(116, 39, 41, 0.2);
	border-radius: 0.25rem;
	margin-top: 0.75rem;
	padding: 0.75rem 1rem;
}

.representatives-address-lookup__candidates-title {
	color: var(--gop-navy, #112b4c);
	font-size: 0.85rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.representatives-address-lookup__candidate-list {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
}

.representatives-address-lookup__candidate-item {
	margin: 0.3rem 0;
}

.representatives-address-lookup__candidate-label {
	align-items: baseline;
	cursor: pointer;
	display: flex;
	font-size: 0.9rem;
	gap: 0.45rem;
}

.representatives-address-lookup__candidate-label input[type="radio"] {
	flex-shrink: 0;
	margin: 0;
}

.representatives-address-lookup__candidate-use {
	background: var(--gop-red-deep, #742729);
	border: 1px solid var(--gop-red-deep, #742729);
	border-radius: 0.25rem;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 0.4rem 1rem;
	text-transform: uppercase;
	transition: background 0.12s, border-color 0.12s;
}

.representatives-address-lookup__candidate-use:hover {
	background: var(--gop-navy, #112b4c);
	border-color: var(--gop-navy, #112b4c);
}

.representatives-address-lookup__candidate-use:focus-visible {
	outline: 2px solid var(--gop-gold, #c49a45);
	outline-offset: 2px;
}

/* Hide address-filtered cards while the filter is active. */
[data-address-filter-active] .position-card--address-filtered {
	display: none !important;
}

[data-address-filter-active] .position-history-toggle {
	display: none !important;
}

[data-address-filter-active] [data-address-filter-level-link][hidden],
[data-address-filter-active] [data-address-filter-level][hidden],
[data-address-filter-active] .representative-subgroup[hidden] {
	display: none !important;
}
