/*
 * safenmedical.com — a research document's landing page (Ben's "Clinical Editorial" prototype,
 * docs/design/2026-11-02-landing-prototypes/01-clinical-editorial.html). Loaded only on the four
 * posts in assets.json. The site's own header and footer stay; Kadence's post title, featured
 * image and meta are switched off for these posts in safenmedical-core.php. Fonts: the site's Lato,
 * and the system serif stack for the headline's italic accent. No web font is added.
 * The gate inside is ii-forms' own form, restyled here; every state it has is kept.
 */
.sm-lp {
	--lp-navy: #1b255e;
	--lp-blue: #02548f;
	--lp-orange: #f26a29;
	/* Small orange text (12 px labels) needs AA 4.5:1: a darker Sāfen orange (5.4:1 on white, 4.7:1 on the
	   cover card). The approved #F26A29 stays for the decorative rule and for 19 px bold white-on-orange. */
	--lp-orange-text: #b54708;
	--lp-ink: #1b255e;
	--lp-body: #4b5565;
	--lp-muted: #6b7686;
	--lp-band: #f3f6fb;
	--lp-line: #dfe6ef;
	--lp-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
	color: var(--lp-body);
}

/* Kadence's related posts, should a theme setting bring them back: not part of this page. */
.sm-lp-page .entry-related {
	display: none;
}

.sm-lp-page .entry-content.single-content,
.sm-lp-page .entry-content-wrap {
	margin: 0;
	padding: 0;
}

.sm-lp .sm-lp__wrap {
	box-sizing: border-box;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 48px);
}

/* ── Hero: a light band; the text and cover card left, the form card right ── */
.sm-lp .sm-lp__hero {
	padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 96px);
	background:
		radial-gradient(circle at 8% 70%, rgba(2, 84, 143, 0.05) 0 340px, transparent 341px),
		radial-gradient(circle at 46% 4%, rgba(2, 84, 143, 0.04) 0 260px, transparent 261px),
		var(--lp-band);
	border-bottom: 1px solid var(--lp-line);
}

