/**
 * Component layer.
 *
 * Reusable, context-free UI pieces. A component never sets its own outer
 * margin — placement is the layout layer's job.
 */

/* -- Icon ---------------------------------------------------------------- */

.lg-icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: middle;
}

/* -- Button -------------------------------------------------------------- */

.lg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--lg-space-2);
	flex-shrink: 0;
	height: 2.25rem;
	padding-inline: var(--lg-space-4);
	border: 1px solid transparent;
	border-radius: var(--lg-radius-md);
	font-size: var(--lg-text-sm);
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color var(--lg-duration) var(--lg-ease),
		border-color var(--lg-duration) var(--lg-ease),
		color var(--lg-duration) var(--lg-ease),
		box-shadow var(--lg-duration) var(--lg-ease);
}

.lg-btn .lg-icon {
	width: 1rem;
	height: 1rem;
}

.lg-btn:disabled,
.lg-btn[aria-disabled='true'] {
	opacity: 0.5;
	pointer-events: none;
}

/* Variants */

.lg-btn--primary {
	background-color: var(--lg-primary);
	color: var(--lg-primary-fg);
}

.lg-btn--primary:hover {
	background-color: color-mix(in srgb, var(--lg-primary) 90%, #000);
}

.lg-btn--outline {
	border-color: var(--lg-border);
	background-color: var(--lg-bg);
	color: var(--lg-fg);
	box-shadow: var(--lg-shadow-xs);
}

.lg-btn--outline:hover {
	background-color: var(--lg-accent);
	color: var(--lg-accent-fg);
}

.lg-btn--ghost {
	color: var(--lg-fg);
}

.lg-btn--ghost:hover {
	background-color: var(--lg-accent);
	color: var(--lg-accent-fg);
}

/* For use on the always-dark inverse surfaces. */
.lg-btn--inverse-outline {
	border-color: rgb(255 255 255 / 0.25);
	background-color: transparent;
	color: var(--lg-inverse-fg);
}

.lg-btn--inverse-outline:hover {
	background-color: rgb(255 255 255 / 0.1);
	color: var(--lg-inverse-fg);
}

/* Sizes */

.lg-btn--lg {
	height: 2.75rem;
	padding-inline: var(--lg-space-6);
	font-size: var(--lg-text-base);
}

.lg-btn--sm {
	height: 2rem;
	padding-inline: var(--lg-space-3);
}

.lg-btn--icon {
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
}

.lg-btn--block {
	width: 100%;
}

/*
 * The arrow on a primary CTA nudges forward on hover. It is a transform on a
 * decorative child only, so it costs nothing and disappears under
 * prefers-reduced-motion via the global override in base.css.
 */
.lg-btn__arrow {
	transition: transform var(--lg-duration) var(--lg-ease);
}

.lg-btn:hover .lg-btn__arrow {
	transform: translateX(2px);
}

/* -- Badge --------------------------------------------------------------- */

.lg-badge {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	justify-content: center;
	gap: var(--lg-space-2);
	padding: 0.125rem var(--lg-space-2);
	border: 1px solid transparent;
	border-radius: var(--lg-radius-full);
	font-size: var(--lg-text-xs);
	font-weight: 500;
	white-space: nowrap;
}

.lg-badge--primary {
	background-color: var(--lg-primary);
	color: var(--lg-primary-fg);
}

.lg-badge--outline {
	border-color: var(--lg-border);
	color: var(--lg-fg);
}

/* The eyebrow badge above every hero headline. */
.lg-badge--eyebrow {
	padding: var(--lg-space-1) var(--lg-space-3);
	border-color: rgb(var(--lg-primary-rgb) / 0.3);
	background-color: color-mix(in srgb, var(--lg-bg) 60%, transparent);
	color: var(--lg-primary);
	font-family: var(--lg-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lg-badge--light {
	background-color: var(--lg-inverse-fg);
	color: var(--lg-inverse);
	font-family: var(--lg-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: var(--lg-space-1) var(--lg-space-3);
}

.lg-badge__dot {
	width: 0.375rem;
	height: 0.375rem;
	border-radius: var(--lg-radius-full);
	background-color: var(--lg-primary);
}

.lg-badge__dot--pulse {
	animation: lg-pulse 2s var(--lg-ease) infinite;
}

@keyframes lg-pulse {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.35;
	}
}

/* Saving badge on the billing-term tabs. */
.lg-badge--saving {
	padding: 0 0.25rem;
	border-radius: var(--lg-radius-sm);
	background-color: color-mix(in srgb, var(--lg-success) 18%, transparent);
	color: var(--lg-success);
	font-size: 0.625rem;
	font-weight: 600;
}

/* -- Pill (hero metric / status chips) ----------------------------------- */

.lg-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--lg-space-2);
	list-style: none;
	padding: 0;
}

.lg-pill {
	display: inline-block;
	padding: var(--lg-space-1) var(--lg-space-3);
	border: 1px solid var(--lg-border);
	border-radius: var(--lg-radius-full);
	background-color: color-mix(in srgb, var(--lg-bg) 60%, transparent);
	color: var(--lg-muted-fg);
	font-family: var(--lg-font-mono);
	font-size: 0.6875rem;
	letter-spacing: 0.02em;
}

/* -- Card ---------------------------------------------------------------- */

.lg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--lg-space-6);
	border: 1px solid var(--lg-border);
	border-radius: var(--lg-radius-xl);
	background-color: var(--lg-card);
}

