/* ==========================================================================
   AskThai.ai â€” landing theme

   Responsive (mobile-first):
   - Tokens: --layout-*, --space-*, --text-* in :root
   - Breakpoints: <48rem mobile Â· 48â€“63.99rem tablet Â· â‰¥64rem desktop
   - Component layout: prefer @container where modules sit in grids
   - Guide: docs/askthai-theme-responsive-guide.md
   ========================================================================== */

:root {
	--font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--grad-text: linear-gradient(90deg, #38bdf8 0%, #8b5cf6 50%, #ec4899 100%);
	--grad-border: linear-gradient(90deg, #60a5fa 0%, #8b5cf6 50%, #f472b6 100%);
	--grad-eyebrow: linear-gradient(90deg, #38bdf8 0%, #a78bfa 45%, #f472b6 100%);
	--grad-thai: linear-gradient(90deg, #60a5fa 0%, #818cf8 35%, #c084fc 68%, #f472b6 100%);
	--ease: cubic-bezier(0.4, 0, 0.2, 1);

	/* Fluid layout */
	--layout-gutter: clamp(1rem, 2.5vw, 3rem);
	--layout-gutter-sm: clamp(0.75rem, 2vw, 1.5rem);
	/* Width caps only â€” gutters live in padding so nested pads never overflow */
	--layout-max-hero: min(100%, 82.5rem);
	--layout-max-content: min(100%, 67.5rem);
	--layout-max-answer: min(100%, 75rem);

	/* Fluid spacing */
	--space-2xs: clamp(0.375rem, 0.35rem + 0.15vw, 0.5rem);
	--space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
	--space-sm: clamp(0.75rem, 0.65rem + 0.5vw, 1rem);
	--space-md: clamp(1rem, 0.85rem + 0.75vw, 1.5rem);
	--space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
	--space-xl: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
	--space-2xl: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);

	/* Fluid typography */
	--text-xs: clamp(0.6875rem, 0.65rem + 0.15vw, 0.8125rem);
	--text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
	--text-base: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
	--text-md: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	--text-lg: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
	/* Floor keeps long DE words (e.g. fortgeschrittene) wrap on ~320px */
	--text-hero: clamp(1.85rem, 1.1rem + 3.8vw, 6.5rem);
	--text-page-title: clamp(1.75rem, 1.35rem + 2.5vw, 3.5rem);

	/* Header / chrome */
	--header-pad-y: clamp(1.25rem, 1rem + 1.25vw, 2rem);
	--header-pad-x: var(--layout-gutter);
	--brand-icon: clamp(2rem, 1.75rem + 0.75vw, 2.625rem);
	--brand-logo-height: clamp(2.55rem, 2.22rem + 1.08vw, 3.45rem);
	--brand-text: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
	--btn-login-w: clamp(5rem, 4.5rem + 2.5vw, 7rem);
	--btn-login-h: clamp(2.75rem, 2.5rem + 0.75vw, 3.375rem);
	--header-account-size: clamp(2.75rem, 2.5rem + 0.5vw, 3rem);
	/*
	 * Content start below absolute .site-header (pad-top + logo + pad-bottom + gap).
	 * Use for install/app, question tops, auth, pro — never invent a one-off formula.
	 */
	--page-below-header-gap: var(--space-lg);
	--page-header-clearance: calc(
		max(var(--header-pad-y), env(safe-area-inset-top, 0px))
		+ var(--brand-logo-height)
		+ var(--header-pad-y)
		+ var(--page-below-header-gap)
	);

	/* Search */
	--search-height: clamp(3.375rem, 2.75rem + 2.75vw, 5.75rem);
	--search-height-compact: clamp(3.25rem, 3rem + 1vw, 4.5rem);
	/* Desktop/tablet base size. Mobile overrides to 1rem; JS --search-input-fit only <48rem. */
	--search-input: clamp(1.0625rem, 0.95rem + 0.8vw, 1.5625rem);
	--search-icon: clamp(1.25rem, 1.1rem + 0.75vw, 2.125rem);
	--search-action: clamp(2.75rem, 2.25rem + 2vw, 4rem);
	--search-action-inner: clamp(2.5rem, 2.1rem + 1.75vw, 3.5rem);
	--search-field-inset: clamp(0.5rem, 0.4rem + 0.35vw, 0.75rem);
	--search-suggest-radius: clamp(0.875rem, 0.8rem + 0.35vw, 1.125rem);
	--search-suggest-gap: clamp(0.25rem, 0.2rem + 0.2vw, 0.375rem);
	--search-suggest-pad: clamp(0.375rem, 0.32rem + 0.25vw, 0.5rem);

	/* Answer layout */
	--answer-max-width: 75rem;
	--answer-section-radius: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
	--answer-section-gap: clamp(1rem, 0.75rem + 1.25vw, 1.5rem);
	--answer-section-pad: clamp(1.25rem, 1rem + 1.25vw, 2rem);
	--answer-main-pad: clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem);
	--text-thai-breakdown: clamp(2.5rem, 8vw, 4.5rem);
	/* Example-sentence main Thai — fluid with viewport; cqi override scales with card width */
	--text-thai-example-sentence: clamp(1.5rem, 1.05rem + 3.2vw, 2.85rem);
	/* Translation main lead (EN/DE gloss) â€” fluid, visually paired with pronunciation Thai */
	--text-translation-lead: clamp(1.85rem, 1.15rem + 4.5vw, 3.35rem);
	/* Inline Thai embedded in module prose (grammar hints, lexicon short notes, â€¦) â€” one size per module body */
	--text-thai-module-inline: 1.15em;
	--touch-min: 2.75rem;

	/*
	 * Absolute footer overlay geometry (single source of truth).
	 * Mobile stacks 3 links — clearance must grow with --footer-stack-height.
	 */
	--footer-link-count: 5;
	--footer-nav-gap: var(--space-xs);
	--footer-bottom-offset: clamp(1.25rem, 1rem + 1.5vw, 2.125rem);
	/* Desktop/tablet: one horizontal row */
	--footer-stack-height: var(--touch-min);
	--footer-examples-clearance: calc(
		var(--footer-bottom-offset) + var(--footer-stack-height) + env(safe-area-inset-bottom, 0px)
	);

	--answer-glass-bg: rgba(5, 8, 22, 0.56);
	--answer-glass-border: rgba(255, 255, 255, 0.08);
	--answer-text: rgba(255, 255, 255, 0.88);
	--answer-text-muted: rgba(255, 255, 255, 0.52);
	--askthai-marker-male: #38bdf8;
	--askthai-marker-female: #ec4899;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	position: relative;
	margin: 0;
	min-height: 100svh;
	font-family: var(--font);
	font-size: var(--text-base);
	line-height: 1.5;
	color: #ffffff;
	background: #02040d;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding-left: env(safe-area-inset-left, 0);
	padding-right: env(safe-area-inset-right, 0);
}

.site-backdrop {
	--hero-bg-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	isolation: isolate;
	background-color: #02040d;
	background-image:
		radial-gradient(circle at center, rgba(2, 4, 13, 0) 0%, rgba(2, 4, 13, 0.08) 72%, rgba(2, 4, 13, 0.24) 100%),
		linear-gradient(180deg, rgba(2, 4, 13, 0.32) 0%, rgba(2, 4, 13, 0.12) 42%, rgba(2, 4, 13, 0.3) 100%);
}

.site-backdrop::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image: var(--hero-bg-image, none);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	transform: translateZ(0);
	backface-visibility: hidden;
}

.site-backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	opacity: 0.045;
	pointer-events: none;
	background-image: var(--hero-bg-noise);
	background-size: 12.5rem 12.5rem;
	mix-blend-mode: soft-light;
}

.site-main {
	position: relative;
	z-index: 1;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input {
	font: inherit;
	color: inherit;
}

.site-main p:not([class]),
.site-main h1:not([class]) {
	margin: 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-sm);
	padding: max(var(--header-pad-y), env(safe-area-inset-top, 0px)) var(--header-pad-x) var(--header-pad-y);
}

.site-brand {
	display: inline-flex;
	align-items: center;
	gap: var(--space-xs);
	min-width: 0;
	max-width: min(100%, 18rem);
	white-space: nowrap;
	flex: 0 1 auto;
	position: relative;
	z-index: 1;
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s var(--ease);
}

.site-brand:hover {
	opacity: 0.92;
}

.site-brand__icon {
	flex-shrink: 0;
	width: auto;
	height: var(--brand-logo-height);
}

.site-brand__icon svg,
.site-brand__icon img {
	display: block;
	width: auto;
	height: 100%;
	max-width: 100%;
	object-fit: contain;
}

.site-brand__wordmark {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: var(--brand-text);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	color: #ffffff;
}

.site-brand__ai {
	background: var(--grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.btn {
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.btn:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 4px;
	border-radius: 999px;
}

.btn--login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--btn-login-w);
	min-width: var(--btn-login-w);
	height: var(--btn-login-h);
	padding: 1px;
	border-radius: 999px;
	background: var(--grad-border);
	box-shadow:
		0 0 22px rgba(56, 189, 248, 0.28),
		0 0 22px rgba(236, 72, 153, 0.18);
	transition: box-shadow 0.25s var(--ease);
	flex-shrink: 0;
}

.btn--login span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: var(--text-sm);
	font-weight: 500;
	border-radius: 999px;
	background: rgba(6, 10, 24, 0.82);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.btn--login:hover {
	box-shadow:
		0 0 30px rgba(56, 189, 248, 0.42),
		0  0 30px rgba(236, 72, 153, 0.28);
}

.site-header__account {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--header-account-size);
	min-width: var(--header-account-size);
	height: var(--header-account-size);
	padding: 1px;
	border-radius: 999px;
	background: var(--grad-border);
	color: rgba(255, 255, 255, 0.94);
	text-decoration: none;
	box-shadow:
		0 0 24px rgba(56, 189, 248, 0.34),
		0 0 20px rgba(139, 92, 246, 0.24),
		0 4px 14px rgba(0, 0, 0, 0.28);
	transition:
		box-shadow 0.2s var(--ease),
		transform 0.18s var(--ease);
	flex-shrink: 0;
}

.site-header__account-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	border-radius: 999px;
	background: rgba(6, 10, 24, 0.86);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition:
		background-color 0.2s var(--ease),
		color 0.2s var(--ease);
}

.site-header__account-icon {
	display: block;
	flex-shrink: 0;
}

.site-header__account:hover {
	transform: translateY(-1px);
	box-shadow:
		0 0 32px rgba(56, 189, 248, 0.48),
		0 0 26px rgba(139, 92, 246, 0.34),
		0 6px 18px rgba(0, 0, 0, 0.32);
}

.site-header__account:hover .site-header__account-inner {
	background: rgba(12, 18, 38, 0.94);
	color: #fff;
}

.site-header__account:active {
	transform: translateY(0) scale(0.98);
}

.site-header__account:focus-visible {
	outline: 2px solid rgba(56, 189, 248, 0.9);
	outline-offset: 3px;
}

.site-header__account--signed-in .site-header__account-inner {
	background: rgba(8, 14, 32, 0.9);
}

@media (hover: hover) and (pointer: fine) {
	.site-header__account::after {
		content: attr(aria-label);
		position: absolute;
		top: calc(100% + 0.5rem);
		right: 0;
		z-index: 30;
		padding: 0.35rem 0.625rem;
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: 0.4375rem;
		background: rgba(8, 12, 28, 0.96);
		color: rgba(255, 255, 255, 0.92);
		font-size: var(--text-xs);
		font-weight: 500;
		line-height: 1.3;
		white-space: nowrap;
		pointer-events: none;
		opacity: 0;
		transform: translateY(-2px);
		transition:
			opacity 0.18s var(--ease) 0.35s,
			transform 0.18s var(--ease) 0.35s;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
	}

	.site-header__account:hover::after,
	.site-header__account:focus-visible::after {
		opacity: 1;
		transform: translateY(0);
	}
}

.site-header__actions {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--space-sm);
	flex: 0 0 auto;
	min-width: 0;
}

.site-locale-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.site-locale-switch__dropdown {
	position: relative;
}

.site-locale-switch__trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0.4rem 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.5rem;
	background: rgba(6, 10, 24, 0.58);
	color: rgba(255, 255, 255, 0.72);
	cursor: pointer;
	line-height: 1;
	transition:
		border-color 0.2s var(--ease),
		background-color 0.2s var(--ease),
		box-shadow 0.2s var(--ease),
		color 0.2s var(--ease);
}

.site-locale-switch__trigger:hover {
	border-color: rgba(56, 189, 248, 0.35);
	color: #fff;
}

.site-locale-switch__trigger:focus-visible {
	outline: 2px solid rgba(56, 189, 248, 0.85);
	outline-offset: 2px;
}

.site-locale-switch.is-open .site-locale-switch__trigger {
	border-color: rgba(139, 92, 246, 0.45);
	background: rgba(8, 12, 28, 0.88);
	box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
	color: #fff;
}

.site-locale-switch__flag {
	display: block;
	width: 1.375rem;
	height: 0.9375rem;
	border-radius: 0.1875rem;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.site-locale-switch__chevron {
	flex-shrink: 0;
	opacity: 0.62;
	transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.site-locale-switch.is-open .site-locale-switch__chevron {
	transform: rotate(180deg);
	opacity: 0.9;
}

.site-locale-switch__menu {
	position: absolute;
	top: calc(100% + 0.375rem);
	right: 0;
	z-index: 40;
	min-width: 10.5rem;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.625rem;
	background: rgba(5, 8, 22, 0.94);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow:
		0 10px 28px rgba(0, 0, 0, 0.42),
		0 0 0 1px rgba(56, 189, 248, 0.08);
}

.site-locale-switch__menu[hidden] {
	display: none;
}

.site-locale-switch__item {
	margin: 0;
}

.site-locale-switch__option {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	width: 100%;
	padding: 0.5rem 0.625rem;
	border-radius: 0.4375rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--text-sm);
	font-weight: 500;
	text-decoration: none;
	transition:
		background-color 0.2s var(--ease),
		color 0.2s var(--ease);
}

.site-locale-switch__option:hover,
.site-locale-switch__option:focus-visible {
	background: rgba(56, 189, 248, 0.1);
	color: #fff;
	outline: none;
}

.site-locale-switch__option--active {
	background: rgba(139, 92, 246, 0.14);
	color: #fff;
	cursor: default;
}

.site-locale-switch__label {
	flex: 1 1 auto;
}

.site-locale-switch__check {
	flex-shrink: 0;
	color: #38bdf8;
}

/* ==========================================================================
   Search inline notices (quota / off-topic / rate limit)
   ========================================================================== */

@keyframes search-notice-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.search-notice {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: var(--space-sm);
	width: min(100%, var(--layout-max-content));
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin: var(--space-md) 0 0;
	padding: var(--space-sm) var(--space-2xl) var(--space-sm) var(--space-md);
	border-radius: var(--answer-section-radius);
	background: rgba(5, 8, 22, 0.78);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.32),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	animation: search-notice-in 0.4s var(--ease);
}

