/* Quiz Master — public marketing skin (light). Product UI keeps answers.css. */

:root {
	--mkt-ink: #0c2a32;
	--mkt-ink-soft: #1a3f4a;
	--mkt-teal: #0d6e6e;
	--mkt-teal-deep: #0a5555;
	--mkt-teal-bright: #1a9a8e;
	--mkt-sand: #e8eef1;
	--mkt-paper: #f5f8fa;
	--mkt-white: #ffffff;
	--mkt-muted: #5a6f76;
	--mkt-line: rgba(12, 42, 50, 0.12);
	--mkt-shadow: 0 12px 40px rgba(12, 42, 50, 0.12);
	--mkt-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--mkt-font-body: "Source Sans 3", "Segoe UI", sans-serif;
	--mkt-radius: 14px;
	--mkt-max: 1120px;
	--mkt-header-h: 68px;
	--mkt-join-h: 72px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.mkt-body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--mkt-font-body);
	font-size: 17px;
	line-height: 1.55;
	color: var(--mkt-ink);
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(26, 154, 142, 0.12), transparent 55%),
		radial-gradient(900px 500px at 100% 0%, rgba(12, 42, 50, 0.06), transparent 50%),
		linear-gradient(180deg, var(--mkt-paper) 0%, var(--mkt-sand) 100%);
	display: flex;
	flex-direction: column;
	/* Beat product dark theme if answers.css is also loaded (e.g. join logo popup) */
	--text-primary: var(--mkt-ink);
	--text-secondary: var(--mkt-muted);
	--bg-primary: var(--mkt-paper);
	--bg-secondary: var(--mkt-sand);
	--primary-text: var(--mkt-ink);
}

body.mkt-body a {
	color: var(--mkt-teal-deep);
}

body.mkt-body a:hover {
	color: var(--mkt-teal);
}

.mkt-main {
	flex: 1 0 auto;
	width: 100%;
}

/* —— Header —— */
.mkt-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(245, 248, 250, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--mkt-line);
}

.mkt-header-inner {
	max-width: var(--mkt-max);
	margin: 0 auto;
	padding: 10px 20px;
	min-height: var(--mkt-header-h);
	display: flex;
	align-items: center;
	gap: 16px;
}

.mkt-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--mkt-ink);
	flex-shrink: 0;
}

.mkt-brand:hover {
	color: var(--mkt-ink);
}

.mkt-brand-mark {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.mkt-brand-name {
	font-family: var(--mkt-font-display);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.02em;
	line-height: 1;
}

.mkt-nav-toggle {
	margin-left: auto;
	display: none;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--mkt-line);
	background: var(--mkt-white);
	color: var(--mkt-ink);
	padding: 8px 12px;
	border-radius: 999px;
	cursor: pointer;
	font: inherit;
	font-size: 0.95rem;
}

.mkt-nav {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: auto;
}

.mkt-nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}

.mkt-nav-list a {
	text-decoration: none;
	color: var(--mkt-ink-soft);
	font-weight: 550;
	font-size: 0.95rem;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
}

.mkt-nav-list a:hover,
.mkt-nav-list a.active {
	color: var(--mkt-ink);
	border-bottom-color: var(--mkt-teal);
}

.mkt-nav-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

/* Sticky join covers desktop home; phone menu gets an explicit Join CTA */
.mkt-nav-join {
	display: none;
}

.mkt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	font-family: inherit;
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mkt-btn:hover {
	transform: translateY(-1px);
}

.mkt-btn-primary {
	background: var(--mkt-teal);
	color: var(--mkt-white) !important;
	box-shadow: 0 8px 20px rgba(13, 110, 110, 0.28);
}

.mkt-btn-primary:hover {
	background: var(--mkt-teal-deep);
	color: var(--mkt-white) !important;
}

.mkt-btn-ghost {
	background: transparent;
	border-color: var(--mkt-line);
	color: var(--mkt-ink) !important;
}

.mkt-btn-ghost:hover {
	background: var(--mkt-white);
	color: var(--mkt-ink) !important;
}

.mkt-btn-secondary {
	background: var(--mkt-white);
	border-color: var(--mkt-line);
	color: var(--mkt-ink) !important;
}