@media (min-width: 640px) {
	.lg-card--roomy {
		padding: var(--lg-space-8);
	}
}

/* Lift on hover, but only for cards that are themselves a link. */
.lg-card--interactive {
	transition:
		transform var(--lg-duration) var(--lg-ease),
		border-color var(--lg-duration) var(--lg-ease),
		box-shadow var(--lg-duration) var(--lg-ease);
}

.lg-card--interactive:hover {
	transform: translateY(-2px);
	border-color: rgb(var(--lg-primary-rgb) / 0.4);
	box-shadow: var(--lg-shadow-lg);
}

.lg-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	border: 1px solid rgb(var(--lg-primary-rgb) / 0.2);
	border-radius: var(--lg-radius-lg);
	background-color: rgb(var(--lg-primary-rgb) / 0.1);
	color: var(--lg-primary);
}

.lg-card__icon .lg-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.lg-card__title {
	display: flex;
	align-items: center;
	gap: var(--lg-space-2);
	margin-top: var(--lg-space-5);
	font-size: var(--lg-text-lg);
	font-weight: 600;
}

.lg-card__title--sm {
	font-size: var(--lg-text-base);
}

.lg-card__tagline {
	margin-top: var(--lg-space-1);
	font-family: var(--lg-font-mono);
	font-size: var(--lg-text-xs);
	color: var(--lg-muted-fg);
}

.lg-card__body {
	margin-top: var(--lg-space-2);
	font-size: var(--lg-text-sm);
	line-height: var(--lg-leading-relaxed);
	color: var(--lg-muted-fg);
}

/* The arrow that fades in when an interactive card is hovered. */
.lg-card__arrow {
	color: var(--lg-primary);
	opacity: 0;
	transform: translateX(-4px);
	transition:
		opacity var(--lg-duration) var(--lg-ease),
		transform var(--lg-duration) var(--lg-ease);
}

.lg-card--interactive:hover .lg-card__arrow,
.lg-card--interactive:focus-visible .lg-card__arrow {
	opacity: 1;
	transform: translateX(0);
}

.lg-card__list {
	margin-top: var(--lg-space-4);
}

/* -- Check list ---------------------------------------------------------- */

.lg-checklist {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-checklist__item {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	font-size: var(--lg-text-sm);
	line-height: var(--lg-leading-snug);
	color: var(--lg-muted-fg);
}

.lg-checklist__item .lg-icon {
	width: 1rem;
	height: 1rem;
	margin-top: 0.15rem;
	flex-shrink: 0;
	color: var(--lg-primary);
}

/* -- Accordion (FAQ) ----------------------------------------------------- */

/*
 * Built on <details>/<summary>, so it is keyboard accessible, exposed to
 * assistive tech, and works with JavaScript disabled — no ARIA to maintain.
 */
.lg-accordion {
	border: 1px solid var(--lg-border);
	border-radius: var(--lg-radius-xl);
	background-color: var(--lg-card);
	overflow: hidden;
}

.lg-accordion__item + .lg-accordion__item {
	border-top: 1px solid var(--lg-border);
}

.lg-accordion__item {
	padding-inline: var(--lg-space-5);
}

@media (min-width: 640px) {
	.lg-accordion__item {
		padding-inline: var(--lg-space-6);
	}
}

.lg-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--lg-space-4);
	padding-block: var(--lg-space-5);
	font-size: var(--lg-text-sm);
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	list-style: none;
}

.lg-accordion__summary::-webkit-details-marker {
	display: none;
}

@media (min-width: 640px) {
	.lg-accordion__summary {
		font-size: var(--lg-text-base);
	}
}

