/*
 * The free account card (includes/lr-pass-funnel.php), under the hero of every public ESAT,
 * TMUA, PAT, STEP and MAT page. Its own file so the shared stylesheets are not edited. Colours
 * are the theme's tokens only, so the dark theme redefines them and nothing here changes.
 * The button is .lr-btn-primary, which owns its colours, hover, focus ring and dark variant.
 */
.lr-pass-funnel {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--lr-gap-medium, 16px) var(--lr-gap-large, 24px);
	max-width: 1140px; /* the book card beside it, so the two line up */
	margin: var(--lr-gap-large, 24px) auto 0;
	padding: 24px 32px;
	background: var(--lr-color-bg-card);
	border: 1px solid var(--lr-color-border-card);
	border-left: 4px solid var(--lr-color-accent);
	border-radius: 14px;
	box-shadow: var(--lr-shadow-rest, none);
}

.lr-pass-funnel__text {
	min-width: 0;
}

.lr-pass-funnel p {
	margin: 0;
}

.lr-pass-funnel__eyebrow {
	color: var(--lr-color-accent);
	font-size: var(--lr-font-size-small, 0.8125rem);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: var(--lr-line-height-small, 1.4);
}

.lr-pass-funnel__heading {
	color: var(--lr-color-text-main);
	font-family: var(--lr-font-heading, inherit);
	font-size: var(--lr-font-size-h3, 1.25rem);
	font-weight: 700;
	line-height: var(--lr-line-height-heading, 1.25);
	margin-top: 4px !important;
}

.lr-pass-funnel__body {
	color: var(--lr-color-text-muted);
	font-size: var(--lr-font-size-small, 0.9375rem);
	line-height: var(--lr-line-height-body, 1.55);
	margin-top: 6px !important;
}

.lr-pass-funnel__button {
	flex: 0 0 auto;
	white-space: nowrap;
	text-decoration: none;
}

/* Phone: stack, and the button takes the full width so it is an easy thumb target. */
@media (max-width: 640px) {
	.lr-pass-funnel {
		flex-direction: column;
		align-items: stretch;
		padding: var(--lr-gap-medium, 16px);
	}

	.lr-pass-funnel__button {
		width: 100%;
		text-align: center;
		white-space: normal;
	}
}

/* Homepage: the card in a band of its own under the hero, lined up with the bands around it. */
.lr-band.lr-pass-funnel-band {
	/* Air under the hero; the proof band below brings its own top padding (44px, measured). */
	padding: 40px 0 0;
}

.lr-pass-funnel-band .lr-pass-funnel {
	margin-top: 0;
}

/*
 * The strip above the header on every other public page. Printed by the server in the flow, so
 * its height is there from the first paint; closing it hides it (html.lr-pass-strip-closed, set
 * before paint on later pages by the head script), and nothing below jumps on a normal load.
 */
.lr-pass-strip {
	background: var(--lr-color-accent-wash, #eef3fb);
	border-bottom: 1px solid var(--lr-color-border-card);
	color: var(--lr-color-text-main);
	font-size: var(--lr-font-size-small, 0.875rem);
	line-height: var(--lr-line-height-small, 1.4);
}

.lr-pass-strip__inner {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 12px;
	max-width: 1200px;
	min-height: 40px;
	margin: 0 auto;
	padding: 8px 44px 8px 16px;
	position: relative;
	text-align: center;
}

.lr-pass-strip__link {
	color: var(--lr-color-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.lr-pass-strip__close {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--lr-color-text-muted);
	cursor: pointer;
}

.lr-pass-strip__close:hover {
	color: var(--lr-color-text-main);
	background: rgba(var(--lr-color-accent-rgb, 0, 33, 71), 0.08);
}

.lr-pass-strip__close:focus-visible {
	outline: 2px solid var(--lr-color-focus-ring, var(--lr-color-accent));
	outline-offset: 2px;
}

.lr-pass-strip__text--short {
	display: none;
}

@media (max-width: 640px) {
	.lr-pass-strip__inner {
		flex-wrap: nowrap;
		gap: 6px;
		min-height: 40px;
		padding: 6px 44px 6px 12px;
	}

	.lr-pass-strip__text--long {
		display: none;
	}

	.lr-pass-strip__text--short {
		display: inline;
		white-space: nowrap;
	}
}

html.lr-pass-strip-closed .lr-pass-strip {
	display: none;
}

@media print {
	.lr-pass-funnel,
	.lr-pass-strip {
		display: none;
	}
}