.search-notice__accent {
	flex-shrink: 0;
	width: 3px;
	border-radius: 999px;
	background: linear-gradient(180deg, #38bdf8, #8b5cf6);
}

.search-notice--off-topic .search-notice__accent {
	background: linear-gradient(180deg, #fbbf24, #f97316);
}

.search-notice--off-topic {
	border-color: rgba(251, 191, 36, 0.22);
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.32),
		0 0 24px rgba(251, 191, 36, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.search-notice--quota .search-notice__accent {
	background: linear-gradient(180deg, #f472b6, #ec4899);
}

.search-notice--quota {
	border-color: rgba(244, 114, 182, 0.28);
}

.search-notice--rate_limited .search-notice__accent {
	background: linear-gradient(180deg, #f87171, #ef4444);
}

.search-notice--rate_limited {
	border-color: rgba(248, 113, 113, 0.28);
}

.search-notice--too_fast .search-notice__accent {
	background: linear-gradient(180deg, #fbbf24, #f97316);
}

.search-notice--too_fast,
.search-notice--duplicate_question {
	border-color: rgba(251, 191, 36, 0.22);
}

.search-notice--duplicate_question .search-notice__accent {
	background: linear-gradient(180deg, #fbbf24, #f97316);
}

.search-notice--invalid_request .search-notice__accent {
	background: linear-gradient(180deg, #f87171, #ef4444);
}

.search-notice--invalid_request {
	border-color: rgba(248, 113, 113, 0.28);
}

.search-notice--command_language_mismatch .search-notice__accent {
	background: linear-gradient(180deg, #38bdf8, #0284c7);
}

.search-notice--command_language_mismatch {
	border-color: rgba(56, 189, 248, 0.35);
}

.search-notice--question_too_long .search-notice__accent {
	background: linear-gradient(180deg, #fbbf24, #f97316);
}

.search-notice--question_too_long {
	border-color: rgba(251, 191, 36, 0.28);
}

.search-notice__body {
	min-width: 0;
	flex: 1;
}

.search-notice__message {
	margin: 0;
	font-size: var(--text-base);
	font-weight: 600;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.94);
	overflow-wrap: anywhere;
}

.search-notice__hint {
	margin: var(--space-2xs) 0 0;
	font-size: var(--text-sm);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.62);
	overflow-wrap: anywhere;
}

.search-notice__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm) var(--space-md);
	margin-top: var(--space-md);
}

.search-notice__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--btn-login-h);
	padding: 0 var(--space-lg);
	border-radius: 999px;
	background: var(--grad-border);
	color: #ffffff;
	font-size: var(--text-base);
	font-weight: 600;
	text-decoration: none;
	box-shadow:
		0 0 24px rgba(236, 72, 153, 0.22),
		0 4px 16px rgba(0, 0, 0, 0.18);
	transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.search-notice__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0 var(--space-xs);
	color: rgba(255, 255, 255, 0.78);
	font-size: var(--text-sm);
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	transition: color 0.2s var(--ease);
}

.search-notice__cta:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.search-notice__link:hover {
	color: #ffffff;
}

.search-notice__dismiss {
	position: absolute;
	top: var(--space-xs);
	right: var(--space-xs);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--touch-min);
	height: var(--touch-min);
	min-width: var(--touch-min);
	min-height: var(--touch-min);
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.72);
	cursor: pointer;
	transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.search-notice__dismiss:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.search-notice__dismiss:focus-visible {
	outline: 2px solid #ec4899;
	outline-offset: 2px;
}

.search-wrap--compact .search-notice {
	width: 100%;
	margin-top: var(--space-sm);
	padding: var(--space-sm) calc(var(--touch-min) + var(--space-sm)) var(--space-sm) var(--space-sm);
	border-radius: clamp(0.875rem, 0.8rem + 0.35vw, 1.125rem);
}

.search-wrap--compact .search-notice__message {
	font-size: var(--text-sm);
}

.search-wrap--compact .search-notice__hint {
	font-size: var(--text-xs);
}

.search-wrap:has(.search-notice) {
	/* Keep notice under the field; do not fight header clearance via hero centering */
	margin-top: var(--space-lg);
}

.search-wrap--compact:has(.search-notice) {
	margin-top: 0;
}

/* Answer outcome notice (blocked / empty main on /q-{slug}/) */
.answer-outcome-notice {
	width: min(100%, var(--layout-content-max, 42rem));
	margin-inline: auto;
}

.answer-card .answer-outcome-notice,
.answer-card--pending .answer-outcome-notice {
	width: 100%;
	margin-inline: 0;
}

.search-notice--blocked .search-notice__accent,
.search-notice--warning .search-notice__accent {
	background: var(--color-warning, #d97706);
}

.search-notice--blocked {
	border-color: color-mix(in srgb, var(--color-warning, #d97706) 35%, transparent);
}

.answer-outcome-notice__admin-detail {
	margin: var(--space-xs, 0.5rem) 0 0;
	font-size: var(--text-sm, 0.875rem);
	color: var(--color-muted, #64748b);
	overflow-wrap: anywhere;
}

.answer-card--pending:not(.answer-card--pending-active) .answer-placeholder {
	display: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* ==========================================================================
   Hero FX v1.15.1 â€” CSS-only, transform + opacity only
   ========================================================================== */

.hero {
	position: relative;
	display: flex;
	/* flex-start + clearance: never center-push eyebrow under absolute .site-header
	   when search notices / popular questions grow the block past 100svh. */
	align-items: flex-start;
	justify-content: center;
	min-height: 100svh;
	isolation: isolate;
	overflow-x: clip;
	overflow-y: visible;
	transition: min-height 0.65s var(--ease);
	background: transparent;
}

.hero::before,
.hero::after {
	content: none;
	display: none;
}

.hero-fx {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.hero-fx__aurora,
.hero-fx__sweep,
.hero-fx__constellation,
.hero-fx__signal {
	position: absolute;
	pointer-events: none;
}

.hero-fx__aurora {
	inset: -14%;
	opacity: 0.5;
	mix-blend-mode: screen;
	background:
		radial-gradient(ellipse 58% 48% at 14% 40%, rgba(56, 189, 248, 0.38) 0%, transparent 70%),
		radial-gradient(ellipse 52% 44% at 86% 34%, rgba(236, 72, 153, 0.32) 0%, transparent 72%),
		radial-gradient(ellipse 64% 52% at 50% 88%, rgba(139, 92, 246, 0.16) 0%, transparent 68%);
	animation: askthai-aurora-drift 20s ease-in-out infinite alternate;
}

.hero-fx__sweep {
	inset: -12% -50%;
	opacity: 0;
	background: linear-gradient(
		108deg,
		transparent 36%,
		rgba(56, 189, 248, 0.06) 42%,
		rgba(129, 140, 248, 0.2) 50%,
		rgba(244, 114, 182, 0.16) 58%,
		rgba(236, 72, 153, 0.05) 64%,
		transparent 72%
	);
	animation: askthai-sweep 13s ease-in-out infinite;
}

.hero-fx__constellation {
	inset: 0;
	opacity: 0.55;
	mix-blend-mode: screen;
}

.hero-fx__constellation::before,
.hero-fx__constellation::after {
	content: "";
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
}

.hero-fx__constellation::before {
	opacity: 0.35;
	background-image:
		radial-gradient(circle 2px at 9% 19%, rgba(255, 255, 255, 0.95) 0%, rgba(186, 230, 253, 0.28) 45%, transparent 72%),
		radial-gradient(circle 2px at 21% 37%, rgba(196, 138, 255, 0.85) 0%, rgba(167, 139, 250, 0.22) 45%, transparent 72%),
		radial-gradient(circle 2px at 35% 77%, rgba(255, 118, 203, 0.8) 0%, rgba(244, 114, 182, 0.2) 45%, transparent 72%),
		radial-gradient(circle 2px at 53% 27%, rgba(186, 230, 253, 0.9) 0%, rgba(96, 165, 250, 0.22) 45%, transparent 72%),
		radial-gradient(circle 2px at 63% 83%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.15) 45%, transparent 72%),
		radial-gradient(circle 2px at 72% 22%, rgba(131, 166, 255, 0.85) 0%, rgba(129, 140, 248, 0.2) 45%, transparent 72%),
		radial-gradient(circle 2px at 86% 42%, rgba(251, 207, 232, 0.8) 0%, rgba(236, 72, 153, 0.18) 45%, transparent 72%),
		radial-gradient(circle 2px at 91% 74%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.12) 45%, transparent 72%);
	animation: askthai-constellation-a 14s ease-in-out infinite alternate;
}

.hero-fx__constellation::after {
	opacity: 0.28;
	background-image:
		radial-gradient(circle 2px at 14% 69%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.15) 45%, transparent 72%),
		radial-gradient(circle 2px at 29% 25%, rgba(118, 180, 255, 0.85) 0%, rgba(56, 189, 248, 0.2) 45%, transparent 72%),
		radial-gradient(circle 2px at 44% 92%, rgba(244, 95, 190, 0.75) 0%, rgba(244, 114, 182, 0.18) 45%, transparent 72%),
		radial-gradient(circle 2px at 67% 58%, rgba(181, 145, 255, 0.8) 0%, rgba(139, 92, 246, 0.18) 45%, transparent 72%),
		radial-gradient(circle 2px at 78% 76%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.12) 45%, transparent 72%),
		radial-gradient(circle 2px at 95% 17%, rgba(89, 135, 255, 0.8) 0%, rgba(96, 165, 250, 0.18) 45%, transparent 72%);
	animation: askthai-constellation-b 18s ease-in-out infinite alternate;
}

.hero-fx__signal {
	height: 4px;
	border-radius: 999px;
	opacity: 0;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(105, 164, 255, 0) 16%,
		rgba(138, 178, 255, 0.55) 42%,
		rgba(255, 137, 218, 0.68) 50%,
		rgba(138, 178, 255, 0.42) 58%,
		transparent 84%
	);
	box-shadow: 0 0 12px 1px rgba(138, 178, 255, 0.22);
	transform-origin: center;
}

.hero-fx__signal--a {
	width: min(44vw, 720px);
	left: 7%;
	top: 67%;
	transform: rotate(-11deg) translate3d(-40%, 0, 0);
	animation: askthai-signal-a 24s linear infinite;
}

.hero-fx__signal--b {
	width: min(34vw, 560px);
	right: 8%;
	top: 37%;
	transform: rotate(-22deg) translate3d(32%, 0, 0);
	animation: askthai-signal-b 24s linear infinite;
	animation-delay: -4s;
}

.hero-fx__signal--c {
	width: min(30vw, 480px);
	left: 42%;
	top: 83%;
	transform: rotate(7deg) translate3d(-22%, 0, 0);
	animation: askthai-signal-c 24s linear infinite;
	animation-delay: -8s;
}

.hero-fx__signal--d {
	width: min(28vw, 440px);
	right: 22%;
	top: 22%;
	transform: rotate(-15deg) translate3d(26%, 0, 0);
	animation: askthai-signal-d 24s linear infinite;
	animation-delay: -12s;
}

.hero-fx__signal--e {
	width: min(36vw, 520px);
	left: 12%;
	top: 48%;
	transform: rotate(-8deg) translate3d(-30%, 0, 0);
	animation: askthai-signal-e 24s linear infinite;
	animation-delay: -16s;
}

.hero-fx__signal--f {
	width: min(32vw, 500px);
	left: 55%;
	top: 58%;
	transform: rotate(12deg) translate3d(20%, 0, 0);
	animation: askthai-signal-f 24s linear infinite;
	animation-delay: -20s;
}

@keyframes askthai-aurora-drift {
	0% {
		opacity: 0.38;
		transform: translate3d(-2.5%, 1.5%, 0) scale(1);
	}

	50% {
		opacity: 0.58;
		transform: translate3d(2.5%, -2%, 0) scale(1.04);
	}

	100% {
		opacity: 0.44;
		transform: translate3d(-1.5%, -2.5%, 0) scale(1.03);
	}
}

@keyframes askthai-sweep {
	0%,
	52%,
	100% {
		opacity: 0;
		transform: translateX(-20%) skewX(-6deg);
	}

	8% {
		opacity: 0.42;
	}

	34% {
		opacity: 0.24;
		transform: translateX(22%) skewX(-6deg);
	}
}

@keyframes askthai-constellation-a {
	0% {
		opacity: 0.22;
		transform: translate3d(0, 0, 0) scale(1);
	}

	100% {
		opacity: 0.55;
		transform: translate3d(0.5%, -0.4%, 0) scale(1.015);
	}
}

@keyframes askthai-constellation-b {
	0% {
		opacity: 0.14;
		transform: translate3d(0, 0, 0) scale(1);
	}

	100% {
		opacity: 0.42;
		transform: translate3d(-0.4%, 0.3%, 0) scale(1.012);
	}
}

/* Sternschnuppen â€” ein Durchlauf pro Zyklus, linear, gestaffelt (nur eine sichtbar) */
@keyframes askthai-signal-a {
	0%,
	12%,
	100% {
		opacity: 0;
		transform: rotate(-11deg) translate3d(-40%, 0, 0);
	}

	3% {
		opacity: 0.62;
	}

	10% {
		opacity: 0;
		transform: rotate(-11deg) translate3d(48%, 0, 0);
	}
}

@keyframes askthai-signal-b {
	0%,
	12%,
	100% {
		opacity: 0;
		transform: rotate(-22deg) translate3d(32%, 0, 0);
	}

	3% {
		opacity: 0.58;
	}

	10% {
		opacity: 0;
		transform: rotate(-22deg) translate3d(-44%, 0, 0);
	}
}

@keyframes askthai-signal-c {
	0%,
	12%,
	100% {
		opacity: 0;
		transform: rotate(7deg) translate3d(-22%, 0, 0);
	}

	3% {
		opacity: 0.54;
	}

	10% {
		opacity: 0;
		transform: rotate(7deg) translate3d(38%, 0, 0);
	}
}

@keyframes askthai-signal-d {
	0%,
	12%,
	100% {
		opacity: 0;
		transform: rotate(-15deg) translate3d(26%, 0, 0);
	}

	3% {
		opacity: 0.56;
	}

	10% {
		opacity: 0;
		transform: rotate(-15deg) translate3d(-38%, 0, 0);
	}
}

@keyframes askthai-signal-e {
	0%,
	12%,
	100% {
		opacity: 0;
		transform: rotate(-8deg) translate3d(-30%, 0, 0);
	}

	3% {
		opacity: 0.55;
	}

	10% {
		opacity: 0;
		transform: rotate(-8deg) translate3d(42%, 0, 0);
	}
}

@keyframes askthai-signal-f {
	0%,
	12%,
	100% {
		opacity: 0;
		transform: rotate(12deg) translate3d(20%, 0, 0);
	}

	3% {
		opacity: 0.52;
	}

	10% {
		opacity: 0;
		transform: rotate(12deg) translate3d(-36%, 0, 0);
	}
}

/* Dezente Einzelsterne â€” kurzes Aufblitzen, gestaffelt */
.hero-stars {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.hero-star {
	position: absolute;
	left: var(--x);
	top: var(--y);
	width: 2.5px;
	height: 2.5px;
	margin: -1.25px 0 0 -1.25px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 0 8px 2px rgba(186, 230, 253, 0.38);
	opacity: 0;
	animation: hero-star-blink 13s ease-in-out var(--delay, 0s) infinite;
}

.hero-star::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(186, 230, 253, 0.1) 45%, transparent 72%);
	opacity: inherit;
	pointer-events: none;
}

.hero-star:nth-child(3n) {
	background: rgba(186, 230, 253, 0.92);
	box-shadow: 0 0 8px 2px rgba(96, 165, 250, 0.32);
}

.hero-star:nth-child(3n + 2) {
	background: rgba(251, 207, 232, 0.88);
	box-shadow: 0 0 8px 2px rgba(244, 114, 182, 0.28);
}

@keyframes hero-star-blink {
	0%,
	78%,
	100% {
		opacity: 0;
		transform: scale(0.65);
	}

	4% {
		opacity: 0.62;
		transform: scale(1);
	}

	11% {
		opacity: 0;
		transform: scale(0.88);
	}
}

.hero__content {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(100%, var(--layout-max-hero));
	max-width: 100%;
	min-width: 0;
	margin: 0 auto;
	text-align: center;
	/* Clear absolute header; optional optical nudge on tall viewports only */
	padding:
		calc(var(--page-header-clearance) + clamp(0rem, 2.5vh, 1.5rem))
		var(--layout-gutter-sm)
		var(--space-2xl);
	box-sizing: border-box;
	transition: padding 0.65s var(--ease);
}

.hero__eyebrow {
	max-width: 100%;
	margin-bottom: var(--space-lg);
	padding-inline: var(--space-xs);
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: clamp(0.12em, 0.08em + 1.2vw, 0.52em);
	text-transform: uppercase;
	overflow-wrap: anywhere;
	background: var(--grad-eyebrow);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow:
		0 0 18px rgba(96, 165, 250, 0.25),
		0 0 24px rgba(236, 72, 153, 0.18);
}

.hero-title {
	width: 100%;
	max-width: min(100%, 57.5rem);
	min-width: 0;
	margin: 0;
	font-size: var(--text-hero);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.045em;
	color: #ffffff;
	text-align: center;
	text-wrap: balance;
	overflow-wrap: anywhere;
	hyphens: auto;
	transition: opacity 0.45s var(--ease), max-height 0.55s var(--ease), margin 0.55s var(--ease);
	max-height: none;
	overflow: visible;
}

.hero-line {
	display: block;
	max-width: 100%;
	padding-bottom: 0.04em;
	overflow-wrap: anywhere;
}

.thai-gradient {
	background: var(--grad-thai);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow:
		0 0 28px rgba(129, 140, 248, 0.18),
		0 0 36px rgba(244, 114, 182, 0.1);
}

/* ==========================================================================
   Search bar
   ========================================================================== */

.search-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 100%;
	margin-top: var(--space-xl);
	padding-inline: var(--layout-gutter-sm);
	transition: margin-top 0.65s var(--ease);
}

.hero__search-zone {
	position: relative;
	width: 100%;
	margin-top: var(--space-xl);
}

.hero__search-zone:has(.hero-examples) {
	padding-bottom: calc(var(--space-lg) + min(15rem, 35vh) + var(--footer-examples-clearance));
}

.hero__search-zone .search-wrap {
	margin-top: 0;
}

.search-bar {
	width: min(100%, var(--layout-max-content));
	margin: 0;
	position: relative;
}

.search-bar__shell {
	position: relative;
	width: 100%;
	border-radius: 999px;
	background: rgba(5, 8, 22, 0.72);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow:
		0 0 68px rgba(96, 165, 250, 0.34),
		0 0 82px rgba(244, 114, 182, 0.28),
		0 20px 56px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transition:
		border-radius 0.2s var(--ease),
		box-shadow 0.3s var(--ease);
}

.search-bar__shell::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: var(--grad-border);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.search-bar__shell:focus-within {
	box-shadow:
		0 0 82px rgba(96, 165, 250, 0.44),
		0 0 96px rgba(244, 114, 182, 0.36),
		0 24px 64px rgba(0, 0, 0, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-bar__shell--open {
	border-radius: var(--search-suggest-radius) var(--search-suggest-radius) 0 0;
	z-index: 2;
}

.search-bar__shell--open:focus-within {
	box-shadow:
		0 0 82px rgba(96, 165, 250, 0.44),
		0 0 96px rgba(244, 114, 182, 0.36),
		0 20px 56px rgba(0, 0, 0, 0.52),
		inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.search-bar__label,
.askthai-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.search-bar__field {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	min-height: var(--search-height);
	padding:
		var(--search-field-inset)
		var(--search-field-inset)
		var(--search-field-inset)
		var(--space-lg);
	border-radius: inherit;
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.search-bar__shell--open .search-bar__field {
	border-radius: calc(var(--search-suggest-radius) - 2px) calc(var(--search-suggest-radius) - 2px) 0 0;
}

.search-bar__icon {
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.88);
}

.search-bar__icon svg {
	width: var(--search-icon);
	height: var(--search-icon);
}

.search-bar__input {
	flex: 1;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0;
	margin-left: var(--space-sm);
	font-size: var(--search-input-fit, var(--search-input));
	font-weight: 400;
	letter-spacing: -0.02em;
	background: transparent;
	border: none;
	outline: none;
	color: #ffffff;
	/* Prefer clipping at the field edge over painting under the submit control. */
	overflow-x: auto;
}

/* Native search chrome steals width and can clip the last glyphs on mobile. */
.search-bar__input::-webkit-search-decoration,
.search-bar__input::-webkit-search-cancel-button,
.search-bar__input::-webkit-search-results-button,
.search-bar__input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.search-bar__input::placeholder {
	color: rgba(255, 255, 255, 0.38);
	font-size: var(--search-input);
}

.search-bar__suggest {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 2;
	margin: 0;
	padding:
		0
		var(--search-suggest-pad)
		var(--search-suggest-pad);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	list-style: none;
	background: rgba(5, 8, 22, 0.72);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 0 0 var(--search-suggest-radius) var(--search-suggest-radius);
	box-shadow:
		0 0 68px rgba(96, 165, 250, 0.34),
		0 0 82px rgba(244, 114, 182, 0.28),
		0 20px 56px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	max-height: min(16rem, 45vh);
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.search-bar__suggest::-webkit-scrollbar {
	width: 0.3125rem;
}

.search-bar__suggest::-webkit-scrollbar-track {
	background: transparent;
}

.search-bar__suggest::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.22);
	border-radius: 999px;
}

body.askthai-search-suggest-open .hero {
	overflow: visible;
}

body.askthai-search-suggest-open .search-bar {
	position: relative;
	z-index: 4;
}

body.askthai-search-suggest-open .hero-examples {
	opacity: 0.38;
	pointer-events: none;
}

body.askthai-search-suggest-open .site-footer {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

body.askthai-search-suggest-open .question-page {
	overflow: visible;
}

body.askthai-search-suggest-open .question-page__top {
	z-index: 10;
}

body.askthai-search-suggest-open .question-page .answer-area {
	pointer-events: none;
}

.search-bar__suggest[hidden] {
	display: none;
}

.search-bar__suggest-item {
	margin: 0;
}

.search-bar__suggest-item + .search-bar__suggest-item {
	margin-top: 0.125rem;
}

.search-bar__suggest-button {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	width: 100%;
	min-height: 2.75rem;
	padding: var(--space-sm) var(--space-md);
	border: none;
	border-radius: clamp(0.5rem, 0.45rem + 0.25vw, 0.65rem);
	background: transparent;
	color: rgba(255, 255, 255, 0.88);
	font: inherit;
	font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1rem);
	line-height: 1.35;
	text-align: start;
	cursor: pointer;
	overflow-wrap: anywhere;
	transition:
		background 0.15s var(--ease),
		color 0.15s var(--ease);
}

.search-bar__suggest-cmd {
	flex-shrink: 0;
	font-weight: 600;
	letter-spacing: -0.01em;
	background: var(--grad-thai);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.search-bar__suggest-button:hover,
.search-bar__suggest-button:focus-visible,
.search-bar__suggest-button[aria-selected='true'] {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	outline: none;
}

@media (max-width: 47.99rem) {
	.search-bar__suggest-button {
		min-height: 2.625rem;
		padding-inline: var(--space-sm);
	}
}

.search-bar__action {
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	min-width: max(var(--search-action), calc(var(--search-action-inner) + 1.25rem));
	margin-inline-start: clamp(0.25rem, 0.15rem + 0.35vw, 0.5rem);
}

.search-bar__divider {
	flex-shrink: 0;
	width: 1px;
	height: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	background: rgba(255, 255, 255, 0.1);
}

.search-bar__action .search-bar__divider {
	position: absolute;
	left: 0;
	top: 50%;
	margin: 0;
	transform: translateY(-50%);
}

.search-bar__submit {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--search-action-inner);
	height: var(--search-action-inner);
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	cursor: pointer;
	box-shadow:
		inset 0 0 20px rgba(255, 255, 255, 0.04),
		0 0 0 1px rgba(255, 255, 255, 0.06);
	transition:
		background 0.2s var(--ease),
		box-shadow 0.2s var(--ease),
		opacity 0.2s var(--ease),
		transform 0.15s var(--ease);
}

.search-bar__submit svg {
	display: block;
	flex-shrink: 0;
	width: calc(var(--search-action-inner) * 0.42);
	height: calc(var(--search-action-inner) * 0.42);
}

.search-bar__submit:not(:disabled):hover {
	background: rgba(255, 255, 255, 0.12);
	box-shadow:
		inset 0 0 24px rgba(255, 255, 255, 0.08),
		0 0 28px rgba(96, 165, 250, 0.22),
		0 0 32px rgba(236, 72, 153, 0.18);
}

.search-bar__submit:not(:disabled):active {
	transform: scale(0.96);
}

.search-bar__submit:disabled {
	opacity: 0.34;
	cursor: default;
}

.search-bar__submit:focus-visible {
	outline: 2px solid #ec4899;
	outline-offset: 2px;
}

/* Motion Test Start â€” remove this block + `askthai-motion-test` class to revert */
.askthai-motion-test:not(.search-wrap--compact) .search-bar__shell::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: var(--grad-border);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	box-shadow:
		0 0 0.625rem rgba(96, 165, 250, 0.14),
		0 0 1.125rem rgba(139, 92, 246, 0.1),
		0 0 1.625rem rgba(244, 114, 182, 0.06);
	pointer-events: none;
	z-index: 1;
	opacity: 0;
	animation: askthai-motion-border-breathe 12s ease-in-out infinite;
	will-change: opacity;
}

@keyframes askthai-motion-border-breathe {
	0%,
	100% {
		opacity: 0;
	}

	50% {
		opacity: 0.58;
	}
}

@media (prefers-reduced-motion: reduce) {
	.askthai-motion-test:not(.search-wrap--compact) .search-bar__shell::after {
		animation: none;
		opacity: 0;
	}
}
/* Motion Test End */

/* ==========================================================================
   Hero examples
   ========================================================================== */

.hero-examples {
	margin-top: var(--space-lg);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-md);
	width: 100%;
	max-width: 100%;
	min-width: 0;
	transition:
		opacity 0.35s var(--ease),
		visibility 0.35s var(--ease);
	overflow: visible;
}

.hero__search-zone .hero-examples {
	position: absolute;
	left: 0;
	right: 0;
	bottom: var(--footer-examples-clearance);
	margin-top: 0;
	padding-inline: var(--layout-gutter-sm);
	box-sizing: border-box;
}

.hero-examples-label {
	max-width: 100%;
	padding-inline: var(--space-xs);
	font-size: var(--text-xs);
	letter-spacing: clamp(0.12em, 0.08em + 0.9vw, 0.34em);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.42);
	overflow-wrap: anywhere;
	text-align: center;
}

.hero-example-list {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--space-sm);
	width: 100%;
	max-width: min(100%, 61.25rem);
	padding-inline: 0;
	box-sizing: border-box;
}

.hero-example-list button {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.13);
	background: rgba(5, 8, 22, 0.38);
	color: rgba(255, 255, 255, 0.72);
	border-radius: 999px;
	padding: var(--space-sm) var(--space-md);
	max-width: 100%;
	min-height: var(--touch-min);
	font: inherit;
	font-size: var(--text-sm);
	line-height: 1.2;
	cursor: pointer;
	overflow-wrap: anywhere;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-example-list button:hover,
.hero-example-list button:focus-visible {
	border-color: rgba(244, 114, 182, 0.42);
	background: rgba(15, 23, 42, 0.58);
	color: rgba(255, 255, 255, 0.94);
	transform: translateY(-1px);
}

/* ==========================================================================
   Answer pages (/q-{slug}/)
   ========================================================================== */

.question-page {
	position: relative;
	min-height: 100svh;
	isolation: isolate;
	overflow-x: clip;
	overflow-y: visible;
	pointer-events: none;
	background: transparent;
}

.question-page > * {
	pointer-events: auto;
}

.askthai-client-nav-root {
	position: relative;
	isolation: isolate;
	width: min(100%, var(--layout-max-answer));
	margin-inline: auto;
	padding: var(--space-md) var(--layout-gutter-sm) var(--space-xl);
}

.askthai-client-nav-root[hidden] {
	display: none !important;
}

.hero[hidden] {
	display: none !important;
}

.question-page__top,
.question-page .answer-area {
	position: relative;
	z-index: 2;
}

.question-page__top {
	padding: var(--page-header-clearance) var(--layout-gutter-sm) 0;
	margin-bottom: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

.search-wrap--compact {
	margin-top: 0;
	width: 100%;
	padding-inline: 0;
}

.search-wrap--compact .search-bar {
	width: min(100%, var(--layout-max-answer));
	margin-inline: auto;
}

.search-wrap--compact .search-bar__field {
	min-height: var(--search-height-compact);
}

/* Answer pages: grow the shell with suggest in-flow (no overlay on title). */
.search-wrap--compact .search-bar__shell--open {
	display: flex;
	flex-direction: column;
	border-radius: var(--search-suggest-radius);
	overflow: hidden;
}

.search-wrap--compact .search-bar__shell--open .search-bar__suggest {
	position: static;
	flex: 0 0 auto;
	background: transparent;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.question-page .answer-container {
	padding-top: 0;
}

.question-page--content-only .answer-container {
	padding-top: var(--page-header-clearance);
}

/* Contact page â€” protected email + CMS address */
.question-page--contact .answer-card--contact {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--answer-section-gap);
}

.question-page--contact .answer-card--contact > .answer-section {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
}

.contact-page__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

.contact-page__email {
	display: flex;
	justify-content: center;
	width: 100%;
}

.contact-page__address {
	width: 100%;
	max-width: min(100%, 42rem);
	margin: 0;
	text-align: center;
	color: var(--answer-text-muted);
	font-size: var(--text-md);
	line-height: 1.65;
}

.contact-page__address p {
	margin: 0;
	text-wrap: pretty;
	overflow-wrap: anywhere;
}

.contact-email {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	min-height: var(--touch-min);
	padding: clamp(0.875rem, 0.65rem + 1vw, 1.375rem) clamp(1rem, 0.75rem + 1.5vw, 2rem);
	border: 1px solid var(--answer-glass-border);
	border-radius: var(--answer-section-radius);
	background: var(--answer-glass-bg);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow:
		0 0 28px rgba(96, 165, 250, 0.12),
		0 0 34px rgba(244, 114, 182, 0.08),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition:
		border-color 0.2s var(--ease),
		box-shadow 0.2s var(--ease),
		transform 0.2s var(--ease);
}

.contact-email__text {
	display: inline;
	max-width: 100%;
	font-size: clamp(1.35rem, 0.95rem + 2.75vw, 2.875rem);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -0.025em;
	text-align: center;
	background: var(--grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	overflow-wrap: anywhere;
	word-break: break-word;
	text-wrap: pretty;
}

.contact-email__sep {
	display: inline;
}

.contact-email:hover,
.contact-email:focus-visible {
	border-color: rgba(56, 189, 248, 0.38);
	box-shadow:
		0 0 32px rgba(56, 189, 248, 0.16),
		0 0 40px rgba(244, 114, 182, 0.1),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-email:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 3px;
}

@media (max-width: 47.99rem) {
	.contact-page__address {
		font-size: var(--text-sm);
		line-height: 1.7;
		padding-inline: var(--layout-gutter-sm);
	}

	.contact-email {
		width: min(100%, 100%);
		padding-inline: clamp(0.75rem, 0.5rem + 2vw, 1.25rem);
	}

	.contact-email__text {
		font-size: clamp(1.125rem, 0.85rem + 2.5vw, 1.875rem);
		line-height: 1.35;
	}
}

/* Tutorial / Anleitung â€” search-command help */
.question-page--tutorial .answer-card--tutorial {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--answer-section-gap);
}

.question-page--tutorial .answer-card--tutorial > .answer-section {
	grid-column: 1 / -1;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.question-page--tutorial .answer-section {
	overflow-x: clip;
	overflow-y: visible;
}

.question-page--tutorial .answer-main {
	padding: clamp(0.85rem, 0.7rem + 0.85vw, var(--answer-main-pad, 1.5rem));
}

.tutorial-page,
.tutorial-page__body,
.tutorial-page__block,
.tutorial-page__intro,
.tutorial-command-grid,
.tutorial-command-card {
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.tutorial-page__body {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
	width: 100%;
}

.tutorial-page__intro {
	display: flow-root;
	width: 100%;
	min-width: 0;
}

.tutorial-page__lead {
	margin: 0 0 0.75em;
	font-size: clamp(1.2rem, 1.05rem + 0.9vw, 1.85rem);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: #fff;
	text-wrap: pretty;
	overflow-wrap: anywhere;
}

.tutorial-page__block {
	display: flex;
	flex-direction: column;
	gap: clamp(0.65rem, 0.55rem + 0.45vw, 0.95rem);
	width: 100%;
	padding: clamp(0.85rem, 0.7rem + 0.75vw, 1.35rem);
	border: 1px solid var(--answer-glass-border);
	border-radius: var(--answer-section-radius);
	background:
		linear-gradient(155deg, rgba(8, 12, 28, 0.72), rgba(5, 8, 22, 0.58));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.04),
		0 12px 32px rgba(2, 6, 23, 0.22);
}

.tutorial-page__block--commands {
	position: relative;
	container-type: inline-size;
	container-name: tutorial-commands;
	overflow: visible;
}

.tutorial-page__block--commands::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(244, 114, 182, 0.16));
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.tutorial-page__heading {
	margin: 0;
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
	font-weight: 700;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.98);
	text-wrap: pretty;
	overflow-wrap: anywhere;
}

.tutorial-page__text {
	margin: 0;
	color: var(--answer-text-muted);
	font-size: clamp(var(--text-sm), 0.9rem + 0.35vw, var(--text-md));
	line-height: 1.65;
	text-wrap: pretty;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.tutorial-page__text--muted {
	font-size: var(--text-sm);
	color: rgba(148, 163, 184, 0.92);
}

.tutorial-page__examples {
	display: flex;
	flex-direction: column;
	gap: clamp(0.45rem, 0.4rem + 0.25vw, 0.65rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.tutorial-page__examples li {
	position: relative;
	margin: 0;
	padding: clamp(0.65rem, 0.55rem + 0.45vw, 0.85rem) clamp(0.75rem, 0.65rem + 0.5vw, 1.1rem);
	padding-inline-start: clamp(1.65rem, 1.45rem + 0.65vw, 2.1rem);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: clamp(0.65rem, 0.6rem + 0.25vw, 0.8rem);
	background: rgba(3, 7, 18, 0.38);
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(var(--text-sm), 0.9rem + 0.35vw, var(--text-md));
	line-height: 1.55;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.tutorial-page__examples li::before {
	content: '';
	position: absolute;
	inset-block: 50% auto;
	inset-inline-start: clamp(0.7rem, 0.6rem + 0.35vw, 0.95rem);
	width: 0.4rem;
	height: 0.4rem;
	border-radius: 50%;
	background: linear-gradient(135deg, #38bdf8, #ec4899);
	transform: translateY(-50%);
}

.tutorial-page__hint {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs) var(--space-sm);
	margin: 0;
	max-width: 100%;
}

.tutorial-page__hint-label {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	min-height: 1.75rem;
	padding: 0 var(--space-xs);
	border-radius: 999px;
	background: rgba(56, 189, 248, 0.12);
	color: #7dd3fc;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tutorial-page__format {
	display: block;
	width: fit-content;
	max-width: 100%;
	padding: 0.35em 0.65em;
	border: 1px solid rgba(56, 189, 248, 0.28);
	border-radius: 0.5rem;
	background: rgba(2, 6, 23, 0.55);
	color: #e2e8f0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: var(--text-sm);
	line-height: 1.45;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.tutorial-command-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(0.75rem, 0.65rem + 0.5vw, 1rem);
	margin: clamp(0.35rem, 0.25rem + 0.35vw, 0.65rem) 0 0;
	padding: 0;
	list-style: none;
}

@container tutorial-commands (min-width: 30rem) {
	.tutorial-command-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@container tutorial-commands (min-width: 48rem) {
	.tutorial-command-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tutorial-command-card {
	display: flex;
	flex-direction: column;
	gap: clamp(0.55rem, 0.45rem + 0.35vw, 0.75rem);
	min-width: 0;
	width: 100%;
	margin: 0;
	padding: clamp(0.75rem, 0.65rem + 0.45vw, 1.05rem);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: clamp(0.75rem, 0.7rem + 0.25vw, 0.9rem);
	background:
		linear-gradient(160deg, rgba(15, 23, 42, 0.62), rgba(8, 12, 28, 0.78));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	transition:
		border-color 0.22s ease,
		box-shadow 0.22s ease;
}

.tutorial-command-card:hover,
.tutorial-command-card:focus-within {
	border-color: rgba(56, 189, 248, 0.28);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.05),
		0 10px 24px rgba(2, 6, 23, 0.28);
}

.tutorial-command-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--space-xs) var(--space-sm);
	min-width: 0;
	width: 100%;
}

.tutorial-command-card__index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 1.75rem;
	height: 1.75rem;
	border-radius: 999px;
	background: rgba(56, 189, 248, 0.14);
	color: #7dd3fc;
	font-size: var(--text-xs);
	font-weight: 700;
	line-height: 1;
}

.tutorial-command-card__title {
	margin: 0;
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	font-size: clamp(var(--text-sm), 0.9rem + 0.35vw, var(--text-md));
	font-weight: 700;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.96);
	text-wrap: pretty;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.tutorial-command-card__sample {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-2xs) var(--space-xs);
	margin: 0;
	width: 100%;
	min-width: 0;
	padding: clamp(0.55rem, 0.45rem + 0.35vw, 0.7rem);
	border-radius: clamp(0.55rem, 0.5rem + 0.2vw, 0.65rem);
	background: rgba(2, 6, 23, 0.48);
}

.tutorial-command-card__prefix {
	display: inline-block;
	flex: 0 0 auto;
	width: fit-content;
	max-width: 100%;
	padding: 0.12em 0.4em;
	border-radius: 0.35rem;
	background: rgba(139, 92, 246, 0.2);
	color: #c4b5fd;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 1.45;
	white-space: nowrap;
}

.tutorial-command-card__payload {
	display: inline;
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	color: rgba(226, 232, 240, 0.95);
	font-size: var(--text-sm);
	line-height: 1.55;
	overflow-wrap: anywhere;
	word-break: normal;
}

.tutorial-command-card__meta {
	display: flex;
	flex-direction: column;
	gap: clamp(0.45rem, 0.4rem + 0.2vw, 0.6rem);
	margin: 0;
	width: 100%;
	min-width: 0;
}

.tutorial-command-card__row {
	display: grid;
	/* max-content: DE „Anwendung“ must not shrink (minmax(0, …) caused ANWENDUN/G) */
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 0.2rem var(--space-sm);
	align-items: start;
	min-width: 0;
}

.tutorial-command-card__row dt {
	margin: 0;
	color: rgba(148, 163, 184, 0.95);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.tutorial-command-card__row dd {
	margin: 0;
	min-width: 0;
	color: rgba(226, 232, 240, 0.9);
	font-size: var(--text-sm);
	line-height: 1.55;
	text-wrap: pretty;
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (max-width: 47.99rem) {
	.question-page--tutorial .answer-container {
		padding-inline: max(var(--layout-gutter-sm), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.tutorial-command-card {
		transition: none;
	}
}

/* Contact page â€” WordPress comments module */
.contact-comments {
	width: 100%;
	min-width: 0;
}

.contact-comments__body {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
	width: 100%;
	min-width: 0;
}

.contact-comments__headline {
	margin: 0;
	width: 100%;
	max-width: none;
	font-size: clamp(1.375rem, 1.05rem + 1.75vw, 2rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: #ffffff;
	text-wrap: pretty;
}

.contact-comments__area {
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 0.85rem + 0.75vw, 1.5rem);
	width: 100%;
	min-width: 0;
}

.contact-comments__list {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.contact-comments__list .comment {
	margin: 0;
	padding: clamp(0.875rem, 0.75rem + 0.5vw, 1.125rem);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
	background: rgba(3, 7, 18, 0.42);
}

.contact-comments__list .comment-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
}

.contact-comments__list .comment-meta {
	font-size: var(--text-sm);
	color: var(--answer-text-muted);
	line-height: 1.45;
}

.contact-comments__list .comment-meta .comment-author {
	color: rgba(255, 255, 255, 0.92);
	font-weight: 600;
}

.contact-comments__list .comment-content {
	color: rgba(255, 255, 255, 0.9);
	font-size: var(--text-base);
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.contact-comments__list .comment-content p {
	margin: 0;
}

.contact-comments__list .comment-reply-link {
	display: inline-flex;
	align-items: center;
	min-height: var(--touch-min);
	margin-top: var(--space-xs);
	color: #7dd3fc;
	font-size: var(--text-sm);
	font-weight: 500;
	text-decoration: none;
}

.contact-comments__list .comment-reply-link:hover,
.contact-comments__list .comment-reply-link:focus-visible {
	color: #bae6fd;
	text-decoration: underline;
}

.contact-comments__closed {
	margin: 0;
	color: var(--answer-text-muted);
	font-size: var(--text-sm);
}

.contact-comments__form {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	margin: 0;
}

.contact-comments__form .logged-in-as,
.contact-comments__form .comment-notes,
.contact-comments__form .must-log-in {
	margin: 0;
	color: var(--answer-text-muted);
	font-size: var(--text-sm);
	line-height: 1.55;
}

.contact-comments__form .logged-in-as a,
.contact-comments__form .must-log-in a {
	color: #7dd3fc;
}

.contact-comments__field,
.contact-comments__form .comment-form-author,
.contact-comments__form .comment-form-email,
.contact-comments__form .comment-form-url {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	margin: 0;
}

.contact-comments__field label,
.contact-comments__form .comment-form-author label,
.contact-comments__form .comment-form-email label,
.contact-comments__form .comment-form-url label {
	font-size: var(--text-sm);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.84);
}

.contact-comments__field textarea,
.contact-comments__form .comment-form-author input,
.contact-comments__form .comment-form-email input,
.contact-comments__form .comment-form-url input {
	width: 100%;
	min-height: var(--auth-input-min-h, 2.75rem);
	padding: 0.8125rem 1rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(3, 7, 18, 0.74);
	color: rgba(255, 255, 255, 0.96);
	font: inherit;
	line-height: 1.4;
	resize: vertical;
	transition:
		border-color 0.2s var(--ease),
		box-shadow 0.2s var(--ease),
		background 0.2s var(--ease);
}

.contact-comments__field textarea {
	min-height: clamp(7rem, 6rem + 3vw, 9rem);
}

.contact-comments__field textarea:focus,
.contact-comments__form .comment-form-author input:focus,
.contact-comments__form .comment-form-email input:focus,
.contact-comments__form .comment-form-url input:focus {
	outline: none;
	border-color: rgba(56, 189, 248, 0.58);
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
	background: rgba(3, 7, 18, 0.9);
}

.contact-comments__submit-wrap {
	margin: 0;
}

.contact-comments__submit.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: min(100%, 12rem);
	min-height: var(--touch-min);
	padding: 1px;
	border-radius: 999px;
	background: var(--grad-border);
	box-shadow:
		0 0 22px rgba(56, 189, 248, 0.28),
		0 0 22px rgba(236, 72, 153, 0.18);
}

.contact-comments__submit.btn span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: calc(var(--touch-min) - 2px);
	padding-inline: clamp(1.25rem, 1rem + 1vw, 1.75rem);
	border-radius: 999px;
	background: rgba(3, 7, 18, 0.92);
	color: #ffffff;
	font-size: var(--text-sm);
	font-weight: 600;
}

.contact-comments__submit.btn:hover span,
.contact-comments__submit.btn:focus-visible span {
	background: rgba(15, 23, 42, 0.96);
}

.contact-comments__cancel #cancel-comment-reply-link {
	color: #7dd3fc;
	font-size: var(--text-sm);
}

.comment-navigation {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	justify-content: space-between;
}

.comment-navigation a {
	color: #7dd3fc;
	font-size: var(--text-sm);
	text-decoration: none;
}

.comment-navigation a:hover,
.comment-navigation a:focus-visible {
	text-decoration: underline;
}

@media (max-width: 47.99rem) {
	.contact-comments__headline {
		font-size: clamp(1.25rem, 1rem + 1.5vw, 1.625rem);
	}

	.contact-comments__submit.btn {
		width: 100%;
	}

	.contact-comments__form .comment-form-author,
	.contact-comments__form .comment-form-email,
	.contact-comments__form .comment-form-url {
		width: 100%;
	}
}

@media (min-width: 48rem) {
	.contact-comments__form:has(.comment-form-author):has(.comment-form-email) {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-md);
		align-items: start;
	}

	.contact-comments__form:has(.comment-form-author):has(.comment-form-email) .comment-form-comment,
	.contact-comments__form:has(.comment-form-author):has(.comment-form-email) .comment-form-url,
	.contact-comments__form:has(.comment-form-author):has(.comment-form-email) .contact-comments__submit-wrap,
	.contact-comments__form:has(.comment-form-author):has(.comment-form-email) .logged-in-as,
	.contact-comments__form:has(.comment-form-author):has(.comment-form-email) .comment-notes,
	.contact-comments__form:has(.comment-form-author):has(.comment-form-email) .must-log-in {
		grid-column: 1 / -1;
	}
}

.question-page__head {
	margin-bottom: clamp(1rem, 0.75rem + 1.25vw, 1.75rem);
}

.question-page__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: clamp(0.75rem, 0.55rem + 0.85vw, 1.25rem);
}