.lg-accordion__summary .lg-icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	color: var(--lg-muted-fg);
	transition: transform var(--lg-duration) var(--lg-ease);
}

.lg-accordion__item[open] .lg-accordion__summary .lg-icon {
	transform: rotate(45deg);
}

.lg-accordion__panel {
	padding-bottom: var(--lg-space-5);
	max-width: 60ch;
	font-size: var(--lg-text-sm);
	line-height: var(--lg-leading-relaxed);
	color: var(--lg-muted-fg);
}

/* -- Header -------------------------------------------------------------- */

.lg-header {
	position: sticky;
	top: 0;
	z-index: var(--lg-z-header);
	border-bottom: 1px solid color-mix(in srgb, var(--lg-border) 60%, transparent);
	background-color: color-mix(in srgb, var(--lg-bg) 85%, transparent);
}

@supports (backdrop-filter: blur(1px)) {
	.lg-header {
		background-color: color-mix(in srgb, var(--lg-bg) 70%, transparent);
		backdrop-filter: blur(12px);
	}
}

.lg-header__inner {
	display: flex;
	height: var(--lg-header-height);
	align-items: center;
	justify-content: space-between;
	gap: var(--lg-space-4);
}

.lg-logo {
	display: inline-flex;
	align-items: center;
	border-radius: var(--lg-radius-md);
}

.lg-logo img,
.lg-logo svg {
	height: 2.5rem;
	width: auto;
}

@media (min-width: 640px) {
	.lg-logo img,
	.lg-logo svg {
		height: 3rem;
	}
}

/* Swap the wordmark with the colour scheme. */
.lg-logo__img--dark {
	display: none;
}

.lg-dark .lg-logo__img--light {
	display: none;
}

.lg-dark .lg-logo__img--dark {
	display: block;
}

/* -- Colour scheme toggle -------------------------------------------------- */

/*
 * Both icons ship in the markup and are swapped by the scheme class, so the
 * correct one is painted on first render — before any script has run.
 */
.lg-theme-toggle__moon {
	display: none;
}

.lg-dark .lg-theme-toggle__sun {
	display: none;
}

.lg-dark .lg-theme-toggle__moon {
	display: block;
}

.lg-theme-toggle .lg-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* -- Primary navigation --------------------------------------------------- */

.lg-nav {
	display: none;
	align-items: center;
	gap: var(--lg-space-1);
}

.lg-nav__list {
	display: flex;
	align-items: center;
	gap: var(--lg-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-nav__item {
	position: relative;
}

.lg-nav__link {
	display: inline-flex;
	align-items: center;
	gap: var(--lg-space-1);
	padding: var(--lg-space-2) var(--lg-space-3);
	border-radius: var(--lg-radius-md);
	font-size: var(--lg-text-sm);
	font-weight: 500;
	color: var(--lg-muted-fg);
	transition: color var(--lg-duration) var(--lg-ease);
}

.lg-nav__link:hover,
.lg-nav__item--current > .lg-nav__link,
.lg-nav__item[data-open='true'] > .lg-nav__link {
	color: var(--lg-fg);
}

.lg-nav__link .lg-icon {
	width: 1rem;
	height: 1rem;
	transition: transform var(--lg-duration) var(--lg-ease);
}

.lg-nav__item[data-open='true'] > .lg-nav__link .lg-icon {
	transform: rotate(180deg);
}

/* Dropdown */

.lg-nav__submenu {
	position: absolute;
	top: calc(100% + var(--lg-space-2));
	left: 0;
	z-index: 1;
	min-width: 12rem;
	margin: 0;
	padding: var(--lg-space-1);
	border: 1px solid var(--lg-border);
	border-radius: var(--lg-radius-lg);
	background-color: var(--lg-card);
	box-shadow: var(--lg-shadow-lg);
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition:
		opacity var(--lg-duration) var(--lg-ease),
		transform var(--lg-duration) var(--lg-ease),
		visibility var(--lg-duration);
}

.lg-nav__item[data-open='true'] > .lg-nav__submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.lg-nav__submenu .lg-nav__link {
	display: flex;
	width: 100%;
	padding: var(--lg-space-2) var(--lg-space-3);
	color: var(--lg-fg);
	font-weight: 400;
}

.lg-nav__submenu .lg-nav__link:hover {
	background-color: var(--lg-accent);
}

.lg-header__actions {
	display: none;
	align-items: center;
	gap: var(--lg-space-2);
}

.lg-header__mobile {
	display: flex;
	align-items: center;
	gap: var(--lg-space-1);
}

/*
 * Both header controls need JavaScript to do anything, so they stay hidden
 * until the pre-paint script confirms scripting is available. Without it the
 * footer still carries every navigation link.
 */
.lg-theme-toggle,
[data-lg-drawer-open] {
	display: none;
}

.lg-js .lg-theme-toggle,
.lg-js [data-lg-drawer-open] {
	display: inline-flex;
}

@media (min-width: 768px) {
	.lg-nav,
	.lg-header__actions {
		display: flex;
	}

	.lg-header__mobile {
		display: none;
	}
}

/* -- Mobile drawer -------------------------------------------------------- */

.lg-drawer {
	position: fixed;
	inset: 0;
	z-index: var(--lg-z-drawer);
	visibility: hidden;
}

.lg-drawer[data-open='true'] {
	visibility: visible;
}

.lg-drawer__overlay {
	position: absolute;
	inset: 0;
	background-color: rgb(0 0 0 / 0.5);
	opacity: 0;
	transition: opacity var(--lg-duration) var(--lg-ease);
}

.lg-drawer[data-open='true'] .lg-drawer__overlay {
	opacity: 1;
}

.lg-drawer__panel {
	position: absolute;
	inset-block: 0;
	right: 0;
	display: flex;
	width: min(18rem, 85vw);
	flex-direction: column;
	border-left: 1px solid var(--lg-border);
	background-color: var(--lg-bg);
	transform: translateX(100%);
	transition: transform var(--lg-duration) var(--lg-ease);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.lg-drawer[data-open='true'] .lg-drawer__panel {
	transform: translateX(0);
}

.lg-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--lg-space-4);
	border-bottom: 1px solid var(--lg-border);
}

.lg-drawer__title {
	font-size: var(--lg-text-base);
	font-weight: 600;
}

.lg-drawer__nav {
	display: flex;
	flex-direction: column;
	gap: var(--lg-space-1);
	padding: var(--lg-space-4);
	margin: 0;
	list-style: none;
}

.lg-drawer__label {
	padding: var(--lg-space-2) var(--lg-space-3) var(--lg-space-1);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lg-muted-fg);
}

