/*
 * /case-studies/ — styles for what assets/case-studies.js builds at runtime (the pill menus, the
 * no-results line, hidden cards). Everything that exists in the page markup is styled by its own
 * blocks in the "UBS Case Studies – Index" pattern; this file only covers elements the editor
 * never sees, which is why it is enqueued on the archive alone and not via UBS_STYLES.
 */
.ubscs-menu {
	position: absolute;
	z-index: 20;
	min-width: 240px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: var(--wp--custom--space--xxs, 8px);
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--lighter-navy, #e5f2ff);
	border-radius: 8px;
	box-shadow: 0 12px 24px rgba(0, 51, 102, 0.12);
}

.ubscs-menu[hidden] {
	display: none;
}

.ubscs-opt {
	font-family: inherit;
	font-size: var(--wp--preset--font-size--xs, 14px);
	line-height: 1.35;
	font-weight: 500;
	text-align: left;
	color: var(--wp--preset--color--brand, #003366);
	background: transparent;
	border: 0;
	border-radius: 4px;
	padding: var(--wp--custom--space--xxs, 8px) 12px;
	cursor: pointer;
}

.ubscs-opt:hover,
.ubscs-opt:focus-visible {
	background: var(--wp--preset--color--background, #f5f7fa);
	outline: none;
}

.ubscs-opt[aria-checked="true"] {
	background: var(--wp--preset--color--lighter-navy, #e5f2ff);
	font-weight: 600;
}

.ubsci-pill:focus-visible {
	outline: 2px solid var(--wp--preset--color--light-navy, #377fc8);
	outline-offset: 2px;
}

.gspbgrid_item.ubscs-hide {
	display: none;
}

.ubscs-empty {
	margin: var(--wp--custom--space--xl, 48px) 0 0;
	text-align: center;
	color: var(--wp--preset--color--textcolor, #4a5d73);
}

.ubscs-empty[hidden] {
	display: none;
}
