/*
 * Article typography (handle bh-post-content): the content of bh/post-body
 * (.bh-prose) and, in the post editor, the editor canvas
 * (.editor-styles-wrapper .is-root-container), so authors see the article
 * as it will look. Also the "Callout" style of core/group.
 */
:is(.bh-prose, .editor-styles-wrapper .is-root-container) {
	font-size: 1.125rem; line-height: 1.75; color: var(--wp--preset--color--primary);
}
.bh-prose { max-width: 70ch; }
.bh-prose > * { margin-block: 0; }
.bh-prose > * + * { margin-top: 1.1em; }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) h2 {
	margin-top: 2.2em;
	font: 400 clamp(1.625rem, 2.6vw, 2rem)/1.2 var(--wp--preset--font-family--display);
	letter-spacing: -.012em; color: var(--wp--preset--color--primary);
	scroll-margin-top: calc(var(--bh-nav-top, 120px) + 24px);
}
:is(.bh-prose, .editor-styles-wrapper .is-root-container) h3 {
	margin-top: 1.8em;
	font: 600 1.1875rem/1.35 var(--wp--preset--font-family--body); color: var(--wp--preset--color--primary);
	scroll-margin-top: calc(var(--bh-nav-top, 120px) + 24px);
}
.bh-prose :is(h2, h3) + * { margin-top: .6em; }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) a { color: var(--wp--preset--color--primary); text-decoration-color: var(--wp--preset--color--accent); text-underline-offset: 4px; }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) a:hover { color: var(--wp--preset--color--accent); }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) strong { font-weight: 700; color: var(--wp--preset--color--primary); }

/* Lists: brass dots, brass numbers */
:is(.bh-prose, .editor-styles-wrapper .is-root-container) ul:not([class*="wp-block-"]):not(.blocks-gallery-grid),
:is(.bh-prose, .editor-styles-wrapper .is-root-container) ul.wp-block-list { list-style: none; padding-left: 0; }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) :is(ul:not([class*="wp-block-"]), ul.wp-block-list) > li { position: relative; padding-left: 26px; }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) :is(ul:not([class*="wp-block-"]), ul.wp-block-list) > li::before {
	content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%;
	background: var(--wp--preset--color--accent);
}
:is(.bh-prose, .editor-styles-wrapper .is-root-container) ol { padding-left: 1.3em; list-style: decimal; }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) ol > li::marker { color: var(--wp--preset--color--accent); font-weight: 700; }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) li + li { margin-top: .45em; }

/* Quote */
:is(.bh-prose, .editor-styles-wrapper .is-root-container) blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 24px;
	border-left: 2px solid var(--wp--preset--color--accent);
	font: italic 300 1.4375rem/1.5 var(--wp--preset--font-family--display); color: var(--wp--preset--color--primary);
}
:is(.bh-prose, .editor-styles-wrapper .is-root-container) blockquote p { margin: 0; }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) blockquote cite { display: block; margin-top: 8px; font: 500 .875rem/1.4 var(--wp--preset--font-family--body); font-style: normal; color: var(--wp--preset--color--muted); }

/* Tables: scroll inside their box on phones */
:is(.bh-prose, .editor-styles-wrapper .is-root-container) :is(.wp-block-table, .bh-table-wrap) {
	overflow-x: auto; margin-inline: 0;
	border-radius: var(--wp--custom--radius-lg, 6px); box-shadow: 0 0 0 1px var(--wp--preset--color--line);
}
:is(.bh-prose, .editor-styles-wrapper .is-root-container) :is(thead, tfoot) { border: 0; }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; background: var(--wp--preset--color--white); }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) :is(th, td) { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--wp--preset--color--line); text-align: left; vertical-align: top; }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) thead :is(th, td) {
	font: 700 .75rem/1.3 var(--wp--preset--font-family--body); letter-spacing: .06em; text-transform: uppercase;
	color: var(--wp--preset--color--placeholder); background: var(--wp--preset--color--light); border-bottom-color: var(--wp--preset--color--stone);
}
:is(.bh-prose, .editor-styles-wrapper .is-root-container) tbody th { font-weight: 600; color: var(--wp--preset--color--primary); }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) tr:last-child :is(td, th) { border-bottom: 0; }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) .wp-block-table figcaption { padding: 8px 16px; }

/* Images */
:is(.bh-prose, .editor-styles-wrapper .is-root-container) :is(figure.wp-block-image, .wp-block-image) img { height: auto; border-radius: var(--wp--custom--radius-lg, 6px); }
:is(.bh-prose, .editor-styles-wrapper .is-root-container) figcaption { margin-top: 8px; font-size: .8125rem; line-height: 1.5; color: var(--wp--preset--color--placeholder); text-align: left; }

/* "Callout" (core/group style): a beige box with an info icon; the first line is its title. */
.is-style-bh-callout {
	position: relative;
	padding: 20px 22px 20px 58px !important;
	border-radius: var(--wp--custom--radius-lg, 6px);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 10%, var(--wp--preset--color--white));
	font-size: 1rem; line-height: 1.6;
}
.is-style-bh-callout::before {
	content: ""; position: absolute; left: 22px; top: 22px; width: 22px; height: 22px;
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-bh-callout > * { margin-block: 0 !important; }
.is-style-bh-callout > * + * { margin-top: .4em !important; }
.is-style-bh-callout > :first-child:is(h2, h3, h4, h5, h6, p) {
	margin-top: 0 !important;
	font: 700 1rem/1.4 var(--wp--preset--font-family--body); letter-spacing: 0; color: var(--wp--preset--color--primary);
}
.bh-prose .is-style-bh-callout > h2:first-child { scroll-margin-top: 0; }
