/* Shared by the front end and editor canvas; never applies to admin controls. */
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) details.wp-block-details {
  box-sizing: border-box;
  margin-block: 2rem;
  padding: 0 1.25rem;
  border: 1px solid #d8dce1;
  border-radius: .5rem;
  background: #f6f7f8;
  color: inherit;
  overflow-wrap: anywhere;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 -1.25rem;
  padding: 1rem 1.25rem;
  border-radius: .45rem;
  background: #e5e7eb;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-details > summary::-webkit-details-marker { display: none; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-details > summary::after {
  content: '';
  flex: 0 0 .45rem;
  width: .45rem;
  height: .45rem;
  margin-inline: .25rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-details[open] > summary {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #d8dce1;
  border-radius: .45rem .45rem 0 0;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-details[open] > summary::after { transform: rotate(225deg); }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-details > summary:hover { background: #dfe2e6; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-details > summary:focus-visible {
  outline: 3px solid var(--wp--preset--color--light-blue);
  outline-offset: -4px;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-details > :not(summary) { margin-block: 0 1.25rem; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-details > p {
  font-size: 1rem;
  line-height: 1.75;
}

:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) blockquote.wp-block-quote {
  box-sizing: border-box;
  margin-block: 2rem;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #e2e5e9;
  border-inline-start: 4px solid var(--wp--preset--color--light-blue);
  border-radius: .5rem;
  background: #f5f6f7;
  color: inherit;
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-quote p {
  margin-block: 0 1rem;
  font-size: inherit;
  line-height: inherit;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-quote > :first-child { margin-top: 0; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-quote > :last-child,
.editor-styles-wrapper .wp-block-quote .block-editor-block-list__layout > :last-child { margin-bottom: 0; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-quote cite {
  display: block;
  margin-top: 1.25rem;
  padding-top: .75rem;
  border-top: 1px solid #dfe3e7;
  font-size: .875rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.6;
  text-align: inherit;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-quote .wp-block-quote {
  margin-block: 1.25rem;
  background: transparent;
}

:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table {
  margin-block: 2rem;
  overflow-x: auto;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d8dce1;
  border-radius: .5rem;
  overflow: hidden;
  font-size: .9375rem;
  line-height: 1.65;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table :is(th, td) {
  padding: .9rem 1.1rem;
  border: 0;
  border-bottom: 1px solid #e2e5e9;
  vertical-align: top;
  overflow-wrap: anywhere;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table th {
  background: #e5e7eb;
  font-weight: 700;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table th:not([class*="has-text-align-"]) { text-align: start; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table :is(thead, tfoot) { border: 0; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table tbody tr:last-child > * { border-bottom: 0; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table tfoot > tr:first-child > * { border-top: 1px solid #d8dce1; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table tfoot > tr:last-child > * { border-bottom: 0; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table:not(.has-background) tbody tr:nth-child(even) { background: #f6f7f8; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table.is-style-stripes { border-bottom: 0; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: #f0f2f4; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table figcaption {
  margin: .75rem 0 0;
  font-size: .875rem;
  line-height: 1.6;
  text-align: center;
}

/* Override core's alpha opacity in both contexts while keeping block variants. */
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-separator.wp-block-separator {
  width: 100px;
  max-width: 100%;
  height: 0;
  margin: 3rem auto;
  padding: 0;
  border: 0;
  border-top: 1px solid;
  color: var(--wp--preset--color--light-blue);
  opacity: 1;
  box-sizing: border-box;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-separator.is-style-wide { width: 100%; }
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-separator.is-style-dots { width: 100%; height: auto; border: 0; background: transparent; text-align: center; }

/* Keep the editable code surface consistent with the light reading surface. */
.editor-styles-wrapper pre.wp-block-code {
  margin: 2rem 0;
  padding: 1.4rem;
  border: 1px solid #d8dce1;
  border-radius: .6rem;
  background: #f5f5f5;
  color: #24292f;
  font-size: .875rem;
  line-height: 1.75;
  tab-size: 4;
}
@media (max-width: 600px) {
  :is(.single-post__content, .standard-page__content, .editor-styles-wrapper) .wp-block-table :is(th, td) { padding: .75rem; }
}

/* Image, gallery, video and embed captions: same look as the featured image caption, on the site and in the editor. */
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) :is(.wp-block-image, .wp-block-gallery, .wp-block-video, .wp-block-embed, .wp-block-audio) :is(figcaption, .wp-element-caption) {
  margin: .75rem 0 0;
  color: #5b6573;
  font-size: .8125rem;
  line-height: 1.55;
  text-align: left;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) :is(.wp-block-image, .wp-block-gallery, .wp-block-video, .wp-block-embed, .wp-block-audio) :is(figcaption, .wp-element-caption) :is(strong, b) {
  color: #5b6573;
  font-weight: 600;
}
:is(.single-post__content, .standard-page__content, .editor-styles-wrapper) :is(.wp-block-image, .wp-block-gallery, .wp-block-video, .wp-block-embed, .wp-block-audio) :is(figcaption, .wp-element-caption) a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
}

/* Editable Gutenberg Group styled as a biography document, including the editor. */
:is(.single-post__content, .editor-styles-wrapper) .is-style-biography-document {
  box-sizing: border-box; width: 100%; max-width: 100%; margin: 2.5rem auto;
  padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid #c7c7c7;
  background: #fff; color: #111; font-family: Arial, Helvetica, sans-serif;
  font-size: 14px; line-height: 1.4; box-shadow: 0 2px 12px #00000005;
}
:is(.single-post__content, .editor-styles-wrapper) .is-style-biography-document p {
  margin: 0 0 1.2em; color: #111; font-family: inherit; font-size: inherit; line-height: 1.4;
}
:is(.single-post__content, .editor-styles-wrapper) .is-style-biography-document .biography-document__institution { font-size: 12px; margin-bottom: 2.75rem; }
:is(.single-post__content, .editor-styles-wrapper) .is-style-biography-document .biography-document__title { text-align: center; font-size: 14px; margin-bottom: 2.5rem; }
:is(.single-post__content, .editor-styles-wrapper) .is-style-biography-document .biography-document__signature { margin-top: 3.5rem; margin-bottom: 0; gap: 2rem; font-size: 12px; }
:is(.single-post__content, .editor-styles-wrapper) .is-style-biography-document .biography-document__signature p { margin-bottom: 0; }