/* SHARE-BIO page layout. Scoped to rows with .sharebio-row (only on that page).
   Spacing scale: 8 / 16 / 24 / 40 / 64. Navy #013562, teal band #e8f4f5, divider #dde3e9. */

/* --- Sections: no gaps between bands -------------------------------------------- */
.entry-content > .sharebio-row { margin-top: 0 !important; margin-bottom: 0 !important; }
.sharebio-row .kt-inside-inner-col > * { margin-top: 0; margin-bottom: 0; }
.sharebio-row .kt-inside-inner-col > * + * { margin-top: 16px; }
.sharebio-who .kt-inside-inner-col > p { margin-bottom: 0 !important; }
.sharebio-who .kt-inside-inner-col > ul { margin-bottom: 0 !important; margin-top: 16px !important; }
.sharebio-row .kt-inside-inner-col > .sharebio-steps { margin-top: 24px !important; margin-bottom: 0 !important; }

/* --- Text width: body copy max 720px --------------------------------------------- */
.sharebio-row p,
.sharebio-row ul,
.sharebio-row ol { max-width: 720px; }
.sharebio-row ul { padding-left: 24px; }
.sharebio-row li + li { margin-top: 0; }

/* --- Headings --------------------------------------------------------------------- */
.sharebio-row h1, .sharebio-row h2, .sharebio-row h3 { font-family: Lexend, sans-serif; color: #013562; text-align: left; }
.sharebio-row .sharebio-h1 { line-height: 1.2; }
.sharebio-row .sharebio-subtitle { margin-top: 16px; font-size: 18px; }
.sharebio-row .kt-inside-inner-col > .sharebio-h2 { margin-top: 0; margin-bottom: 0; line-height: 1.25; }
.sharebio-row .kt-inside-inner-col > .sharebio-h2 + * { margin-top: 24px !important; }
.sharebio-row .kt-inside-inner-col > * + .sharebio-h2 { margin-top: 64px; }
.sharebio-row .sharebio-h3 { margin: 0; line-height: 1.3; }

/* --- Step cards ------------------------------------------------------------------- */
.sharebio-steps { counter-reset: sb-step; }
.sharebio-steps > .kt-row-column-wrap { align-items: stretch; }
.sharebio-step > .kt-inside-inner-col { height: 100%; justify-content: flex-start; }
.sharebio-step > .kt-inside-inner-col::before {
	counter-increment: sb-step;
	content: counter(sb-step) / "";
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%;
	background: #013562; color: #fff; font: 700 24px/1 Lexend, sans-serif;
}
.sharebio-step .sharebio-h3 + p { margin-top: 8px; }

.sharebio-faq-jump { font-size: 16px; }
.sharebio-row .kt-inside-inner-col > .sharebio-faq-jump { margin-top: 24px; }
.sharebio-faq-jump a { color: #013562; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1100px) { .sharebio-faq-jump { display: none; } }

/* --- Two-column section ----------------------------------------------------------- */
@media (max-width: 1099px) {
	.sharebio-twocol > .kt-row-column-wrap { grid-template-columns: minmax(0, 1fr) !important; row-gap: 64px !important; }
}
.sharebio-main > .kt-inside-inner-col { container-type: inline-size; }

.sharebio-row figure.sharebio-photo { margin: 0; }
.sharebio-photo img { display: block; width: 100%; max-width: 321px; height: auto; border-radius: 12px; }
.sharebio-row .kt-inside-inner-col > .sharebio-photo { margin-top: 24px; }
.sharebio-row .kt-inside-inner-col > .sharebio-caption { margin-top: 8px; padding: 0; font-size: 14px; text-align: left; }

/* Videos: stacked unless the left column is at least 720px wide */
.sharebio-row .kt-inside-inner-col > .sharebio-videos { margin-top: 24px !important; }
.sharebio-videos > .kt-row-column-wrap { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 40px 24px !important; }
@container (min-width: 720px) {
	.sharebio-videos > .kt-row-column-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.sharebio-video-item .kt-inside-inner-col > * + * { margin-top: 16px; }
.sharebio-video-item .kt-inside-inner-col > .sharebio-h3 + * { margin-top: 8px; }
.sharebio-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.sharebio-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sharebio-row .sharebio-video-fallback { margin-top: 8px; font-size: 14px; }
.sharebio-video-fallback a { color: #013562; text-decoration: underline; }
.sharebio-row .kt-inside-inner-col > .sharebio-video-note { margin-top: 24px; }

/* --- FAQ column ------------------------------------------------------------------- */
.sharebio-rail .sharebio-faq-title { line-height: 1.3; }
.sharebio-rail .kt-inside-inner-col > .sharebio-faq-title + * { margin-top: 24px; }
.sharebio-rail .sharebio-faq-q { margin: 0; line-height: 1.35; }
.sharebio-rail .kt-inside-inner-col > .sharebio-faq-a + .sharebio-faq-q { margin-top: 16px; padding-top: 16px; border-top: 1px solid #dde3e9; }
.sharebio-rail .kt-inside-inner-col > .sharebio-faq-q + .sharebio-faq-a { margin-top: 8px; }
.sharebio-rail .kt-inside-inner-col > .sharebio-faq-lead { margin-top: 24px; padding-top: 24px; border-top: 1px solid #dde3e9; font-weight: 600; color: #013562; }
.sharebio-rail .kt-inside-inner-col > .sharebio-btns { margin-top: 16px; }
.sharebio-rail .sharebio-btns, .sharebio-rail .sharebio-btn { width: 100%; justify-content: center; }
.sharebio-rail p { line-height: 1.5; }
.sharebio-rail { scroll-margin-top: 97px; align-self: flex-start !important; }

@media (min-width: 1100px) and (min-height: 1240px) { /* FAQ column is ~1,100px tall; must fit below the 97px offset */
	.sharebio-rail {
		position: sticky;
		top: 97px; /* sticky header (73px) + 24px */
		align-self: flex-start !important;
	}
}

/* --- Interested --------------------------------------------------------------------- */
.sharebio-interested .kt-inside-inner-col > .sharebio-btns { margin-top: 24px; }

/* --- Buttons ------------------------------------------------------------------------ */
.sharebio-btns { justify-content: flex-start !important; }
.sharebio-row .sharebio-btn { line-height: 1.3; text-decoration: none; }
.sharebio-row .sharebio-btn-primary, .sharebio-row .sharebio-btn-primary:visited { color: #fff !important; }
.sharebio-row .sharebio-btn-secondary, .sharebio-row .sharebio-btn-secondary:visited { color: #013562 !important; }

/* --- Focus: visible outline on everything clickable -------------------------------- */
.sharebio-row a:focus-visible { outline: 3px solid #013562; outline-offset: 3px; border-radius: 2px; }
.sharebio-row .sharebio-btn:focus-visible { outline: 3px solid #013562 !important; outline-offset: 3px; border-radius: 12px; }
.sharebio-row iframe:focus-visible { outline: 3px solid #013562; outline-offset: 3px; }
/* Focus moves inside the cross-origin Drive iframe, so ring the wrapper instead */
.sharebio-video:focus-within { outline: 3px solid #013562; outline-offset: 3px; }

/* --- Wider FAQ column: keep the shared left edge, let the row run up to 128px into the right margin (≥40px gutter kept) --- */
@media (min-width: 1100px) {
	.sharebio-twocol > .kt-row-column-wrap {
		max-width: calc(1152px + clamp(0px, (100% - 1152px) / 2 - 40px, 128px)) !important;
		margin-left: max(0px, (100% - 1152px) / 2) !important;
		margin-right: 0 !important;
		grid-template-columns: minmax(0, min(716px, (100% - 40px) * 2 / 3)) minmax(0, 1fr) !important;
	}
}

/* --- Videos: each one is its own card so the two read as separate units --- */
.sharebio-videos > .kt-row-column-wrap { gap: 24px !important; }
.sharebio-video-item > .kt-inside-inner-col {
	background: #e8f4f5; border-radius: 12px; padding: 24px;
}
@media (max-width: 767px) { .sharebio-video-item > .kt-inside-inner-col { padding: 16px; } }

/* Sticky FAQ: the card gets shorter as it widens, so each width band has its own height condition
   (card height + 97px offset + 24px). Measured: 1100w 1095px, 1400w 899px, 1600w 852px. */
@media (min-width: 1400px) and (min-height: 1020px), (min-width: 1600px) and (min-height: 980px) {
	.sharebio-rail { position: sticky; top: 97px; align-self: flex-start !important; }
}

/* --- Layout v3: one row, three children in DOM order main → videos → FAQ --------------------
   Tablet/mobile: one column in that order. Desktop: main | FAQ on top, videos full width below. */
.sharebio-row.sharebio-grid > .kt-row-column-wrap {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	grid-template-areas: "main" "videos" "faq";
	gap: 64px 40px !important;
}
/* !important: Kadence resets grid-column on row children with a more specific selector */
.sharebio-grid .sharebio-main { grid-area: main !important; }
.sharebio-grid .sharebio-videocol { grid-area: videos !important; }
.sharebio-grid .sharebio-rail { grid-area: faq !important; }
@media (min-width: 1100px) {
	.sharebio-row.sharebio-grid > .kt-row-column-wrap {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
		grid-template-areas: "main faq" "videos videos";
	}
}
.sharebio-videocol > .kt-inside-inner-col { container-type: inline-size; }
/* Videos: side by side on desktop, stacked full width on tablet and mobile */
@media (max-width: 1099px) {
	.sharebio-videocol .sharebio-videos > .kt-row-column-wrap { grid-template-columns: minmax(0, 1fr) !important; }
}
.sharebio-videocol .sharebio-videos > .kt-row-column-wrap { align-items: stretch !important; }
.sharebio-videocol .sharebio-video-item > .kt-inside-inner-col { height: 100%; }