/* —— Footer —— */
.mkt-footer {
	margin-top: auto;
	border-top: 1px solid var(--mkt-line);
	background: rgba(12, 42, 50, 0.04);
	padding: 36px 20px 28px;
}

.mkt-footer-inner {
	max-width: var(--mkt-max);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.mkt-footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--mkt-font-display);
	font-weight: 700;
	font-size: 1.1rem;
}

.mkt-footer-brand img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.mkt-footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.mkt-footer-links a {
	text-decoration: none;
	color: var(--mkt-ink-soft);
	font-weight: 500;
}

.mkt-footer-links a:hover {
	color: var(--mkt-teal);
}

.mkt-footer-privacy {
	font-size: 0.85rem;
	color: var(--mkt-muted);
}

.mkt-footer-privacy a {
	color: var(--mkt-teal-deep);
}

.mkt-footer-copy {
	margin: 0;
	font-size: 0.85rem;
	color: var(--mkt-muted);
}

/* —— Content pages —— */
.mkt-content {
	max-width: 820px;
	margin: 0 auto;
	padding: 36px 20px 64px;
}

.mkt-content-wide {
	max-width: 960px;
}

.mkt-content h1 {
	font-family: var(--mkt-font-display);
	font-size: clamp(1.85rem, 3vw, 2.4rem);
	line-height: 1.15;
	margin: 0 0 12px;
	letter-spacing: -0.02em;
}

.mkt-content h2 {
	font-family: var(--mkt-font-display);
	font-size: 1.35rem;
	margin: 28px 0 10px;
}

.mkt-content p,
.mkt-content li {
	color: var(--mkt-ink-soft);
}

.mkt-content ul {
	padding-left: 1.2em;
}

.mkt-panel {
	background: var(--mkt-white);
	border: 1px solid var(--mkt-line);
	border-radius: var(--mkt-radius);
	padding: clamp(16px, 2vw, 22px);
	margin: 16px 0;
	box-shadow: var(--mkt-shadow);
}

.mkt-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0;
	background: var(--mkt-white);
	border-radius: 10px;
	overflow: hidden;
}

.mkt-content th,
.mkt-content td {
	border: 1px solid var(--mkt-line);
	padding: 10px 12px;
	text-align: left;
}

.mkt-content th {
	background: rgba(13, 110, 110, 0.08);
	color: var(--mkt-ink);
}

.mkt-step {
	counter-increment: mkt-step;
	position: relative;
	padding-top: 28px;
}

.mkt-step::before {
	content: counter(mkt-step);
	position: absolute;
	top: 12px;
	left: 16px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--mkt-teal);
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mkt-steps {
	counter-reset: mkt-step;
}

.mkt-about-note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	background: var(--mkt-white);
	border: 1px solid var(--mkt-line);
	border-radius: var(--mkt-radius);
	padding: 14px 16px;
	margin: 16px 0;
}

.mkt-about-note img {
	height: 48px;
	width: auto;
}

.mkt-error {
	max-width: var(--mkt-max);
	margin: 12px auto 0;
	padding: 12px 16px;
	background: #fde8e8;
	border: 1px solid #e8a0a0;
	border-radius: 10px;
	color: #7a1f1f;
}

/* —— Home —— */
.mkt-hero {
	position: relative;
	isolation: isolate;
	min-height: min(78vh, 720px);
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	color: #f4fafb;
}

.mkt-hero-bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}

.mkt-hero-bg-slide {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.mkt-hero-bg-pub {
	background-image: url("images/pub_quiz_image.png");
	opacity: 1;
	animation: mkt-hero-crossfade 16s ease-in-out infinite;
}

.mkt-hero-bg-home {
	background-image: url("images/home_quiz_image.png");
	opacity: 0;
	animation: mkt-hero-crossfade-alt 16s ease-in-out infinite;
}

.mkt-hero-bg-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(8, 28, 34, 0.88) 0%, rgba(8, 28, 34, 0.55) 48%, rgba(8, 28, 34, 0.35) 100%);
	pointer-events: none;
}

