/*
 * Elementos do editor de blocos.
 * Ganha do reset do Bootstrap sem alterar o cabeçalho e o rodapé do site.
 */

.entry-content,
.editor-styles-wrapper {
	--sbcbm-primary: #006ea8;
	--sbcbm-primary-dark: #005a8a;
	--sbcbm-gap: var(--wp--style--block-gap, 1.5rem);
}

.entry-content > *:first-child,
.editor-styles-wrapper > *:first-child {
	margin-top: 0;
}

.entry-content .alignleft,
.editor-styles-wrapper .alignleft {
	float: left;
	margin: 0.25rem 1.25rem 1rem 0;
}

.entry-content .alignright,
.editor-styles-wrapper .alignright {
	float: right;
	margin: 0.25rem 0 1rem 1.25rem;
}

.entry-content .aligncenter,
.editor-styles-wrapper .aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.entry-content .alignwide,
.editor-styles-wrapper .alignwide {
	max-width: var(--wp--style--global--wide-size, 1320px);
	margin-left: auto;
	margin-right: auto;
}

.entry-content > .alignfull,
.editor-styles-wrapper .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.entry-content .has-text-align-left,
.editor-styles-wrapper .has-text-align-left { text-align: left; }
.entry-content .has-text-align-center,
.editor-styles-wrapper .has-text-align-center { text-align: center; }
.entry-content .has-text-align-right,
.editor-styles-wrapper .has-text-align-right { text-align: right; }

.entry-content .wp-block-paragraph,
.entry-content p,
.editor-styles-wrapper p {
	margin-bottom: 1rem;
}

.entry-content .wp-block-heading,
.editor-styles-wrapper .wp-block-heading,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-family: Roboto, system-ui, sans-serif;
	line-height: 1.25;
	margin: 1.5rem 0 0.75rem;
}

.entry-content .has-drop-cap:not(:focus)::first-letter,
.editor-styles-wrapper .has-drop-cap:not(:focus)::first-letter {
	float: left;
	font-size: 3.4rem;
	font-weight: 700;
	line-height: 0.8;
	margin: 0.08em 0.12em 0 0;
	color: var(--sbcbm-primary);
}

.entry-content ul.wp-block-list,
.entry-content ol.wp-block-list,
.editor-styles-wrapper ul.wp-block-list,
.editor-styles-wrapper ol.wp-block-list {
	padding-left: 1.5rem;
	margin: 0 0 1rem;
}

.entry-content ul.wp-block-list,
.editor-styles-wrapper ul.wp-block-list { list-style: disc; }
.entry-content ol.wp-block-list,
.editor-styles-wrapper ol.wp-block-list { list-style: decimal; }

.entry-content .wp-block-quote,
.editor-styles-wrapper .wp-block-quote {
	border-left: 4px solid var(--sbcbm-primary);
	margin: 1.5rem 0;
	padding: 0.25rem 0 0.25rem 1rem;
}

.entry-content .wp-block-quote cite,
.editor-styles-wrapper .wp-block-quote cite {
	display: block;
	color: #5c6770;
	font-size: 0.875rem;
	margin-top: 0.5rem;
}

.entry-content .wp-block-pullquote,
.editor-styles-wrapper .wp-block-pullquote {
	border-top: 4px solid var(--sbcbm-primary);
	border-bottom: 4px solid var(--sbcbm-primary);
	margin: 1.5rem 0;
	padding: 1rem 0;
	text-align: center;
}

.entry-content .wp-block-verse,
.entry-content .wp-block-preformatted,
.entry-content .wp-block-code,
.editor-styles-wrapper .wp-block-verse,
.editor-styles-wrapper .wp-block-preformatted,
.editor-styles-wrapper .wp-block-code {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	padding: 1rem;
	white-space: pre-wrap;
}

.entry-content .wp-block-table,
.editor-styles-wrapper .wp-block-table {
	overflow-x: auto;
	margin: 0 0 1.5rem;
}

.entry-content .wp-block-table table,
.editor-styles-wrapper .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content .wp-block-table td,
.entry-content .wp-block-table th,
.editor-styles-wrapper .wp-block-table td,
.editor-styles-wrapper .wp-block-table th {
	border: 1px solid #dee2e6;
	padding: 0.55rem 0.75rem;
	vertical-align: top;
}

.entry-content .wp-block-table th,
.editor-styles-wrapper .wp-block-table th {
	background: #f8f9fa;
}

