/*
 * Sea Ventures Brands Menu
 *
 * Sharpens the theme's "Tabs" look without changing the branding: text and
 * lines take the dropdown's own text colour, and the accent is the theme's
 * primary colour (Theme Options → Colours), so they follow any change made there.
 * Selectors start with .w-tabs.svbm to outrank the theme's tab styles.
 */

/* Two equal columns of model links. */
.svbm .svbm-col {
	width: 50%;
}

/* Brand tabs: a fine divider, the current brand in bold with an accent bar. */
.w-tabs.svbm.style_simple > .w-tabs-list {
	padding-inline-end: 1.5rem;
	margin-inline-end: 2rem;
	border-inline-end: 1px solid rgba(255, 255, 255, 0.16);
	border-inline-end-color: color-mix(in srgb, currentColor 16%, transparent);
}
.w-tabs.svbm.style_simple > .w-tabs-list .w-tabs-item {
	position: relative;
	padding: 0.4rem 0 0.4rem 0.9rem;
	opacity: 0.7;
	transition: opacity 0.15s;
}
.w-tabs.svbm.style_simple.layout_ver > .w-tabs-list .w-tabs-item:not(:last-child) {
	margin-bottom: 0.25rem;
}
.w-tabs.svbm.style_simple > .w-tabs-list .w-tabs-item:hover,
.w-tabs.svbm.style_simple > .w-tabs-list .w-tabs-item:focus-visible,
.w-tabs.svbm.style_simple > .w-tabs-list .w-tabs-item.active {
	opacity: 1;
}
.w-tabs.svbm.style_simple > .w-tabs-list .w-tabs-item.active {
	font-weight: 700;
}
.w-tabs.svbm.style_simple > .w-tabs-list .w-tabs-item.active::before {
	content: "";
	position: absolute;
	inset-block: 0.35rem;
	inset-inline-start: 0;
	width: 3px;
	border-radius: 2px;
	background: var(--color-content-primary, #cc1e11);
}

/* Range titles: small bold capitals; the selected one fully opaque and underlined in the accent. */
.w-tabs.svbm .w-tabs-section-content-h > .g-cols:not([data-svbm-models]) {
	margin-bottom: 0.5rem;
}
.w-tabs.svbm .svbm-range {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.7;
	cursor: pointer;
	transition: opacity 0.15s;
}
.w-tabs.svbm .svbm-range:hover,
.w-tabs.svbm .svbm-range:focus-within,
.w-tabs.svbm .svbm-range.is-active {
	opacity: 1;
}
.w-tabs.svbm .svbm-range .w-text-h {
	display: inline-block;
	padding-bottom: 0.3rem;
	border-bottom: 2px solid transparent;
	color: inherit;
}
.w-tabs.svbm .svbm-range.is-active .w-text-h {
	border-bottom-color: var(--color-content-primary, #cc1e11);
}

/* Softer rule between the range titles and the models. */
.w-tabs.svbm .w-separator-h::before,
.w-tabs.svbm .w-separator-h::after {
	border-color: rgba(255, 255, 255, 0.2);
	border-color: color-mix(in srgb, currentColor 20%, transparent);
}

/* Model links: a little more air, and an accent underline on hover. */
.w-tabs.svbm [data-svbm-models] p {
	line-height: 1.9;
}
.w-tabs.svbm [data-svbm-models] a,
.w-tabs.svbm .w-text:not(.svbm-range) a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
	transition: text-decoration-color 0.15s;
}
.w-tabs.svbm [data-svbm-models] a:hover,
.w-tabs.svbm [data-svbm-models] a:focus-visible,
.w-tabs.svbm .w-text:not(.svbm-range) a:hover,
.w-tabs.svbm .w-text:not(.svbm-range) a:focus-visible {
	text-decoration-color: var(--color-content-primary, #cc1e11);
}

/* Mobile accordion: brand names in bold. */
.w-tabs.svbm .w-tabs-section-header {
	font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
	.w-tabs.svbm * {
		transition: none !important;
	}
}