/*
 * Title + type badge share one row on wide viewports.
 * Use min-width (not flex-basis rem) so a column stack on narrow screens
 * does not treat 12rem as a forced main-axis height (~192px empty gap).
 */
.question-page__title {
	flex: 1 1 auto;
	min-width: min(100%, 12rem);
	margin: 0;
	max-width: none;
	font-size: var(--text-page-title);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.04em;
	color: #ffffff;
	text-wrap: pretty;
}

.question-page__type-badge {
	flex: 0 0 auto;
	align-self: flex-start;
	margin-top: 0.2em;
	padding: 0.4em 0.85em;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(5, 8, 22, 0.42);
	font-size: var(--text-xs);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.58);
	white-space: nowrap;
}

@media (max-width: 47.99rem) {
	.question-page__top {
		margin-bottom: clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
		padding-inline: max(1rem, var(--layout-gutter-sm));
	}

	.question-page__title-row {
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
	}

	.question-page__title {
		flex: 0 1 auto;
		width: 100%;
		min-width: 0;
	}

	.question-page__type-badge {
		margin-top: 0;
		white-space: normal;
		letter-spacing: 0.18em;
	}
}

.related-questions {
	display: flex;
	flex-flow: row wrap;
	align-items: flex-start;
	gap: var(--space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
	max-width: 100%;
}

.related-questions__item {
	display: flex;
	max-width: 100%;
}

.related-questions__link {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	max-width: 100%;
	min-height: var(--touch-min);
	min-width: 0;
	flex: 0 1 auto;
	padding: var(--space-sm) var(--space-md);
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	background: rgba(5, 8, 22, 0.38);
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--text-sm);
	line-height: 1.35;
	text-decoration: none;
	overflow-wrap: anywhere;
	word-break: break-word;
	box-sizing: border-box;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.related-questions__link:hover,
.related-questions__link:focus-visible {
	border-color: rgba(244, 114, 182, 0.42);
	background: rgba(15, 23, 42, 0.58);
	color: rgba(255, 255, 255, 0.96);
	transform: translateY(-1px);
}

.follow-up-bridge {
	grid-column: 1 / -1;
	position: relative;
	margin: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem) 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.follow-up-bridge__shell {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.follow-up-bridge__inner {
	position: relative;
	overflow: visible;
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: clamp(1.375rem, 1.1rem + 0.6vw, 2.125rem) clamp(1.25rem, 1rem + 0.8vw, 2.625rem) clamp(1.5rem, 1.2rem + 0.65vw, 2.375rem);
	border: 1px solid rgba(128, 145, 255, 0.3);
	border-radius: clamp(1rem, 0.9rem + 0.4vw, 1.5rem);
	background: linear-gradient(
		135deg,
		rgba(9, 18, 40, 0.96) 0%,
		rgba(15, 19, 45, 0.95) 52%,
		rgba(30, 15, 40, 0.95) 100%
	);
	box-shadow:
		0 22px 60px rgba(0, 0, 0, 0.34),
		0 0 32px rgba(96, 82, 255, 0.08);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.follow-up-bridge__inner:has(> .gradus-module-feedback__trigger) {
	padding-right: clamp(3.25rem, 2.75rem + 1.25vw, 4.25rem);
}

.follow-up-bridge__inner::before {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(
		90deg,
		rgba(101, 114, 245, 0.55) 0%,
		rgba(130, 89, 244, 0.45) 48%,
		rgba(236, 72, 153, 0.28) 100%
	);
	pointer-events: none;
}

.follow-up-bridge__eyebrow {
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin-bottom: clamp(1.35rem, 1.1rem + 0.5vw, 1.75rem);
	min-width: 0;
}

.follow-up-bridge__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: var(--touch-min);
	height: var(--touch-min);
	border: 1px solid rgba(128, 145, 255, 0.22);
	border-radius: 0.8125rem;
	background: rgba(8, 14, 32, 0.72);
	color: rgba(199, 210, 254, 0.94);
}

.follow-up-bridge__label {
	min-width: 0;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: clamp(0.1em, 0.08em + 0.4vw, 0.22em);
	text-transform: uppercase;
	overflow-wrap: anywhere;
	background: linear-gradient(135deg, #818cf8 0%, #a78bfa 55%, #c4b5fd 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.follow-up-bridge__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: clamp(2rem, 4vw, 4.5rem);
}

.follow-up-bridge__question {
	min-width: 0;
	max-width: min(100%, 56.25rem);
	margin: 0;
	font-size: clamp(1.65rem, 2.2vw, 2.45rem);
	font-weight: 620;
	line-height: 1.22;
	letter-spacing: -0.015em;
	color: rgba(248, 250, 255, 0.96);
}

.follow-up-bridge__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs);
	min-height: var(--touch-min);
	min-width: 0;
	max-width: 100%;
	padding: 0 var(--space-md);
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #6572f5 0%, #8259f4 55%, #9257e9 100%);
	color: #fff;
	font-size: clamp(0.98rem, 0.92rem + 0.15vw, 1.05rem);
	font-weight: 600;
	line-height: 1.2;
	white-space: normal;
	text-align: center;
	overflow-wrap: anywhere;
	cursor: pointer;
	flex-shrink: 0;
	box-shadow: 0 10px 28px rgba(101, 114, 245, 0.28);
	transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.follow-up-bridge__cta:hover,
.follow-up-bridge__cta:focus-visible {
	filter: brightness(1.06);
	box-shadow: 0 14px 34px rgba(101, 114, 245, 0.36);
	transform: translateY(-1px);
	outline: 2px solid rgba(255, 255, 255, 0.88);
	outline-offset: 3px;
}

.follow-up-bridge__cta:active {
	transform: translateY(0);
	filter: brightness(0.98);
}

.follow-up-bridge__cta[disabled] {
	opacity: 0.72;
	cursor: wait;
	filter: none;
	transform: none;
	box-shadow: none;
}

.follow-up-bridge__cta-icon {
	display: inline-flex;
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}

.follow-up-bridge__cta:hover .follow-up-bridge__cta-icon,
.follow-up-bridge__cta:focus-visible .follow-up-bridge__cta-icon {
	transform: translateX(2px);
}

.follow-up-bridge__error {
	margin: 0.85rem 0 0;
	color: #fecaca;
	font-size: var(--text-sm);
}

.follow-up-bridge__loading {
	max-width: 36rem;
}

.follow-up-bridge__admin-toolbar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	margin-top: 14px;
}

.follow-up-bridge__admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.follow-up-bridge__admin-adopt,
.follow-up-bridge__admin-regenerate {
	min-height: 42px;
	padding: 0.4rem 0.9rem;
	border-radius: 10px;
	border: 1px solid rgba(128, 145, 255, 0.22);
	background: rgba(9, 18, 40, 0.42);
	color: rgba(248, 250, 255, 0.78);
	font-size: 0.82rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.follow-up-bridge__admin-adopt:hover,
.follow-up-bridge__admin-adopt:focus-visible,
.follow-up-bridge__admin-regenerate:hover,
.follow-up-bridge__admin-regenerate:focus-visible {
	border-color: rgba(167, 180, 255, 0.42);
	background: rgba(15, 23, 42, 0.58);
	color: rgba(255, 255, 255, 0.94);
	outline: 2px solid rgba(255, 255, 255, 0.45);
	outline-offset: 2px;
}

.follow-up-bridge__admin-adopt[disabled],
.follow-up-bridge__admin-regenerate[disabled] {
	opacity: 0.55;
	cursor: wait;
}

.follow-up-bridge__admin-status {
	margin: 0;
	font-size: 0.82rem;
	color: rgba(167, 243, 208, 0.95);
}

.follow-up-bridge__admin-status a {
	color: inherit;
}

.answer-pronunciation-audio__admin-toolbar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(0.35rem, 1.2vw, 0.45rem);
	margin-top: clamp(0.5rem, 1.5vw, 0.75rem);
	width: 100%;
}

.answer-pronunciation-audio__admin-vip {
	min-height: 2.75rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(219, 166, 23, 0.45);
	background: rgba(252, 240, 207, 0.12);
	color: rgba(248, 250, 255, 0.88);
	font-size: clamp(0.72rem, 1.8vw, 0.82rem);
	font-weight: 700;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.answer-pronunciation-audio__admin-vip.is-active,
.answer-pronunciation-audio--vip .answer-pronunciation-audio__admin-vip {
	border-color: rgba(219, 166, 23, 0.85);
	background: rgba(252, 240, 207, 0.28);
	color: #f8e7b6;
}

.answer-pronunciation-audio__admin-vip:hover,
.answer-pronunciation-audio__admin-vip:focus-visible {
	border-color: rgba(219, 166, 23, 0.95);
	background: rgba(252, 240, 207, 0.34);
	color: #fff6df;
}

.answer-pronunciation-audio__admin-vip[disabled] {
	opacity: 0.55;
	cursor: wait;
}

.answer-pronunciation-audio__admin-status {
	margin: 0;
	font-size: clamp(0.72rem, 1.8vw, 0.82rem);
	color: rgba(248, 250, 255, 0.72);
}

@media (max-width: 47.99rem) {
	.follow-up-bridge__inner {
		padding: var(--space-lg) var(--space-md) var(--space-md);
	}

	.follow-up-bridge__inner:has(> .gradus-module-feedback__trigger) {
		padding-right: calc(var(--touch-min) + var(--space-md));
		padding-top: calc(var(--touch-min) + var(--space-xs));
	}

	.follow-up-bridge__main {
		grid-template-columns: minmax(0, 1fr);
		row-gap: var(--space-md);
		align-items: stretch;
	}

	.follow-up-bridge__question {
		font-size: clamp(1.25rem, 1rem + 2.5vw, 1.85rem);
		overflow-wrap: anywhere;
	}

	.follow-up-bridge__cta {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.follow-up-bridge__cta,
	.follow-up-bridge__cta-icon,
	.related-questions__link {
		transition: none;
	}

	.follow-up-bridge__cta:hover,
	.follow-up-bridge__cta:focus-visible {
		transform: none;
	}

	.follow-up-bridge__cta:hover .follow-up-bridge__cta-icon,
	.follow-up-bridge__cta:focus-visible .follow-up-bridge__cta-icon {
		transform: none;
	}
}

.answer-card > .answer-main,
.answer-card > .answer-page-content,
.answer-card > .contact-comments,
.answer-card > .answer-pair-row,
.answer-card > .answer-grammar,
.answer-card > .answer-pronunciation,
.answer-card > .answer-word-by-word,
.answer-card > .answer-examples,
.answer-card > .answer-related-expressions,
.answer-card > .answer-course,
.answer-card > .answer-follow-up,
.answer-card > .answer-related-questions {
	grid-column: 1 / -1;
	width: 100%;
}

.answer-examples-list {
	display: flex;
	flex-direction: column;
	gap: clamp(0.875rem, 2vw, 1.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
	width: 100%;
}

.answer-examples-list__item {
	margin: 0;
}

.answer-course-panel {
	display: flex;
	flex-direction: column;
}

.answer-course .answer-section__head {
	margin-bottom: clamp(0.625rem, 0.5rem + 0.5vw, 0.875rem);
}

.answer-course .answer-section__title {
	min-width: 0;
	line-height: 1.35;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.answer-course-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(10px, 1.5vw, 14px);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 40rem) {
	.answer-course-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.answer-course-cards--count-1,
	.answer-course-cards:has(> :only-child) {
		grid-template-columns: minmax(0, 1fr);
	}
}

.answer-course-card {
	position: relative;
	container-type: inline-size;
	display: block;
	min-width: 0;
	padding: clamp(12px, 1.6vw, 16px);
	border-radius: 16px;
	background:
		linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(8, 12, 28, 0.88));
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.04),
		0 10px 28px rgba(2, 6, 23, 0.28);
	transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.answer-course-card::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(244, 114, 182, 0.18));
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0.55;
	pointer-events: none;
}

.answer-course-card:hover,
.answer-course-card:focus-within {
	border-color: rgba(56, 189, 248, 0.28);
	transform: translateY(-2px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 16px 34px rgba(2, 6, 23, 0.36);
}

.answer-course-card__layout {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(10px, 1.5vw, 14px);
	min-width: 0;
}

@container (min-width: 22rem) {
	.answer-course-card__layout {
		flex-direction: row;
		align-items: center;
		gap: clamp(12px, 2vw, 20px);
	}
}

.answer-course-card__content {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: clamp(4px, 0.5vw, 6px);
}

.answer-course-card__actions {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	max-width: 100%;
}

.answer-course-card__title {
	margin: 0;
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	font-weight: 700;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.96);
	overflow-wrap: anywhere;
}

.answer-course-card__title-link {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.answer-course-card__title-link:hover,
.answer-course-card__title-link:focus-visible {
	color: #bae6fd;
}

.answer-course-card__reason {
	margin: 0;
	font-size: var(--text-sm);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.76);
	overflow-wrap: anywhere;
}

.answer-course-card__access {
	margin: 0;
	font-size: var(--text-xs);
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.46);
	overflow-wrap: anywhere;
}

.answer-course-card__cta {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2xs);
	width: fit-content;
	max-width: 100%;
	min-height: var(--touch-min);
	min-width: 0;
	padding: 0.55rem 0.9rem;
	box-sizing: border-box;
	overflow-wrap: anywhere;
	border-radius: 999px;
	border: 1px solid rgba(56, 189, 248, 0.28);
	background: rgba(56, 189, 248, 0.1);
	color: rgba(224, 242, 254, 0.96);
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

@container (max-width: 21.99rem) {
	.answer-course-card__cta {
		white-space: normal;
		text-align: left;
	}
}

@container (min-width: 22rem) {
	.answer-course-card__cta {
		white-space: nowrap;
	}
}

.answer-course-card__cta:hover,
.answer-course-card__cta:focus-visible {
	border-color: rgba(56, 189, 248, 0.48);
	background: rgba(56, 189, 248, 0.18);
	transform: translateX(2px);
}

.answer-course-card__cta-icon {
	flex: 0 0 auto;
}

.answer-examples-list__block {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
	gap: var(--space-sm);
	padding: clamp(0.875rem, 2vw, 1.125rem);
	border-radius: 0.875rem;
	background: rgba(15, 23, 42, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.06);
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.answer-examples-list__block.is-short,
.answer-examples-list__block.is-medium,
.answer-examples-list__block.is-long {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
}

.answer-examples-list__block .answer-pronunciation-block__lemma {
	display: flex;
	flex-direction: column;
	gap: var(--space-2xs);
	min-width: 0;
	width: 100%;
}

.answer-examples-list__block .answer-pronunciation-block__thai {
	margin: 0;
	text-align: left;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.2;
	overflow-wrap: anywhere;
}

/* Shared module audio bar â€” pronunciation + examples (single class surface) */
.answer-pronunciation-block.is-pair-column .answer-pronunciation-audio,
.answer-pronunciation-audio.answer-pronunciation-audio--compact {
	--module-audio-gutter: clamp(10px, 2vw, 16px);
	flex: 0 0 auto !important;
	width: calc(100% - (2 * var(--module-audio-gutter))) !important;
	min-width: 0 !important;
	max-width: none !important;
	margin-inline: var(--module-audio-gutter) !important;
	height: auto;
	box-sizing: border-box;
	padding: clamp(0.75rem, 1.8vw, 1rem) clamp(1rem, 3vw, 1.5rem) !important;
	gap: 0;
	border-radius: 0.75rem;
}

.answer-pronunciation-audio--compact .answer-pronunciation-audio__header,
.answer-pronunciation-audio--compact .answer-pronunciation-audio__waveform,
.answer-pronunciation-block.is-pair-column .answer-pronunciation-audio__header,
.answer-pronunciation-block.is-pair-column .answer-pronunciation-audio__waveform {
	display: none;
}

.answer-pronunciation-audio--compact .answer-pronunciation-audio__body,
.answer-pronunciation-block.is-pair-column .answer-pronunciation-audio__body {
	gap: var(--space-sm);
	align-items: center;
	min-width: 0;
}

.answer-pronunciation-audio--compact .answer-pronunciation-audio__play,
.answer-pronunciation-block.is-pair-column .answer-pronunciation-audio__play {
	width: var(--touch-min);
	height: var(--touch-min);
	min-width: var(--touch-min);
	min-height: var(--touch-min);
}

.answer-pronunciation-audio--compact .answer-pronunciation-audio__play svg,
.answer-pronunciation-block.is-pair-column .answer-pronunciation-audio__play svg {
	width: 18px;
	height: 18px;
}

.answer-pronunciation-audio--compact .answer-pronunciation-audio__visual,
.answer-pronunciation-block.is-pair-column .answer-pronunciation-audio__visual {
	flex: 1;
	min-width: 0;
	gap: 0;
}

.answer-examples-list__gloss {
	margin: var(--space-xs) 0 0;
	font-size: var(--text-base);
	line-height: 1.5;
	color: rgba(226, 232, 240, 0.82);
	overflow-wrap: anywhere;
}

/* ==========================================================================
   Answer layout (shared module cards)
   ========================================================================== */

.answer-area {
	visibility: hidden;
	transform: translateY(24px);
	transition:
		transform 0.55s var(--ease) 0.12s,
		visibility 0.55s var(--ease) 0.12s;
}

.answer-area.answer-area--visible {
	visibility: visible;
	transform: none;
}

.answer-container {
	width: min(100%, var(--layout-max-answer));
	max-width: 100%;
	min-width: 0;
	margin: 0 auto;
	padding: var(--space-sm) var(--layout-gutter-sm) clamp(5rem, 4rem + 8vw, 8.75rem);
	box-sizing: border-box;
}

.answer-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--answer-section-gap);
	width: 100%;
	min-width: 0;
	color: var(--answer-text);
}

.answer-section {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	/* auto: WebKit grid+flex must keep content min-size (min-height:0 collapsed bodies). */
	min-height: auto;
	width: 100%;
	max-width: 100%;
	padding: var(--answer-section-pad);
	border-radius: var(--answer-section-radius);
	background: var(--answer-glass-bg);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border: 1px solid var(--answer-glass-border);
	box-shadow:
		0 0 28px rgba(96, 165, 250, 0.12),
		0 0 34px rgba(244, 114, 182, 0.08),
		0 16px 48px rgba(0, 0, 0, 0.32),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	/* visible: keeps module-feedback flags inside padding; backgrounds still clip to radius */
	overflow: visible;
}

.answer-section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(56, 189, 248, 0.06) 0%, rgba(236, 72, 153, 0.05) 100%);
	pointer-events: none;
}

.answer-section::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: inherit;
	padding: 1px;
	background: var(--grad-border);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
	opacity: 0.72;
}

.answer-section__head {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: var(--space-sm);
	margin-bottom: var(--space-md);
}

.answer-section__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: clamp(2.25rem, 2rem + 1vw, 2.625rem);
	height: clamp(2.25rem, 2rem + 1vw, 2.625rem);
	border-radius: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
	background: rgba(15, 23, 42, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #a5b4fc;
	box-shadow:
		0 0 18px rgba(96, 165, 250, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.answer-section__title {
	margin: 0;
	min-width: 0;
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: clamp(0.12em, 0.08em + 0.55vw, 0.28em);
	text-transform: uppercase;
	overflow-wrap: anywhere;
	background: var(--grad-eyebrow);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.answer-section__body {
	position: relative;
	z-index: 1;
	/* 1 1 auto + min-height:auto: grow to fill pair columns, but contribute content
	   height to grid rows. flex:1 / min-height:0 collapsed bodies to 0px in WebKit. */
	flex: 1 1 auto;
	min-height: auto;
	min-width: 0;
	width: 100%;
}

.answer-main {
	padding: var(--answer-main-pad);
}

.answer-main .answer-section__head {
	margin-bottom: var(--space-md);
}

.answer-main .answer-section__title {
	font-size: var(--text-sm);
	letter-spacing: clamp(0.12em, 0.08em + 0.6vw, 0.28em);
}

.answer-main .answer-section__body {
	container-type: inline-size;
	container-name: answer-main;
}

.answer-content {
	width: 100%;
	min-width: 0;
	font-size: var(--text-md);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
	text-align: start;
	overflow-wrap: break-word;
}

.answer-main .answer-content--prose .answer-content__paragraph,
.answer-main .answer-content--prose .answer-content__list,
.answer-main .answer-content--prose .answer-content__list-item {
	text-align: start;
}

.answer-main .answer-content__paragraph {
	margin: 0 0 0.85em;
}

.answer-main .answer-content__paragraph:last-child {
	margin-bottom: 0;
}

.answer-main .answer-content__list {
	margin: 0 0 0.85em;
	padding-left: 1.35em;
	list-style: disc;
	list-style-position: outside;
}

.answer-main .answer-content__list-item {
	margin: 0.35em 0;
	padding-left: 0.15em;
}

.answer-main .answer-content__list-item:last-child {
	margin-bottom: 0;
}

/* Translation lead: large fluid hero text, centered in the answer card */
.answer-main .answer-content__translation-lead {
	margin: 0;
	width: 100%;
	max-width: 100%;
	font-size: var(--text-translation-lead);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	color: rgba(255, 255, 255, 0.98);
	overflow-wrap: break-word;
}

@container answer-main (min-width: 0) {
	.answer-content__translation-lead {
		font-size: clamp(1.85rem, 9.5cqi, 3.35rem);
	}

	.answer-content__lexicon-head .answer-content__translation-lead {
		font-size: clamp(1.15rem, 1rem + 0.85vw, 1.5rem);
	}
}

.answer-main .answer-content__translation-lead strong {
	font-weight: inherit;
}

.answer-main .answer-content--prose:has(> .answer-content__translation-lead:only-child),
.answer-main .answer-content--prose:has(> .answer-content__translation-lead:first-child):not(:has(.answer-content__paragraph)):not(:has(.answer-content__list)):not(:has(.answer-content__lexicon-head)) {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: clamp(6.5rem, 12vw, 10rem);
	text-align: center;
}

.answer-main .answer-content__lexicon-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-sm, 0.75rem);
	margin: 0 0 1rem;
}

.answer-main .answer-content__lexicon-head .answer-content__translation-lead {
	flex: 1 1 auto;
	min-width: 0;
	font-size: clamp(1.15rem, 1rem + 0.85vw, 1.5rem);
	line-height: 1.35;
	text-align: start;
}

.answer-main .answer-content__pos-badge--corner {
	flex-shrink: 0;
	align-self: flex-start;
	margin-inline-start: auto;
}

.answer-main .answer-content__lexicon-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-xs, 0.5rem);
	margin: 0 0 0.85rem;
}

.answer-main .answer-content__pos-badge,
.answer-main .answer-content__tag-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: var(--text-sm, 0.875rem);
	line-height: 1.35;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.88);
}

/* Wortart- & Umschrift-Badge — gold / edel, dezent */
.answer-main .answer-content__pos-badge,
.answer-main .answer-content__transliteration-badge {
	padding: 0.22rem 0.7rem;
	font-weight: 550;
	letter-spacing: 0.02em;
	color: #c9b07a;
	background:
		linear-gradient(
			165deg,
			rgba(212, 175, 55, 0.18) 0%,
			rgba(184, 148, 55, 0.12) 50%,
			rgba(212, 175, 55, 0.16) 100%
		);
	border: 1px solid rgba(212, 175, 55, 0.38);
	box-shadow:
		inset 0 1px 0 rgba(255, 236, 179, 0.12),
		0 0 0.4rem rgba(212, 175, 55, 0.12);
	text-shadow: none;
}

.answer-main .answer-content__secondary-senses {
	margin: 0 0 clamp(0.75rem, 2vw, 1rem);
	padding: clamp(0.65rem, 1.8vw, 0.85rem) clamp(0.75rem, 2vw, 1rem);
	border-radius: var(--radius-md, 0.75rem);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.answer-main .answer-content__secondary-senses-label {
	margin: 0 0 0.35rem;
	font-size: var(--text-sm, 0.875rem);
	font-weight: 600;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.78);
}