.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: #f8f9fa;
}

.entry-content .wp-block-image,
.editor-styles-wrapper .wp-block-image {
	margin: 0 0 1.5rem;
}

.entry-content .wp-block-image img,
.editor-styles-wrapper .wp-block-image img {
	height: auto;
	max-width: 100%;
}

.entry-content .wp-block-image figcaption,
.entry-content .wp-element-caption,
.editor-styles-wrapper .wp-block-image figcaption,
.editor-styles-wrapper .wp-element-caption {
	color: #5c6770;
	font-size: 0.875rem;
	margin-top: 0.5rem;
	text-align: center;
}

.entry-content .wp-block-gallery,
.editor-styles-wrapper .wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sbcbm-gap);
	margin: 0 0 1.5rem;
}

.entry-content .wp-block-gallery .wp-block-image,
.editor-styles-wrapper .wp-block-gallery .wp-block-image {
	flex: 1 1 220px;
	margin: 0;
}

.entry-content .wp-block-columns,
.editor-styles-wrapper .wp-block-columns {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--sbcbm-gap);
	margin: 0 0 1.5rem;
}

.entry-content .wp-block-column,
.editor-styles-wrapper .wp-block-column {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 781px) {
	.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile),
	.editor-styles-wrapper .wp-block-columns:not(.is-not-stacked-on-mobile) {
		flex-wrap: wrap;
	}

	.entry-content .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column,
	.editor-styles-wrapper .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		flex-basis: 100%;
	}
}

.entry-content .wp-block-group,
.editor-styles-wrapper .wp-block-group {
	margin: 0 0 1.5rem;
}

.entry-content .is-layout-flex,
.editor-styles-wrapper .is-layout-flex {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sbcbm-gap);
}

.entry-content .is-layout-grid,
.editor-styles-wrapper .is-layout-grid {
	display: grid;
	gap: var(--sbcbm-gap);
}

.entry-content .is-vertical,
.entry-content .wp-block-buttons.is-vertical,
.editor-styles-wrapper .is-vertical,
.editor-styles-wrapper .wp-block-buttons.is-vertical {
	flex-direction: column;
	align-items: stretch;
}

.entry-content .is-content-justification-center,
.editor-styles-wrapper .is-content-justification-center { justify-content: center; }
.entry-content .is-content-justification-right,
.editor-styles-wrapper .is-content-justification-right { justify-content: flex-end; }
.entry-content .is-content-justification-space-between,
.editor-styles-wrapper .is-content-justification-space-between { justify-content: space-between; }

.entry-content .wp-block-buttons,
.editor-styles-wrapper .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
}

.entry-content .wp-block-button__link,
.entry-content .wp-element-button,
.editor-styles-wrapper .wp-block-button__link,
.editor-styles-wrapper .wp-element-button {
	display: inline-block;
	background: var(--sbcbm-primary);
	border: 2px solid transparent;
	border-radius: 8px;
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.7rem 1.25rem;
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover,
.entry-content .wp-element-button:hover,
.editor-styles-wrapper .wp-block-button__link:hover,
.editor-styles-wrapper .wp-element-button:hover {
	background: var(--sbcbm-primary-dark);
	color: #fff;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	border-color: currentColor;
	color: var(--sbcbm-primary);
}

.entry-content .wp-block-cover,
.editor-styles-wrapper .wp-block-cover {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 280px;
	overflow: hidden;
	padding: 2rem;
	margin: 0 0 1.5rem;
	background-size: cover;
	background-position: center;
	color: #fff;
}

.entry-content .wp-block-cover .wp-block-cover__inner-container,
.editor-styles-wrapper .wp-block-cover .wp-block-cover__inner-container {
	position: relative;
	z-index: 1;
	width: 100%;
}

.entry-content .wp-block-media-text,
.editor-styles-wrapper .wp-block-media-text {
	display: grid;
	grid-template-columns: 50% 1fr;
	gap: var(--sbcbm-gap);
	align-items: center;
	margin: 0 0 1.5rem;
}

.entry-content .wp-block-media-text.has-media-on-the-right,
.editor-styles-wrapper .wp-block-media-text.has-media-on-the-right {
	grid-template-columns: 1fr 50%;
}

.entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media,
.editor-styles-wrapper .wp-block-media-text.has-media-on-the-right .wp-block-media-text__media {
	order: 2;
}

@media (max-width: 781px) {
	.entry-content .wp-block-media-text,
	.editor-styles-wrapper .wp-block-media-text {
		grid-template-columns: 1fr;
	}
}

.entry-content .wp-block-separator,
.editor-styles-wrapper .wp-block-separator {
	border: 0;
	border-top: 2px solid #dee2e6;
	margin: 1.5rem auto;
	opacity: 1;
}

.entry-content .wp-block-separator.is-style-wide,
.editor-styles-wrapper .wp-block-separator.is-style-wide {
	width: 100%;
}

.entry-content .wp-block-separator.is-style-dots,
.editor-styles-wrapper .wp-block-separator.is-style-dots {
	border: 0;
	text-align: center;
	line-height: 1;
}

.entry-content .wp-block-separator.is-style-dots::before,
.editor-styles-wrapper .wp-block-separator.is-style-dots::before {
	content: "···";
	color: #5c6770;
	font-size: 1.5rem;
	letter-spacing: 0.6rem;
}

.entry-content .wp-block-spacer,
.editor-styles-wrapper .wp-block-spacer {
	display: block;
	clear: both;
}

.entry-content .wp-block-file,
.editor-styles-wrapper .wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
}

