/* ==========================================================================
   WordPress compatibility layer for main.css
   Keeps the block-theme markup visually identical to the static build.
   ========================================================================== */

/* Template parts and the post-content wrapper add no spacing of their own. */
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }
.wp-block-template-part { margin: 0; }
/* The header's template-part wrapper would trap position: sticky and the negative margin that lets the
   page-header photo slide under the transparent header. Take the wrapper out of the box tree. */
.wp-block-template-part:has(> .site-header) { display: contents; }
.site-main, .wp-block-post-content { display: block; }
.site-main:focus { outline: none; }

/* WordPress adds its own skip link targeting #main; style it like the static one. */
.skip-link.screen-reader-text:focus {
	position: absolute; left: 16px; top: 16px; z-index: 100000;
	width: auto; height: auto; clip: auto; clip-path: none;
	background: var(--white); color: var(--legacy-navy);
	font: 600 1rem/1 var(--font-head); padding: 16px 20px;
	outline: 3px solid var(--legacy-navy); outline-offset: 2px;
}

/* Square edges everywhere, including core blocks editors might add. */
.wp-block-button__link, .wp-block-image img, .wp-block-search__input { border-radius: 0; }

/* Core images and galleries dropped into prose or case studies. */
.prose .wp-block-image, .prose .wp-block-gallery { margin-top: 1.5em; }
.wp-block-image figcaption { font: 500 0.6875rem/1.4 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-top: 10px; }

/* Editor canvas: give dynamic previews room and keep body font. */
.editor-styles-wrapper { font-family: var(--font-body); color: var(--legacy-navy); }
.editor-styles-wrapper .is-root-container > .wp-block-group { margin-top: 0; margin-bottom: 0; }

/* Draft label on cards shown to logged-in editors only. */
.legacy-draft-flag {
	display: inline-block; margin-bottom: 8px; padding: 2px 8px;
	font: 500 0.6875rem/1.4 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase;
	background: var(--legacy-stone); color: var(--legacy-navy);
}