.answer-main .answer-content__secondary-senses-list {
	margin: 0;
	font-size: var(--text-base, 1rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
	overflow-wrap: break-word;
}

.answer-main .answer-content__short-note {
	margin: 0 0 0.85rem;
	font-size: var(--text-base, 1rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.86);
}

.answer-related-expressions__list {
	display: grid;
	gap: var(--space-sm, 0.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.answer-related-expressions__item {
	padding: var(--space-sm, 0.75rem) var(--space-md, 1rem);
	border-radius: var(--radius-md, 0.75rem);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.answer-related-expressions__thai {
	margin: 0 0 0.35rem;
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	line-height: 1.35;
	overflow-wrap: break-word;
}

.answer-related-expressions__gloss {
	margin: 0;
	font-size: var(--text-base, 1rem);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.86);
	overflow-wrap: break-word;
}

@media (min-width: 48rem) {
	.answer-related-expressions__list {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	}
}

/* Main answer: context-based Thai typography (not length-based pixel jumps) */
.answer-main .answer-content .answer-content__thai {
	display: inline;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.98);
	vertical-align: baseline;
}

.answer-main .answer-content .answer-content__thai--inline {
	font-size: 1.15em;
	line-height: 1.45;
	white-space: normal;
}

.answer-main .answer-content--themed-list .answer-content__thai,
.answer-main .answer-content--themed-list .answer-content__thai--themed-list {
	font-size: 1.15em;
	line-height: 1.45;
	white-space: normal;
}

.answer-main .answer-content .answer-content__thai--emphasis {
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	line-height: 1.3;
}

.answer-main .answer-content .answer-content__thai--example {
	font-size: clamp(1.5rem, 2.8vw, 2.05rem);
	line-height: 1.3;
}

/* Example-sentence main: Thai scales with available answer-card width (pair half or full). */
.answer-main .answer-content .answer-content__thai--example-sentence {
	display: inline-block;
	max-width: 100%;
	font-size: var(--text-thai-example-sentence);
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: break-word;
}

@supports (font-size: 1cqi) {
	.answer-main .answer-content .answer-content__thai--example-sentence {
		font-size: clamp(1.5rem, 10cqi, 2.85rem);
	}
}

.answer-main .answer-content--example-sentence {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: center;
	gap: clamp(0.5rem, 0.4rem + 0.45vw, 0.85rem);
	width: 100%;
	text-align: center;
}

.answer-main .answer-content--example-sentence .answer-content__paragraph,
.answer-main .answer-content--example-sentence .answer-content__list,
.answer-main .answer-content--example-sentence .answer-content__list-item {
	text-align: center;
}

.answer-main .answer-content--example-sentence .answer-content__paragraph:not(:has(.answer-content__thai--example-sentence)) {
	font-size: clamp(1rem, 0.92rem + 0.55vw, 1.25rem);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.86);
}

@supports (font-size: 1cqi) {
	.answer-main .answer-content--example-sentence .answer-content__paragraph:not(:has(.answer-content__thai--example-sentence)) {
		font-size: clamp(1rem, 0.92rem + 1.4cqi, 1.25rem);
	}
}

.answer-main .answer-content--write,
.answer-main .answer-content--translation-target,
.answer-main .answer-content:has(.answer-content__write-spelling):not(.answer-content--prose),
.answer-main .answer-content:has(.answer-content__translation-thai):not(.answer-content--prose) {
	width: 100%;
	text-align: center;
}

.answer-main .answer-content--write .answer-content__write-spelling,
.answer-main .answer-content__write-spelling,
.answer-main .answer-content--translation-target .answer-content__translation-thai,
.answer-main .answer-content__translation-thai {
	margin: 0;
	width: 100%;
	text-align: center;
}

.answer-main .answer-content--write .answer-content__thai--example,
.answer-main .answer-content__write-spelling .answer-content__thai--example,
.answer-main .answer-content__write-spelling > .answer-content__thai--example,
.answer-main .answer-content--translation-target .answer-content__translation-thai .answer-content__thai--example,
.answer-main .answer-content__translation-thai .answer-content__thai--example,
.answer-main .answer-content__translation-thai > .answer-content__thai--example {
	display: block;
	width: 100%;
	font-size: var(--text-thai-breakdown);
	line-height: 1.15;
	color: #fff;
	text-align: center;
	overflow-wrap: break-word;
	font-weight: 600;
}

.answer-main .answer-content--write .answer-content__thai--example .askthai-marker,
.answer-main .answer-content__write-spelling .answer-content__thai--example .askthai-marker,
.answer-main .answer-content--translation-target .answer-content__translation-thai .answer-content__thai--example .askthai-marker,
.answer-main .answer-content__translation-thai .answer-content__thai--example .askthai-marker {
	display: inline;
	font-size: inherit;
	line-height: inherit;
	vertical-align: baseline;
}

.answer-main .answer-content__write-transcription {
	margin: clamp(0.5rem, 1.2vw, 0.85rem) 0 0;
	font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.05rem);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.74);
	text-align: center;
	overflow-wrap: break-word;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Silko: keep tone mark + syllable together across line wraps */
.answer-silko-syllable {
	white-space: nowrap;
}

.answer-main .answer-content:has(.answer-content__transliteration) {
	width: 100%;
	text-align: center;
}

.answer-main .answer-content__transliteration {
	width: 100%;
	max-width: none;
	margin-inline: 0;
	text-align: center;
}

.answer-main .answer-content__transliteration-pairs {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(1rem, 2vw, 1.5rem);
	width: 100%;
}

.answer-main .answer-content__transliteration-pair {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(0.35rem, 0.9vw, 0.55rem);
	width: 100%;
	min-width: 0;
}

.answer-main .answer-content__transliteration-thai {
	margin: 0;
	width: 100%;
}

.answer-main .answer-content__transliteration-thai .answer-content__thai--example {
	display: block;
	width: 100%;
	font-size: var(--text-thai-breakdown);
	line-height: 1.2;
	color: #fff;
	font-weight: 600;
	overflow-wrap: break-word;
}

.answer-main .answer-content__transliteration-pairs .answer-content__transliteration-thai .answer-content__thai--example {
	font-size: clamp(2rem, 1.25rem + 5.5vw, 4rem);
}

.answer-main .answer-content__transliteration-lines {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(0.45rem, 1vw, 0.75rem);
	margin-top: clamp(0.65rem, 1.4vw, 1rem);
	width: 100%;
}

.answer-main .answer-content__transliteration-lines--secondary {
	margin-top: clamp(0.85rem, 1.6vw, 1.15rem);
}

.answer-main .answer-content__transliteration-pair .answer-content__transliteration-line {
	margin-top: 0;
	justify-content: center;
	column-gap: clamp(0.35rem, 1vw, 0.65rem);
}

.answer-main .answer-content__transliteration-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs, 0.5rem);
	margin: 0;
	width: 100%;
	text-align: center;
}

.answer-main .answer-content__transliteration-badge {
	flex-shrink: 0;
}

.answer-main .answer-content__transliteration-badge--tone-tooltip {
	cursor: help;
}

.answer-main .answer-content__transliteration-badge--tone-tooltip:focus-visible {
	outline: 2px solid rgba(212, 175, 55, 0.55);
	outline-offset: 2px;
}

.answer-main .answer-content__transliteration-value {
	font-size: clamp(1.05rem, 0.85rem + 1.1vw, 1.45rem);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.88);
	overflow-wrap: break-word;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.answer-main .answer-content__transliteration-pairs .answer-content__transliteration-value {
	font-size: clamp(1.1rem, 0.9rem + 1.35vw, 1.65rem);
}

.answer-main .answer-content__transliteration-value-wrap {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-xs, 0.5rem);
	min-width: 0;
	max-width: 100%;
}

.answer-main .answer-content__transliteration-line .askthai-copy-button {
	margin-inline-start: clamp(0.15rem, 0.4vw, 0.35rem);
}

/* Reusable copy-to-clipboard control (answer modules, transliteration, â€¦) */
.askthai-copy-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.45rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.82);
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.askthai-copy-button:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.24);
	color: #fff;
}

.askthai-copy-button:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.45);
	outline-offset: 2px;
}

.askthai-copy-button:active {
	transform: scale(0.96);
}

.askthai-copy-button.is-copied {
	background: rgba(120, 220, 160, 0.16);
	border-color: rgba(120, 220, 160, 0.42);
	color: rgba(210, 255, 225, 0.98);
}

.askthai-copy-button__svg {
	display: block;
	width: 1.05rem;
	height: 1.05rem;
}

.askthai-copy-button.is-copied .askthai-copy-button__svg {
	opacity: 0.92;
}

.answer-main .answer-content .askthai-marker {
	font-size: inherit;
	line-height: inherit;
}

/* Module inline Thai â€” uniform size within any answer module body (grammar hints, â€¦) */
.answer-section .answer-content__thai--module-inline {
	display: inline;
	font-size: var(--text-thai-module-inline);
	font-weight: 600;
	line-height: inherit;
	color: rgba(255, 255, 255, 0.98);
	vertical-align: baseline;
	overflow-wrap: break-word;
	white-space: normal;
}

.answer-section .answer-content__thai--module-inline .askthai-marker {
	font-size: inherit;
	line-height: inherit;
}

/* Thai length tiers â€” main answer prose only (paragraph fallback) */
.answer-main .answer-content__paragraph .answer-content__thai--short {
	font-size: clamp(1.375rem, 3.4vw, 1.875rem);
	white-space: normal;
	overflow-wrap: anywhere;
}

.answer-main .answer-content__paragraph .answer-content__thai--medium {
	font-size: clamp(1.125rem, 2.6vw, 1.5rem);
}

.answer-main .answer-content__paragraph .answer-content__thai--long {
	font-size: clamp(1rem, 2.1vw, 1.25rem);
	line-height: 1.35;
}

/* Legacy length tiers â€” other modules (pronunciation, breakdown, â€¦) */
.answer-main .answer-content .answer-content__thai--short {
	font-size: clamp(2rem, 4.5vw, 3rem);
	white-space: normal;
	overflow-wrap: anywhere;
}

.answer-main .answer-content .answer-content__thai--medium {
	font-size: clamp(1.5rem, 3.2vw, 2.25rem);
}

.answer-main .answer-content .answer-content__thai--long {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	line-height: 1.35;
}

.answer-main .answer-content--page {
	overflow-wrap: anywhere;
}

.answer-main .answer-content--page > :first-child {
	margin-top: 0;
}

.answer-main .answer-content--page > :last-child {
	margin-bottom: 0;
}

.answer-main .answer-content--page p {
	margin: 0 0 0.85em;
}

.answer-main .answer-content--page h2,
.answer-main .answer-content--page h3,
.answer-main .answer-content--page h4 {
	margin: 1.35em 0 0.65em;
	font-weight: 700;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.98);
	text-wrap: pretty;
}

.answer-main .answer-content--page h2 {
	font-size: clamp(1.15rem, 1rem + 0.75vw, 1.45rem);
}

.answer-main .answer-content--page h3 {
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
}

.answer-main .answer-content--page h4 {
	font-size: var(--text-md);
}

.answer-main .answer-content--page ul,
.answer-main .answer-content--page ol {
	margin: 0 0 0.85em;
	padding-left: 1.35em;
}

.answer-main .answer-content--page ul {
	list-style: disc;
}

.answer-main .answer-content--page ol {
	list-style: decimal;
}

.answer-main .answer-content--page li {
	margin: 0.35em 0;
	padding-left: 0.15em;
}

/* Tutorial / Anleitung â€” CMS HTML in .entry-content (overrides generic page prose above) */
.tutorial-page .tutorial-page__body > .entry-content {
	display: flex;
	flex-direction: column;
	gap: clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
	width: 100%;
	min-width: 0;
}

/* CMS hero image + intro on the tutorial page.
   GLOBAL POLICY (see .cursor/rules/responsive-no-content-reorder-mandatory.mdc):
   the reading order of content must NEVER change between breakpoints. The image
   is the first child in the CMS markup, so we fix ONE sequence for every
   viewport and only change columns/placement â€” never the order:
     - alignright  â†’  intro, image, blocks   (image column on the right on wide screens)
     - alignleft   â†’  image, intro, blocks   (image column on the left on wide screens)
   Blocks always come last, in source order, at every breakpoint. */
.tutorial-page .entry-content:has(> :is(img.alignright, .wp-block-image.alignright, .wp-caption.alignright):first-child + .tutorial-page__intro),
.tutorial-page .entry-content:has(> :is(img.alignleft, .wp-block-image.alignleft, .wp-caption.alignleft):first-child + .tutorial-page__intro) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1.25rem, 1rem + 1.25vw, 2.5rem);
	align-items: start;
}

/* Any other child (content blocks) always stays last, in source order,
   at every breakpoint. */
.tutorial-page .entry-content:has(> :is(img.alignright, .wp-block-image.alignright, .wp-caption.alignright):first-child + .tutorial-page__intro) > *,
.tutorial-page .entry-content:has(> :is(img.alignleft, .wp-block-image.alignleft, .wp-caption.alignleft):first-child + .tutorial-page__intro) > * {
	order: 3;
	grid-column: 1 / -1;
	min-width: 0;
}

/* Shared image sizing (single-column / mobile default). */
.tutorial-page .entry-content:has(> :is(img.alignright, .wp-block-image.alignright, .wp-caption.alignright):first-child + .tutorial-page__intro) > :is(img.alignright, .wp-block-image.alignright, .wp-caption.alignright):first-child,
.tutorial-page .entry-content:has(> :is(img.alignleft, .wp-block-image.alignleft, .wp-caption.alignleft):first-child + .tutorial-page__intro) > :is(img.alignleft, .wp-block-image.alignleft, .wp-caption.alignleft):first-child {
	justify-self: center;
	margin: 0;
	float: none;
	width: min(100%, 13.5rem);
	max-width: 100%;
	height: auto;
	border-radius: clamp(0.65rem, 0.6rem + 0.35vw, 0.85rem);
}

/* alignright â†’ intro first, image second (identical on every viewport). */
.tutorial-page .entry-content:has(> :is(img.alignright, .wp-block-image.alignright, .wp-caption.alignright):first-child + .tutorial-page__intro) > .tutorial-page__intro {
	order: 1;
}

.tutorial-page .entry-content:has(> :is(img.alignright, .wp-block-image.alignright, .wp-caption.alignright):first-child + .tutorial-page__intro) > :is(img.alignright, .wp-block-image.alignright, .wp-caption.alignright):first-child {
	order: 2;
}

/* alignleft â†’ image first, intro second (identical on every viewport). */
.tutorial-page .entry-content:has(> :is(img.alignleft, .wp-block-image.alignleft, .wp-caption.alignleft):first-child + .tutorial-page__intro) > :is(img.alignleft, .wp-block-image.alignleft, .wp-caption.alignleft):first-child {
	order: 1;
}

.tutorial-page .entry-content:has(> :is(img.alignleft, .wp-block-image.alignleft, .wp-caption.alignleft):first-child + .tutorial-page__intro) > .tutorial-page__intro {
	order: 2;
}

@media (min-width: 36rem) {
	/* Wide screens: assign columns only. The order values above are kept
	   unchanged, so the visual sequence stays identical to mobile. */
	.tutorial-page .entry-content:has(> :is(img.alignright, .wp-block-image.alignright, .wp-caption.alignright):first-child + .tutorial-page__intro) {
		grid-template-columns: minmax(0, 1fr) minmax(0, min(12.5rem, 34%));
	}

	.tutorial-page .entry-content:has(> :is(img.alignright, .wp-block-image.alignright, .wp-caption.alignright):first-child + .tutorial-page__intro) > .tutorial-page__intro {
		grid-column: 1;
		grid-row: 1;
	}

	.tutorial-page .entry-content:has(> :is(img.alignright, .wp-block-image.alignright, .wp-caption.alignright):first-child + .tutorial-page__intro) > :is(img.alignright, .wp-block-image.alignright, .wp-caption.alignright):first-child {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		align-self: start;
		width: 100%;
		max-width: min(100%, 12.5rem);
	}

	.tutorial-page .entry-content:has(> :is(img.alignleft, .wp-block-image.alignleft, .wp-caption.alignleft):first-child + .tutorial-page__intro) {
		grid-template-columns: minmax(0, min(12.5rem, 34%)) minmax(0, 1fr);
	}

	.tutorial-page .entry-content:has(> :is(img.alignleft, .wp-block-image.alignleft, .wp-caption.alignleft):first-child + .tutorial-page__intro) > :is(img.alignleft, .wp-block-image.alignleft, .wp-caption.alignleft):first-child {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
		align-self: start;
		width: 100%;
		max-width: min(100%, 12.5rem);
	}

	.tutorial-page .entry-content:has(> :is(img.alignleft, .wp-block-image.alignleft, .wp-caption.alignleft):first-child + .tutorial-page__intro) > .tutorial-page__intro {
		grid-column: 2;
		grid-row: 1;
	}
}

/* WP align inside intro block (flow-root enables float wrap) */
.tutorial-page .entry-content .tutorial-page__intro > :is(img.alignright, .wp-block-image.alignright, .wp-caption.alignright),
.tutorial-page .entry-content .tutorial-page__intro > .alignright img {
	float: right;
	clear: right;
	margin: 0 0 0.75em clamp(0.75rem, 0.65rem + 0.5vw, 1.25rem);
	max-width: min(100%, 12.5rem);
	width: auto;
	height: auto;
}

.tutorial-page .entry-content .tutorial-page__intro > :is(img.alignleft, .wp-block-image.alignleft, .wp-caption.alignleft),
.tutorial-page .entry-content .tutorial-page__intro > .alignleft img {
	float: left;
	clear: left;
	margin: 0 clamp(0.75rem, 0.65rem + 0.5vw, 1.25rem) 0.75em 0;
	max-width: min(100%, 12.5rem);
	width: auto;
	height: auto;
}

.tutorial-page .entry-content .tutorial-page__intro > .wp-block-image.alignright,
.tutorial-page .entry-content .tutorial-page__intro > .wp-caption.alignright {
	max-width: min(100%, 12.5rem);
}

.tutorial-page .entry-content .wp-block-html {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.tutorial-page .entry-content h3.tutorial-page__lead {
	margin: 0 0 0.75em;
	font-size: clamp(1.2rem, 1.05rem + 0.9vw, 1.85rem);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: #fff;
}

.tutorial-page .entry-content h3.tutorial-page__heading {
	margin: 0;
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
	font-weight: 700;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.98);
}

.tutorial-page .entry-content h4.tutorial-command-card__title {
	margin: 0;
	flex: 1 1 0;
	min-width: 0;
	max-width: 100%;
	font-size: clamp(var(--text-sm), 0.9rem + 0.35vw, var(--text-md));
	font-weight: 700;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.96);
	text-wrap: pretty;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.tutorial-page .entry-content .tutorial-page__examples,
.tutorial-page .entry-content .tutorial-command-grid {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tutorial-page .entry-content .tutorial-command-grid {
	margin-top: clamp(0.35rem, 0.25rem + 0.35vw, 0.65rem);
}

.tutorial-page .entry-content .tutorial-page__examples > li,
.tutorial-page .entry-content .tutorial-command-grid > li {
	list-style: none;
	margin: 0;
}

.tutorial-page .entry-content .tutorial-page__examples > li {
	padding: clamp(0.65rem, 0.55rem + 0.45vw, 0.85rem) clamp(0.75rem, 0.65rem + 0.5vw, 1.1rem);
	padding-inline-start: clamp(1.65rem, 1.45rem + 0.65vw, 2.1rem);
}

.tutorial-page .entry-content .tutorial-command-grid > li.tutorial-command-card {
	padding: clamp(0.75rem, 0.65rem + 0.45vw, 1.05rem);
}

.tutorial-page .entry-content .tutorial-page__text {
	margin: 0;
}

.tutorial-page .entry-content .tutorial-page__intro > p,
.tutorial-page .entry-content .tutorial-page__block > p:not([class]) {
	margin: 0 0 0.85em;
}

.tutorial-page .entry-content .tutorial-page__intro > p:last-child {
	margin-bottom: 0;
}

.tutorial-page .entry-content .tutorial-page__block > :last-child {
	margin-bottom: 0;
}

.tutorial-page .entry-content .tutorial-command-card__meta,
.tutorial-page .entry-content .tutorial-command-card__meta dl {
	margin: 0;
	padding: 0;
}

.tutorial-page .entry-content .tutorial-command-card__row dt,
.tutorial-page .entry-content .tutorial-command-card__row dd {
	margin: 0;
	padding: 0;
}

.answer-main .answer-content--page a {
	color: #7dd3fc;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.answer-main .answer-content--page a:hover,
.answer-main .answer-content--page a:focus-visible {
	color: #bae6fd;
}

.answer-main .answer-content--page img,
.answer-main .answer-content--page video,
.answer-main .answer-content--page iframe {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1em 0;
	border-radius: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
}

.answer-main .answer-content--page blockquote {
	margin: 1em 0;
	padding: clamp(0.75rem, 0.65rem + 0.5vw, 1rem) clamp(1rem, 0.85rem + 0.75vw, 1.25rem);
	border-left: 0.2em solid rgba(125, 211, 252, 0.55);
	background: rgba(255, 255, 255, 0.04);
	border-radius: 0 clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem) clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem) 0;
	color: rgba(255, 255, 255, 0.82);
}

/* WordPress media alignment (wp-block-library dequeued on the front end). */
.answer-main .answer-content--page::after {
	content: "";
	display: table;
	clear: both;
}

.answer-main .answer-content--page img.alignleft,
.answer-main .answer-content--page img.alignright,
.answer-main .answer-content--page .wp-caption.alignleft,
.answer-main .answer-content--page .wp-caption.alignright,
.answer-main .answer-content--page .wp-block-image.alignleft,
.answer-main .answer-content--page .wp-block-image.alignright {
	display: block;
	max-width: min(100%, 18.75rem);
	height: auto;
	margin-top: 0.35em;
	margin-bottom: 0.85em;
	border-radius: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
}

.answer-main .answer-content--page img.alignleft,
.answer-main .answer-content--page .wp-caption.alignleft,
.answer-main .answer-content--page .wp-block-image.alignleft {
	float: left;
	margin-right: 1em;
	margin-left: 0;
}

.answer-main .answer-content--page img.alignright,
.answer-main .answer-content--page .wp-caption.alignright,
.answer-main .answer-content--page .wp-block-image.alignright {
	float: right;
	margin-left: 1em;
	margin-right: 0;
}

.answer-main .answer-content--page img.aligncenter,
.answer-main .answer-content--page .wp-caption.aligncenter,
.answer-main .answer-content--page .wp-block-image.aligncenter {
	display: block;
	float: none;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.answer-main .answer-content--page .alignleft img,
.answer-main .answer-content--page .alignright img,
.answer-main .answer-content--page .aligncenter img {
	margin: 0;
	height: auto;
	max-width: 100%;
	border-radius: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
}

.answer-main .answer-content--page .wp-caption {
	max-width: min(100%, 18.75rem);
}

.answer-main .answer-content--page .wp-caption-text {
	margin: 0.45em 0 0;
	font-size: var(--text-sm);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.72);
	text-align: center;
}

@media (max-width: 47.99rem) {
	.answer-main .answer-content--page img.alignleft,
	.answer-main .answer-content--page img.alignright,
	.answer-main .answer-content--page .wp-caption.alignleft,
	.answer-main .answer-content--page .wp-caption.alignright,
	.answer-main .answer-content--page .wp-block-image.alignleft,
	.answer-main .answer-content--page .wp-block-image.alignright,
	.answer-main .answer-content--page .wp-caption {
		float: none;
		max-width: 100%;
		margin-left: auto;
		margin-right: auto;
	}
}

/* Vocabulary/translation: answer + pronunciation side by side when space allows */
.answer-pair-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--answer-section-gap);
	width: 100%;
	min-width: 0;
}

.answer-pair-row > .answer-section:only-child {
	grid-column: 1 / -1;
}

@media (min-width: 48rem) {
	.answer-pair-row:not(.is-stacked) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
	}
}

.answer-pair-row.is-stacked {
	grid-template-columns: minmax(0, 1fr);
}

.answer-pair-row .answer-main,
.answer-pair-row .answer-pronunciation {
	grid-column: auto;
	min-width: 0;
}

/* Equal-height only inside side-by-side pair rows (grid stretch). Do not force
   height:100% on every .answer-card > .answer-section — that collapsed stacked
   modules in WebKit when combined with flex min-height:0 bodies. */
.answer-pair-row:not(.is-stacked) > .answer-section {
	align-self: stretch;
}

.answer-pair-row .answer-main .answer-section__body,
.answer-pair-row .answer-pronunciation .answer-section__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: auto;
}

.answer-pair-row .answer-main .answer-section__body {
	justify-content: flex-start;
}

.answer-pair-row .answer-main .answer-section__body:has(.answer-content__write-spelling),
.answer-pair-row .answer-main .answer-section__body:has(.answer-content__translation-thai),
.answer-pair-row .answer-main .answer-section__body:has(.answer-content--translation-target):not(:has(.answer-content--prose)),
.answer-pair-row .answer-main .answer-section__body:has(.answer-content__translation-lead):not(:has(.answer-content__lexicon-head)):not(:has(.answer-content__paragraph)):not(:has(.answer-content__list)),
.answer-pair-row .answer-main .answer-section__body:has(.answer-content--example-sentence),
.answer-pair-row .answer-main .answer-section__body:has(.answer-content__thai--example-sentence) {
	justify-content: center;
}

.answer-pair-row .answer-pronunciation .answer-section__body {
	justify-content: center;
}

.answer-pair-row .answer-pronunciation .answer-pronunciation-block.is-pair-column {
	flex: 1 1 auto;
	align-self: stretch;
	width: 100%;
}

/* Mengenbezeichnung: pronunciation module alone answers the question */
.answer-pronunciation--classifier-primary .answer-pronunciation-block__thai {
	font-size: clamp(2.75rem, 10vw, 4.5rem);
	line-height: 1.15;
	text-align: center;
}

.answer-pronunciation--classifier-primary .answer-pronunciation-block__transcription {
	font-size: clamp(1.125rem, 2.5vw, 1.625rem);
	text-align: center;
}

.answer-pronunciation--classifier-primary .answer-pronunciation-block {
	align-items: center;
}

.answer-pronunciation--classifier-primary .answer-pronunciation-block__text {
	align-items: center;
	text-align: center;
}

/* Pair column: lemma (Thai + transcription) grouped, compact audio below */
.answer-pronunciation-block.is-pair-column {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: clamp(12px, 2vw, 20px);
	padding: clamp(8px, 1.5vw, 16px) 0;
	min-height: clamp(110px, 16vw, 180px);
}

.answer-pronunciation-block.is-pair-column .answer-pronunciation-block__lemma {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(6px, 1vw, 10px);
	min-width: 0;
	width: 100%;
	text-align: center;
}

.answer-pronunciation-block.is-pair-column .answer-pronunciation-block__thai {
	margin: 0;
	text-align: center;
	font-size: clamp(40px, 8vw, 72px);
	line-height: 1.15;
}

.answer-pronunciation-block.is-pair-column.is-medium .answer-pronunciation-block__thai {
	font-size: clamp(28px, 5.5vw, 52px);
}

.answer-pronunciation-block.is-pair-column.is-long .answer-pronunciation-block__thai {
	font-size: clamp(22px, 4vw, 36px);
	line-height: 1.35;
}

.answer-pronunciation-block.is-pair-column .answer-pronunciation-block__transcription {
	margin: 0;
	width: 100%;
	text-align: center;
	font-size: clamp(16px, 2.4vw, 22px);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.78);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.answer-pronunciation-block__thai-only-hint {
	margin: clamp(0.35rem, 0.25rem + 0.3vw, 0.55rem) 0 0;
	width: 100%;
	max-width: min(100%, 28rem);
	text-align: center;
	font-size: clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.55);
	overflow-wrap: break-word;
}

.answer-pronunciation-block.is-pair-column.is-long .answer-pronunciation-block__transcription {
	font-size: clamp(14px, 2vw, 18px);
}

@media (max-width: 47.99rem) {
	.answer-pronunciation-block.is-pair-column.is-short .answer-pronunciation-block__thai {
		font-size: clamp(36px, 9vw, 56px);
	}

	.answer-pronunciation-block.is-pair-column.is-medium .answer-pronunciation-block__thai {
		font-size: clamp(28px, 7vw, 44px);
	}

	.answer-pronunciation-block.is-pair-column.is-long .answer-pronunciation-block__thai {
		font-size: clamp(22px, 5.5vw, 32px);
	}
}

.answer-pronunciation-block {
	--pron-audio-min: 15rem;
	container-type: inline-size;
	container-name: pronunciation-block;
	display: grid;
	align-items: stretch;
	gap: var(--space-md) clamp(1rem, 0.75rem + 1vw, 1.625rem);
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

.answer-pronunciation-block:not(:has(.answer-pronunciation-audio)) {
	grid-template-columns: minmax(0, 1fr);
}

/* Short headwords (â‰¤ 6 Thai characters): text + player as one group, not stretched apart */
.answer-pronunciation-block.is-short {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--space-md) clamp(1rem, 0.75rem + 1.25vw, 1.75rem);
}

