/**
 * Gutenberg core theme.json defaults + block-library look.
 * Loaded on the editor canvas AND frontend (preview / published) so
 * Code, Verse, Math, Preformatted, Quote, Pullquote, etc. match WordPress.
 */

.editor-styles-wrapper .wp-block-code,
.ProseMirror .wp-block-code,
.entry-content .wp-block-code,
.entry-content pre:not(.wp-block-verse):not(.wp-block-preformatted) {
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: Menlo, Consolas, monaco, monospace;
  font-size: 0.875em;
  line-height: 1.6;
  margin: 0 0 1.75em;
  overflow: auto;
  padding: 0.8em 1em;
  white-space: pre;
  background: #fff;
  color: inherit;
}

.editor-styles-wrapper .wp-block-code code,
.ProseMirror .wp-block-code code,
.entry-content .wp-block-code code,
.entry-content pre:not(.wp-block-verse):not(.wp-block-preformatted) code {
  background: none;
  border: 0;
  display: block;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  white-space: inherit;
  overflow-wrap: break-word;
}

.editor-styles-wrapper code,
.ProseMirror code,
.entry-content code {
  font-family: Menlo, Consolas, monaco, monospace;
  font-size: 0.875em;
}

.editor-styles-wrapper :not(pre) > code,
.ProseMirror :not(pre) > code,
.entry-content :not(pre) > code {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  padding: 0.125em 0.25em;
}

.editor-styles-wrapper .wp-block-verse,
.ProseMirror .wp-block-verse,
.entry-content .wp-block-verse {
  box-sizing: border-box;
  font-family: inherit;
  font-style: italic;
  margin: 0 0 1.75em;
  min-width: 1em;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  background: none;
  border: 0;
  padding: 0;
}

.editor-styles-wrapper .wp-block-preformatted,
.ProseMirror .wp-block-preformatted,
.entry-content .wp-block-preformatted {
  box-sizing: border-box;
  font-family: Menlo, Consolas, monaco, monospace;
  font-size: 0.875em;
  margin: 0 0 1.75em;
  white-space: pre-wrap;
  overflow: auto;
  background: none;
  border: 0;
  padding: 0;
}

.editor-styles-wrapper .wp-block-math,
.ProseMirror .wp-block-math,
.entry-content .wp-block-math {
  box-sizing: border-box;
  margin: 0 0 1.75em;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
}

.entry-content .wp-block-math .katex-display,
.editor-styles-wrapper .wp-block-math .katex-display,
.ProseMirror .wp-block-math .katex-display {
  margin: 0.5em 0;
}

.editor-styles-wrapper .wp-element-math,
.ProseMirror .wp-element-math,
.entry-content .wp-element-math {
  display: inline;
}

.editor-styles-wrapper .wp-block-quote,
.ProseMirror .wp-block-quote,
.entry-content .wp-block-quote,
.entry-content blockquote {
  box-sizing: border-box;
  border-left: 0.25em solid currentColor;
  margin: 0 0 1.75em;
  padding: 0 0 0 1em;
}

.editor-styles-wrapper .wp-block-quote cite,
.ProseMirror .wp-block-quote cite,
.entry-content .wp-block-quote cite,
.entry-content blockquote cite {
  display: block;
  font-size: 0.875em;
  font-style: normal;
  margin-top: 0.75em;
}

.editor-styles-wrapper .wp-block-pullquote,
.ProseMirror .wp-block-pullquote,
.entry-content .wp-block-pullquote {
  box-sizing: border-box;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  margin: 0 0 1.75em;
  padding: 1.75em 0;
  text-align: center;
}

.editor-styles-wrapper .wp-block-pullquote blockquote,
.ProseMirror .wp-block-pullquote blockquote,
.entry-content .wp-block-pullquote blockquote {
  border: 0;
  margin: 0;
  padding: 0;
  font-size: 1.5em;
  font-style: italic;
}

.editor-styles-wrapper .wp-block-pullquote cite,
.entry-content .wp-block-pullquote cite {
  display: block;
  font-size: 0.65em;
  font-style: normal;
  margin-top: 1em;
}

.editor-styles-wrapper .wp-block-separator,
.ProseMirror hr.wp-block-separator,
.entry-content .wp-block-separator,
.entry-content hr {
  border: 0;
  border-top: 1px solid currentColor;
  margin: 1.75em auto;
  opacity: 0.4;
  width: 100%;
}

.editor-styles-wrapper .wp-block-details,
.entry-content .wp-block-details {
  margin: 0 0 1.75em;
}

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

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

.editor-styles-wrapper .wp-block-button,
.entry-content .wp-block-button {
  display: inline-block;
  width: auto;
}

.editor-styles-wrapper .wp-block-button__link,
.entry-content .wp-block-button__link {
  background: #1e1e1e;
  border-radius: 9999px;
  color: #fff !important;
  display: inline-block;
  width: auto;
  font-size: 16px;
  line-height: 1.2;
  padding: 8px 16px;
  text-decoration: none !important;
}

.editor-styles-wrapper .wp-block-cover,
.entry-content .wp-block-cover {
  box-sizing: border-box;
  margin: 0 0 1.75em;
  min-height: 200px;
  position: relative;
}

.editor-styles-wrapper .wp-block-group,
.entry-content .wp-block-group {
  box-sizing: border-box;
  margin: 0 0 1.75em;
}

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

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

.editor-styles-wrapper .wp-block-gallery,
.entry-content .wp-block-gallery {
  margin: 0 0 1.75em;
}

.editor-styles-wrapper .wp-block-file,
.entry-content .wp-block-file {
  margin: 0 0 1.75em;
}

.editor-styles-wrapper .wp-block-media-text,
.entry-content .wp-block-media-text {
  margin: 0 0 1.75em;
}

.editor-styles-wrapper .has-large-font-size,
.entry-content .has-large-font-size {
  font-size: 2.25em;
  line-height: 1.3;
}
