/* Once-Weekly Basal Insulins sponsored content page (node 2429). Everything is scoped to .owbi. */

@font-face {
	font-family: "Larsseit OWBI";
	src: url(/font/Larsseit.otf) format("opentype");
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Larsseit OWBI";
	src: url(/font/Larsseit-Bold.otf) format("opentype");
	font-weight: 700;
	font-display: swap;
}

/* The page template drops the container, so sections can run full width. */
.owbi-page main,
.owbi-footer {
	margin-top: 0 !important;
}

.owbi {
	--purple: #8031a7;
	--purple-deep: #4c1a6e;
	--purple-soft: #f7f3fb;
	--blue: #0069b4;
	--blue-deep: #0b2f57;
	--yellow: #ffc61a;
	--yellow-soft: #fff8e0;
	--ink: #1f1a2e;
	--muted: #585369;
	--line: #e4dfee;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(31, 26, 46, .06), 0 12px 28px -14px rgba(76, 26, 110, .25);

	color: var(--ink);
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.7;
}

.owbi h1,
.owbi h2 {
	font-family: "Larsseit OWBI", Larsseit, "Open Sans", Arial, sans-serif;
	font-weight: 700;
	line-height: 1.15;
}

.owbi p {
	margin: 0 0 1em;
}

.owbi p:last-child {
	margin-bottom: 0;
}

.owbi-wrap {
	margin: 0 auto;
	max-width: 1120px;
	padding: 0 32px;
}

/* Title band */
.owbi-hero {
	padding: 56px 0 0;
}

.owbi-hero h1 {
	color: var(--purple);
	font-size: clamp(34px, 5vw, 56px);
	letter-spacing: -.01em;
	margin: 0;
	max-width: 900px;
}

/* Seven hexagons, one lit: one dose a week. */
.owbi-week {
	display: flex;
	gap: 8px;
	margin-bottom: 28px;
}

.owbi-week i {
	background: rgba(128, 49, 167, .18);
	clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
	display: block;
	height: 24px;
	width: 28px;
}

.owbi-week i:first-child {
	background: var(--yellow);
}

/* Sections */
.owbi-sec {
	padding: 64px 0;
}

.owbi-tint {
	background: var(--purple-soft);
}

.owbi-sec h2 {
	color: var(--purple);
	font-size: 32px;
	margin: 0 0 24px;
}

.owbi-sec h2::after {
	background: var(--yellow);
	border-radius: 2px;
	content: "";
	display: block;
	height: 4px;
	margin-top: 14px;
	width: 56px;
}

.owbi-split {
	display: grid;
	gap: 56px;
	grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
}

.owbi-split h2 {
	margin: 0;
}

/* Paired cards: purple is icodec, blue is efsitora, in every section that compares them. */
.owbi-pair {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owbi-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	border-top: 5px solid var(--line);
	box-shadow: var(--shadow);
	padding: 28px;
}

.owbi-icodec {
	border-top-color: var(--purple);
}

.owbi-efsitora {
	border-top-color: var(--blue);
}

/* Educational Pearls */
.owbi-pearl-sec {
	padding-top: 0;
}

.owbi-pearl {
	background: var(--yellow-soft);
	border: 1px solid #f3dc8c;
	border-radius: var(--radius);
	display: grid;
	gap: 28px;
	grid-template-columns: 64px minmax(0, 1fr);
	padding: 36px;
}

.owbi-pearl::before {
	background: var(--yellow);
	clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
	content: "";
	height: 56px;
	width: 64px;
}

.owbi-pearl h2 {
	margin-bottom: 16px;
}

/* Fit With AACE Treatment Guidance */
.owbi-guidance {
	background: linear-gradient(115deg, var(--blue-deep), var(--purple-deep));
	color: #fff;
}

.owbi-guidance h2 {
	color: #fff;
}

.owbi-guidance a {
	color: var(--yellow);
	font-weight: 600;
	text-decoration: underline;
}

.owbi-guidance a:hover,
.owbi-guidance a:focus {
	color: #fff;
}

/* Acknowledgment */
.owbi-ack {
	padding: 56px 0 0;
}

.owbi-ack p {
	background: #fff;
	border: 2px solid var(--yellow);
	border-radius: var(--radius);
	color: var(--purple-deep);
	padding: 24px 32px;
	text-align: center;
}

/* References and sponsor */
.owbi-refs {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
	padding: 48px 0;
}

.owbi-refs .references {
	border-top: 1px solid var(--line);
	padding-top: 32px;
}

.owbi-refs strong {
	color: var(--ink);
	font-size: 16px;
}

.owbi-refs ol {
	margin: 12px 0 0;
	padding-left: 24px;
}

.owbi-refs li {
	margin-bottom: 8px;
	overflow-wrap: anywhere;
}

.owbi-refs li::marker {
	color: var(--purple);
	font-weight: 700;
}

.owbi-sponsor {
	background: #fafafc;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
	padding: 32px 0;
	text-align: center;
}

.owbi-sponsor p {
	margin-bottom: 12px;
}

@media (max-width: 860px) {
	.owbi-page .sponsored-banner {
		background: #8031a7;
	}

	.owbi-page .sponsored-banner h1,
	.owbi-page .sponsored-banner h1 span {
		color: #fff;
	}

	.owbi-split,
	.owbi-pair {
		grid-template-columns: minmax(0, 1fr);
	}

	.owbi-split {
		gap: 24px;
	}

	.owbi-sec {
		padding: 48px 0;
	}

	.owbi-hero {
		padding: 40px 0 0;
	}
}

@media (max-width: 520px) {
	.owbi {
		font-size: 16px;
	}

	.owbi-wrap {
		padding: 0 20px;
	}

	.owbi-sec h2 {
		font-size: 27px;
	}

	.owbi-card {
		padding: 22px;
	}

	.owbi-pearl {
		grid-template-columns: minmax(0, 1fr);
		padding: 26px 22px;
		gap: 16px;
	}

	.owbi-week i {
		height: 19px;
		width: 22px;
	}
}
