.wp-block-group.ogb-callout {
	--ogb-callout-accent: #2563eb;
	--ogb-callout-bg: #eff6ff;
	box-sizing: border-box;
	margin-block: 1.5em;
	padding: 1em 1.15em;
	border: 1px solid color-mix(in srgb, var(--ogb-callout-accent) 30%, transparent);
	border-inline-start: 4px solid var(--ogb-callout-accent);
	border-radius: 10px;
	background: var(--ogb-callout-bg);
	color: inherit;
}

.wp-block-group.ogb-callout .ogb-callout-title {
	margin-block: 0 0.45em;
	color: var(--ogb-callout-accent);
}

.wp-block-group.ogb-callout .ogb-callout-content {
	margin-block: 0;
}

.wp-block-group.ogb-callout-tip,
.wp-block-group.ogb-callout-success {
	--ogb-callout-accent: #15803d;
	--ogb-callout-bg: #f0fdf4;
}

.wp-block-group.ogb-callout-summary,
.wp-block-group.ogb-callout-example {
	--ogb-callout-accent: #7c3aed;
	--ogb-callout-bg: #f5f3ff;
}

.wp-block-group.ogb-callout-question,
.wp-block-group.ogb-callout-warning {
	--ogb-callout-accent: #b45309;
	--ogb-callout-bg: #fffbeb;
}

.wp-block-group.ogb-callout-failure,
.wp-block-group.ogb-callout-danger,
.wp-block-group.ogb-callout-bug {
	--ogb-callout-accent: #dc2626;
	--ogb-callout-bg: #fef2f2;
}

.wp-block-group.ogb-callout-quote {
	--ogb-callout-accent: #475569;
	--ogb-callout-bg: #f8fafc;
}

.wp-block-group.ogb-callout.is-style-ogb-classic {
	border: 1px solid color-mix(in srgb, var(--ogb-callout-accent) 30%, transparent);
	border-inline-start: 4px solid var(--ogb-callout-accent);
	border-radius: 10px;
	background: linear-gradient(
		135deg,
		var(--ogb-gradient-start, var(--ogb-callout-bg)),
		var(--ogb-gradient-end, var(--ogb-callout-bg))
	);
	box-shadow: none;
}