.answer-pronunciation-block.is-short .answer-pronunciation-block__text {
	flex: 1 1 auto;
	width: auto;
	max-width: min(100%, 15rem);
	padding: 0.375rem 0.25rem 0.375rem 0.5rem;
	text-align: center;
	min-width: 0;
}

.answer-pronunciation-block.is-short .answer-pronunciation-block__thai {
	font-size: clamp(2.5rem, 7.5vw, 4.5rem);
	margin-bottom: 0.625rem;
	overflow-wrap: anywhere;
}

.answer-pronunciation-block.is-short .answer-pronunciation-block__transcription {
	font-size: var(--text-base);
}

.answer-pronunciation-block.is-short .answer-pronunciation-audio {
	flex: 1 1 min(100%, 18.75rem);
	width: min(100%, 30rem);
	min-width: 0;
	max-width: min(100%, 30rem);
	height: auto;
	padding: var(--space-md) var(--space-md) calc(var(--space-md) + 0.125rem);
	gap: 0;
}

.answer-pronunciation-block.is-short .answer-pronunciation-audio__header {
	display: none;
}

/* Medium phrases (7â€“32 characters) */
.answer-pronunciation-block.is-medium {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: var(--space-md) var(--space-md);
}

.answer-pronunciation-block.is-medium .answer-pronunciation-block__text {
	flex: 1 1 12.5rem;
	min-width: 0;
}

.answer-pronunciation-block.is-medium .answer-pronunciation-block__thai {
	font-size: clamp(1.75rem, 3.6vw, 2.75rem);
	overflow-wrap: anywhere;
}

.answer-pronunciation-block.is-medium .answer-pronunciation-audio {
	flex: 1 1 min(100%, 18.75rem);
	width: min(100%, 25rem);
	min-width: 0;
	max-width: min(100%, 25rem);
}

.answer-pronunciation-block.is-medium .answer-pronunciation-audio__header {
	display: none;
}

.answer-pronunciation-block.is-medium .answer-pronunciation-audio {
	gap: 0;
	padding: var(--space-md) calc(var(--space-md) + 0.125rem) calc(var(--space-md) + 0.125rem);
}

/* Long example sentences (33+ characters): text full width, compact audio bar below */
.answer-pronunciation-block.is-long {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto auto;
	gap: var(--space-md);
}

.answer-pronunciation-block.is-long .answer-pronunciation-block__thai {
	font-size: clamp(1.375rem, 2.6vw, 1.875rem);
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.answer-pronunciation-block.is-long .answer-pronunciation-block__transcription {
	font-size: var(--text-base);
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.answer-pronunciation-block.is-long .answer-pronunciation-audio__header,
.answer-pronunciation-block.is-long .answer-pronunciation-audio__waveform {
	display: none;
}

.answer-pronunciation-block.is-long .answer-pronunciation-audio {
	min-width: 0;
	max-width: 100%;
	padding: var(--space-sm) var(--space-md) var(--space-md);
	box-sizing: border-box;
}

/* Pair-column wins over is-short / is-medium / is-long (same element carries both classes) */
.answer-pronunciation-block.is-pair-column.is-short,
.answer-pronunciation-block.is-pair-column.is-medium,
.answer-pronunciation-block.is-pair-column.is-long {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: clamp(12px, 2vw, 20px);
}

.answer-pronunciation-block.is-pair-column.is-short .answer-pronunciation-block__thai,
.answer-pronunciation-block.is-pair-column.is-medium .answer-pronunciation-block__thai,
.answer-pronunciation-block.is-pair-column.is-long .answer-pronunciation-block__thai {
	margin-bottom: 0;
	text-align: center;
}

.answer-pronunciation-block__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	max-width: 100%;
	padding: var(--space-2xs) 0;
}

.answer-pronunciation-block__thai {
	margin: 0 0 var(--space-sm);
	font-size: clamp(2rem, 4.2vw, 3rem);
	line-height: 1.2;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.98);
	overflow-wrap: anywhere;
}

.answer-pronunciation-block__transcription {
	margin: 0;
	font-size: var(--text-md);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.74);
	overflow-wrap: anywhere;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.answer-phrase-breakdown__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, clamp(10rem, 30%, 17.5rem)), 1fr));
	gap: clamp(0.75rem, 2vw, 1.25rem);
	align-items: stretch;
	width: 100%;
	min-width: 0;
}

.answer-phrase-breakdown__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: clamp(0.5rem, 1.2vw, 0.875rem);
	min-width: 0;
	width: 100%;
	max-width: 100%;
	padding: clamp(1.25rem, 4vw, 2.25rem) clamp(1rem, 2.5vw, 1.5rem);
	border-radius: 0.875rem;
	background: rgba(15, 23, 42, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.06);
	/* Allow long Thai to wrap/scale inside the card — never clip glyphs. */
	overflow: visible;
	container-type: inline-size;
	container-name: phrase-breakdown-card;
	min-height: clamp(6.875rem, 16vw, 11.25rem);
	position: relative;
	box-sizing: border-box;
}

.answer-phrase-breakdown__row--passthrough {
	background: rgba(15, 23, 42, 0.28);
	border-style: dashed;
	border-color: rgba(255, 255, 255, 0.14);
}

.answer-phrase-breakdown__passthrough-text {
	font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.88);
}

.answer-phrase-breakdown__tone-badge {
	position: absolute;
	top: clamp(0.5rem, 1.2vw, 0.75rem);
	inset-inline-end: clamp(0.5rem, 1.2vw, 0.75rem);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: clamp(1.75rem, 4vw, 2.25rem);
	min-height: clamp(1.75rem, 4vw, 2.25rem);
	padding: 0 clamp(0.35rem, 0.8vw, 0.5rem);
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(8, 12, 28, 0.72);
	color: rgba(255, 255, 255, 0.92);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: clamp(0.8125rem, 0.75rem + 0.35vw, 1rem);
	font-weight: 600;
	line-height: 1;
	cursor: help;
	z-index: 1;
}

.answer-phrase-breakdown__tone-badge--tooltip:focus-visible {
	outline: 2px solid rgba(147, 197, 253, 0.95);
	outline-offset: 2px;
}

.answer-phrase-breakdown__tone-badge-text {
	display: block;
}

.askthai-phrase-breakdown-tone-tooltip {
	position: fixed;
	z-index: 20000;
	max-width: min(18rem, calc(100vw - 1.5rem));
	padding: clamp(0.55rem, 0.45rem + 0.35vw, 0.75rem) clamp(0.65rem, 0.55rem + 0.45vw, 0.85rem);
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(8, 12, 28, 0.96);
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
	line-height: 1.45;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	pointer-events: auto;
	overflow-wrap: break-word;
}

.answer-phrase-breakdown__thai {
	/* Fallback when cqi is unavailable: still allow wrap, slightly softer max. */
	font-size: clamp(1.375rem, 6vw, var(--text-thai-breakdown));
	line-height: 1.25;
	color: #fff;
	text-align: center;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
	line-break: anywhere;
	box-sizing: border-box;
}

@supports (font-size: 1cqi) {
	.answer-phrase-breakdown__thai {
		/* Scale with card width so long compounds (e.g. รถจักรยานยนต์) stay readable. */
		font-size: clamp(1.375rem, 16cqi, var(--text-thai-breakdown));
	}
}

.answer-phrase-breakdown__meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-width: 0;
	width: 100%;
	text-align: center;
}

.answer-phrase-breakdown__transcription {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: clamp(16px, 2.4vw, 22px);
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.78);
	word-break: break-word;
}

.answer-phrase-breakdown__gloss {
	font-size: 13px;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.56);
	word-break: break-word;
}

.answer-grammar-hints__body {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm, 0.75rem);
	margin: 0;
}

.answer-grammar-hints__list {
	margin: 0;
	padding-left: 1.25rem;
	list-style: disc;
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	min-width: 0;
	max-width: 100%;
}

.answer-grammar-hints__item {
	display: block;
	width: 100%;
	padding-left: 0;
	margin: 0;
	font-size: var(--text-md);
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.9);
	overflow-wrap: anywhere;
	word-break: break-word;
}

.answer-grammar-hints__item--pos {
	margin-bottom: 0;
}

.answer-grammar-hints__item--tone-rule {
	margin-top: 0;
}

/* Use native list markers for stable alignment (Thai spans may be large). */

.answer-pronunciation-audio {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
	height: 100%;
	min-width: 0;
	max-width: 100%;
	padding: var(--space-md) calc(var(--space-md) + 0.125rem) calc(var(--space-md) + 0.25rem);
	border-radius: 1rem;
	border: 1px solid rgba(99, 102, 241, 0.22);
	background:
		linear-gradient(145deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.94));
	box-shadow:
		0 12px 32px rgba(2, 6, 23, 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
	box-sizing: border-box;
}

.answer-pronunciation-audio__header {
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	min-width: 0;
}

.answer-pronunciation-audio__header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	border-radius: 0.625rem;
	background: rgba(15, 23, 42, 0.72);
	border: 1px solid rgba(129, 140, 248, 0.24);
	color: rgba(165, 180, 252, 0.92);
}

.answer-pronunciation-audio__header-label {
	min-width: 0;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: clamp(0.12em, 0.08em + 0.55vw, 0.28em);
	text-transform: uppercase;
	color: rgba(165, 180, 252, 0.82);
	overflow-wrap: anywhere;
}

.answer-pronunciation-audio__body {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 0.6rem + 0.6vw, 1.125rem);
	min-width: 0;
	width: 100%;
}

.answer-pronunciation-audio__play {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(2.75rem, 2.5rem + 0.75vw, 3.5rem);
	height: clamp(2.75rem, 2.5rem + 0.75vw, 3.5rem);
	min-width: var(--touch-min);
	min-height: var(--touch-min);
	padding: 0;
	border-radius: 50%;
	border: none;
	background: linear-gradient(135deg, #38bdf8 0%, #818cf8 48%, #ec4899 100%);
	color: #fff;
	box-shadow:
		0 0 24px rgba(56, 189, 248, 0.28),
		0 0 32px rgba(236, 72, 153, 0.18);
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		opacity 0.2s ease;
}

.answer-pronunciation-audio__play:hover:not(:disabled),
.answer-pronunciation-audio__play:focus-visible:not(:disabled) {
	transform: translateY(-1px) scale(1.04);
	box-shadow:
		0 0 28px rgba(56, 189, 248, 0.38),
		0 0 40px rgba(236, 72, 153, 0.28);
}

.answer-pronunciation-audio__play:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	filter: grayscale(0.35);
}

.answer-pronunciation-audio--loading .answer-pronunciation-audio__play {
	animation: answer-pronunciation-audio-pulse 1.4s ease-in-out infinite;
}

.answer-pronunciation-audio--recovering .answer-pronunciation-audio__play {
	animation: answer-pronunciation-audio-pulse 1.4s ease-in-out infinite;
}

.answer-pronunciation-audio__status.is-visible {
	display: block;
	margin-block-start: var(--space-xs, 0.5rem);
	padding-inline: var(--space-xs, 0.5rem);
	max-width: 100%;
	font-size: var(--text-sm, 0.875rem);
	line-height: 1.4;
	color: var(--color-text-muted, #64748b);
	overflow-wrap: break-word;
}

.answer-pronunciation-audio__status.is-visible.is-error {
	color: var(--color-danger, #b91c1c);
}

.answer-pronunciation-audio--failed .answer-pronunciation-audio__play {
	opacity: 1;
	filter: none;
	cursor: pointer;
}

@keyframes answer-pronunciation-audio-pulse {
	0%,
	100% {
		box-shadow:
			0 0 18px rgba(56, 189, 248, 0.2),
			0 0 24px rgba(236, 72, 153, 0.12);
	}

	50% {
		box-shadow:
			0 0 28px rgba(56, 189, 248, 0.36),
			0 0 40px rgba(236, 72, 153, 0.24);
	}
}

.answer-pronunciation-audio__visual {
	flex: 1;
	min-width: min(100%, 7.5rem);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.answer-pronunciation-audio__waveform {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2px;
	height: 44px;
	padding: 0 2px;
}

.answer-pronunciation-audio__waveform-bar {
	flex: 1 1 0;
	min-width: 2px;
	max-width: 5px;
	height: var(--bar-height, 50%);
	border-radius: 999px;
	background: linear-gradient(
		180deg,
		rgba(56, 189, 248, 0.92) 0%,
		rgba(129, 140, 248, 0.88) 52%,
		rgba(236, 72, 153, 0.82) 100%
	);
	opacity: 0.58;
	transform-origin: bottom center;
}

.answer-pronunciation-audio--playing .answer-pronunciation-audio__waveform-bar {
	animation: answer-pronunciation-waveform 1.15s ease-in-out infinite;
}

.answer-pronunciation-audio__waveform-bar:nth-child(3n) {
	animation-delay: 0.12s;
}

.answer-pronunciation-audio__waveform-bar:nth-child(3n + 1) {
	animation-delay: 0.24s;
}

.answer-pronunciation-audio__waveform-bar:nth-child(3n + 2) {
	animation-delay: 0.36s;
}

@keyframes answer-pronunciation-waveform {
	0%,
	100% {
		transform: scaleY(0.72);
		opacity: 0.48;
	}

	50% {
		transform: scaleY(1.08);
		opacity: 0.88;
	}
}

.answer-pronunciation-audio__timeline {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(0.375rem, 0.3rem + 0.3vw, 0.625rem);
	min-width: 0;
	width: 100%;
}

.answer-pronunciation-audio__time {
	font-size: var(--text-xs);
	font-variant-numeric: tabular-nums;
	color: rgba(226, 232, 240, 0.72);
	min-width: 2.4em;
}

.answer-pronunciation-audio__time--current {
	text-align: left;
}

.answer-pronunciation-audio__time--duration {
	text-align: right;
}

.answer-pronunciation-audio__seek {
	display: block;
	width: 100%;
	padding: 6px 0;
	margin: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.answer-pronunciation-audio__seek:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.answer-pronunciation-audio__seek-track {
	position: relative;
	display: block;
	height: 4px;
	border-radius: 999px;
	background: rgba(99, 102, 241, 0.22);
	overflow: visible;
}

.answer-pronunciation-audio__seek-fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #38bdf8 0%, #818cf8 52%, #ec4899 100%);
	transform: scaleX(0);
	transform-origin: left center;
	will-change: transform;
}

.answer-pronunciation-audio__seek-thumb {
	position: absolute;
	top: 50%;
	left: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #f8fafc;
	box-shadow:
		0 0 0 2px rgba(56, 189, 248, 0.35),
		0 0 14px rgba(129, 140, 248, 0.55);
	transform: translate(-50%, -50%);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.answer-pronunciation-audio__seek:hover .answer-pronunciation-audio__seek-thumb,
.answer-pronunciation-audio__seek:focus-visible .answer-pronunciation-audio__seek-thumb,
.answer-pronunciation-audio--playing .answer-pronunciation-audio__seek-thumb {
	opacity: 1;
}

.answer-pronunciation-audio__player {
	display: none;
}

@container pronunciation-block (min-width: 12.5rem) {
	.answer-pronunciation-block.is-pair-column.is-short .answer-pronunciation-block__thai {
		font-size: clamp(40px, 14cqi, 72px);
	}

	.answer-pronunciation-block.is-pair-column.is-medium .answer-pronunciation-block__thai {
		font-size: clamp(28px, 10cqi, 52px);
	}

	.answer-pronunciation-block.is-pair-column.is-long .answer-pronunciation-block__thai {
		font-size: clamp(22px, 7cqi, 36px);
	}

	.answer-pronunciation-block.is-pair-column .answer-pronunciation-block__transcription {
		font-size: clamp(16px, 4cqi, 22px);
	}

	.answer-pronunciation-block.is-pair-column.is-long .answer-pronunciation-block__transcription {
		font-size: clamp(14px, 3.2cqi, 18px);
	}
}

@container pronunciation-block (max-width: 35rem) {
	.answer-pronunciation-block.is-short,
	.answer-pronunciation-block.is-medium {
		flex-direction: column;
		align-items: stretch;
	}

	.answer-pronunciation-block.is-short .answer-pronunciation-block__text {
		max-width: none;
		text-align: left;
		padding-left: 0;
	}

	.answer-pronunciation-block.is-short .answer-pronunciation-audio,
	.answer-pronunciation-block.is-medium .answer-pronunciation-audio {
		width: 100%;
		max-width: none;
		min-width: 0;
	}
}

@media (max-width: 64rem) {
	.answer-pronunciation-block {
		--pron-audio-min: 0;
	}

	.answer-pronunciation-block.is-short .answer-pronunciation-block__thai {
		font-size: clamp(2.25rem, 8vw, 3.75rem);
	}

	.answer-pronunciation-block.is-medium .answer-pronunciation-audio {
		flex: 1 1 min(100%, 18.75rem);
		max-width: min(100%, 25rem);
	}
}

@media (max-width: 40rem) {
	.answer-pronunciation-block {
		--pron-audio-min: 0;
	}

	.answer-pronunciation-audio__body {
		align-items: center;
	}

	.answer-pronunciation-audio__play {
		margin-top: 0;
	}

	.answer-pronunciation-audio__waveform {
		height: 2.25rem;
	}

	.answer-pronunciation-audio__visual {
		min-width: 0;
	}
}

/* Skeleton placeholders */

.answer-placeholder {
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
	min-width: 0;
	max-width: 100%;
}

.answer-placeholder--audio {
	flex-direction: row;
	align-items: center;
	gap: var(--space-md);
}

.answer-placeholder--tone {
	flex-direction: row;
	align-items: flex-end;
	gap: var(--space-xs);
	min-height: 4.5rem;
}

.answer-placeholder--related {
	flex-flow: row wrap;
	gap: var(--space-xs);
}

.answer-placeholder--phrase-breakdown {
	flex-flow: row wrap;
	gap: var(--space-xs);
}

.answer-placeholder--lexicon {
	gap: clamp(0.65rem, 1.5vw, 0.85rem);
	width: 100%;
}

.answer-pair-row .answer-placeholder--main,
.answer-pair-row .answer-placeholder--write-pair {
	width: 100%;
}

.answer-placeholder__lexicon-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: clamp(0.5rem, 1.2vw, 0.75rem);
	width: 100%;
}

.answer-placeholder__lexicon-head .answer-skeleton__line {
	flex: 1 1 auto;
	min-width: 0;
}

.answer-placeholder__lexicon-head .answer-skeleton__chip--badge {
	flex-shrink: 0;
	margin-inline-start: auto;
}

.answer-placeholder__gloss-list {
	display: flex;
	flex-direction: column;
	gap: clamp(0.45rem, 1vw, 0.65rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.answer-placeholder__gloss-list li {
	margin: 0;
}

.answer-placeholder--write-pair {
	align-items: flex-start;
	gap: clamp(0.75rem, 1.5vw, 1rem);
}

.answer-skeleton__thai--pair {
	height: clamp(2.75rem, 8vw, 4.5rem);
	width: min(100%, 8rem);
	margin-inline: auto;
	border-radius: 0.875rem;
}

.answer-skeleton__chip--badge {
	width: min(100%, 4.5rem);
	height: 1.75rem;
	border-radius: 999px;
}

.answer-skeleton__line--centered {
	margin-inline: auto;
}

.answer-pair-row .answer-pronunciation-block.is-pair-column .answer-placeholder--audio {
	width: 100%;
	max-width: 100%;
}

.answer-skeleton__line,
.answer-skeleton__thai,
.answer-skeleton__play,
.answer-skeleton__wave,
.answer-skeleton__tone-bar,
.answer-skeleton__example,
.answer-skeleton__chip {
	display: block;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.05) 0%,
		rgba(255, 255, 255, 0.1) 50%,
		rgba(255, 255, 255, 0.05) 100%
	);
	background-size: 200% 100%;
	animation: answer-shimmer 1.8s ease-in-out infinite;
}

.answer-skeleton__line {
	height: 12px;
	width: 100%;
	border-radius: 8px;
}

.answer-skeleton__line--xl {
	height: 18px;
	width: 92%;
}

.answer-skeleton__line--lg {
	height: 14px;
	width: 78%;
}

.answer-skeleton__line--md {
	height: 12px;
	width: 64%;
}

.answer-skeleton__line--sm {
	height: 10px;
	width: 48%;
}

.answer-skeleton__line--xs {
	height: 10px;
	width: 32%;
}

.answer-skeleton__thai {
	height: 2.625rem;
	width: min(100%, 17.5rem);
	border-radius: 0.875rem;
}

.answer-skeleton__play {
	flex-shrink: 0;
	width: var(--touch-min);
	height: var(--touch-min);
	border-radius: 50%;
}

.answer-skeleton__wave {
	flex: 1;
	min-width: 0;
	height: 2.25rem;
	border-radius: 0.75rem;
}

.answer-skeleton__tone-bar {
	flex: 1;
	min-width: 0;
	border-radius: 10px 10px 6px 6px;
}

.answer-skeleton__tone-bar:nth-child(1) { height: 34px; animation-delay: 0s; }
.answer-skeleton__tone-bar:nth-child(2) { height: 52px; animation-delay: 0.1s; }
.answer-skeleton__tone-bar:nth-child(3) { height: 68px; animation-delay: 0.2s; }
.answer-skeleton__tone-bar:nth-child(4) { height: 44px; animation-delay: 0.3s; }
.answer-skeleton__tone-bar:nth-child(5) { height: 58px; animation-delay: 0.4s; }

.answer-skeleton__example {
	height: 54px;
	width: 100%;
	border-radius: 16px;
}

.answer-skeleton__chip {
	height: 2.375rem;
	width: min(100%, 8.75rem);
	max-width: 100%;
	border-radius: 999px;
}

.answer-skeleton__chip:nth-child(2) { width: min(100%, 10.5rem); }
.answer-skeleton__chip:nth-child(3) { width: min(100%, 7.75rem); }
.answer-skeleton__chip:nth-child(4) { width: min(100%, 9.5rem); }

@keyframes answer-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

@media (min-width: 48rem) {
	.answer-card {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--space-lg);
		align-items: stretch;
	}

	.question-page--contact .answer-card--contact {
		grid-template-columns: 1fr;
	}

	.answer-card > .answer-main,
	.answer-card > .answer-page-content,
	.answer-card > .contact-comments,
	.answer-card > .answer-grammar,
	.answer-card > .answer-translation,
	.answer-card > .answer-tone-analysis,
	.answer-card > .answer-examples,
	.answer-card > .answer-related-expressions,
	.answer-card > .answer-course,
	.answer-card > .answer-related-questions {
		grid-column: 1 / -1;
	}
}

@media (min-width: 64rem) {
	.answer-container {
		padding-inline: var(--layout-gutter);
	}

	.answer-section {
		padding: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	}

	.answer-main {
		padding: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
	}
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	position: absolute;
	bottom: var(--footer-bottom-offset);
	left: 0;
	right: 0;
	z-index: 2;
	pointer-events: none;
	padding-inline: var(--layout-gutter);
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--footer-nav-gap);
	pointer-events: auto;
}

.site-footer__sep {
	font-size: var(--text-xs);
	letter-spacing: 0;
	text-transform: none;
	color: rgba(255, 255, 255, 0.42);
	user-select: none;
}

.site-footer__nav a.hero-examples-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--touch-min);
	min-width: var(--touch-min);
	padding-block: var(--space-2xs);
	padding-inline: var(--space-sm);
	text-decoration: none;
	line-height: 1.25;
	transition: color 0.2s var(--ease);
}

.site-footer__nav a.hero-examples-label:hover {
	color: rgba(255, 255, 255, 0.58);
}

.site-footer__nav a.hero-examples-label:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 3px;
	border-radius: 2px;
}

/* ==========================================================================
   Fallback
   ========================================================================== */

.hero--fallback::before,
.hero--fallback::after {
	display: none;
}

/* Hero FX â€” reduced motion */
@media (prefers-reduced-motion: reduce) {
	.hero-fx__aurora,
	.hero-fx__sweep,
	.hero-fx__constellation::before,
	.hero-fx__constellation::after,
	.hero-fx__signal {
		animation: none;
	}

	.hero-fx__aurora {
		opacity: 0.22;
		transform: none;
	}

	.hero-fx__sweep {
		display: none;
	}

	.hero-fx__constellation {
		opacity: 0.16;
	}

	.hero-fx__constellation::before,
	.hero-fx__constellation::after {
		opacity: 0.18;
		transform: none;
	}

	.hero-fx__signal {
		display: none;
	}

	.hero-star {
		animation: none;
		display: none;
	}
}