.lg-drawer__link {
	display: block;
	padding: 0.625rem var(--lg-space-3);
	border-radius: var(--lg-radius-md);
	font-size: var(--lg-text-sm);
	font-weight: 500;
	transition: background-color var(--lg-duration) var(--lg-ease);
}

.lg-drawer__link:hover {
	background-color: var(--lg-accent);
}

.lg-drawer__sublist {
	display: flex;
	flex-direction: column;
	gap: var(--lg-space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lg-drawer__actions {
	display: flex;
	flex-direction: column;
	gap: var(--lg-space-2);
	padding: var(--lg-space-4);
	margin-top: auto;
	border-top: 1px solid var(--lg-border);
}

/* Lock background scrolling while the drawer is open. */
body.lg-scroll-locked {
	overflow: hidden;
}

/* -- Footer --------------------------------------------------------------- */

.lg-footer {
	border-top: 1px solid var(--lg-border);
	background-color: color-mix(in srgb, var(--lg-muted) 55%, var(--lg-bg));
}

.lg-footer__grid {
	display: grid;
	gap: var(--lg-space-10);
	padding-block: var(--lg-space-14);
}

@media (min-width: 640px) {
	.lg-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.lg-footer__grid {
		grid-template-columns: 2fr repeat(4, 1fr);
	}
}

.lg-footer__brand {
	max-width: 20rem;
}

.lg-footer__tagline {
	margin-top: var(--lg-space-4);
	font-size: var(--lg-text-sm);
	line-height: var(--lg-leading-relaxed);
	color: var(--lg-muted-fg);
}

.lg-footer__heading {
	font-family: var(--lg-font-mono);
	font-size: var(--lg-text-xs);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lg-muted-fg);
}

.lg-footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin: var(--lg-space-4) 0 0;
	padding: 0;
	list-style: none;
}

.lg-footer__link {
	border-radius: var(--lg-radius-sm);
	font-size: var(--lg-text-sm);
	color: color-mix(in srgb, var(--lg-fg) 80%, var(--lg-bg));
	transition: color var(--lg-duration) var(--lg-ease);
}

.lg-footer__link:hover {
	color: var(--lg-fg);
}

.lg-footer__meta {
	display: flex;
	flex-direction: column;
	gap: var(--lg-space-3);
	padding-block: var(--lg-space-6);
	border-top: 1px solid var(--lg-border);
	font-size: var(--lg-text-xs);
	color: var(--lg-muted-fg);
}

