/* ============================================================
   mm-flat-tabs
   Text-only tab strip. Eyebrow + title per tab. Click reveals
   sub-items in the panel below. No icons, no rounded corners.
   ============================================================ */

.mm-ftabs {
	width: 100%;
}

.mm-ftabs__strip {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	width: 100%;
}

.mm-ftabs__tab {
	display: block;
	width: 100%;
	text-align: left;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0;
	padding: 20px 22px;
	cursor: pointer;
	color: #fff;
	transition: background 0.18s ease, border-color 0.18s ease;
	position: relative;
	font-family: inherit;
}

.mm-ftabs__tab:hover {
	background: rgba(0, 0, 0, 0.35);
	border-color: rgba(255, 255, 255, 0.14);
}

.mm-ftabs__tab.is-active {
	background: rgba(0, 0, 0, 0.4);
}

.mm-ftabs__tab.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
}

.mm-ftabs__eyebrow {
	display: block;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 8px;
	font-weight: 600;
}

/* Per-tab colors (magenta theme spread) */
.mm-ftabs__tab:nth-child(1) .mm-ftabs__eyebrow { color: #ff5aa8; } /* pink */
.mm-ftabs__tab:nth-child(2) .mm-ftabs__eyebrow { color: #d64bff; } /* magenta */
.mm-ftabs__tab:nth-child(3) .mm-ftabs__eyebrow { color: #9a6bff; } /* purple */
.mm-ftabs__tab:nth-child(4) .mm-ftabs__eyebrow { color: #46d5ff; } /* cyan */
.mm-ftabs__tab:nth-child(5) .mm-ftabs__eyebrow { color: #5aa8ff; } /* blue */


.mm-ftabs__tab:nth-child(1).is-active::after { background: #ff5aa8; }
.mm-ftabs__tab:nth-child(2).is-active::after { background: #d64bff; }
.mm-ftabs__tab:nth-child(3).is-active::after { background: #9a6bff; }
.mm-ftabs__tab:nth-child(4).is-active::after { background: #46d5ff; }
.mm-ftabs__tab:nth-child(5).is-active::after { background: #5aa8ff; }

/* Sub-item left accents match the active tab color */
.mm-ftabs[data-active="0"] .mm-ftabs__sub { border-left-color: #ff5aa8; }
.mm-ftabs[data-active="1"] .mm-ftabs__sub { border-left-color: #d64bff; }
.mm-ftabs[data-active="2"] .mm-ftabs__sub { border-left-color: #9a6bff; }
.mm-ftabs[data-active="3"] .mm-ftabs__sub { border-left-color: #46d5ff; }
.mm-ftabs[data-active="4"] .mm-ftabs__sub { border-left-color: #5aa8ff; }

.mm-ftabs__title {
	display: block;
	font-size: 16px;
	line-height: 1.3;
	color: #fff;
	font-weight: 500;
}

/* Panel below */
.mm-ftabs__panel {
	margin-top: 24px;
	padding: 24px 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	min-height: 120px;
}

@media (min-width: 992px) {
	.mm-ftabs__panel {
		padding: 24px 15px;
	}
}

.mm-ftabs__panel-head {
	margin-bottom: 18px;
}

.mm-ftabs__panel-title {
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	margin: 0 0 6px 0;
}

.mm-ftabs__panel-desc {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
	line-height: 1.5;
}

.mm-ftabs__subs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.mm-ftabs__sub {
	padding: 14px 16px;
	background: rgba(0, 0, 0, 0.25);
	border-left: 3px solid rgba(120, 200, 255, 0.55);
}

.mm-ftabs__sub-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 4px;
}

.mm-ftabs__sub-desc {
	display: block;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.5;
}

/* Custom dropdown (mobile only, injected by JS below 576). */
.mm-ftabs__dropdown { position: relative; display: none; width: 100%; }
.mm-ftabs__dd-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 20px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #fff;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	gap: 12px;
}
.mm-ftabs__dd-toggle:hover { border-color: rgba(255, 255, 255, 0.3); }
.mm-ftabs__dd-toggle .mm-ftabs__eyebrow { display: block; margin-bottom: 4px; font-size: 10px; }
.mm-ftabs__dd-toggle .mm-ftabs__title  { font-size: 15px; line-height: 1.25; font-weight: 700; }
.mm-ftabs__dd-caret { font-size: 12px; opacity: .7; transition: transform .2s ease; }
.mm-ftabs__dropdown.is-open .mm-ftabs__dd-caret { transform: rotate(180deg); }

.mm-ftabs__dd-menu {
	position: absolute;
	top: 100%; left: 0; right: 0;
	background: #0a0a0a;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-top: 0;
	z-index: 20;
	max-height: 60vh;
	overflow-y: auto;
	scrollbar-width: none;
	display: none;
}
.mm-ftabs__dd-menu::-webkit-scrollbar { display: none; }
.mm-ftabs__dropdown.is-open .mm-ftabs__dd-menu { display: block; }
.mm-ftabs__dd-item {
	display: block;
	width: 100%;
	padding: 14px 20px;
	background: transparent;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	color: #fff;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}
.mm-ftabs__dd-item:hover { background: rgba(255, 255, 255, 0.06); }
.mm-ftabs__dd-item.is-active { background: rgba(255, 255, 255, 0.08); }
.mm-ftabs__dd-item .mm-ftabs__eyebrow { display: block; margin-bottom: 4px; font-size: 10px; }
.mm-ftabs__dd-item .mm-ftabs__title  { font-size: 15px; line-height: 1.25; font-weight: 700; }

/* Responsive */
/* Keep all 5 tabs on one row from 576 to 991 by tightening padding + font. */
@media (max-width: 991px) and (min-width: 576px) {
	.mm-ftabs__strip {
		grid-template-columns: repeat(5, 1fr);
		gap: 6px;
	}
	.mm-ftabs__tab {
		padding: 14px 12px;
	}
	.mm-ftabs__eyebrow {
		font-size: 10px;
		letter-spacing: .08em;
	}
	.mm-ftabs__title {
		font-size: 13px;
		line-height: 1.25;
	}
	.mm-ftabs__panel {
		padding: 18px 18px;
	}
	.mm-ftabs__subs {
		grid-template-columns: 1fr;
	}
}

/* Below 576: hide the strip, show the custom dropdown. */
@media (max-width: 575px) {
	.mm-ftabs__strip { display: none; }
	.mm-ftabs__dropdown { display: block; }
	.mm-ftabs__panel { padding: 18px 18px; }
	.mm-ftabs__subs { grid-template-columns: 1fr; }
}
