/* ============================================================
   JM Currículos Pro — Menu Pílula Mobile (5 opções)
   Visível exclusivamente em telas <= 900px
   ============================================================ */

.jmcv-pill-nav {
	position: fixed;
	left: 50%;
	bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	width: calc(100% - 24px);
	max-width: 520px;
	z-index: 9990;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid #e4ddd2;
	border-radius: 999px;
	box-shadow: 0 12px 32px rgba(16, 33, 46, 0.16);
	padding: 4px 6px;
	font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
	box-sizing: border-box;
}

.jmcv-pill-nav *,
.jmcv-pill-nav *::before,
.jmcv-pill-nav *::after,
.jmcv-pill-sheet *,
.jmcv-pill-sheet *::before,
.jmcv-pill-sheet *::after {
	box-sizing: border-box;
}

.jmcv-pill-nav__list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2px;
}

.jmcv-pill-nav__item {
	min-width: 0;
}

.jmcv-pill-nav__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	width: 100%;
	min-height: 48px;
	padding: 6px 4px;
	border: 0;
	background: transparent;
	border-radius: 999px;
	color: #10212E;
	text-decoration: none;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.1;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.jmcv-pill-nav__link span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.jmcv-pill-nav__link:hover,
.jmcv-pill-nav__link.is-active,
.jmcv-pill-nav__link[aria-expanded="true"] {
	color: #7A1C1C;
	background: #f9eded;
}

.jmcv-pill-nav__link:focus-visible,
.jmcv-pill-sheet__close:focus-visible,
.jmcv-pill-sheet__item:focus-visible {
	outline: 2px solid #7A1C1C;
	outline-offset: 2px;
}

/* ---------- Backdrop & Bottom Sheet ---------- */
.jmcv-pill-backdrop {
	position: fixed;
	inset: 0;
	z-index: 9992;
	background: rgba(16, 33, 46, 0.48);
	opacity: 0;
	transition: opacity 0.22s ease;
}

.jmcv-pill-backdrop.is-open {
	opacity: 1;
}

.jmcv-pill-sheet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9994;
	background: #ffffff;
	border-top-left-radius: 22px;
	border-top-right-radius: 22px;
	box-shadow: 0 -12px 36px rgba(16, 33, 46, 0.2);
	padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
	font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
	transform: translateY(100%);
	transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
	max-height: 82vh;
	overflow-y: auto;
}

.jmcv-pill-sheet.is-open {
	transform: translateY(0);
}

.jmcv-pill-sheet__handle {
	width: 40px;
	height: 4px;
	border-radius: 999px;
	background: #d5cdc0;
	margin: 0 auto 12px;
}

.jmcv-pill-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.jmcv-pill-sheet__title {
	font-size: 17px;
	font-weight: 800;
	color: #10212E;
	margin: 0;
}

.jmcv-pill-sheet__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid #e4ddd2;
	background: #f7f4ef;
	color: #10212E;
	cursor: pointer;
}

.jmcv-pill-sheet__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.jmcv-pill-sheet__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f7f4ef;
	border: 1px solid #e4ddd2;
	color: #10212E;
	text-decoration: none;
	transition: border-color 0.18s ease, background-color 0.18s ease;
}

.jmcv-pill-sheet__item:hover {
	border-color: #7A1C1C;
	background: #f9eded;
}

.jmcv-pill-sheet__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: #ffffff;
	color: #7A1C1C;
	flex-shrink: 0;
}

.jmcv-pill-sheet__label {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.jmcv-pill-sheet__label strong {
	font-size: 14px;
	font-weight: 700;
	color: #10212E;
}

.jmcv-pill-sheet__label small {
	font-size: 12px;
	color: #3a4a57;
}

.jmcv-pill-sheet__item > svg:last-child {
	color: #3a4a57;
	flex-shrink: 0;
}

@media (min-width: 901px) {
	.jmcv-pill-nav,
	.jmcv-pill-backdrop,
	.jmcv-pill-sheet {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jmcv-pill-nav__link,
	.jmcv-pill-backdrop,
	.jmcv-pill-sheet,
	.jmcv-pill-sheet__item {
		transition: none;
	}
}