@keyframes mkt-hero-crossfade {
	0%,
	42% {
		opacity: 1;
	}
	50%,
	92% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes mkt-hero-crossfade-alt {
	0%,
	42% {
		opacity: 0;
	}
	50%,
	92% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mkt-hero-bg-pub,
	.mkt-hero-bg-home {
		animation: none;
	}
	.mkt-hero-bg-pub {
		opacity: 1;
	}
	.mkt-hero-bg-home {
		opacity: 0;
	}
}

.mkt-hero-inner {
	width: 100%;
	max-width: var(--mkt-max);
	margin: 0 auto;
	padding: 48px 20px 56px;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 32px;
	align-items: end;
}

.mkt-hero-copy {
	max-width: 34rem;
}

.mkt-hero-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	opacity: 0;
	transform: translateY(12px);
	animation: mkt-rise 700ms ease forwards 80ms;
}

.mkt-hero-brand img {
	width: 100%;
	object-fit: contain;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.mkt-hero-brand span {
	font-family: var(--mkt-font-display);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}

.mkt-hero h1 {
	font-family: var(--mkt-font-display);
	font-size: clamp(1.55rem, 3.2vw, 2.15rem);
	line-height: 1.2;
	margin: 0 0 12px;
	font-weight: 600;
	opacity: 0;
	transform: translateY(12px);
	animation: mkt-rise 700ms ease forwards 180ms;
}

.mkt-hero-lead {
	margin: 0 0 22px;
	font-size: 1.08rem;
	color: rgba(244, 250, 251, 0.88);
	max-width: 32ch;
	opacity: 0;
	transform: translateY(12px);
	animation: mkt-rise 700ms ease forwards 280ms;
}

.mkt-hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	opacity: 0;
	transform: translateY(12px);
	animation: mkt-rise 700ms ease forwards 360ms;
}

.mkt-hero-visual {
	justify-self: end;
	position: relative;
	width: min(100%, 226px);
	opacity: 0;
	transform: translateY(18px);
	animation: mkt-rise 800ms ease forwards 420ms;
}

.mkt-phone {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 19.5;
	padding: 10px;
	border-radius: 36px;
	background: linear-gradient(160deg, #2a2e33 0%, #0c0e10 42%, #1a1d22 100%);
	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.45),
		inset 0 0 0 2px rgba(255, 255, 255, 0.12),
		inset 0 0 0 5px #0a0a0a;
}

.mkt-phone-notch {
	position: absolute;
	top: 16px;
	left: 50%;
	z-index: 3;
	width: 38%;
	height: 12px;
	transform: translateX(-50%);
	border-radius: 999px;
	background: #0a0a0a;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	pointer-events: none;
}

.mkt-phone-screen {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 26px;
	background: #06161a;
}

.mkt-hero-visual-slide {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	opacity: 0;
	animation: mkt-hero-visual-cycle 25s linear infinite;
}

.mkt-hero-visual-slide:nth-child(1) { animation-delay: 0s; }
.mkt-hero-visual-slide:nth-child(2) { animation-delay: 5s; }
.mkt-hero-visual-slide:nth-child(3) { animation-delay: 10s; }
.mkt-hero-visual-slide:nth-child(4) { animation-delay: 15s; }
.mkt-hero-visual-slide:nth-child(5) { animation-delay: 20s; }

/* 5 slides × 5s; fade out of one overlaps fade in of next */
@keyframes mkt-hero-visual-cycle {
	0% {
		opacity: 0;
	}
	8% {
		opacity: 1;
	}
	20% {
		opacity: 1;
	}
	28% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

@keyframes mkt-rise {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.mkt-hero-brand,
	.mkt-hero h1,
	.mkt-hero-lead,
	.mkt-hero-ctas,
	.mkt-hero-visual,
	.mkt-reveal {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.mkt-hero-visual-slide {
		animation: none !important;
		opacity: 0 !important;
	}
	.mkt-hero-visual-slide:first-child {
		opacity: 1 !important;
	}
	html {
		scroll-behavior: auto;
	}
}

/* Sticky join */
.mkt-join {
	position: sticky;
	top: var(--mkt-header-h);
	z-index: 35;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--mkt-line);
	box-shadow: 0 0 0 rgba(12, 42, 50, 0);
	transition: box-shadow 200ms ease, background 200ms ease;
}

.mkt-join.is-solid {
	box-shadow: 0 8px 24px rgba(12, 42, 50, 0.1);
	background: rgba(255, 255, 255, 0.98);
}

.mkt-join-inner {
	max-width: var(--mkt-max);
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px 14px;
}

.mkt-join-label {
	font-family: var(--mkt-font-display);
	font-weight: 700;
	font-size: 1.05rem;
	margin: 0 8px 8px 0;
	color: var(--mkt-ink);
	align-self: center;
}

.mkt-join .form-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 140px;
	min-width: 120px;
}

