/**
 * Calumet AI — language toggle styles.
 *
 * Single-CTA "destination language" button. The label is in the language
 * the visitor would be moving TO, which is the convention readers expect
 * from a language switcher.
 *
 * All colors come from CSS custom properties so themes can override:
 *
 *   :root {
 *       --gbi-lt-bg:        #b91c1c;   // brand red, etc.
 *       --gbi-lt-bg-hover:  #991b1b;
 *       --gbi-lt-fg:        #ffffff;
 *       --gbi-lt-chip-bg:   rgba(255,255,255,0.18);
 *   }
 */

:root {
	--gbi-lt-bg:        #0f172a; /* slate-900 */
	--gbi-lt-bg-hover:  #1e293b; /* slate-800 */
	--gbi-lt-fg:        #ffffff;
	--gbi-lt-focus:     #93c5fd;
	--gbi-lt-shadow:    0 4px 14px rgba(15, 23, 42, 0.18);
	--gbi-lt-shadow-hover: 0 8px 22px rgba(15, 23, 42, 0.28);
}

@media (prefers-color-scheme: dark) {
	:root {
		--gbi-lt-bg:        #f8fafc; /* slate-50 */
		--gbi-lt-bg-hover:  #ffffff;
		--gbi-lt-fg:        #0f172a;
		--gbi-lt-focus:     #2563eb;
		--gbi-lt-shadow:    0 4px 14px rgba(0, 0, 0, 0.45);
		--gbi-lt-shadow-hover: 0 8px 22px rgba(0, 0, 0, 0.55);
	}
}

.gbi-lt-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	box-sizing: border-box;
	margin: 0 0 1.25em 0;
	padding: 0.65em 1em 0.65em 0.95em;
	border: 0;
	border-radius: 999px;
	background: var(--gbi-lt-bg);
	color: var(--gbi-lt-fg);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: var(--gbi-lt-shadow);
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
	-webkit-tap-highlight-color: transparent;
}

.gbi-lt-cta:hover {
	background: var(--gbi-lt-bg-hover);
	transform: translateY(-1px);
	box-shadow: var(--gbi-lt-shadow-hover);
}

.gbi-lt-cta:active {
	transform: translateY(0);
	box-shadow: var(--gbi-lt-shadow);
}

.gbi-lt-cta:focus {
	outline: none;
}

.gbi-lt-cta:focus-visible {
	outline: 3px solid var(--gbi-lt-focus);
	outline-offset: 2px;
}

.gbi-lt-cta__icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gbi-lt-cta__icon {
	width: 1.15em;
	height: 1.15em;
	display: block;
	color: inherit;
}

.gbi-lt-cta__label {
	display: inline-block;
}

/* JS toggles `hidden` on labels/panes; force display:none over flex/inline. */
.gbi-lt-cta__label[hidden],
.gbi-lt-pane[hidden],
.gbi-lt-notice[hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------------------
 * AI translation notice ([ai_translation_notice])
 * Shown only when the visitor flips to French.
 * ------------------------------------------------------------------------- */

:root {
	--gbi-lt-notice-bg:     #f1f5f9;          /* slate-100 */
	--gbi-lt-notice-border: #94a3b8;          /* slate-400 */
	--gbi-lt-notice-fg:     #000000;          /* black */
	--gbi-lt-notice-icon:   #000000;          /* black */
}

@media (prefers-color-scheme: dark) {
	:root {
		--gbi-lt-notice-bg:     rgba(148, 163, 184, 0.12);
		--gbi-lt-notice-border: #64748b;
		--gbi-lt-notice-fg:     #000000;
		--gbi-lt-notice-icon:   #000000;
	}
}

.gbi-lt-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.6em;
	box-sizing: border-box;
	margin: 0 0 1.25em 0;
	padding: 0.75em 1em;
	background: var(--gbi-lt-notice-bg);
	border-left: 3px solid var(--gbi-lt-notice-border);
	border-radius: 4px;
	color: #000 !important;
	font-size: 0.9rem;
	font-style: italic;
	line-height: 1.45;
}

.gbi-lt-notice__icon {
	flex: 0 0 auto;
	width: 1.2em;
	height: 1.2em;
	margin-top: 0.1em;
	color: #000 !important;
}

.gbi-lt-notice__text {
	flex: 1 1 auto;
	color: #000 !important;
}

/* Respect reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
	.gbi-lt-cta {
		transition: none;
	}
	.gbi-lt-cta:hover {
		transform: none;
	}
}
