/* ============================================================
 * BIOTA · TEMPLATE · Blog article  (templates/single.html)
 * One reading column: title, date, featured image, then the post body.
 * Body typography covers what SEO articles use: headings, paragraphs,
 * lists, tables and the Yoast FAQ block (.schema-faq).
 * ============================================================ */

.biota-article__band {
	padding-top: var(--wp--preset--spacing--bt-50);
}

/* ~70 characters per line at 16px DM Sans. */
.biota-article__inner {
	max-width: 720px;
	margin-inline: auto;
}

/* ---------- Head ---------- */
/* Head and image use two classes for the same reason as the body flow below. */
.biota-article .biota-article__head {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--bt-20);
	margin-bottom: var(--wp--preset--spacing--bt-50);
}
.biota-article .biota-article__head > * {
	margin: 0;
}
.biota-article__title {
	font-size: clamp(var(--wp--preset--font-size--title), 3.5vw + 1rem, var(--wp--preset--font-size--heading-lg));
	line-height: 1.15;
	color: var(--wp--preset--color--primary);
}
.biota-article__date {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-muted);
}

.biota-article .biota-article__image {
	margin: 0 0 var(--wp--preset--spacing--bt-50);
}
/* One landscape frame whatever the upload's shape, so a square product shot
   never pushes the article below the fold. */
.biota-article__image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 16px;
}

/* ---------- Body ---------- */
.biota-article__body {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body-lg);
	line-height: 1.7;
	color: var(--wp--preset--color--text);
	overflow-wrap: break-word;
}
/* Flow spacing: every block gets the same gap below; headings add room above.
   Two classes so it beats WordPress's `:root :where(.is-layout-flow) > *`, which
   loads later and uses the parent's spacing-4 preset (undefined here, so 0). */
.biota-article .biota-article__body > * {
	margin-top: 0;
	margin-bottom: 1.15em;
}
.biota-article .biota-article__body > :last-child {
	margin-bottom: 0;
}

.biota-article__body h2,
.biota-article__body h3,
.biota-article__body h4 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--text);
}
.biota-article .biota-article__body > h2 {
	margin-top: 2em;
	margin-bottom: 0.6em;
	font-size: clamp(var(--wp--preset--font-size--title-md), 1vw + 1rem, var(--wp--preset--font-size--title));
	line-height: 1.25;
	color: var(--wp--preset--color--primary);
}
.biota-article .biota-article__body > h3 {
	margin-top: 1.6em;
	margin-bottom: 0.5em;
	font-size: var(--wp--preset--font-size--title-sm);
	line-height: 1.35;
}
.biota-article .biota-article__body > h4 {
	margin-top: 1.4em;
	margin-bottom: 0.4em;
	font-size: var(--wp--preset--font-size--body-lg);
	line-height: 1.4;
}

/* Links in running text stay underlined so they read as links. */
.biota-article__body a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.biota-article__body a:hover {
	text-decoration-thickness: 2px;
}
.biota-article__body a:focus-visible {
	outline: 2px solid var(--wp--preset--color--action);
	outline-offset: 2px;
	border-radius: 2px;
}

.biota-article__body ul,
.biota-article__body ol {
	padding-left: 1.4em;
}
.biota-article__body li + li {
	margin-top: 0.4em;
}
.biota-article__body li::marker {
	color: var(--wp--preset--color--primary);
}

.biota-article__body strong {
	font-weight: 600;
}

.biota-article__body figure {
	margin-inline: 0;
}
.biota-article__body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}
.biota-article__body figcaption {
	margin-top: 8px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-muted);
}

.biota-article__body blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--wp--preset--color--primary);
}

.biota-article__body hr {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--surface-subtle);
	margin-block: 2em;
}

/* ---------- Tables ---------- */
/* Wide tables scroll inside their own box on phones; the page never does. */
.biota-article__body .wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
}
.biota-article__body .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--body);
	line-height: 1.5;
}
.biota-article__body .wp-block-table th,
.biota-article__body .wp-block-table td {
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: left;
	vertical-align: top;
}
.biota-article__body .wp-block-table thead {
	border-bottom: 0;
}
.biota-article__body .wp-block-table th {
	background: var(--wp--preset--color--surface-light);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text);
}
.biota-article__body .wp-block-table tbody tr:last-child > * {
	border-bottom: 0;
}
.biota-article__body .wp-block-table figcaption {
	padding: 8px 14px 10px;
	margin: 0;
	border-top: 1px solid var(--wp--preset--color--border);
}
@media (max-width: 600px) {
	.biota-article__body .wp-block-table th,
	.biota-article__body .wp-block-table td {
		padding: 8px 10px;
	}
}

/* ---------- FAQ (Yoast FAQ block) ---------- */
.biota-article__body .schema-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.biota-article__body .schema-faq-section {
	margin: 0;
	padding: 18px 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	background: var(--wp--preset--color--base);
}
.biota-article__body .schema-faq-question {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--title-sm);
	font-weight: 600;
	line-height: 1.35;
	color: var(--wp--preset--color--text);
}
.biota-article__body .schema-faq-answer {
	margin: 8px 0 0;
	color: var(--wp--preset--color--text-strong);
}