.hero__title--fallback {
	font-size: clamp(1.5rem, 4vw, 2.5rem);
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.fallback-post__body {
	max-width: 40rem;
	margin: 0 auto;
	text-align: left;
	color: rgba(255, 255, 255, 0.65);
	font-size: 1rem;
	line-height: 1.7;
}

.fallback-post__body a {
	color: #38bdf8;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fallback-post__link {
	margin-top: 1rem;
	font-size: 0.9375rem;
}

.fallback-post__link a {
	color: #38bdf8;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ==========================================================================
   Tablet â€” mid-width answer / hero spacing
   ========================================================================== */

@media (max-width: 64rem) and (min-width: 48rem) {
	.answer-container {
		padding-inline: var(--layout-gutter);
	}

	.hero__content {
		padding-inline: var(--layout-gutter);
	}

	.site-brand {
		max-width: min(100%, 14rem);
	}
}

/* ==========================================================================
   Mobile â€” hero FX + narrow layout (+ former hardening overrides)
   ========================================================================== */

@media (max-width: 47.99rem) {
	:root {
		--search-height: clamp(3rem, 2.75rem + 1.25vw, 3.75rem);
		--search-height-compact: clamp(2.875rem, 2.65rem + 0.75vw, 3.5rem);
		/* Stay near 1rem (iOS zoom guard) but do not grow with vw on phones. */
		--search-input: 1rem;
		--search-icon: clamp(1.125rem, 4.5vw, 1.375rem);
		--search-field-inset: clamp(0.375rem, 0.3rem + 0.25vw, 0.5rem);
		--brand-logo-height: clamp(2rem, 1.8rem + 0.6vw, 2.55rem);
		--header-pad-x: max(var(--layout-gutter-sm), env(safe-area-inset-left, 0px));
		/* Stacked footer links (How it works / App / Contact·Legal + legal page titles) — keep clearance in sync */
		--footer-bottom-offset: clamp(1rem, 0.75rem + 1.5vw, 1.375rem);
		--footer-nav-gap: var(--space-sm);
		--footer-stack-height: calc(
			(var(--footer-link-count) * var(--touch-min))
			+ ((var(--footer-link-count) - 1) * var(--footer-nav-gap))
		);
	}

	.site-footer__nav {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: var(--footer-nav-gap);
	}

	.site-footer__sep {
		display: none;
	}

	.site-header {
		gap: var(--space-xs);
	}

	.site-brand {
		max-width: min(52vw, 11rem);
	}

	.site-header__actions {
		gap: var(--space-xs);
	}

	.search-bar__field {
		gap: var(--space-2xs);
		padding-left: var(--space-sm);
	}

	.search-bar__action {
		min-width: max(var(--search-action-inner), calc(var(--search-action-inner) + 0.5rem));
		margin-inline-start: 0.125rem;
	}

	.search-bar__input {
		margin-left: var(--space-2xs);
		/* Mobile-only autofit may set --search-input-fit below 1rem for long prefill. */
		font-size: var(--search-input-fit, var(--search-input));
	}

	.answer-phrase-breakdown__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.answer-course-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero {
		background-position: 50% 50%;
	}

	/* Popular questions on mobile: normal flow instead of an absolute bottom
	   overlay, so every question stays fully visible without a nested
	   scrollbar. If the hero grows taller than the viewport on short phones,
	   the page scrolls normally rather than clipping the questions. */
	.hero__search-zone:has(.hero-examples) {
		padding-bottom: 0;
	}

	.hero__content {
		padding-bottom: calc(var(--space-lg) + var(--footer-examples-clearance));
	}

	.hero__search-zone .hero-examples {
		position: static;
		inset: auto;
		margin-top: var(--space-lg);
		padding-inline: 0;
	}

	.hero-fx__aurora {
		opacity: 0.36;
		animation-duration: 28s;
	}

	.hero-fx__sweep {
		animation-duration: 16s;
	}

	.hero-fx__constellation {
		opacity: 0.38;
	}

	.hero-fx__constellation::before {
		animation-duration: 18s;
	}

	.hero-fx__constellation::after {
		animation-duration: 22s;
	}

	.hero-fx__signal--b,
	.hero-fx__signal--d,
	.hero-fx__signal--f {
		display: none;
	}

	.hero-fx__signal--a {
		width: 72vw;
		left: 4%;
		top: 72%;
		animation-duration: 18s;
		animation-delay: 0s;
	}

	.hero-fx__signal--c {
		width: 62vw;
		left: 8%;
		top: 38%;
		animation-duration: 18s;
		animation-delay: -6s;
	}

	.hero-fx__signal--e {
		width: 68vw;
		right: 6%;
		top: 18%;
		left: auto;
		animation-duration: 18s;
		animation-delay: -12s;
	}

	.hero-star {
		animation-duration: 15s;
	}

	.hero-star:nth-child(n + 11) {
		display: none;
	}

	.site-footer {
		padding-inline: var(--layout-gutter-sm);
	}

	.answer-section__head {
		gap: var(--space-sm);
		margin-bottom: var(--space-md);
	}

	.answer-section__icon {
		width: clamp(2rem, 1.85rem + 0.75vw, 2.375rem);
		height: clamp(2rem, 1.85rem + 0.75vw, 2.375rem);
		border-radius: 0.75rem;
	}

	.answer-section__title {
		font-size: var(--text-xs);
		letter-spacing: clamp(0.12em, 0.08em + 0.4vw, 0.22em);
		overflow-wrap: anywhere;
	}

	.answer-placeholder--tone {
		min-height: 3.5rem;
		gap: var(--space-xs);
	}

	.answer-skeleton__chip {
		width: 100%;
		max-width: 13.75rem;
	}
}

/* Compact phones â€” header / search chrome */
@media (max-width: 32.5rem) {
	:root {
		--btn-login-w: clamp(4.25rem, 18vw, 5rem);
		--header-pad-x: max(0.75rem, env(safe-area-inset-left, 0px));
	}

	.site-brand {
		gap: var(--space-2xs);
		min-width: 0;
		max-width: min(52vw, 11rem);
	}

	.site-locale-switch__trigger {
		padding: 0.35rem 0.4rem;
	}

	.follow-up-bridge__inner {
		padding-inline: var(--space-md);
	}
}

/* Very narrow phones â€” prevent header overflow */
@media (max-width: 22.5rem) {
	:root {
		--brand-logo-height: 2.25rem;
		--search-action: clamp(2.75rem, 12vw, 3.25rem);
		--search-action-inner: clamp(2.5rem, 11vw, 2.875rem);
		--search-field-inset: 0.3125rem;
	}

	.site-brand {
		max-width: min(46vw, 9.5rem);
	}

	.site-brand__wordmark {
		font-size: 1rem;
	}

	.site-locale-switch__trigger {
		padding: 0.3rem 0.4rem;
	}

	.site-locale-switch__flag {
		width: 1.25rem;
		height: 0.875rem;
	}

	.site-header__account {
		--header-account-size: 2.75rem;
	}

	.search-bar__field {
		padding-inline-start: var(--space-sm);
	}

	.search-bar__icon svg {
		width: clamp(1.125rem, 5vw, 1.375rem);
		height: clamp(1.125rem, 5vw, 1.375rem);
	}
}

/* Speaker markers (pronouns / polite particles) */
.askthai-marker {
	cursor: help;
	pointer-events: auto;
	position: relative;
	font-size: inherit;
	line-height: inherit;
	text-decoration: underline dashed;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
	border-radius: 2px;
}

.askthai-marker--male {
	color: var(--askthai-marker-male);
}

.askthai-marker--female {
	color: var(--askthai-marker-female);
}

.askthai-marker:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.45);
	outline-offset: 2px;
}

.askthai-marker-tooltip {
	position: fixed;
	z-index: 20000;
	max-width: min(20rem, calc(100vw - 1.5rem));
	padding: var(--space-sm) var(--space-sm);
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(8, 12, 28, 0.96);
	color: rgba(255, 255, 255, 0.92);
	font-size: var(--text-sm);
	line-height: 1.45;
	overflow-wrap: anywhere;
	box-sizing: border-box;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	pointer-events: auto;
}

.askthai-marker-tooltip__link {
	display: inline-block;
	margin-top: 8px;
	color: #93c5fd;
	text-decoration: none;
	font-weight: 600;
}

.askthai-marker-tooltip__link:hover,
.askthai-marker-tooltip__link:focus-visible {
	color: #bfdbfe;
	text-decoration: underline;
}

.askthai-silko-tone-tooltip {
	position: fixed;
	z-index: 20000;
	max-width: min(320px, calc(100vw - 24px));
	padding: clamp(0.65rem, 0.55rem + 0.35vw, 0.875rem) clamp(0.75rem, 0.65rem + 0.45vw, 0.95rem);
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(8, 12, 28, 0.96);
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
	line-height: 1.45;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
	pointer-events: auto;
}

.askthai-silko-tone-tooltip__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.35rem;
}

.askthai-silko-tone-tooltip__item {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}

.askthai-silko-tone-tooltip__symbol {
	flex-shrink: 0;
	min-width: 1.1em;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.98);
}

.askthai-silko-tone-tooltip__label {
	overflow-wrap: break-word;
}

.askthai-silko-tone-tooltip__intro {
	margin: 0.65rem 0 0;
}

.askthai-silko-tone-tooltip__link {
	color: #93c5fd;
	text-decoration: none;
	font-weight: 600;
}

.askthai-silko-tone-tooltip__link:hover,
.askthai-silko-tone-tooltip__link:focus-visible {
	color: #bfdbfe;
	text-decoration: underline;
}

/* ==========================================================================
   Pro pricing (/pro/) â€” minimalist upgrade page
   Scoped to .askthai-auth-page--pro
   ========================================================================== */

.askthai-auth-page--pro {
	--pro-card-max: min(100%, 45rem);
	--pro-space-section: clamp(0.875rem, 0.65rem + 0.9vw, 1.375rem);
	--pro-space-card: clamp(1.125rem, 1rem + 0.75vw, 1.75rem);
}

.askthai-auth-page--pro .pro-page {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	box-sizing: border-box;
	/* Same clearance as auth/install-app pages — without it the absolute footer
	   ("Install App") sits on top of the Upgrade CTA on short mobile viewports. */
	padding:
		var(--page-header-clearance)
		max(var(--layout-gutter-sm), env(safe-area-inset-left, 0px))
		calc(var(--footer-examples-clearance) + var(--space-md));
	padding-right: max(var(--layout-gutter-sm), env(safe-area-inset-right, 0px));
}

.askthai-auth-page--pro .pro-page::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 45% at 18% 42%, rgba(59, 130, 246, 0.12) 0%, transparent 68%),
		radial-gradient(ellipse 65% 50% at 82% 58%, rgba(139, 92, 246, 0.1) 0%, transparent 72%),
		radial-gradient(ellipse 55% 40% at 50% 18%, rgba(8, 12, 28, 0.35) 0%, transparent 70%);
}

body.admin-bar .askthai-auth-page--pro .pro-page {
	padding-top: calc(var(--page-header-clearance) + 32px);
}

@media (min-width: 48.875rem) {
	body.admin-bar .askthai-auth-page--pro .pro-page {
		padding-top: calc(var(--page-header-clearance) + 46px);
	}
}

.pro-page__inner {
	position: relative;
	z-index: 1;
	width: var(--pro-card-max);
	max-width: 100%;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--pro-space-section);
}

.pro-page__header {
	width: 100%;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(0.375rem, 0.3rem + 0.35vw, 0.625rem);
}

.pro-page__title {
	margin: 0;
	width: 100%;
	max-width: none;
	font-size: clamp(1.625rem, 1.1rem + 2vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: rgba(255, 255, 255, 0.98);
	text-wrap: balance;
}

.pro-page__lead {
	margin: 0;
	width: 100%;
	max-width: none;
	font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.68);
	text-wrap: balance;
}

.pro-page__notice {
	width: 100%;
	margin: 0;
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
	line-height: 1.45;
	text-align: center;
}

.pro-page__notice--success {
	background: color-mix(in srgb, #1f7a4d 12%, transparent);
	border: 1px solid color-mix(in srgb, #1f7a4d 35%, transparent);
}

.pro-page__notice--info {
	background: color-mix(in srgb, var(--color-accent) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
}

/* Post-checkout / already-Pro confirmation — no pricing UI */
.askthai-auth-page--pro .pro-page--member {
	justify-content: center;
	min-height: calc(100svh - var(--page-header-clearance) - var(--footer-examples-clearance));
}

.pro-success {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(1.25rem, 1rem + 1.25vw, 2rem);
	text-align: center;
}

.pro-success__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(4.5rem, 3.75rem + 3vw, 5.75rem);
	height: clamp(4.5rem, 3.75rem + 3vw, 5.75rem);
	border-radius: 50%;
	color: #fff;
	background:
		radial-gradient(circle at 50% 40%, rgba(74, 222, 128, 0.35) 0%, transparent 70%),
		linear-gradient(145deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
	box-shadow:
		0 0 0 0.375rem rgba(34, 197, 94, 0.18),
		0 0 2rem rgba(34, 197, 94, 0.35),
		0 0 3.5rem rgba(56, 189, 248, 0.12);
}

.pro-success__check {
	width: 52%;
	height: 52%;
	display: block;
}

.pro-success__header {
	gap: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem);
}

.pro-success__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(0.875rem, 0.7rem + 0.6vw, 1.25rem);
	width: min(100%, 22.5rem);
	margin-top: clamp(0.25rem, 0.1rem + 0.5vw, 0.75rem);
}

.pro-success__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.375rem 0.75rem;
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.62);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	overflow-wrap: anywhere;
}

.pro-success__secondary:hover,
.pro-success__secondary:focus-visible {
	color: rgba(255, 255, 255, 0.92);
}

.pro-success__secondary:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

.askthai-auth-page--pro .pro-page--member .pro-success__actions .pro-card__cta.btn--login {
	width: 100%;
}

.profile-summary__portal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius-md);
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.profile-summary__portal-btn:hover,
.profile-summary__portal-btn:focus-visible {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.pro-billing-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
	width: 100%;
}

.pro-billing-toolbar__interval,
.pro-billing-toolbar__currency {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.pro-billing-toggle__option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.375rem;
	min-height: var(--touch-min);
	min-width: 0;
	max-width: 100%;
	padding: 0.5rem clamp(0.875rem, 0.75rem + 0.5vw, 1.125rem);
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, 0.72);
	font: inherit;
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 1.25;
	white-space: normal;
	text-align: center;
	overflow-wrap: anywhere;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.pro-billing-toggle__option.is-active,
.pro-billing-toggle__option[aria-selected="true"] {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.pro-billing-toggle__option:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 2px;
}

.pro-billing-toggle__badge {
	flex-shrink: 0;
	font-size: clamp(0.625rem, 0.58rem + 0.15vw, 0.6875rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.2;
	padding: 0.2rem 0.45rem;
	border-radius: 999px;
	background: rgba(56, 189, 248, 0.22);
	color: #7dd3fc;
	white-space: nowrap;
}

.pro-currency-flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: var(--touch-min);
	min-height: var(--touch-min);
	padding: 0.375rem;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, 0.78);
	cursor: pointer;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.pro-currency-flag.is-active,
.pro-currency-flag[aria-pressed="true"] {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45);
}

.pro-currency-flag:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 2px;
}

.pro-currency-flag__symbol {
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	font-weight: 600;
	line-height: 1;
	font-family: var(--font-sans, system-ui, sans-serif);
}

.pro-card {
	width: 100%;
	padding: var(--pro-space-card);
	border-radius: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
	border: 1px solid transparent;
	background:
		linear-gradient(165deg, rgba(10, 14, 32, 0.78) 0%, rgba(6, 10, 22, 0.84) 100%) padding-box,
		linear-gradient(135deg, rgba(96, 165, 250, 0.42) 0%, rgba(139, 92, 246, 0.32) 52%, rgba(236, 72, 153, 0.22) 100%) border-box;
	backdrop-filter: blur(20px) saturate(1.08);
	-webkit-backdrop-filter: blur(20px) saturate(1.08);
	box-shadow:
		0 24px 64px rgba(0, 0, 0, 0.34),
		0 0 48px rgba(56, 189, 248, 0.06),
		0 0 56px rgba(139, 92, 246, 0.05);
	display: flex;
	flex-direction: column;
	gap: clamp(1rem, 0.85rem + 0.75vw, 1.5rem);
}

.pro-card__plan-name {
	margin: 0;
	text-align: center;
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	background: var(--grad-eyebrow);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.pro-card__price {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0.375rem 0.5rem;
	text-align: center;
}

.pro-card__amount {
	font-size: clamp(2.125rem, 1.5rem + 2.75vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	color: rgba(255, 255, 255, 0.98);
}

.pro-card__period {
	font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
}

.pro-card__compare {
	margin: 0;
	text-align: center;
	font-size: var(--text-sm);
	color: rgba(252, 165, 165, 0.88);
}

.pro-card__compare s {
	color: rgba(252, 165, 165, 0.88);
	text-decoration-color: rgba(248, 113, 113, 0.75);
	text-decoration-thickness: 1px;
}

.pro-card__divider {
	width: 100%;
	height: 1px;
	margin: 0;
	border: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.12) 80%, transparent);
}

.pro-card__features {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: clamp(0.75rem, 0.5rem + 1vw, 1.5rem);
}

.pro-card__features li:not([hidden]) {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-width: 0;
	max-width: 100%;
	font-size: clamp(0.875rem, 0.82rem + 0.25vw, 1rem);
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
	white-space: normal;
	overflow-wrap: anywhere;
}

.pro-card__features li[hidden] {
	display: none;
}

.askthai-auth-page--pro .pro-page[data-initial-plan="monthly"] [data-pro-yearly-feature] {
	display: none;
}

.pro-card__features li::before {
	content: "";
	flex: 0 0 auto;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0;
	border-radius: 50%;
	background-color: rgba(56, 189, 248, 0.18);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8.25 6.75 11 12 5.5' stroke='%2338bdf8' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.75rem 0.75rem;
}

@media (max-width: 47.99rem) {
	.pro-card__features {
		flex-direction: column;
		align-items: center;
	}

	.pro-card__features li:not([hidden]) {
		white-space: normal;
		text-align: center;
		max-width: 100%;
	}
}

.pro-card__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: clamp(0.75rem, 0.6rem + 0.5vw, 1rem);
	margin-top: clamp(0.25rem, 0.15rem + 0.35vw, 0.5rem);
}

.pro-card__notice,
.pro-card__hint {
	margin: 0;
	font-size: var(--text-sm);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.58);
	text-align: center;
}

.pro-card__hint--secure {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-top: clamp(0.125rem, 0.05rem + 0.25vw, 0.375rem);
}

.pro-card__hint-icon {
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.42);
}

.pro-card__hint a {
	color: #93c5fd;
}

.askthai-auth-page--pro .pro-card__cta.btn--login {
	display: flex;
	width: 100%;
	min-width: 0;
	height: auto;
	min-height: var(--touch-min);
	padding: 1px;
	border: none;
	border-radius: 999px;
	background: var(--grad-border);
	box-shadow:
		0 0 24px rgba(56, 189, 248, 0.22),
		0 0 24px rgba(139, 92, 246, 0.16),
		0 8px 24px rgba(0, 0, 0, 0.28);
	transition:
		box-shadow 0.25s var(--ease),
		transform 0.15s var(--ease),
		opacity 0.2s var(--ease);
}

.askthai-auth-page--pro .pro-card__cta.btn--login span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: calc(var(--touch-min) - 2px);
	height: auto;
	padding: 0.75rem 1.25rem;
	font-size: clamp(0.9375rem, 0.88rem + 0.25vw, 1.0625rem);
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	white-space: normal;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(59, 130, 246, 0.95) 0%, rgba(139, 92, 246, 0.92) 52%, rgba(236, 72, 153, 0.9) 100%);
	color: #fff;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.askthai-auth-page--pro .pro-card__cta.btn--login:hover {
	box-shadow:
		0 0 32px rgba(56, 189, 248, 0.34),
		0 0 32px rgba(139, 92, 246, 0.24),
		0 10px 28px rgba(0, 0, 0, 0.32);
}

.askthai-auth-page--pro .pro-card__cta.btn--login:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 4px;
}

.askthai-auth-page--pro .pro-card__cta.btn--login[disabled],
.askthai-auth-page--pro .pro-card__cta.btn--login[aria-disabled="true"] {
	opacity: 0.72;
	cursor: not-allowed;
}

.askthai-auth-page--pro .pro-card__cta.btn--login[disabled]:hover,
.askthai-auth-page--pro .pro-card__cta.btn--login[aria-disabled="true"]:hover {
	box-shadow:
		0 0 24px rgba(56, 189, 248, 0.22),
		0 0 24px rgba(139, 92, 246, 0.16),
		0 8px 24px rgba(0, 0, 0, 0.28);
}

@media (max-width: 47.99rem) {
	.pro-billing-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.pro-billing-toolbar__interval,
	.pro-billing-toolbar__currency {
		justify-content: center;
		width: 100%;
	}
}

@media (min-width: 48rem) {
	.pro-billing-toolbar__interval {
		flex: 0 1 auto;
	}

	.pro-billing-toolbar__currency {
		flex: 0 0 auto;
	}

	.pro-page__title,
	.pro-page__lead {
		text-wrap: balance;
		overflow-wrap: anywhere;
	}
}

/* ==========================================================================
   Auth pages (/login/, /register/, /forgot-password/, /profile/)
   Spacing scale: headlineâ†’lead 10px, leadâ†’form 28px, labelâ†’input 9px,
   fieldâ†’field 26px, passwordâ†’checkbox 26px, checkboxâ†’button 30px, buttonâ†’aux 32px
   ========================================================================== */

:root {
	--auth-card-max: 33.75rem;
	--auth-pad-x: clamp(1.25rem, 1rem + 1.25vw, 1.75rem);
	--auth-pad-y: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
	--auth-space-headline-lead: clamp(0.625rem, 0.5rem + 0.35vw, 0.875rem);
	--auth-space-lead-form: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	--auth-space-label-input: clamp(0.5rem, 0.4rem + 0.3vw, 0.75rem);
	--auth-space-field-field: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
	--auth-space-field-checkbox: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem);
	--auth-space-checkbox-button: clamp(1.625rem, 1.35rem + 1vw, 2.25rem);
	--auth-space-button-aux: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
	--auth-input-min-h: 3rem;
}

.auth-page {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	width: 100%;
	box-sizing: border-box;
	padding:
		var(--space-lg)
		max(var(--layout-gutter-sm), env(safe-area-inset-left, 0px))
		calc(var(--footer-examples-clearance) + var(--space-md));
	padding-right: max(var(--layout-gutter-sm), env(safe-area-inset-right, 0px));
	min-height: calc(100svh - 7.5rem);
}

.askthai-auth-page .auth-page {
	position: relative;
	padding-top: var(--page-header-clearance);
	min-height: 100dvh;
	min-height: 100svh;
}

.askthai-auth-page .auth-page::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 80% 55% at 50% 28%, rgba(8, 12, 28, 0.48) 0%, transparent 68%),
		rgba(2, 4, 13, 0.28);
}

.auth-card {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(100%, var(--auth-card-max));
	padding: var(--auth-pad-y) var(--auth-pad-x);
	border-radius: 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.11);
	background: linear-gradient(165deg, rgba(14, 20, 42, 0.88) 0%, rgba(6, 10, 24, 0.92) 100%);
	backdrop-filter: blur(20px) saturate(1.12);
	-webkit-backdrop-filter: blur(20px) saturate(1.12);
	box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4);
}

.auth-card--wide {
	width: min(100%, 33.75rem);
}

.auth-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.625rem;
}

.auth-card__head {
	display: flex;
	flex-direction: column;
	gap: var(--auth-space-headline-lead);
	margin: 0 0 var(--auth-space-lead-form);
}

.auth-card__title {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-size: clamp(1.625rem, 1.35rem + 1.1vw, 2rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.2;
	color: rgba(255, 255, 255, 0.97);
}

.site-main .auth-card > .auth-card__title {
	margin: 0 0 var(--auth-space-headline-lead);
}

.auth-card__close {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: -0.25rem -0.25rem 0 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.auth-card__close svg {
	pointer-events: none;
}

.auth-card__close:hover,
.auth-card__close:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.22);
	color: #ffffff;
}

.auth-card__close:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 2px;
}

.auth-page--profile {
	align-items: flex-start;
}

body.admin-bar .askthai-auth-page--profile .auth-page {
	padding-top: calc(5.5rem + 2.875rem);
}

.auth-page[data-auth-dismissible] {
	cursor: pointer;
}

.auth-page[data-auth-dismissible] .auth-card {
	cursor: auto;
}

.site-main .auth-card__lead {
	margin: 0 0 var(--auth-space-lead-form);
	width: 100%;
	max-width: 100%;
	color: rgba(255, 255, 255, 0.74);
	font-size: var(--text-sm);
	line-height: 1.6;
	overflow-wrap: break-word;
}

.auth-card__head .auth-card__lead {
	margin: 0;
}

.site-main .auth-card__footer {
	margin: var(--auth-space-button-aux) 0 0;
	text-align: center;
	font-size: var(--text-sm);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.64);
}

.auth-card__footer a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.375rem 0.625rem;
	color: #93c5fd;
	text-decoration: none;
	font-weight: 500;
	border-radius: 0.375rem;
	transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.auth-card__footer a:hover,
.auth-card__footer a:focus-visible {
	color: #bfdbfe;
	background: rgba(147, 197, 253, 0.08);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.auth-card__footer a:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 2px;
}

.auth-card__aux {
	margin-top: var(--auth-space-button-aux);
}

.auth-card__aux-list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.auth-card__aux-item {
	margin: 0;
	padding: 0;
}

.auth-card__aux-item a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	color: #93c5fd;
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: 1.45;
	text-decoration: none;
	border-radius: 0.375rem;
	transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.auth-card__aux-item a:hover,
.auth-card__aux-item a:focus-visible {
	color: #bfdbfe;
	background: rgba(147, 197, 253, 0.08);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.auth-card__aux-item a:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 2px;
}

.auth-notice {
	margin: 0 0 var(--auth-space-lead-form);
	padding: 0.875rem 1rem;
	border-radius: 0.75rem;
	font-size: var(--text-sm);
	line-height: 1.5;
}

.auth-notice p {
	margin: 0;
}

.auth-notice--success {
	border: 1px solid rgba(74, 222, 128, 0.35);
	background: rgba(22, 101, 52, 0.28);
	color: #bbf7d0;
}

.auth-notice--error {
	border: 1px solid rgba(248, 113, 113, 0.35);
	background: rgba(127, 29, 29, 0.28);
	color: #fecaca;
}

.auth-form {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
}

.auth-form--inline {
	margin-top: var(--auth-space-lead-form);
}

.auth-form__field {
	display: flex;
	flex-direction: column;
	gap: var(--auth-space-label-input);
	margin: 0;
}

.auth-form__field + .auth-form__field {
	margin-top: var(--auth-space-field-field);
}

.auth-form__field label {
	font-size: var(--text-sm);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.84);
	letter-spacing: 0.01em;
	line-height: 1.35;
}

.auth-form__field input,
.auth-form__field select {
	width: 100%;
	min-height: var(--auth-input-min-h);
	padding: 0.8125rem 1rem;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(3, 7, 18, 0.74);
	color: rgba(255, 255, 255, 0.96);
	font-size: var(--text-base);
	line-height: 1.4;
	transition:
		border-color 0.2s var(--ease),
		box-shadow 0.2s var(--ease),
		background 0.2s var(--ease);
}

.auth-form__field input::placeholder {
	color: rgba(255, 255, 255, 0.38);
}

.auth-form__field input:hover:not(:focus):not(:disabled),
.auth-form__field select:hover:not(:focus):not(:disabled) {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(3, 7, 18, 0.82);
}

.auth-form__field input:focus,
.auth-form__field select:focus {
	outline: none;
	border-color: rgba(56, 189, 248, 0.58);
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
	background: rgba(3, 7, 18, 0.9);
}

.auth-form__field input:-webkit-autofill,
.auth-form__field input:-webkit-autofill:hover,
.auth-form__field input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px rgba(3, 7, 18, 0.95) inset;
	-webkit-text-fill-color: rgba(255, 255, 255, 0.96);
	caret-color: #ffffff;
	transition: background-color 5000s ease-in-out 0s;
}

.auth-form__checkbox {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: var(--auth-space-field-checkbox) 0 0;
	padding: 0.5rem 0;
	min-height: 2.75rem;
	font-size: var(--text-sm);
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.78);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.auth-form__checkbox input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	flex-shrink: 0;
	accent-color: #8b5cf6;
	cursor: pointer;
}

.auth-form__checkbox span {
	flex: 1 1 auto;
}

.auth-form__submit {
	width: 100%;
	margin: var(--auth-space-checkbox-button) 0 0;
	padding: 0;
	border: none;
	background: transparent;
}

.auth-form__submit.btn--login {
	display: flex;
	width: 100%;
	min-width: 0;
	height: auto;
	min-height: var(--auth-input-min-h);
	padding: 1px;
	border: none;
	border-radius: 999px;
	background: var(--grad-border);
	box-shadow:
		0 0 24px rgba(56, 189, 248, 0.22),
		0 0 24px rgba(139, 92, 246, 0.16),
		0 8px 24px rgba(0, 0, 0, 0.28);
	transition:
		box-shadow 0.25s var(--ease),
		transform 0.15s var(--ease);
}

.auth-form__submit.btn--login span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: calc(var(--auth-input-min-h) - 2px);
	height: auto;
	padding: 0.875rem 1.5rem;
	border-radius: 999px;
	background: rgba(6, 10, 24, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	font-size: var(--text-base);
	font-weight: 600;
	letter-spacing: 0.015em;
	color: rgba(255, 255, 255, 0.96);
}

.auth-form__submit.btn--login:hover {
	box-shadow:
		0 0 32px rgba(56, 189, 248, 0.36),
		0 0 32px rgba(139, 92, 246, 0.24),
		0 10px 28px rgba(0, 0, 0, 0.32);
}

.auth-form__submit.btn--login:active {
	transform: scale(0.985);
}

.auth-form__submit.btn--login:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 3px;
}

.auth-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-top: var(--auth-space-checkbox-button);
}

.auth-form__actions .auth-form__submit {
	width: auto;
	flex: 1 1 10rem;
	margin-top: 0;
}

.auth-form__cancel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.625rem 1.125rem;
	flex: 1 1 7.5rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: transparent;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.auth-form__cancel:hover,
.auth-form__cancel:focus-visible {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.28);
	color: #ffffff;
}

.auth-form__cancel:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 2px;
}

@media (min-width: 30rem) {
	:root {
		--auth-pad-x: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
		--auth-pad-y: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
	}

	.auth-card__aux-list {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5rem 1.5rem;
	}
}

@media (min-width: 48rem) {
	:root {
		--auth-card-max: 32.5rem;
		--auth-pad-x: clamp(2.25rem, 2rem + 1vw, 3rem);
		--auth-pad-y: clamp(2.25rem, 2rem + 1vw, 3rem);
	}

	.askthai-auth-page .auth-page {
		padding-top: var(--page-header-clearance);
	}
}

@media (min-width: 48rem) and (min-height: 40rem) {
	body.askthai-auth-page:not(.askthai-auth-page--profile) .auth-page {
		align-items: center;
	}
}

@media (min-width: 64rem) {
	:root {
		--auth-card-max: 33.75rem;
	}
}

body.askthai-auth-page .site-footer {
	bottom: var(--footer-bottom-offset);
}

body.askthai-auth-page .site-footer__nav {
	justify-content: center;
}

body.askthai-auth-page .site-footer__nav a.hero-examples-label:hover,
body.askthai-auth-page .site-footer__nav a.hero-examples-label:focus-visible {
	color: rgba(255, 255, 255, 0.58);
	text-decoration: none;
}

@media (max-width: 47.99rem) {
	.auth-form__field input,
	.auth-form__field select {
		font-size: max(1rem, 16px);
	}
}