@media (min-width: 640px) {
	.lg-footer__meta {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.lg-footer__meta-mono {
	font-family: var(--lg-font-mono);
}

/* -- Widgets -------------------------------------------------------------- */

.lg-widget + .lg-widget {
	margin-top: var(--lg-space-8);
}

.lg-widget__title {
	font-family: var(--lg-font-mono);
	font-size: var(--lg-text-xs);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lg-muted-fg);
}

.lg-widget ul {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin: var(--lg-space-4) 0 0;
	padding: 0;
	list-style: none;
	font-size: var(--lg-text-sm);
}

.lg-widget a {
	color: color-mix(in srgb, var(--lg-fg) 80%, var(--lg-bg));
	transition: color var(--lg-duration) var(--lg-ease);
}

.lg-widget a:hover {
	color: var(--lg-fg);
}

/* -- Form controls -------------------------------------------------------- */

.lg-field {
	width: 100%;
	height: 2.25rem;
	padding-inline: var(--lg-space-3);
	border: 1px solid var(--lg-border);
	border-radius: var(--lg-radius-md);
	background-color: var(--lg-bg);
	color: var(--lg-fg);
	font-size: var(--lg-text-sm);
	transition: border-color var(--lg-duration) var(--lg-ease);
}

.lg-field:hover {
	border-color: color-mix(in srgb, var(--lg-fg) 25%, var(--lg-border));
}

.lg-search-form {
	display: flex;
	gap: var(--lg-space-2);
	width: 100%;
}

.lg-select {
	appearance: none;
	padding-right: var(--lg-space-8);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right var(--lg-space-2) center;
	background-size: 1rem;
	cursor: pointer;
}

.lg-field--area {
	height: auto;
	padding-block: var(--lg-space-2);
	line-height: var(--lg-leading-normal);
	resize: vertical;
}

/* -- Comments -------------------------------------------------------------- */

.lg-comments {
	margin-top: var(--lg-space-16);
	padding-top: var(--lg-space-10);
	border-top: 1px solid var(--lg-border);
}

.lg-comments__title {
	font-size: var(--lg-text-xl);
}

.lg-comments__list,
.lg-comments__list .children {
	margin: var(--lg-space-8) 0 0;
	padding: 0;
	list-style: none;
}

.lg-comments__list .children {
	margin-left: var(--lg-space-6);
	padding-left: var(--lg-space-5);
	border-left: 1px solid var(--lg-border);
}

.lg-comments__list li + li,
.lg-comments__list .comment + .comment {
	margin-top: var(--lg-space-6);
}

.lg-comments .comment-meta {
	display: flex;
	align-items: center;
	gap: var(--lg-space-2);
	font-size: var(--lg-text-sm);
}

.lg-comments .comment-meta img {
	border-radius: var(--lg-radius-full);
}

.lg-comments .comment-content {
	margin-top: var(--lg-space-2);
	font-size: var(--lg-text-sm);
	line-height: var(--lg-leading-relaxed);
	color: var(--lg-muted-fg);
}

.lg-comments .comment-form p {
	margin-top: var(--lg-space-4);
}

.lg-comments .comment-form label {
	display: block;
	margin-bottom: var(--lg-space-1);
	font-size: var(--lg-text-sm);
	font-weight: 500;
}

.lg-comments__closed {
	margin-top: var(--lg-space-6);
	font-size: var(--lg-text-sm);
	color: var(--lg-muted-fg);
}

/* -- Tabs (billing term switcher) ----------------------------------------- */

.lg-tabs {
	display: inline-flex;
	align-items: center;
	gap: var(--lg-space-1);
	padding: 0.25rem;
	border-radius: var(--lg-radius-lg);
	background-color: var(--lg-muted);
}

.lg-tabs__tab {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.375rem var(--lg-space-3);
	border: 0;
	border-radius: var(--lg-radius-md);
	font-size: var(--lg-text-sm);
	font-weight: 500;
	color: var(--lg-muted-fg);
	white-space: nowrap;
	transition:
		background-color var(--lg-duration) var(--lg-ease),
		color var(--lg-duration) var(--lg-ease);
}

.lg-tabs__tab[aria-selected='true'] {
	background-color: var(--lg-bg);
	color: var(--lg-fg);
	box-shadow: var(--lg-shadow-xs);
}

/* On narrow screens the term switcher scrolls rather than wrapping. */
.lg-tabs-scroller {
	display: flex;
	justify-content: flex-start;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}

.lg-tabs-scroller::-webkit-scrollbar {
	display: none;
}

@media (min-width: 640px) {
	.lg-tabs-scroller {
		justify-content: center;
	}
}