.mkt-join label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--mkt-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mkt-join input[type="text"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mkt-line);
	border-radius: 10px;
	font: inherit;
	font-size: 1rem;
	background: var(--mkt-white);
	color: var(--mkt-ink);
}

.mkt-join input[type="text"]:focus {
	outline: 2px solid rgba(13, 110, 110, 0.35);
	border-color: var(--mkt-teal);
}

.mkt-join input[type="submit"],
.mkt-join .mkt-btn {
	flex: 0 0 auto;
	align-self: flex-end;
	margin-bottom: 0;
}

.mkt-join-maint {
	margin: 0;
	color: #7a1f1f;
	font-weight: 600;
}

/* Sections */
.mkt-section {
	max-width: var(--mkt-max);
	margin: 0 auto;
	padding: 56px 20px;
}

.mkt-section h2 {
	font-family: var(--mkt-font-display);
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	margin: 0 0 10px;
	letter-spacing: -0.02em;
}

.mkt-section-lead {
	margin: 0 0 28px;
	color: var(--mkt-muted);
	max-width: 42ch;
}

.mkt-how-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.mkt-how-card {
	background: var(--mkt-white);
	border: 1px solid var(--mkt-line);
	border-radius: var(--mkt-radius);
	overflow: hidden;
	box-shadow: var(--mkt-shadow);
}

.mkt-how-card img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
	background: var(--mkt-sand);
}

.mkt-how-card-body {
	padding: 16px 18px 20px;
}

.mkt-how-card h3 {
	font-family: var(--mkt-font-display);
	margin: 0 0 8px;
	font-size: 1.15rem;
}

.mkt-how-card p {
	margin: 0;
	color: var(--mkt-muted);
	font-size: 0.98rem;
}

.mkt-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mkt-features li {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 14px;
	align-items: start;
}

.mkt-features img {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.mkt-features h3 {
	margin: 0 0 4px;
	font-size: 1.05rem;
	font-family: var(--mkt-font-display);
}

.mkt-features p {
	margin: 0;
	color: var(--mkt-muted);
	font-size: 0.95rem;
}

.mkt-host-cta {
	background: linear-gradient(135deg, rgba(13, 110, 110, 0.1), rgba(12, 42, 50, 0.06));
	border: 1px solid var(--mkt-line);
	border-radius: calc(var(--mkt-radius) + 4px);
	padding: 28px 24px;
	text-align: center;
}

.mkt-host-cta p {
	margin: 0 0 16px;
	color: var(--mkt-ink-soft);
}

.mkt-host-cta .mkt-hero-ctas {
	justify-content: center;
}

.mkt-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 500ms ease, transform 500ms ease;
}

.mkt-reveal.is-in {
	opacity: 1;
	transform: translateY(0);
}

/* Auth */
.mkt-auth-wrap {
	min-height: calc(100vh - var(--mkt-header-h) - 160px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
}

.mkt-auth-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: var(--mkt-white);
	border: 1px solid var(--mkt-line);
	border-radius: calc(var(--mkt-radius) + 2px);
	box-shadow: var(--mkt-shadow);
	padding: 36px 28px;
	overflow: hidden;
}

.mkt-auth-card .login-header {
	text-align: center;
	margin-bottom: 24px;
}

.mkt-auth-card .login-header img {
	width: 128px;
	margin-bottom: 10px;
}