.sm-lp .sm-lp__hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.sm-lp .sm-lp__eyebrow {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0 0 22px;
	color: var(--lp-navy);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.sm-lp .sm-lp__eyebrow::before {
	content: "";
	width: 30px;
	height: 2px;
	background: var(--lp-orange);
}

.sm-lp .sm-lp__dot {
	color: var(--lp-orange);
}

.sm-lp .sm-lp__title {
	margin: 0 0 22px;
	color: var(--lp-ink);
	font-size: clamp(36px, 4.6vw, 64px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -0.025em;
}

.sm-lp .sm-lp__title em {
	color: var(--lp-blue);
	font-family: var(--lp-serif);
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.01em;
}

.sm-lp .sm-lp__intro {
	max-width: 620px;
	margin: 0 0 20px;
	color: var(--lp-body);
	font-size: clamp(17px, 1.3vw, 19px);
	line-height: 1.6;
}

.sm-lp .sm-lp__byline {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin: 0 0 36px;
	color: var(--lp-navy);
	font-size: 14px;
	font-weight: 700;
}

.sm-lp .sm-lp__year {
	color: var(--lp-muted);
	font-weight: 400;
}

/* The cover card: the first page, tilted, beside "In this …". */
.sm-lp .sm-lp__cover-card {
	display: grid;
	grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
	gap: clamp(24px, 3vw, 40px);
	align-items: center;
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid var(--lp-line);
	border-radius: 22px;
	background:
		radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.7) 0 140px, transparent 141px),
		linear-gradient(135deg, #e7eef8, #f2f5fa);
}

.sm-lp .sm-lp__cover {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 2px 4px rgba(16, 24, 40, 0.08), 0 22px 40px -18px rgba(27, 37, 94, 0.45);
	transform: rotate(-3deg);
}

.sm-lp .sm-lp__kicker,
.sm-lp .sm-lp__label,
.sm-lp .sm-lp__card-label {
	margin: 0 0 10px;
	color: var(--lp-orange-text);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.sm-lp .sm-lp__cover-heading {
	margin: 0 0 10px;
	color: var(--lp-ink);
	font-size: clamp(21px, 1.8vw, 26px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.sm-lp .sm-lp__cover-text p:last-child {
	margin: 0;
	color: var(--lp-muted);
	font-size: 15px;
	line-height: 1.6;
}

/* The form card. */
.sm-lp .sm-lp__gate:focus {
	outline: none;
}

.sm-lp .sm-lp__gate:focus-visible .sm-lp__gate-card {
	outline: 3px solid var(--lp-blue);
	outline-offset: 4px;
}

.sm-lp .sm-lp__gate-card {
	position: relative;
	padding: clamp(28px, 3vw, 40px);
	border: 1px solid var(--lp-line);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 2px 4px rgba(16, 24, 40, 0.04), 0 30px 60px -28px rgba(27, 37, 94, 0.3);
	overflow: hidden;
}

.sm-lp .sm-lp__gate-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 5px;
	background: linear-gradient(90deg, var(--lp-orange) 0 40%, #f8b48f 40% 42%, #e6ecf5 42%);
}

.sm-lp .sm-lp__gate-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin: 4px 0 22px;
	border-radius: 12px;
	background: #fde9df;
}

.sm-lp .sm-lp__gate-icon svg,
.sm-lp .sm-lp__care svg,
.sm-lp .sm-lp__band-button svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sm-lp .sm-lp__gate-icon svg {
	width: 22px;
	height: 22px;
	color: var(--lp-orange);
}

.sm-lp .sm-lp__gate-title {
	margin: 0 0 8px;
	color: var(--lp-ink);
	font-size: clamp(26px, 2.2vw, 32px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.sm-lp .sm-lp__gate-intro {
	margin: 0 0 26px;
	color: var(--lp-muted);
	font-size: 15px;
	line-height: 1.55;
}

/* The ii-forms gate inside the card: its look only; every state it has stays. */
.sm-lp .ii-nc-form {
	--ii-brand: #1b255e;
	--ii-accent: #f26a29;
	--ii-text: #1b255e;
	--ii-border: #d3dbe6;
	--ii-radius: 10px;
}

.sm-lp .ii-nc-form .ii-nc-form__form {
	gap: 18px 14px;
}

.sm-lp .ii-nc-form .ii-nc-form__label {
	font-size: 14px;
}

.sm-lp .ii-nc-form .ii-nc-form__control {
	min-height: 48px;
	background: #fff;
}

.sm-lp .ii-nc-form .ii-nc-form__consent {
	font-size: 13px;
}

.sm-lp .ii-nc-form .ii-nc-form__submit,
.sm-lp .ii-nc-form .ii-nc-form__return-link,
.sm-lp .ii-nc-form .ii-nc-form__open .ii-nc-form__download-link {
	justify-content: space-between;
	justify-self: stretch;
	width: 100%;
	min-height: 56px;
	padding: 0 22px;
	border-radius: 12px;
	font-size: 19px;
}

.sm-lp .ii-nc-form .ii-nc-form__submit::after,
.sm-lp .ii-nc-form .ii-nc-form__return-link::after,
.sm-lp .ii-nc-form .ii-nc-form__open .ii-nc-form__download-link::after {
	content: "→";
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
}

.sm-lp .ii-nc-form.is-sending .ii-nc-form__submit::after {
	content: none;
}

/* The card's own heading gives way to the success and return panels (they carry their own). */
.sm-lp .sm-lp__gate-card:has(.ii-nc-form.is-done) :is(.sm-lp__gate-title, .sm-lp__gate-intro, .sm-lp__gate-icon),
.sm-lp .sm-lp__gate-card:has(.ii-nc-form.is-returning) :is(.sm-lp__gate-intro) {
	display: none;
}

.sm-lp .ii-nc-form .ii-nc-form__return-lead {
	color: var(--lp-body);
	font-size: 16px;
}

.sm-lp .ii-nc-form .ii-nc-form__success-heading {
	color: var(--lp-ink);
	font-size: 26px;
}

.sm-lp .sm-lp__care {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	margin: 18px 0 0;
	color: var(--lp-muted);
	font-size: 13px;
}

.sm-lp .sm-lp__care svg {
	width: 15px;
	height: 15px;
}

.sm-lp .sm-lp__gate-card:has(.ii-nc-form.is-done) .sm-lp__care {
	display: none;
}

/* ── What's inside ── */
.sm-lp .sm-lp__inside {
	padding: clamp(56px, 7vw, 96px) 0 clamp(56px, 7vw, 88px);
	background: #fff;
}

.sm-lp .sm-lp__inside-head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 48px;
	align-items: end;
	justify-content: space-between;
	margin: 0 0 36px;
}

.sm-lp .sm-lp__inside-title {
	margin: 0;
	color: var(--lp-ink);
	font-size: clamp(30px, 3.4vw, 44px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.sm-lp .sm-lp__inside-intro {
	max-width: 330px;
	margin: 0;
	color: var(--lp-muted);
	font-size: 16px;
	line-height: 1.6;
}

.sm-lp .sm-lp__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.sm-lp .sm-lp__card {
	margin: 0;
	padding: 28px;
	border: 1px solid var(--lp-line);
	border-radius: 18px;
	background: #fff;
}

.sm-lp .sm-lp__card-title {
	margin: 0 0 10px;
	color: var(--lp-ink);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
}

.sm-lp .sm-lp__card-text {
	margin: 0;
	color: var(--lp-muted);
	font-size: 15px;
	line-height: 1.6;
}

.sm-lp .sm-lp__body {
	max-width: 760px;
	margin: 40px 0;
	font-size: 17px;
	line-height: 1.7;
}

/* The closing band. */
.sm-lp .sm-lp__band {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 32px;
	align-items: center;
	justify-content: space-between;
	padding: 28px 32px;
	border-radius: 20px;
	background: #e7eef8;
}

.sm-lp .sm-lp__band-text {
	flex: 1 1 340px;
	margin: 0;
	color: var(--lp-ink);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.4;
}

.sm-lp .sm-lp__band-button {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	min-height: 50px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--lp-navy);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	text-decoration: none;
}

.sm-lp .sm-lp__band-button svg {
	width: 18px;
	height: 18px;
}

.sm-lp .sm-lp__band-button:hover {
	background: #10184a;
	color: #fff;
}

.sm-lp .sm-lp__band-button:focus-visible,
.sm-lp .sm-lp__sticky-button:focus-visible {
	outline: 3px solid var(--lp-blue);
	outline-offset: 3px;
}

/* ── The phone's sticky bar: shown by landing.js while the form is off screen ── */
.sm-lp .sm-lp__sticky {
	display: none;
}

/* ── Tablet and phone: the prototype's order, stacked ── */
@media (max-width: 960px) {
	.sm-lp .sm-lp__hero-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sm-lp .sm-lp__gate-card {
		max-width: 640px;
	}

	.sm-lp .sm-lp__cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.sm-lp .sm-lp__inside-intro {
		max-width: 620px;
	}
}

@media (max-width: 760px) {
	.sm-lp .sm-lp__sticky:not([hidden]) {
		position: fixed;
		inset: auto 0 0;
		z-index: 50;
		display: flex;
		gap: 12px;
		align-items: center;
		justify-content: space-between;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: #fff;
		box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.12);
	}

	.sm-lp.has-sticky {
		padding-bottom: 72px;
	}

	.sm-lp .sm-lp__sticky-kind {
		color: var(--lp-navy);
		font-size: 14px;
		font-weight: 700;
	}

	.sm-lp .sm-lp__sticky-button {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0 18px;
		border-radius: 999px;
		background: var(--lp-orange);
		color: #fff;
		/* 19 px bold: white on #F26A29 passes AA only as large text. */
		font-size: 19px;
		font-weight: 700;
		text-decoration: none;
		white-space: nowrap;
	}
}

@media (max-width: 560px) {
	.sm-lp .sm-lp__cover-card {
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 20px;
		align-items: start;
	}

	.sm-lp .sm-lp__cover-heading {
		font-size: 19px;
	}

	.sm-lp .sm-lp__cover-text p:last-child {
		font-size: 14px;
	}

	.sm-lp .sm-lp__band {
		padding: 24px 20px;
	}

	.sm-lp .sm-lp__band-button {
		justify-content: center;
		width: 100%;
	}
}

/* The narrowest phones (320–380): the cover card stacks, and the button label stays on one line. */
@media (max-width: 380px) {
	.sm-lp .sm-lp__cover-card {
		grid-template-columns: minmax(0, 1fr);
	}

	.sm-lp .sm-lp__cover {
		max-width: 150px;
	}

	.sm-lp .ii-nc-form .ii-nc-form__submit,
	.sm-lp .ii-nc-form .ii-nc-form__return-link,
	.sm-lp .ii-nc-form .ii-nc-form__open .ii-nc-form__download-link {
		padding: 0 16px;
		font-size: 17px;
	}

	.sm-lp .sm-lp__sticky-kind {
		display: none;
	}

	.sm-lp .sm-lp__sticky:not([hidden]) .sm-lp__sticky-button {
		justify-content: center;
		width: 100%;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.sm-lp .sm-lp__band-button,
	.sm-lp .sm-lp__sticky-button {
		transition: background-color 120ms ease;
	}
}