@media (max-width: 22.5rem) {
	:root {
		--auth-pad-x: 1.125rem;
		--auth-pad-y: 1.25rem;
	}
}

@media (max-width: 32.5rem) {
	.askthai-auth-page .auth-page {
		padding-top: var(--page-header-clearance);
		padding-bottom: calc(var(--footer-examples-clearance) + var(--space-md));
	}

	.auth-card {
		width: 100%;
	}

	.auth-page--profile {
		align-items: stretch;
	}

	.auth-form__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.auth-form__actions .auth-form__submit,
	.auth-form__cancel {
		width: 100%;
		flex-basis: auto;
	}

}

@media (prefers-reduced-motion: reduce) {
	.auth-form__submit.btn--login,
	.auth-form__submit.btn--login:active {
		transition: none;
		transform: none;
	}
}

.auth-form__submit--secondary {
	width: auto;
	padding: 10px 18px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: transparent;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.auth-form__submit--secondary:hover,
.auth-form__submit--secondary:focus-visible {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.28);
}

.profile-summary {
	margin: 0;
	display: grid;
	gap: 0.875rem;
}

.profile-summary__row {
	display: grid;
	grid-template-columns: minmax(7.5rem, 38%) 1fr;
	gap: 0.375rem 1rem;
	padding-bottom: 0.875rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-summary__row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.profile-summary__row dt {
	margin: 0;
	font-size: var(--text-sm);
	color: rgba(255, 255, 255, 0.58);
}

.profile-summary__row dd {
	margin: 0;
	font-size: var(--text-sm);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
}

.profile-summary--compact {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Profile page â€” section-based layout
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Profile modal â€” layout scoped to .auth-card--profile
   -------------------------------------------------------------------------- */

.auth-card--profile {
	--profile-gap-xl: clamp(1.25rem, 1rem + 0.75vw, 1.625rem);
	--profile-gap-lg: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
	--profile-gap-md: clamp(0.75rem, 0.65rem + 0.35vw, 1rem);
	--profile-gap-sm: 0.625rem;
	--profile-box-pad-y: clamp(0.875rem, 0.75rem + 0.35vw, 1.125rem);
	--profile-box-pad-x: clamp(1rem, 0.875rem + 0.5vw, 1.25rem);
	--profile-field-stack: var(--profile-gap-md);
	--profile-section-gap: var(--profile-gap-lg);
	--profile-label-gap: 0.5rem;
	--profile-quota-muted: rgba(255, 255, 255, 0.72);
	/* Same width for Free and Pro â€” Pro banner must not widen the modal. */
	width: min(100%, 54rem);
}

.auth-card--profile .auth-card__header {
	margin-bottom: var(--profile-gap-lg);
}

.auth-card--profile .auth-notice {
	margin-bottom: var(--profile-gap-lg);
}

/* Account overview -------------------------------------------------------- */

.profile-overview {
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
	margin-bottom: var(--profile-gap-xl);
	padding: var(--profile-box-pad-y) var(--profile-box-pad-x);
	border-radius: var(--radius-md);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: color-mix(in srgb, var(--color-surface) 88%, transparent);
}

.profile-overview__head {
	display: grid;
	gap: 0.25rem;
	min-width: 0;
}

.profile-overview__identity {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-xs);
	min-width: 0;
	width: 100%;
}

.profile-overview__badge {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	min-height: 1.5rem;
	padding: 0.125rem 0.5625rem;
	border-radius: 999px;
	font-size: var(--text-xs);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.profile-overview__badge--pro {
	background: color-mix(in srgb, var(--color-accent) 22%, transparent);
	color: var(--color-accent);
}

.profile-overview__badge--free {
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.82);
}

.profile-overview__email {
	flex: 1 1 8rem;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.62);
}

.profile-overview__summary {
	margin: 0;
	width: 100%;
	font-size: var(--text-xs);
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.52);
	overflow-wrap: anywhere;
}

.profile-overview__usage {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
	gap: var(--profile-gap-sm);
	width: 100%;
}

.profile-overview__usage-card {
	display: grid;
	gap: 0.125rem;
	min-width: 0;
	padding: 0.5625rem 0.875rem 0.625rem;
	border-radius: var(--radius-md);
	border: 1px solid rgba(255, 255, 255, 0.045);
	background:
		linear-gradient(
			145deg,
			rgba(255, 255, 255, 0.07) 0%,
			rgba(255, 255, 255, 0.025) 48%,
			rgba(255, 255, 255, 0.04) 100%
		);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.06),
		0 0.35rem 1.1rem rgba(0, 0, 0, 0.14);
}

.profile-overview__usage-label {
	font-size: var(--text-xs);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.015em;
	color: rgba(255, 255, 255, 0.52);
}

.profile-overview__usage-value {
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.9);
	overflow-wrap: anywhere;
}

.profile-overview__usage-card .profile-overview__meter {
	overflow: hidden;
	width: 100%;
	height: 0.25rem;
	margin-top: 0.375rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	box-shadow: inset 0 1px 0.0625rem rgba(0, 0, 0, 0.18);
}

.profile-overview__usage-card .profile-overview__meter-fill {
	display: block;
	height: 100%;
	min-width: 0;
	border-radius: inherit;
	background: linear-gradient(
		90deg,
		rgba(56, 189, 248, 0.72) 0%,
		rgba(129, 140, 248, 0.62) 52%,
		rgba(244, 114, 182, 0.5) 100%
	);
	box-shadow: 0 0 0.5rem rgba(56, 189, 248, 0.18);
	transition: width 0.25s var(--ease, ease);
}

.profile-overview__quota-reset {
	margin: 0;
	width: 100%;
	font-size: clamp(0.6875rem, 0.66rem + 0.15vw, 0.75rem);
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.42);
}

.profile-overview__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: var(--space-sm, 0.5rem);
	flex-shrink: 0;
	min-width: 0;
	width: 100%;
}

.profile-overview__logout {
	display: flex;
	margin: 0;
	min-width: 0;
	flex: 1 1 auto;
}

.auth-card--profile .profile-overview__actions .profile-overview__cta.btn--login,
.auth-card--profile .profile-overview__actions .profile-summary__portal-btn,
.auth-card--profile .profile-overview__actions .profile-overview__logout-btn {
	width: auto;
	max-width: 100%;
	flex-shrink: 0;
	white-space: nowrap;
	box-shadow: none;
}

.auth-card--profile .profile-overview__actions .profile-overview__cta.btn--login {
	flex: 1 1 auto;
}

.auth-card--profile .profile-overview__actions .profile-overview__cta.btn--login span {
	padding: 0.5625rem 0.9375rem;
	font-size: var(--text-sm);
	white-space: nowrap;
}

.auth-card--profile .profile-overview__actions .profile-overview__cta.btn--login:hover {
	box-shadow:
		0 0 1rem rgba(96, 165, 250, 0.22),
		0 0 1.25rem rgba(244, 114, 182, 0.14);
}

.auth-card--profile .profile-overview__actions .profile-summary__portal-btn {
	min-height: 2.5rem;
	padding: 0.5rem 0.9375rem;
	font-size: var(--text-sm);
	white-space: nowrap;
}

.auth-card--profile .profile-overview__actions .profile-overview__logout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.5rem;
	padding: 0.5rem 0.9375rem;
	border-radius: 999px;
	font-size: var(--text-sm);
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
}

@media (min-width: 40rem) {
	.profile-overview {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"head actions"
			"usage usage"
			"reset reset";
		align-items: start;
		column-gap: var(--profile-gap-md);
	}

	.profile-overview__head {
		grid-area: head;
	}

	.profile-overview__usage {
		grid-area: usage;
	}

	.profile-overview__quota-reset {
		grid-area: reset;
	}

	.profile-overview__actions {
		grid-area: actions;
		width: auto;
		max-width: min(100%, 18rem);
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		justify-content: flex-start;
		justify-self: end;
		align-self: start;
	}

	.profile-overview__logout {
		flex: 0 0 auto;
		width: 100%;
	}

	.auth-card--profile .profile-overview__actions .profile-overview__cta.btn--login,
	.auth-card--profile .profile-overview__actions .profile-overview__logout-btn {
		width: 100%;
		justify-content: center;
	}

	.profile-overview:not(:has(.profile-overview__usage)) {
		grid-template-areas:
			"head actions";
	}
}

/* Pro account card -------------------------------------------------------- */

.profile-pro-card {
	--profile-pro-gold: #e8c872;
	--profile-pro-gold-soft: rgba(232, 200, 114, 0.18);
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"badge"
		"content"
		"actions";
	gap: clamp(1rem, 3vw, 1.25rem);
	align-items: start;
	width: 100%;
	max-width: 100%;
	margin-bottom: var(--profile-gap-xl);
	padding:
		clamp(1.125rem, 3.5vw, 1.75rem)
		max(clamp(1rem, 3vw, 1.5rem), env(safe-area-inset-right, 0px))
		clamp(1.125rem, 3.5vw, 1.75rem)
		max(clamp(1rem, 3vw, 1.5rem), env(safe-area-inset-left, 0px));
	border-radius: clamp(1.25rem, 4vw, 1.75rem);
	border: 1px solid rgba(232, 200, 114, 0.14);
	background:
		radial-gradient(circle at 10% 0%, rgba(139, 92, 246, 0.14) 0%, transparent 44%),
		radial-gradient(circle at 90% 100%, rgba(232, 200, 114, 0.1) 0%, transparent 48%),
		linear-gradient(
			148deg,
			rgba(10, 14, 32, 0.94) 0%,
			rgba(7, 9, 22, 0.88) 55%,
			rgba(16, 11, 28, 0.9) 100%
		);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.07),
		0 0.75rem 2rem rgba(0, 0, 0, 0.26),
		0 0 2.5rem rgba(139, 92, 246, 0.06);
	overflow: hidden;
}

.profile-pro-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(
		125deg,
		rgba(232, 200, 114, 0.42) 0%,
		rgba(129, 140, 248, 0.26) 40%,
		rgba(244, 114, 182, 0.14) 70%,
		rgba(232, 200, 114, 0.12) 100%
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.profile-pro-badge {
	grid-area: badge;
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-shrink: 0;
}

.profile-pro-badge__ring {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	position: relative;
	width: clamp(4.5rem, 16vw, 6rem);
	height: clamp(4.5rem, 16vw, 6rem);
	border-radius: clamp(1rem, 3.5vw, 1.375rem);
	border: 1px solid rgba(232, 200, 114, 0.28);
	background:
		radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.22) 0%, transparent 55%),
		linear-gradient(165deg, rgba(18, 14, 36, 0.95) 0%, rgba(8, 10, 22, 0.88) 100%);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		0 0.5rem 1.25rem rgba(0, 0, 0, 0.24);
}

.profile-pro-badge__ring::after {
	content: "";
	position: absolute;
	inset: 0.5rem;
	border-radius: 50%;
	border: 1.5px solid rgba(232, 200, 114, 0.42);
	pointer-events: none;
}

.profile-pro-badge__icon {
	display: block;
	width: 1.5rem;
	height: 1.5rem;
	flex-shrink: 0;
	filter: drop-shadow(0 0.0625rem 0.1875rem rgba(232, 200, 114, 0.35));
}

.profile-pro-badge__label {
	font-size: 0.8125rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.14em;
	color: var(--profile-pro-gold);
	text-shadow: 0 0.0625rem 0.25rem rgba(232, 200, 114, 0.2);
}

.profile-pro-content {
	grid-area: content;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(0.625rem, 2.5vw, 0.75rem);
	width: 100%;
	min-width: 0;
	max-width: 100%;
	text-align: left;
	container-type: inline-size;
	container-name: profile-pro-content;
}

.profile-pro-email {
	display: block;
	margin: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	font-size: clamp(1.125rem, 5cqi, 1.75rem);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: rgba(255, 255, 255, 0.97);
	overflow-wrap: anywhere;
	word-break: normal;
}

.profile-pro-benefit {
	display: flex;
	align-items: center;
	gap: 0.5625rem;
	min-width: 0;
	max-width: 100%;
}

.profile-pro-benefit__icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 1.625rem;
	height: 1.625rem;
	border-radius: 999px;
	background: var(--profile-pro-gold-soft);
	box-shadow: inset 0 0 0 1px rgba(232, 200, 114, 0.32);
	color: var(--profile-pro-gold);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
}

.profile-pro-benefit__text {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	font-size: clamp(0.9375rem, 3.6vw, 1.125rem);
	font-weight: 600;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
	overflow-wrap: anywhere;
}

.profile-pro-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(0.4375rem, 2vw, 0.625rem);
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.profile-pro-meta__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 1.875rem;
	max-width: 100%;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	font-size: clamp(0.75rem, 3.2vw, 0.875rem);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1.25;
}

.profile-pro-meta__chip-icon {
	flex-shrink: 0;
}

.profile-pro-meta__chip > span:last-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.profile-pro-meta__chip--price {
	border: 1px solid rgba(232, 200, 114, 0.3);
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.86);
}

.profile-pro-meta__chip--price .profile-pro-meta__chip-icon {
	color: var(--profile-pro-gold);
}

.profile-pro-meta__chip--savings {
	border: 1px solid rgba(74, 222, 128, 0.3);
	background: rgba(34, 197, 94, 0.1);
	color: #bbf7d0;
}

.profile-pro-meta__chip--savings .profile-pro-meta__chip-icon {
	color: #86efac;
}

.profile-pro-meta__chip--since {
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 255, 255, 0.5);
}

.profile-pro-meta__chip--since .profile-pro-meta__chip-icon {
	color: rgba(255, 255, 255, 0.42);
}

.profile-pro-actions {
	grid-area: actions;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding-top: clamp(0.75rem, 2.5vw, 1rem);
	border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-pro-actions__stack {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	width: 100%;
	min-width: 0;
}

.profile-pro-actions__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.625rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(232, 200, 114, 0.38);
	background: rgba(255, 255, 255, 0.03);
	color: var(--profile-pro-gold);
	font-size: clamp(0.8125rem, 3.4vw, 0.875rem);
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition:
		border-color 0.2s var(--ease, ease),
		background 0.2s var(--ease, ease),
		box-shadow 0.2s var(--ease, ease);
	-webkit-tap-highlight-color: transparent;
}

.profile-pro-actions__btn-icon {
	flex-shrink: 0;
}

.profile-pro-actions__btn:hover:not(:disabled),
.profile-pro-actions__btn:focus-visible:not(:disabled) {
	border-color: rgba(232, 200, 114, 0.55);
	background: rgba(232, 200, 114, 0.08);
	box-shadow: 0 0 1rem rgba(232, 200, 114, 0.14);
	outline: none;
}

.profile-pro-actions__btn:focus-visible {
	outline: 2px solid rgba(232, 200, 114, 0.5);
	outline-offset: 2px;
}

.profile-pro-actions__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.profile-pro-actions__btn--cancel {
	border-color: rgba(255, 255, 255, 0.18);
	background: transparent;
	color: rgba(255, 255, 255, 0.78);
	font-weight: 500;
}

.profile-pro-actions__btn--cancel:hover:not(:disabled),
.profile-pro-actions__btn--cancel:focus-visible:not(:disabled) {
	border-color: rgba(255, 180, 180, 0.45);
	background: rgba(255, 80, 80, 0.08);
	box-shadow: none;
	color: #ffd0d0;
}

.profile-pro-actions__cancel-hint,
.profile-pro-actions__cancel-pending {
	margin: 0;
	max-width: 100%;
	color: rgba(255, 255, 255, 0.55);
	font-size: clamp(0.75rem, 3.2vw, 0.8125rem);
	line-height: 1.45;
	overflow-wrap: break-word;
}

.profile-pro-actions__cancel-pending {
	color: rgba(232, 200, 114, 0.88);
}

.profile-pro-actions .profile-pro-actions__btn.profile-summary__portal-btn {
	border-radius: 999px;
	border: 1px solid rgba(232, 200, 114, 0.38);
	background: rgba(255, 255, 255, 0.03);
	color: var(--profile-pro-gold);
	font-size: var(--text-sm);
	font-weight: 600;
}

.profile-pro-actions .profile-pro-actions__btn.profile-summary__portal-btn:hover:not(:disabled),
.profile-pro-actions .profile-pro-actions__btn.profile-summary__portal-btn:focus-visible:not(:disabled) {
	border-color: rgba(232, 200, 114, 0.55);
	background: rgba(232, 200, 114, 0.08);
	color: var(--profile-pro-gold);
	box-shadow: 0 0 1rem rgba(232, 200, 114, 0.14);
}

.profile-pro-actions__logout {
	display: flex;
	margin: 0;
	width: 100%;
	min-width: 0;
}

.profile-pro-actions__logout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.625rem 1rem;
	border-radius: 999px;
	font-size: clamp(0.8125rem, 3.4vw, 0.875rem);
	font-weight: 500;
	cursor: pointer;
}

@media (min-width: 48rem) {
	.profile-pro-card {
		gap: clamp(1.25rem, 2vw, 1.5rem);
		padding: clamp(1.75rem, 2vw, 2.5rem);
		border-radius: 1.75rem;
		grid-template-columns: 5.5rem minmax(0, 1fr) 13rem;
		grid-template-areas: "badge content actions";
		align-items: center;
		column-gap: clamp(1.25rem, 3vw, 2.5rem);
		row-gap: 0;
	}

	.profile-pro-badge__ring {
		width: 5.5rem;
		height: 5.5rem;
		border-radius: 1.25rem;
	}

	.profile-pro-content {
		overflow: visible;
	}

	.profile-pro-email {
		font-size: clamp(1.125rem, 5.5cqi, 1.75rem);
		line-height: 1.15;
		white-space: normal;
		overflow: visible;
		overflow-wrap: anywhere;
		text-overflow: clip;
	}

	.profile-pro-benefit__text {
		font-size: clamp(1rem, 0.94rem + 0.3vw, 1.125rem);
		white-space: nowrap;
		overflow-wrap: normal;
	}

	.profile-pro-meta__chip {
		font-size: var(--text-sm);
		white-space: nowrap;
	}

	.profile-pro-meta__chip > span:last-child {
		overflow-wrap: normal;
	}

	.profile-pro-actions {
		align-self: stretch;
		justify-content: center;
		width: 13rem;
		max-width: 13rem;
		padding-top: 0;
		border-top: none;
		padding-left: clamp(0.875rem, 1.5vw, 1.25rem);
		border-left: 1px solid rgba(255, 255, 255, 0.07);
	}

	.profile-pro-actions__btn,
	.profile-pro-actions__logout-btn {
		padding-inline: 1rem;
		font-size: var(--text-sm);
		line-height: 1.25;
		white-space: nowrap;
	}
}

/* Tabs -------------------------------------------------------------------- */

.profile-tabs {
	display: grid;
	gap: var(--profile-gap-lg);
}

.profile-tabs__body {
	display: grid;
	gap: var(--profile-gap-lg);
}

.profile-tabs__nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--space-2xs, 0.25rem);
	padding: var(--space-2xs, 0.25rem);
	border-radius: var(--radius-lg, 0.75rem);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	overflow: hidden;
	max-width: 100%;
}

.profile-tabs__nav:has([data-profile-tab="invite"]) {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-tabs__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0.4375rem 0.5rem;
	border: 0;
	border-radius: var(--radius-md, 0.5rem);
	background: transparent;
	color: rgba(255, 255, 255, 0.68);
	font: inherit;
	font-size: clamp(0.6875rem, 2.1vw, 0.8125rem);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
	cursor: pointer;
	position: relative;
	z-index: 0;
	transition: background-color 0.2s var(--ease, ease), color 0.2s var(--ease, ease);
}

.profile-tabs__tab.is-active,
.profile-tabs__tab[aria-selected="true"] {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.profile-tabs__tab:focus {
	outline: none;
}

.profile-tabs__tab:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: -2px;
}

.profile-tabpanel {
	display: grid;
	gap: var(--profile-gap-lg);
}

.profile-tabpanel[hidden] {
	display: none;
}

/* Settings form ----------------------------------------------------------- */

.auth-form--profile {
	display: flex;
	flex-direction: column;
	gap: var(--profile-gap-lg);
	margin: 0;
}

.profile-settings-form {
	display: grid;
	gap: var(--profile-field-stack);
}

.profile-settings-form__speaker {
	grid-column: 1 / -1;
}

.auth-card--profile .auth-form__field {
	display: flex;
	flex-direction: column;
	gap: var(--profile-label-gap);
	margin: 0;
}

.auth-card--profile .auth-form__field label {
	display: block;
	margin: 0;
	padding: 0;
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.86);
}

.auth-card--profile .auth-form__field input,
.auth-card--profile .auth-form__field select {
	margin: 0;
}

.auth-card--profile .auth-form__field select {
	padding-right: 2.75rem;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='rgba(255,255,255,0.72)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1rem;
}

.auth-card--profile .auth-form__field + .auth-form__field,
.auth-card--profile .auth-form__fieldset .auth-form__field + .auth-form__field {
	margin-top: 0;
}

.auth-card--profile .auth-form__fieldset .auth-form__field {
	gap: var(--profile-label-gap);
}

/* Thai speaker role ------------------------------------------------------- */

.profile-field-label {
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.9);
}

.auth-card--profile .auth-form__fieldset.auth-form__fieldset--speaker {
	display: flex;
	flex-direction: column;
	gap: var(--profile-gap-sm);
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.profile-speaker__hint {
	display: grid;
	gap: 0.375rem;
	margin: 0;
}

.profile-speaker__hint p {
	margin: 0;
}

.auth-card--profile .profile-speaker__hint.auth-form__hint {
	color: rgba(255, 255, 255, 0.58);
}

.auth-card--profile .profile-speaker__hint .auth-form__hint--secondary {
	color: rgba(255, 255, 255, 0.48);
}

.profile-speaker-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--profile-gap-sm);
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.auth-card--profile .profile-speaker-cards.auth-form__radio-group {
	display: grid;
}

.profile-speaker-card {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	min-width: 0;
	min-height: 2.75rem;
	margin: 0;
	padding: var(--profile-box-pad-y) var(--profile-box-pad-x);
	border-radius: var(--radius-md);
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
	transition:
		border-color 0.2s var(--ease, ease),
		background-color 0.2s var(--ease, ease),
		box-shadow 0.2s var(--ease, ease);
	-webkit-tap-highlight-color: transparent;
}

.profile-speaker-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: var(--grad-border);
	opacity: 0;
	transition: opacity 0.2s var(--ease, ease);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.profile-speaker-card:has(input:checked) {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.1);
	box-shadow:
		0 0 1.25rem rgba(96, 165, 250, 0.16),
		0 0 1.75rem rgba(244, 114, 182, 0.1);
}

.profile-speaker-card:has(input:checked)::before {
	opacity: 1;
}

.profile-speaker-card:has(input:focus-visible) {
	outline: 2px solid #38bdf8;
	outline-offset: 2px;
}

.auth-card--profile .profile-speaker-card.auth-form__radio {
	min-height: 2.75rem;
	padding: var(--profile-box-pad-y) var(--profile-box-pad-x);
}

.profile-speaker-card input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.profile-speaker-card__indicator {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.125rem;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.42);
	background: transparent;
	transition:
		border-color 0.2s var(--ease, ease),
		background-color 0.2s var(--ease, ease),
		box-shadow 0.2s var(--ease, ease);
}

.profile-speaker-card:has(input:checked) .profile-speaker-card__indicator {
	border-color: #38bdf8;
	background: radial-gradient(circle at center, #fff 0.2rem, #38bdf8 0.21rem);
	box-shadow: 0 0 0.625rem rgba(56, 189, 248, 0.45);
}

.profile-speaker-card__body {
	display: grid;
	gap: 0.25rem;
	min-width: 0;
	flex: 1;
}

.profile-speaker-card__title {
	font-size: var(--text-sm);
	font-weight: 600;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.92);
}

.profile-speaker-card__examples {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0;
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	font-weight: 600;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.88);
	overflow-wrap: break-word;
}

.profile-speaker-card__examples .askthai-marker {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

.profile-speaker-card__examples-sep {
	color: rgba(255, 255, 255, 0.45);
	font-weight: 400;
}

.profile-speaker-card__desc {
	font-size: var(--text-xs);
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.56);
	overflow-wrap: break-word;
}

@media (min-width: 48rem) {
	.profile-speaker-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--profile-gap-md);
	}
}

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

.profile-form-actions {
	gap: 0;
	padding-top: var(--profile-gap-sm);
}

.auth-card--profile .profile-form-actions {
	margin-top: 0;
}

.auth-card--profile .profile-form-actions[hidden] {
	display: none;
}

.auth-card--profile [data-profile-main-form][hidden] {
	display: none;
}

.auth-card--profile .auth-form__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	gap: 0.75rem;
	margin-top: 0;
}

.auth-card--profile .auth-form__cancel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--auth-input-min-h);
	padding: 0.75rem 1.125rem;
	flex: unset;
	font-size: var(--text-sm);
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
}

.auth-card--profile .auth-form__actions .auth-form__submit.btn--login {
	width: 100%;
	flex: unset;
	margin-top: 0;
}

.auth-card--profile .auth-form__actions .auth-form__submit.btn--login span {
	justify-content: center;
	padding: 0.8125rem 1.125rem;
	font-size: var(--text-sm);
	white-space: nowrap;
}

/* Account / devices / security sections ----------------------------------- */

.profile-section {
	display: flex;
	flex-direction: column;
	gap: var(--profile-field-stack);
}

.profile-section--upgrade-in-tab,
.profile-section--devices-in-tab {
	padding-top: var(--profile-gap-md);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-section--account-info {
	gap: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.profile-section--logout {
	gap: 0;
	margin-top: 0;
	padding-top: var(--profile-gap-md);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-summary__badge {
	display: inline-block;
	margin-inline-start: var(--space-xs);
	padding: 0.125rem 0.5rem;
	border-radius: 999px;
	font-size: var(--text-xs);
	font-weight: 600;
	background: color-mix(in srgb, var(--color-accent) 16%, transparent);
	color: var(--color-accent);
}

.profile-summary__portal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.625rem 1.125rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius-md);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var(--text-sm);
	cursor: pointer;
}

.profile-summary__portal-btn:hover,
.profile-summary__portal-btn:focus-visible {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.profile-upgrade--compact {
	max-width: none;
}

.profile-upgrade--row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--profile-gap-sm) var(--profile-gap-md);
}

.profile-upgrade__copy {
	display: grid;
	gap: 0.25rem;
	flex: 1 1 12rem;
	min-width: 0;
}

.profile-upgrade--row .profile-upgrade__title {
	font-size: clamp(1rem, 2vw, 1.125rem);
}

.profile-upgrade--row .profile-upgrade__cta {
	flex: 0 0 auto;
	margin: 0;
}