.entry-content .wp-block-file .wp-block-file__button,
.editor-styles-wrapper .wp-block-file .wp-block-file__button {
	background: var(--sbcbm-primary);
	border-radius: 8px;
	color: #fff;
	padding: 0.45rem 0.9rem;
	text-decoration: none;
}

.entry-content .wp-block-audio,
.entry-content .wp-block-video,
.editor-styles-wrapper .wp-block-audio,
.editor-styles-wrapper .wp-block-video {
	margin: 0 0 1.5rem;
}

.entry-content .wp-block-video video,
.editor-styles-wrapper .wp-block-video video,
.entry-content .wp-block-audio audio,
.editor-styles-wrapper .wp-block-audio audio {
	width: 100%;
}

.entry-content .wp-block-embed,
.editor-styles-wrapper .wp-block-embed {
	margin: 0 0 1.5rem;
}

.entry-content .wp-block-embed__wrapper,
.editor-styles-wrapper .wp-block-embed__wrapper {
	position: relative;
}

.entry-content .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before,
.editor-styles-wrapper .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before {
	content: "";
	display: block;
	padding-top: 56.25%;
}

.entry-content .wp-has-aspect-ratio .wp-block-embed__wrapper iframe,
.editor-styles-wrapper .wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.entry-content .wp-block-details,
.editor-styles-wrapper .wp-block-details {
	border: 1px solid #dee2e6;
	border-radius: 8px;
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
}

.entry-content .wp-block-details summary,
.editor-styles-wrapper .wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
}

.entry-content .wp-block-social-links,
.editor-styles-wrapper .wp-block-social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	margin: 0 0 1.5rem;
	list-style: none;
}

.entry-content .wp-block-social-links .wp-social-link,
.editor-styles-wrapper .wp-block-social-links .wp-social-link {
	display: inline-flex;
}

.entry-content .wp-block-search,
.editor-styles-wrapper .wp-block-search {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
}

.entry-content .wp-block-search__input,
.editor-styles-wrapper .wp-block-search__input {
	flex: 1 1 180px;
	border: 1px solid #ced4da;
	border-radius: 8px;
	padding: 0.5rem 0.75rem;
}

.entry-content .wp-block-search__button,
.editor-styles-wrapper .wp-block-search__button {
	background: var(--sbcbm-primary);
	border: 0;
	border-radius: 8px;
	color: #fff;
	padding: 0.5rem 1rem;
}

.entry-content .wp-block-latest-posts,
.entry-content .wp-block-categories,
.entry-content .wp-block-archives,
.editor-styles-wrapper .wp-block-latest-posts,
.editor-styles-wrapper .wp-block-categories,
.editor-styles-wrapper .wp-block-archives {
	padding-left: 1.25rem;
	margin: 0 0 1.5rem;
}

.entry-content .wp-block-calendar table,
.editor-styles-wrapper .wp-block-calendar table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content .wp-block-calendar td,
.entry-content .wp-block-calendar th,
.editor-styles-wrapper .wp-block-calendar td,
.editor-styles-wrapper .wp-block-calendar th {
	border: 1px solid #dee2e6;
	padding: 0.35rem;
	text-align: center;
}
