/* WordPress-specific glue. The design itself lives in site.css (compiled from the live site). */

/* Template-part and post-content wrappers must not create boxes (keeps the sticky header and spacing identical). */
.wp-block-template-part,
.wp-block-post-content,
.entry-content { display: contents; }

/* Admin toolbar: keep the sticky header below it when logged in. */
body.admin-bar header[data-vs-header] { top: var(--wp-admin--admin-bar--height, 32px); }

/* Core image blocks inside article text render like the live figures. */
.prose figure.wp-block-image { border-radius: var(--radius-2xl); overflow: hidden; } /* margins come from the prose rules, as on the live site */
.prose figure.wp-block-image img { display: block; width: 100%; height: auto; }
.prose figure.wp-block-image figcaption { margin: 0; }

/* Core lists/paragraph blocks carry no extra classes, but tables and embeds can. */
.prose .wp-block-table { margin: 0; overflow-x: auto; }
.prose .wp-block-embed { margin-block: calc(var(--spacing) * 6); }
.prose .wp-block-embed__wrapper { position: relative; }
.prose .wp-block-embed.wp-embed-aspect-16-9 .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.prose .wp-block-embed iframe { width: 100%; height: 100%; }

/* Screen-reader text used by WordPress components. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Font variables (Next.js set these via classes on <html>). */
:root {
	--font-nunito: "Nunito Sans", "Nunito Sans Fallback";
	--font-jost: "Jost", "Jost Fallback";
	--font-journal: "journal", "journal Fallback";
}

/* Galleries converted to core/gallery keep the live .cms-gallery look. */
.prose .cms-gallery figure.wp-block-image { margin: 0; border-radius: var(--radius-2xl); }
.prose .cms-gallery figure.wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; }
.prose .cms-gallery figcaption.wp-element-caption { padding-inline: calc(var(--spacing) * 4); padding-block: calc(var(--spacing) * 3); text-align: center; font-size: var(--text-base); color: var(--color-gray-600); margin-top: 0; }