.profile-section--upgrade {
	padding-block: var(--profile-section-gap);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-section--devices {
	padding-block: 0;
}

/* Invite / referral tab ---------------------------------------------------- */

.profile-invite {
	display: grid;
	gap: var(--profile-gap-md);
}

.profile-invite__header {
	display: grid;
	gap: var(--space-xs);
}

.profile-invite__title,
.profile-invite__section-title {
	margin: 0;
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
}

.profile-invite__intro,
.profile-invite__phase-note,
.profile-invite__placeholder,
.profile-invite__payout-mode {
	margin: 0;
	color: color-mix(in srgb, currentColor 72%, transparent);
	font-size: var(--text-sm);
	line-height: 1.5;
}

.profile-invite__flash {
	margin: 0;
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-md);
	font-size: var(--text-sm);
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.profile-invite__flash--ok {
	border: 1px solid color-mix(in srgb, #2e7d32 45%, transparent);
	background: color-mix(in srgb, #2e7d32 18%, transparent);
}

.profile-invite__flash--error {
	border: 1px solid color-mix(in srgb, #c62828 45%, transparent);
	background: color-mix(in srgb, #c62828 18%, transparent);
}

.profile-invite__payout-form {
	margin: 0;
	min-width: 0;
}

.profile-invite__rates {
	margin: 0;
	padding: 0.45rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-md);
	background: color-mix(in srgb, var(--color-surface-elevated, #1a1a1a) 72%, transparent);
	color: color-mix(in srgb, currentColor 78%, transparent);
	font-size: var(--text-xs);
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.profile-invite__link-block,
.profile-invite__balance,
.profile-invite__footer {
	display: grid;
	gap: var(--space-sm);
}

.profile-invite__link-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	align-items: stretch;
}

.profile-invite__link-input {
	flex: 1 1 12rem;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0.625rem 0.875rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--radius-md);
	background: transparent;
	color: inherit;
	font: inherit;
	overflow-wrap: anywhere;
}

.profile-invite__copy-btn {
	min-height: 2.75rem;
	flex: 0 1 auto;
	min-width: min(100%, 8rem);
}

.profile-invite__stat-highlight {
	display: grid;
	gap: var(--space-xs);
	padding: var(--profile-gap-md);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-md);
	background: color-mix(in srgb, var(--color-surface-elevated, #1a1a1a) 70%, transparent);
	min-width: 0;
}

.profile-invite__stat-highlight-label {
	font-size: clamp(var(--text-sm), 2.4vw, var(--text-base));
	color: color-mix(in srgb, currentColor 68%, transparent);
	line-height: 1.4;
}

.profile-invite__stat-highlight-value {
	font-size: clamp(2rem, 9vw, 3.25rem);
	font-weight: 700;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.profile-invite__wallet-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: var(--space-xs);
}

.profile-invite__wallet-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-sm);
	padding: var(--space-sm) var(--profile-gap-sm);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-md);
	background: color-mix(in srgb, var(--color-surface-elevated, #1a1a1a) 72%, transparent);
}

@media (min-width: 48rem) {
	.profile-invite__wallet-row {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}
}

.profile-invite__wallet-main {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.profile-invite__wallet-label {
	font-size: var(--text-xs);
	color: color-mix(in srgb, currentColor 65%, transparent);
}

.profile-invite__wallet-amount {
	font-size: clamp(0.95rem, 2.2vw, 1.05rem);
	overflow-wrap: anywhere;
}

.profile-invite__wallet-status {
	font-size: var(--text-xs);
	color: color-mix(in srgb, currentColor 60%, transparent);
}

.profile-invite__payout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.625rem 1.125rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--radius-md);
	background: color-mix(in srgb, var(--color-surface-elevated, #1a1a1a) 55%, transparent);
	font-size: var(--text-sm);
	font-weight: 500;
	line-height: 1.3;
	color: color-mix(in srgb, currentColor 82%, transparent);
	text-align: center;
}

@media (min-width: 48rem) {
	.profile-invite__payout-btn {
		width: auto;
		min-width: min(100%, 11.5rem);
	}
}

.profile-invite__payout-btn--disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.profile-invite__payout-btn--ready {
	opacity: 1;
	border-color: color-mix(in srgb, var(--color-accent, #7c5cff) 55%, transparent);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-accent, #7c5cff) 25%, transparent);
	cursor: not-allowed;
}

.profile-invite__footer {
	padding-top: var(--space-xs);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-devices {
	display: grid;
	gap: var(--profile-gap-lg);
}

.profile-devices__header {
	display: grid;
	gap: var(--profile-gap-md);
}

.profile-devices__title {
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.125rem);
	font-weight: 600;
	line-height: 1.35;
}

.profile-devices__intro,
.profile-devices__quota,
.profile-devices__empty {
	margin: 0;
	color: color-mix(in srgb, var(--color-text) 78%, transparent);
	font-size: var(--text-sm);
	line-height: 1.6;
}

.profile-devices__quota {
	font-weight: 600;
	color: var(--color-text);
}

.profile-devices__pro-link {
	margin-inline-start: 0.25rem;
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	white-space: nowrap;
}

.profile-devices__pro-link:hover,
.profile-devices__pro-link:focus-visible {
	color: color-mix(in srgb, var(--color-accent) 82%, #fff);
}

.profile-device-list {
	display: grid;
	gap: var(--profile-gap-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.profile-device-list__item {
	min-width: 0;
}

.profile-device-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--profile-gap-md);
	padding: var(--profile-gap-md);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-md, 0.75rem);
	background: color-mix(in srgb, var(--color-surface) 88%, transparent);
}

.profile-device-card--current {
	border-color: color-mix(in srgb, var(--color-accent) 45%, rgba(255, 255, 255, 0.08));
}

.profile-device-card__body {
	display: grid;
	gap: var(--profile-gap-sm);
	min-width: 0;
	flex: 1 1 12rem;
}

.profile-device-card__label {
	margin: 0;
	font-size: var(--text-sm);
	font-weight: 600;
	overflow-wrap: break-word;
}

.profile-device-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--profile-gap-sm);
	margin: 0;
	font-size: var(--text-xs);
	line-height: 1.45;
	color: color-mix(in srgb, var(--color-text) 72%, transparent);
}

.profile-device-card__status:not(:last-child)::after {
	content: 'Â·';
	margin-inline: 0.125rem;
	color: color-mix(in srgb, var(--color-text) 42%, transparent);
	font-weight: 400;
}

.profile-device-card__status--confirmed {
	color: color-mix(in srgb, var(--color-accent) 82%, var(--color-text));
}

.profile-device-card__status--pending {
	color: color-mix(in srgb, #f0b429 82%, var(--color-text));
}

.profile-device-card__remove-form {
	flex: 0 0 auto;
}

.profile-device-card__remove {
	min-height: 2.75rem;
	padding: 0.5rem 0.875rem;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: transparent;
	color: var(--color-text);
	font: inherit;
	font-size: var(--text-xs);
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.profile-device-card__remove:hover,
.profile-device-card__remove:focus-visible {
	border-color: color-mix(in srgb, var(--color-accent) 55%, rgba(255, 255, 255, 0.14));
	background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}

.profile-upgrade {
	display: grid;
	gap: var(--space-sm);
	max-width: min(100%, 28rem);
}

.profile-upgrade__title {
	margin: 0;
	font-size: clamp(1.125rem, 2.5vw, 1.375rem);
	font-weight: 600;
}

.profile-upgrade__text,
.profile-upgrade__price {
	margin: 0;
	color: color-mix(in srgb, var(--color-text) 78%, transparent);
	font-size: var(--text-sm);
	line-height: 1.5;
}

.profile-upgrade__price {
	font-weight: 600;
	color: var(--color-text);
}

.profile-upgrade__cta {
	justify-self: start;
	min-width: min(100%, 12rem);
}

.auth-card--profile .auth-form__fieldset:not(.auth-form__fieldset--speaker) {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-direction: column;
	gap: var(--profile-field-stack);
	min-width: 0;
}

.auth-card--profile .auth-form__fieldset legend {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.94);
	letter-spacing: 0.01em;
}

.auth-card--profile .auth-form__fieldset > .auth-form__hint {
	margin: 0;
}

.auth-card--profile .auth-form__hint {
	margin: 0;
	font-size: var(--text-sm);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.58);
}

.auth-card--profile .auth-form__radio-group:not(.profile-speaker-cards) {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	margin: 0;
}

.auth-card--profile .auth-form__radio {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	min-height: 2.75rem;
	padding: 0.25rem 0;
	font-size: var(--text-sm);
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.84);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.auth-card--profile .auth-form__radio input {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	flex-shrink: 0;
	accent-color: #38bdf8;
	cursor: pointer;
}

.auth-form--logout {
	margin: 0;
}

.auth-form--logout .auth-form__submit--secondary {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
}

/* Profile responsive ------------------------------------------------------ */

@media (max-width: 39.99rem) {
	.profile-overview__identity {
		align-items: flex-start;
	}

	.profile-overview__email {
		flex-basis: 100%;
		white-space: normal;
		overflow-wrap: anywhere;
		text-overflow: clip;
	}

	.profile-overview__actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
	}

	.profile-overview__logout {
		width: 100%;
		flex: 0 0 auto;
	}

	.auth-card--profile .profile-overview__actions .profile-overview__cta.btn--login,
	.auth-card--profile .profile-overview__actions .profile-summary__portal-btn,
	.auth-card--profile .profile-overview__actions .profile-overview__logout-btn {
		width: 100%;
		justify-content: center;
	}

	.profile-upgrade--row {
		flex-direction: column;
		align-items: stretch;
	}

	.profile-upgrade--row .profile-upgrade__cta {
		width: 100%;
	}

	.profile-summary__row {
		grid-template-columns: 1fr;
		gap: var(--space-2xs);
	}

	.auth-card--profile .auth-form__actions {
		grid-template-columns: 1fr;
	}

	.auth-card--profile .auth-form__cancel,
	.auth-card--profile .auth-form__actions .auth-form__submit.btn--login {
		width: 100%;
	}
}

@media (max-width: 47.99rem) {
	.profile-tabs__nav {
		border-radius: var(--radius-md);
		width: 100%;
		min-width: 0;
	}

	.profile-tabs__nav:has([data-profile-tab="invite"]) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.profile-tabs__tab {
		min-height: var(--touch-min);
		min-width: 0;
		padding-inline: 0.375rem;
		font-size: clamp(0.6875rem, 3.2vw, 0.8125rem);
		white-space: normal;
		text-align: center;
		overflow-wrap: anywhere;
		line-height: 1.2;
	}

	.auth-card--profile .auth-form__field input,
	.auth-card--profile .auth-form__field select {
		font-size: max(1rem, 16px);
	}
}

@media (min-width: 48rem) {
	.profile-tabs__nav {
		border-radius: 999px;
	}

	.profile-tabs__nav:has([data-profile-tab="invite"]) {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.profile-tabs__tab {
		border-radius: 999px;
	}
}

@media (min-width: 36rem) {
	.profile-settings-form {
		grid-template-columns: minmax(0, 1fr) minmax(10rem, 12rem);
		align-items: end;
	}

	.profile-tabs__tab {
		font-size: var(--text-sm);
		padding-inline: 0.875rem;
	}
}

@media (min-width: 40rem) {
	.profile-tabs__tab {
		min-height: 2.875rem;
		padding-inline: 1rem;
	}
}

/* Module feedback (Gradus answer sections) */
.answer-section:has(> .gradus-module-feedback__trigger) .answer-section__head {
	padding-right: calc(var(--touch-min) + var(--space-xs));
	min-width: 0;
}

.answer-section > .gradus-module-feedback__trigger,
.follow-up-bridge__inner > .gradus-module-feedback__trigger {
	position: absolute;
	top: max(var(--space-sm), 0.75rem);
	right: max(var(--space-sm), 0.75rem);
	z-index: 4;
}

.gradus-module-feedback__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--touch-min);
	height: var(--touch-min);
	min-width: var(--touch-min);
	min-height: var(--touch-min);
	padding: 0;
	border: 1.5px solid rgba(248, 113, 113, 0.78);
	border-radius: 999px;
	background: rgba(220, 38, 38, 0.2);
	color: #ffffff;
	line-height: 0;
	font-size: 0;
	cursor: pointer;
	box-shadow:
		0 0 0 1px rgba(127, 29, 29, 0.42),
		0 3px 12px rgba(220, 38, 38, 0.26),
		0 0 16px rgba(244, 114, 182, 0.1);
	transition:
		color 0.15s ease,
		border-color 0.15s ease,
		background 0.15s ease,
		box-shadow 0.15s ease,
		transform 0.15s ease;
}

.gradus-module-feedback__trigger:hover {
	color: #ffffff;
	border-color: #f87171;
	background: rgba(220, 38, 38, 0.34);
	box-shadow:
		0 0 0 2px rgba(248, 113, 113, 0.35),
		0 5px 16px rgba(220, 38, 38, 0.36),
		0 0 20px rgba(244, 114, 182, 0.16);
	transform: translateY(-1px);
}

.gradus-module-feedback__trigger:focus-visible {
	color: #ffffff;
	border-color: #fca5a5;
	background: rgba(220, 38, 38, 0.36);
	box-shadow:
		0 0 0 3px rgba(248, 113, 113, 0.45),
		0 5px 16px rgba(220, 38, 38, 0.36),
		0 0 20px rgba(167, 139, 250, 0.18);
	outline: none;
	transform: translateY(-1px);
}

.gradus-module-feedback__trigger:disabled,
.gradus-module-feedback__trigger[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.gradus-module-feedback__trigger-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
}

.gradus-module-feedback__trigger-icon svg,
.gradus-module-feedback__flag {
	display: block;
	width: 16px;
	height: 16px;
	transform: translateX(0.5px);
}

.gradus-module-feedback[hidden] {
	display: none !important;
}

.gradus-module-feedback__dialog[hidden] {
	display: none !important;
}

.gradus-module-feedback:not([hidden]) {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding:
		max(1rem, env(safe-area-inset-top, 0px))
		max(1rem, env(safe-area-inset-right, 0px))
		max(1rem, env(safe-area-inset-bottom, 0px))
		max(1rem, env(safe-area-inset-left, 0px));
}

.gradus-module-feedback__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.72);
}

.gradus-module-feedback__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 28rem);
	padding: clamp(1.25rem, 1rem + 0.75vw, 1.75rem);
	border-radius: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #0f172a;
	color: #e2e8f0;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.gradus-module-feedback__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 1rem;
}

.gradus-module-feedback__title {
	margin: 0;
	padding-right: 0.25rem;
	font-size: 1.0625rem;
	line-height: 1.4;
	font-weight: 600;
}

.gradus-module-feedback__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	margin: -0.25rem -0.25rem 0 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #94a3b8;
	font-size: 1.375rem;
	line-height: 1;
	cursor: pointer;
}

.gradus-module-feedback__close:hover,
.gradus-module-feedback__close:focus-visible {
	color: #f8fafc;
	outline: none;
}

.gradus-module-feedback__form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
}

.gradus-module-feedback__help {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.55;
	color: #94a3b8;
}

.gradus-module-feedback__field {
	margin: 0;
}

/* High specificity: WP global styles can reset bare textarea padding. */
.gradus-module-feedback__dialog .gradus-module-feedback__textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.875rem 1rem;
	border: 1px solid rgba(148, 163, 184, 0.38);
	border-radius: 0.75rem;
	background: rgba(2, 6, 23, 0.78);
	color: #f8fafc;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.5;
	resize: vertical;
	min-height: 7.5rem;
	-webkit-appearance: none;
	appearance: none;
	transition:
		border-color 0.2s var(--ease),
		box-shadow 0.2s var(--ease),
		background 0.2s var(--ease);
}

.gradus-module-feedback__dialog .gradus-module-feedback__textarea::placeholder {
	color: rgba(148, 163, 184, 0.62);
}

.gradus-module-feedback__dialog .gradus-module-feedback__textarea:hover:not(:focus) {
	border-color: rgba(148, 163, 184, 0.5);
	background: rgba(2, 6, 23, 0.88);
}

.gradus-module-feedback__dialog .gradus-module-feedback__textarea:focus {
	outline: none;
	border-color: rgba(248, 113, 113, 0.55);
	box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16);
	background: rgba(2, 6, 23, 0.95);
}

.gradus-module-feedback__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.gradus-module-feedback__status {
	margin: -0.25rem 0 0.75rem;
	font-size: 0.875rem;
	line-height: 1.45;
}

.gradus-module-feedback__status.is-error {
	color: #fca5a5;
}

.gradus-module-feedback__status.is-success {
	color: #86efac;
}

.gradus-module-feedback__actions {
	display: flex;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.gradus-module-feedback__cancel,
.gradus-module-feedback__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	border-radius: 999px;
	padding: 0.625rem 1.125rem;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.35;
	cursor: pointer;
}

.gradus-module-feedback__cancel {
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: transparent;
	color: #e2e8f0;
}

.gradus-module-feedback__submit {
	border: 1px solid rgba(248, 113, 113, 0.45);
	background: rgba(127, 29, 29, 0.55);
	color: #fff;
}

.gradus-module-feedback__submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

@media (max-width: 47.99rem) {
	.answer-section:has(> .gradus-module-feedback__trigger) .answer-section__head {
		padding-right: 3rem;
	}

	.answer-section > .gradus-module-feedback__trigger,
	.follow-up-bridge__inner > .gradus-module-feedback__trigger {
		top: 12px;
		right: 12px;
	}

	.gradus-module-feedback__trigger {
		width: 2.5rem;
		height: 2.5rem;
		min-width: 2.5rem;
	}

	.gradus-module-feedback__dialog {
		width: min(100%, 24rem);
		padding: 1.25rem;
	}

	.gradus-module-feedback__header {
		margin-bottom: 0.875rem;
	}

	.gradus-module-feedback__form {
		gap: 0.875rem;
	}

	.gradus-module-feedback__dialog .gradus-module-feedback__textarea {
		padding: 0.8125rem 0.9375rem;
		min-height: 6.75rem;
	}

	.gradus-module-feedback__actions {
		padding-top: 0.875rem;
		gap: 0.625rem;
		flex-direction: column;
		align-items: stretch;
	}

	.gradus-module-feedback__cancel,
	.gradus-module-feedback__submit {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   Install App page (/app/, /de/app/)
   Open landing-page composition: generous hero, glass cards, soft overlays.
   ========================================================================== */

.install-app-page {
	/* Match public answer/static pages: --layout-max-answer + centered inner */
	--install-app-max: var(--layout-max-answer); /* min(100%, 75rem) */
	/* Section rhythm: one gap token — no stacked hero margin/padding on top */
	--install-app-gap: clamp(1.25rem, 1rem + 1.1vw, 2rem);
	--install-app-card-bg: rgba(6, 10, 24, 0.72);
	--install-app-card-border: rgba(255, 255, 255, 0.12);
	--install-app-text: rgba(255, 255, 255, 0.94);
	--install-app-text-muted: rgba(236, 242, 255, 0.82);
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	isolation: isolate;
	overflow-x: clip;
	color: var(--install-app-text);
	padding:
		var(--page-header-clearance)
		0
		calc(var(--footer-examples-clearance) + var(--space-md));
}

/* Soft atmospheric overlays — keep backdrop visible, protect text zones */
.install-app-page__atmosphere {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(
			180deg,
			rgba(2, 4, 13, 0.22) 0%,
			rgba(2, 4, 13, 0.14) 20%,
			rgba(2, 4, 13, 0.4) 58%,
			rgba(2, 4, 13, 0.78) 100%
		),
		radial-gradient(ellipse 78% 55% at 12% 18%, rgba(2, 6, 18, 0.45) 0%, transparent 70%),
		radial-gradient(ellipse 70% 48% at 18% 22%, rgba(56, 189, 248, 0.1) 0%, transparent 68%),
		radial-gradient(ellipse 65% 52% at 88% 68%, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
}

/* Same centering primitive as .answer-container / .askthai-client-nav-root */
.install-app-page__inner {
	position: relative;
	z-index: 1;
	width: min(100%, var(--layout-max-answer));
	max-width: 100%;
	min-width: 0;
	margin-inline: auto;
	box-sizing: border-box;
	padding-inline: max(var(--layout-gutter-sm), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
	display: flex;
	flex-direction: column;
	gap: var(--install-app-gap);
}

/* Open hero — two columns on wide screens; no panel / no hard contour */
.install-app-page__hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: clamp(1.15rem, 0.95rem + 0.75vw, 1.75rem);
	width: 100%;
	max-width: none;
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

.install-app-page__hero-primary {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-sm);
	min-width: 0;
	max-width: min(100%, 40rem);
	background: none;
	border: 0;
	box-shadow: none;
}

.install-app-page__hero-aside {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(0.55rem, 0.45rem + 0.35vw, 0.85rem);
	align-self: center;
	min-width: 0;
	width: 100%;
	max-width: min(100%, 24rem);
	padding: clamp(1rem, 0.85rem + 0.55vw, 1.35rem);
	border-radius: var(--answer-section-radius);
	border: 1px solid rgba(255, 255, 255, 0.09);
	background: rgba(6, 10, 24, 0.48);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 0.4rem 1.35rem rgba(0, 0, 0, 0.14);
}

.install-app-page__aside-eyebrow {
	margin: 0;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #7dd3fc;
}

.install-app-page__aside-lead {
	margin: 0;
	font-size: max(1rem, var(--text-sm));
	line-height: 1.45;
	color: var(--install-app-text-muted);
}

.install-app-page__hero-aside[data-state="manual"] .install-app-page__aside-lead,
.install-app-page__hero-aside[data-state="installed"] .install-app-page__aside-lead {
	display: none;
}

.install-app-page__eyebrow {
	margin: 0;
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--grad-eyebrow);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.install-app-page__title {
	margin: 0;
	font-size: clamp(2rem, 1.55rem + 2.2vw, 3.35rem);
	font-weight: 650;
	line-height: 1.12;
	letter-spacing: -0.025em;
	color: #ffffff;
	text-shadow: 0 0.15rem 1.25rem rgba(2, 4, 13, 0.45);
	overflow-wrap: break-word;
}

.install-app-page__lead {
	margin: 0;
	max-width: 38rem;
	font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
	line-height: 1.55;
	color: var(--install-app-text-muted);
	text-shadow: 0 0.1rem 0.85rem rgba(2, 4, 13, 0.55);
	overflow-wrap: break-word;
}

.install-app-page__install-btn {
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: var(--touch-min);
	padding: 0.15rem;
}

.install-app-page__install-btn[hidden] {
	display: none !important;
}

.install-app-page__install-btn span {
	padding: 0.7rem 1.4rem;
	font-size: var(--text-base);
	font-weight: 600;
	white-space: normal;
	text-align: center;
	overflow-wrap: break-word;
}

.install-app-page__install-btn:focus-visible {
	outline: 2px solid #38bdf8;
	outline-offset: 4px;
}

.install-app-page__status,
.install-app-page__cta-hint {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.55rem;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0.55rem 0.85rem;
	border-radius: 0.75rem;
	font-size: max(1rem, var(--text-sm));
	line-height: 1.45;
	color: var(--install-app-text-muted);
	background: rgba(5, 9, 22, 0.4);
	border: 0;
	box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
	overflow-wrap: break-word;
	box-sizing: border-box;
}

.install-app-page__status[hidden],
.install-app-page__cta-hint[hidden] {
	display: none !important;
}

.install-app-page__hint-icon {
	display: inline-flex;
	flex-shrink: 0;
	margin-top: 0.12rem;
	color: #7dd3fc;
}

.install-app-page__hint-text {
	min-width: 0;
}

.install-app-page__hero-aside[data-state="ready"] .install-app-page__cta-hint,
.install-app-page__hero-aside[data-state="installed"] .install-app-page__cta-hint {
	display: none !important;
}

.install-app-page__section {
	display: flex;
	flex-direction: column;
	gap: clamp(0.95rem, 0.75rem + 0.7vw, 1.35rem);
	min-width: 0;
	width: 100%;
}

/* Free section headings — not boxed */
.install-app-page__section-head {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	max-width: min(100%, 44rem);
	padding: 0;
	background: none;
	border: none;
}

.install-app-page__section-title {
	margin: 0;
	font-size: clamp(1.35rem, 1.15rem + 0.85vw, 1.75rem);
	font-weight: 600;
	line-height: 1.25;
	color: #ffffff;
	text-shadow: 0 0.1rem 0.9rem rgba(2, 4, 13, 0.5);
	overflow-wrap: break-word;
}

.install-app-page__section-lead {
	margin: 0;
	max-width: 40rem;
	font-size: max(1rem, var(--text-base));
	line-height: 1.5;
	color: var(--install-app-text-muted);
	text-shadow: 0 0.08rem 0.7rem rgba(2, 4, 13, 0.45);
}

.install-app-page__guides {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(0.85rem, 0.7rem + 0.55vw, 1.15rem);
	width: 100%;
}

.install-app-guide {
	min-width: 0;
	height: 100%;
	padding: clamp(1.1rem, 0.95rem + 0.55vw, 1.45rem);
	border-radius: var(--answer-section-radius);
	background: var(--install-app-card-bg);
	border: 1px solid var(--install-app-card-border);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.24);
}

.install-app-guide__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.85rem;
	min-width: 0;
}

.install-app-guide__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.75rem;
	color: #c4b5fd;
	background: rgba(99, 102, 241, 0.18);
	border: 1px solid rgba(165, 180, 252, 0.26);
}

.install-app-guide__title {
	margin: 0;
	font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
	font-weight: 600;
	line-height: 1.35;
	color: #ffffff;
	overflow-wrap: break-word;
	min-width: 0;
}

.install-app-guide__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.install-app-guide__step {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	min-width: 0;
}

.install-app-guide__step-index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.1rem;
	border-radius: 999px;
	font-size: var(--text-xs);
	font-weight: 650;
	color: #e0f2fe;
	background: rgba(56, 189, 248, 0.18);
	border: 1px solid rgba(56, 189, 248, 0.32);
}

.install-app-guide__step-text {
	flex: 1;
	min-width: 0;
	font-size: max(1rem, var(--text-sm));
	line-height: 1.5;
	color: var(--install-app-text-muted);
	overflow-wrap: break-word;
}

/* Benefits: one soft panel, multi-column grid inside */
.install-app-page__benefits {
	list-style: none;
	margin: 0;
	padding: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem);
	width: 100%;
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(0.75rem, 0.6rem + 0.45vw, 1rem) clamp(1rem, 0.8rem + 0.7vw, 1.5rem);
	border-radius: var(--answer-section-radius);
	background: var(--install-app-card-bg);
	border: 1px solid var(--install-app-card-border);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, 0.22);
}

.install-app-page__benefit {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
}

.install-app-page__benefit-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.55rem;
	height: 1.55rem;
	margin-top: 0.05rem;
	border-radius: 999px;
	color: #67e8f9;
	background: rgba(34, 211, 238, 0.14);
	border: 1px solid rgba(103, 232, 249, 0.3);
}

.install-app-page__benefit-text {
	min-width: 0;
	font-size: max(1rem, var(--text-sm));
	line-height: 1.45;
	color: var(--install-app-text);
	overflow-wrap: break-word;
}

/* Help: full content width, readable glass panel */
.install-app-page__support {
	width: 100%;
	max-width: none;
	padding: clamp(1.15rem, 1rem + 0.55vw, 1.55rem) clamp(1.15rem, 1rem + 0.7vw, 1.75rem);
	border-radius: var(--answer-section-radius);
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(5, 9, 22, 0.78);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 0.55rem 1.85rem rgba(0, 0, 0, 0.28);
}

.install-app-page__support-title {
	margin: 0 0 0.45rem;
	font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.45rem);
	font-weight: 600;
	color: #ffffff;
}

.install-app-page__support-text {
	margin: 0;
	max-width: 48rem;
	font-size: max(1rem, var(--text-base));
	line-height: 1.55;
	color: var(--install-app-text-muted);
	overflow-wrap: break-word;
}

/* Footer: soft immersion, readable links — no hard dashboard bar */
body.askthai-install-app-page .site-footer {
	padding-block: 0.35rem;
}

body.askthai-install-app-page .site-footer::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -1.25rem;
	transform: translateX(-50%);
	width: min(100%, 56rem);
	height: 5.5rem;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(
		ellipse 75% 95% at 50% 85%,
		rgba(2, 4, 13, 0.88) 0%,
		rgba(2, 4, 13, 0.55) 48%,
		transparent 78%
	);
}

body.askthai-install-app-page .site-footer__nav a.hero-examples-label {
	letter-spacing: 0.06em;
	color: rgba(248, 250, 252, 0.88);
	text-shadow: 0 1px 8px rgba(2, 4, 13, 0.65);
}

body.askthai-install-app-page .site-footer__nav a.hero-examples-label:hover,
body.askthai-install-app-page .site-footer__nav a.hero-examples-label:focus-visible {
	color: #ffffff;
}

body.askthai-install-app-page .site-footer__sep {
	color: rgba(226, 232, 240, 0.5);
}

@media (min-width: 36rem) {
	.install-app-page__benefits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.install-app-page__hero-aside {
		max-width: min(100%, 28rem);
	}
}

@media (min-width: 48rem) {
	.install-app-page__guides {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 56rem) {
	.install-app-page__hero {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		align-items: center;
		column-gap: clamp(1.5rem, 1.1rem + 1.6vw, 2.75rem);
		row-gap: 0;
	}

	.install-app-page__hero-primary {
		max-width: none;
	}

	.install-app-page__hero-aside {
		max-width: none;
		justify-self: stretch;
		align-self: center;
	}

	.install-app-page__install-btn {
		width: auto;
		min-width: min(100%, 14rem);
	}
}

@media (min-width: 64rem) {
	.install-app-page__install-btn {
		min-width: 16rem;
	}

	.install-app-page__benefits {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.install-app-page__install-btn {
		transition: none;
	}
}

/* End visitor responsive layers — see docs/askthai-theme-responsive-guide.md */