.wp-block-group.ogb-callout.is-style-ogb-gradient-quote {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 42px 19px;
	border: 0;
	border-radius: 0;
	background: linear-gradient(
		297deg,
		color-mix(in srgb, var(--ogb-gradient-end, #ebfaff) 42%, #ffffff) 5%,
		var(--ogb-gradient-end, #ebfaff) 19%,
		color-mix(in srgb, var(--ogb-gradient-start, #fbfff3) 58%, var(--ogb-gradient-end, #ebfaff)) 56%,
		var(--ogb-gradient-start, #fbfff3) 99%
	);
	box-shadow: none;
}

.wp-block-group.ogb-callout.is-style-ogb-gradient-quote::before,
.wp-block-group.ogb-callout.is-style-ogb-gradient-quote::after {
	content: "";
	position: absolute;
	z-index: 0;
	width: 20px;
	height: 20px;
	background: #16c7a1;
	-webkit-mask: url("callout/quote-mark.svg") center / contain no-repeat;
	mask: url("callout/quote-mark.svg") center / contain no-repeat;
	pointer-events: none;
}

.wp-block-group.ogb-callout.is-style-ogb-gradient-quote::before {
	inset-block-start: 10px;
	inset-inline-start: 10px;
}

.wp-block-group.ogb-callout.is-style-ogb-gradient-quote::after {
	inset-inline-end: 10px;
	inset-block-end: 10px;
	background: #0d8fe8;
	transform: rotate(180deg);
}

.wp-block-group.ogb-callout.is-style-ogb-gradient-quote > * {
	position: relative;
	z-index: 1;
}

.wp-block-group.ogb-callout.is-style-ogb-mint-grid {
	position: relative;
	overflow: visible;
	padding: 22px 16px;
	border: 0;
	border-radius: 10px;
	background-color: var(--ogb-gradient-end, #fdfffd);
	background-image:
		url("callout/mint-grid.png"),
		linear-gradient(180deg, var(--ogb-gradient-start, #dbfcf3) 0%, var(--ogb-gradient-end, #fdfffd) 100%);
	background-repeat: repeat, no-repeat;
	background-size: 343px 77px, 100% 100%;
	box-shadow: 8px 8px 0 #6be7c4;
}

.wp-block-group.ogb-callout.is-style-ogb-soft-glow {
	position: relative;
	overflow: hidden;
	padding: 23px 16px;
	border: 0;
	border-radius: 0;
	background:
		url("callout/soft-glow-top-left.png") left top / 190px 77px no-repeat,
		url("callout/soft-glow-bottom-right.png") right bottom / 190px 77px no-repeat,
		linear-gradient(135deg, var(--ogb-gradient-start, #fafafa), var(--ogb-gradient-end, #fafafa));
	box-shadow: none;
}

.wp-block-group.ogb-callout.is-style-ogb-gradient-quote .ogb-callout-title,
.wp-block-group.ogb-callout.is-style-ogb-mint-grid .ogb-callout-title,
.wp-block-group.ogb-callout.is-style-ogb-soft-glow .ogb-callout-title {
	margin-block-end: 0.75em;
}

.wp-block-list.ogb-task-list {
	list-style: none;
	padding-inline-start: 0;
}

.wp-block-list.ogb-task-list > li {
	margin-block: 0.35em;
}

.wp-block-list .wp-block-list.ogb-task-list {
	padding-inline-start: 1.5em;
}

.wp-block-group.ogb-callout > :last-child {
	margin-block-end: 0;
}

.wp-block-group.ogb-footnotes {
	margin-block-start: 2.5em;
	padding-block-start: 1em;
	border-block-start: 1px solid currentColor;
	font-size: 0.92em;
}

.wp-block-group.ogb-footnotes .ogb-footnotes-title {
	margin-block: 0 0.65em;
}

.wp-block-group.ogb-footnotes .ogb-footnotes-list {
	margin-block: 0;
	padding-inline-start: 1.5em;
}

.wp-block-group.ogb-footnotes .ogb-footnotes-list > li {
	margin-block: 0.35em;
}

.ogb-heading-anchor-alias {
	display: block;
	width: 0;
	height: 0;
	overflow: hidden;
	scroll-margin-top: var(--ogb-heading-anchor-offset, 96px);
	scroll-margin-block-start: var(--ogb-heading-anchor-offset, 96px);
	pointer-events: none;
}

@media (max-width: 600px) {
	.wp-block-group.ogb-callout.is-style-ogb-gradient-quote,
	.wp-block-group.ogb-callout.is-style-ogb-mint-grid,
	.wp-block-group.ogb-callout.is-style-ogb-soft-glow {
		padding: 18px 14px;
	}

	.wp-block-group.ogb-callout.is-style-ogb-gradient-quote {
		padding-block: 38px;
	}

	.wp-block-group.ogb-callout.is-style-ogb-mint-grid {
		border-radius: 10px;
		box-shadow: 5px 5px 0 #6be7c4;
	}
}
.ogb-inline-image {
	display: inline-block;
	max-width: min(100%, 18rem);
	height: auto;
	margin: 0 0.25em;
	vertical-align: middle;
	border-radius: 0.35rem;
}
.ogb-image-grid.wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(var(--ogb-cols-desktop, 2), minmax(0, 1fr));
	gap: var(--ogb-grid-gap, 16px);
}

.ogb-image-grid > .wp-block-image,
.ogb-image-grid > .wp-block-image img {
	width: 100%;
	min-width: 0;
	height: auto;
	margin: 0;
	border-radius: var(--ogb-grid-radius, 8px);
}

.ogb-rich-grid {
	display: grid;
	grid-template-columns: repeat(var(--ogb-cols-desktop, 2), minmax(0, 1fr));
	gap: var(--ogb-grid-gap, 18px);
}

.ogb-cols-d-1 { --ogb-cols-desktop: 1; }
.ogb-cols-d-2 { --ogb-cols-desktop: 2; }
.ogb-cols-d-3 { --ogb-cols-desktop: 3; }
.ogb-cols-d-4 { --ogb-cols-desktop: 4; }
.ogb-cols-d-5 { --ogb-cols-desktop: 5; }
.ogb-cols-d-6 { --ogb-cols-desktop: 6; }
.ogb-cols-d-7 { --ogb-cols-desktop: 7; }
.ogb-cols-d-8 { --ogb-cols-desktop: 8; }

@media (max-width: 1024px) {
	.ogb-image-grid.wp-block-gallery,
	.ogb-rich-grid { grid-template-columns: repeat(var(--ogb-cols-tablet, 2), minmax(0, 1fr)); }
	.ogb-cols-t-1 { --ogb-cols-tablet: 1; }
	.ogb-cols-t-2 { --ogb-cols-tablet: 2; }
	.ogb-cols-t-3 { --ogb-cols-tablet: 3; }
	.ogb-cols-t-4 { --ogb-cols-tablet: 4; }
}

@media (max-width: 600px) {
	.ogb-image-grid.wp-block-gallery,
	.ogb-rich-grid { grid-template-columns: repeat(var(--ogb-cols-mobile, 2), minmax(0, 1fr)); }
	.ogb-cols-m-1 { --ogb-cols-mobile: 1; }
	.ogb-cols-m-2 { --ogb-cols-mobile: 2; }
}

.ogb-grid-single {
	width: 100%;
	max-width: min(100%, 720px);
	margin-inline: auto;
}

.ogb-rich-grid-item {
	min-width: 0;
	padding: var(--ogb-grid-padding, 10px);
	border: 1px solid color-mix(in srgb, currentColor 7%, transparent);
	border-radius: var(--ogb-grid-radius, 10px);
	background: color-mix(in srgb, Canvas 96%, currentColor 4%);
}

.ogb-rich-grid-item > :first-child { margin-top: 0; }
.ogb-rich-grid-item > :last-child { margin-bottom: 0; }
.ogb-rich-grid-item > .wp-block-paragraph:first-child { text-align: center; }
.ogb-rich-grid-item .wp-block-image {
	margin-inline: auto;
	text-align: center;
}
.ogb-rich-grid-item .wp-block-image img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin-inline: auto;
}
body.ogb-article-colors--bold .wp-posts-content strong,
body.ogb-article-colors--bold .entry-content strong,
body.ogb-article-colors--bold .wp-block-post-content strong,
body.ogb-article-colors--bold .article-content strong {
	color: var(--ogb-bold-color);
}

/* Gutenberg canvas preview: block wrappers carry the article colour scope. */
.editor-styles-wrapper .ogb-article-colors--bold strong {
	color: var(--ogb-bold-color);
}

body.ogb-article-colors--h1 .wp-posts-content h1,
body.ogb-article-colors--h1 .entry-content h1,
body.ogb-article-colors--h1 .wp-block-post-content h1,
body.ogb-article-colors--h1 .article-content h1,
h1.ogb-article-colors--h1 { color: var(--ogb-h1-color); }
.editor-styles-wrapper .ogb-article-colors--h1 h1 { color: var(--ogb-h1-color); }
body.ogb-article-colors--h2 .wp-posts-content h2,
body.ogb-article-colors--h2 .entry-content h2,
body.ogb-article-colors--h2 .wp-block-post-content h2,
body.ogb-article-colors--h2 .article-content h2,
h2.ogb-article-colors--h2 { color: var(--ogb-h2-color); }
.editor-styles-wrapper .ogb-article-colors--h2 h2 { color: var(--ogb-h2-color); }
body.ogb-article-colors--h3 .wp-posts-content h3,
body.ogb-article-colors--h3 .entry-content h3,
body.ogb-article-colors--h3 .wp-block-post-content h3,
body.ogb-article-colors--h3 .article-content h3,
h3.ogb-article-colors--h3 { color: var(--ogb-h3-color); }
.editor-styles-wrapper .ogb-article-colors--h3 h3 { color: var(--ogb-h3-color); }
body.ogb-article-colors--h4 .wp-posts-content h4,
body.ogb-article-colors--h4 .entry-content h4,
body.ogb-article-colors--h4 .wp-block-post-content h4,
body.ogb-article-colors--h4 .article-content h4,
h4.ogb-article-colors--h4 { color: var(--ogb-h4-color); }
.editor-styles-wrapper .ogb-article-colors--h4 h4 { color: var(--ogb-h4-color); }
body.ogb-article-colors--h5 .wp-posts-content h5,
body.ogb-article-colors--h5 .entry-content h5,
body.ogb-article-colors--h5 .wp-block-post-content h5,
body.ogb-article-colors--h5 .article-content h5,
h5.ogb-article-colors--h5 { color: var(--ogb-h5-color); }
.editor-styles-wrapper .ogb-article-colors--h5 h5 { color: var(--ogb-h5-color); }
body.ogb-article-colors--h6 .wp-posts-content h6,
body.ogb-article-colors--h6 .entry-content h6,
body.ogb-article-colors--h6 .wp-block-post-content h6,
body.ogb-article-colors--h6 .article-content h6,
h6.ogb-article-colors--h6 { color: var(--ogb-h6-color); }
.editor-styles-wrapper .ogb-article-colors--h6 h6 { color: var(--ogb-h6-color); }

body.ogb-article-colors--post-title :is(.entry-title, .article-title, .wp-block-post-title) {
	color: var(--ogb-post-title-color);
}

body.ogb-article-colors--post-title .article-header .article-title,
body.ogb-article-colors--post-title .article-header .article-title > a {
	color: var(--ogb-post-title-color) !important;
}

.ogb-article-colors .ogb-callout-title strong,
.ogb-article-colors .wp-block-button strong {
	color: inherit;
}

.editor-styles-wrapper .ogb-article-colors--bold .ogb-callout-title strong,
.editor-styles-wrapper .ogb-article-colors--bold .wp-block-button strong {
	color: inherit;
}

/* Native core/separator styles: deliberately subtle and theme-independent. */
.wp-block-separator.is-style-light-short,
.wp-block-separator.is-style-light-diamond,
.wp-block-separator.is-style-tiny-dots,
.wp-block-separator.is-style-light-fade {
	--ogb-separator-color: currentColor;
	position: relative;
	box-sizing: border-box;
	height: 1px;
	margin-block: 2em;
	border: 0;
	background-color: var(--ogb-separator-color);
	opacity: 0.24;
}

.wp-block-separator.is-style-light-short {
	width: min(72px, 28%);
}

.wp-block-separator.is-style-light-diamond {
	width: min(112px, 42%);
}

.wp-block-separator.is-style-light-diamond::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	background-color: inherit;
	content: "";
	transform: translate(-50%, -50%) rotate(45deg);
}

.wp-block-separator.is-style-tiny-dots {
	width: min(82px, 32%);
	height: 3px;
	-webkit-mask: radial-gradient(circle, #000 1.15px, transparent 1.35px) center / 12px 3px repeat-x;
	mask: radial-gradient(circle, #000 1.15px, transparent 1.35px) center / 12px 3px repeat-x;
}

.wp-block-separator.is-style-light-fade {
	width: min(180px, 62%);
	-webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
	mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

/* Native core/quote styles: scoped, lightweight and colour-variable driven. */
.wp-block-quote.is-style-ogb-quote-thin-line,
.wp-block-quote.is-style-ogb-quote-soft-background,
.wp-block-quote.is-style-ogb-quote-large-mark,
.wp-block-quote.is-style-ogb-quote-editorial-note {
	--ogb-quote-accent: #2a9d8f;
	position: relative;
	box-sizing: border-box;
	margin-block: 1.6em;
	color: inherit;
}

.wp-block-quote.is-style-ogb-quote-thin-line p:first-child,
.wp-block-quote.is-style-ogb-quote-soft-background p:first-child,
.wp-block-quote.is-style-ogb-quote-large-mark p:first-child,
.wp-block-quote.is-style-ogb-quote-editorial-note p:first-child {
	margin-block-start: 0;
}

.wp-block-quote.is-style-ogb-quote-thin-line p:last-of-type,
.wp-block-quote.is-style-ogb-quote-soft-background p:last-of-type,
.wp-block-quote.is-style-ogb-quote-large-mark p:last-of-type,
.wp-block-quote.is-style-ogb-quote-editorial-note p:last-of-type {
	margin-block-end: 0;
}

.wp-block-quote.is-style-ogb-quote-thin-line cite,
.wp-block-quote.is-style-ogb-quote-soft-background cite,
.wp-block-quote.is-style-ogb-quote-large-mark cite,
.wp-block-quote.is-style-ogb-quote-editorial-note cite {
	display: block;
	margin-block-start: 0.75em;
	color: inherit;
	font-size: 0.86em;
	font-style: normal;
	opacity: 0.66;
}

.wp-block-quote.is-style-ogb-quote-thin-line {
	padding: 0.2em 0 0.2em 1.1em;
	padding-inline-start: 1.1em;
	padding-inline-end: 0;
	border: 0;
	border-inline-start: 2px solid var(--ogb-quote-accent);
	background: transparent;
}

.wp-block-quote.is-style-ogb-quote-soft-background {
	padding: 1.15em 1.3em;
	border: 0;
	border-radius: 10px;
	background: rgba(42, 157, 143, 0.08);
	background: linear-gradient(
		135deg,
		color-mix(in srgb, var(--ogb-quote-accent) 11%, transparent),
		color-mix(in srgb, var(--ogb-quote-accent) 2%, transparent)
	);
}

.wp-block-quote.is-style-ogb-quote-large-mark {
	padding: 1.15em 1em 0.65em 3.15em;
	padding-inline-start: 3.15em;
	padding-inline-end: 1em;
	border: 0;
	background: transparent;
}

.wp-block-quote.is-style-ogb-quote-large-mark::before {
	content: "“";
	position: absolute;
	inset-block-start: -0.06em;
	inset-inline-start: 0.08em;
	color: var(--ogb-quote-accent);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 4.2em;
	font-weight: 700;
	line-height: 1;
	opacity: 0.82;
	pointer-events: none;
}

.wp-block-quote.is-style-ogb-quote-editorial-note {
	padding: 1.2em 1em 0.35em;
	border: 0;
	background: transparent;
	text-align: center;
}

.wp-block-quote.is-style-ogb-quote-editorial-note::before {
	content: "";
	display: block;
	width: 32px;
	height: 2px;
	margin: -1.2em auto 1em;
	border-radius: 999px;
	background: var(--ogb-quote-accent);
}

@media (max-width: 600px) {
	.wp-block-quote.is-style-ogb-quote-soft-background {
		padding: 1em 1.05em;
	}

	.wp-block-quote.is-style-ogb-quote-large-mark {
		padding-inline-start: 2.75em;
	}
}