.mkt-auth-card .login-header h1 {
	font-family: var(--mkt-font-display);
	color: var(--mkt-ink);
	margin: 0 0 8px;
	font-size: 1.65rem;
}

.mkt-auth-card .login-header p {
	color: var(--mkt-muted);
	margin: 0;
}

.mkt-auth-card .form-group {
	margin-bottom: 14px;
}

.mkt-auth-card label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 4px;
	color: var(--mkt-ink-soft);
}

.mkt-auth-card input[type="email"],
.mkt-auth-card input[type="password"],
.mkt-auth-card input[type="text"] {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--mkt-line);
	border-radius: 10px;
	font: inherit;
	background: var(--mkt-paper);
	color: var(--mkt-ink);
}

.mkt-auth-card input[type="submit"],
.mkt-auth-card button[type="submit"] {
	width: 100%;
	margin-top: 8px;
	padding: 12px 16px;
	border: 0;
	border-radius: 999px;
	background: var(--mkt-teal);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.mkt-auth-card .oauth-buttons a,
.mkt-auth-card .oauth-btn {
	border-radius: 999px !important;
}

.mkt-auth-card a {
	color: var(--mkt-teal-deep);
}

/* Affiliates sections on marketing */
.mkt-body .container section,
.mkt-affiliates section {
	background: var(--mkt-white);
	border: 1px solid var(--mkt-line) !important;
	border-radius: var(--mkt-radius);
	box-shadow: var(--mkt-shadow);
}

.mkt-body .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--mkt-teal);
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
	border: 0;
}

@media only screen and (max-width: 900px) {
	.mkt-hero {
		min-height: 0;
		align-items: stretch;
	}

	.mkt-hero-inner {
		grid-template-columns: 1fr;
		padding: 28px 16px 20px;
		gap: 20px;
	}

	.mkt-hero-visual {
		justify-self: center;
		width: min(42vw, 180px);
		order: -1;
	}

	.mkt-how-grid {
		grid-template-columns: 1fr;
	}

	.mkt-features {
		grid-template-columns: 1fr;
	}
}

@media only screen and (max-width: 760px) {
	.mkt-nav-toggle {
		display: inline-flex;
	}

	.mkt-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px 20px 18px;
		background: rgba(255, 255, 255, 0.98);
		border-bottom: 1px solid var(--mkt-line);
		box-shadow: var(--mkt-shadow);
	}

	.mkt-nav.is-open {
		display: flex;
	}

	.mkt-nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}

	.mkt-nav-list a {
		padding: 10px 4px;
		border-bottom: 0;
	}

	.mkt-nav-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.mkt-nav-join {
		display: inline-flex;
		justify-content: center;
		order: -1;
	}

	.mkt-nav-actions .mkt-nav-register {
		background: var(--mkt-white);
		color: var(--mkt-ink) !important;
		border-color: var(--mkt-line);
	}

	.mkt-header {
		position: relative;
	}

	.mkt-join {
		top: 0;
	}

	/* Compact sticky join: title, two fields side-by-side, full-width button */
	.mkt-join-inner {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"label label"
			"qid name"
			"btn btn";
		align-items: end;
		gap: 8px 10px;
		padding: 10px 14px 12px;
	}

	.mkt-join-label {
		grid-area: label;
		margin: 0;
		align-self: start;
		font-size: 1rem;
	}

	.mkt-join .form-group {
		flex: none;
		min-width: 0;
		width: auto;
	}

	.mkt-join .form-group:first-of-type {
		grid-area: qid;
	}

	.mkt-join .form-group:last-of-type {
		grid-area: name;
	}

	.mkt-join input[type="text"] {
		padding: 9px 10px;
		font-size: 16px; /* avoid iOS zoom */
	}

	.mkt-join input[type="submit"],
	.mkt-join .mkt-btn {
		grid-area: btn;
		width: 100%;
		align-self: stretch;
		justify-self: stretch;
	}

	.mkt-join-maint {
		grid-column: 1 / -1;
	}

	.mkt-brand-name {
		font-size: 1.15rem;
	}
}

@media only screen and (max-width: 420px) {
	.mkt-join-inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"label"
			"qid"
			"name"
			"btn";
	}
}
