/*
 * Base layer for the Prediabetes Mastermind theme.
 * Neutralises WordPress block defaults so the converted design renders as in the HTML export.
 */
html, body { margin: 0; }
body { background: #F6F3EF; color: #39433F; font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.6; }
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks { padding: 0; }
.pm-site-header { position: relative; z-index: 20; }

/* Groups: the design measures padding outside the content box (browser default). */
.wp-block-group { box-sizing: content-box; }

/* Image, link and button blocks that only wrap a single real element. */
:where(.pm-dc) { display: contents !important; }
.pm-dc.wp-block-image > a { display: block; }
.pm-dc.wp-block-image img { max-width: none; height: auto; vertical-align: baseline; box-sizing: content-box; }
.pm-dc.pm-has-caption { display: flex !important; flex-direction: column; margin: 0; }
.pm-dc > .wp-block-button__link.wp-block-button__link {
	display: inline; width: auto; height: auto; box-sizing: content-box; text-align: inherit;
	word-break: normal; align-content: normal; padding: 0; margin: 0; background: none; border: 0;
	border-radius: 0; color: #227755; font: inherit; line-height: inherit; letter-spacing: inherit;
	text-decoration: underline; cursor: pointer; box-shadow: none;
}

/* Tables: browser defaults instead of the core table block look. */
.pm-table.pm-table > table { border-collapse: separate; border-spacing: 2px; width: auto; }
.pm-table td, .pm-table th { border: 0; padding: 1px; }
.pm-table thead, .pm-table tfoot { border: 0; }

/* Cards that were links: the title carries the link and covers the card. */
.pm-cardlink .pm-stretch { color: inherit; text-decoration: none; }
.pm-cardlink .pm-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pm-cardlink .pm-stretch:focus-visible { outline: none; }
.pm-cardlink:has(.pm-stretch:focus-visible) { outline: 2px solid #227755; outline-offset: 2px; }
.pm-cardlink :is(button, input, select, textarea, label) { position: relative; z-index: 2; }
.pm-cardlink-color:hover { color: #174f39 !important; }

/* State helpers used by assets/js/site.js */
.pm-hide { display: none !important; }

@media print {
	.pm-site-header, footer, .rp-actions { display: none !important; }
}

/* Check Your Numbers plugin: match the site's look. */
.cyn.cyn {
	--cyn-brand: #3A7D4A; --cyn-ink: #07120D; --cyn-muted: #5B6560; --cyn-line: #E4DED5;
	--cyn-soft: #F6F3EF; --cyn-normal: #3A7D4A; --cyn-pre: #C7811B; --cyn-dm: #D54215; --cyn-radius: 14px;
	color: #39433F; font-family: Inter, system-ui, sans-serif;
}
.cyn.cyn :is(h1, h2, h3, .cyn-title) { font-family: Fraunces, Georgia, serif; font-weight: 700; color: #07120D; letter-spacing: -0.01em; }
.cyn.cyn input { font-family: inherit; }
.pm-cyn-slot { flex: 1 1 440px; min-width: 0; max-width: 560px; scroll-margin-top: 24px; }
.pm-cyn-slot .cyn[data-cyn-calculator] { border-radius: 24px; box-shadow: 0 1px 2px rgba(7,18,13,0.06), 0 12px 32px rgba(7,18,13,0.08); max-width: none; }
.pm-cyn-report-wrap { padding: 48px 24px 72px; }
@media (max-width: 760px) {
	.pm-cyn-slot { flex-basis: 100%; max-width: none; }
	.pm-cyn-slot .cyn[data-cyn-calculator] { border-radius: 20px; }
	.pm-cyn-report-wrap { padding: 28px 16px 48px; }
}
