/* Shared by the article, the post editor canvas, and block-based widgets. */
:where(.entry-content, .editor-styles-wrapper) {
  color: #24212a;
  font-family: var(--wp--preset--font-family--vetscraft-system, system-ui, sans-serif);
  font-size: var(--pinks-body-size, 15px);
  line-height: 1.65;
  overflow-wrap: break-word;
}

:is(.entry-content, .editor-styles-wrapper) .wp-element-button:not(.has-background, .is-style-outline > .wp-element-button) {
  background-color: var(--pinks-accent, #a9144e);
}

:is(.entry-content, .editor-styles-wrapper) :where(h1, h2, h3, h4, h5, h6) {
  font-weight: 720;
  line-height: 1.28;
  letter-spacing: -.016em;
  overflow-wrap: anywhere;
}
:is(.entry-content, .editor-styles-wrapper) :where(h1) { font-size: clamp(1.5rem, 1.3rem + .95vw, 1.875rem); }
:is(.entry-content, .editor-styles-wrapper) :where(h2) { font-size: clamp(1.3125rem, 1.15rem + .82vw, 1.6875rem); }
:is(.entry-content, .editor-styles-wrapper) :where(h3) { font-size: clamp(1.15625rem, 1.06rem + .48vw, 1.375rem); }
:is(.entry-content, .editor-styles-wrapper) :where(h4) { font-size: clamp(1.0625rem, 1rem + .31vw, 1.1875rem); }
:is(.entry-content, .editor-styles-wrapper) :where(h5) { font-size: clamp(1rem, .97rem + .15vw, 1.0625rem); }
:is(.entry-content, .editor-styles-wrapper) :where(h6) { font-size: clamp(.96875rem, .95rem + .095vw, 1rem); }

/* Scroll the containing box so rows, headers and merged cells keep native table layout. */
:is(.entry-content, .editor-styles-wrapper, .pinks-sidebar) :where(.wp-block-table:not(table), .pinks-table-scroll, pre) {
  max-width: 100%;
  overflow-x: auto;
}
:is(.entry-content, .editor-styles-wrapper) :where(.wp-block-table:not(table), .pinks-table-scroll):not(.has-background) {
  border: 1px solid var(--pinks-reader-rule, #e9dfe8);
  border-radius: .8rem;
}
:is(.entry-content, .editor-styles-wrapper, .pinks-sidebar) :is(.wp-block-table, .pinks-table-scroll) > table {
  margin: 0 auto;
  min-inline-size: calc(var(--pinks-table-columns, 0) * 7.5rem);
  border-collapse: collapse;
}
:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-table, .pinks-table-scroll) :where(th, td) {
  min-inline-size: 7rem;
  padding: .6em .72em;
  vertical-align: top;
  overflow-wrap: break-word;
}
:is(.entry-content, .editor-styles-wrapper) :is(.wp-block-table:not(.is-style-stripes), .pinks-table-scroll) :is(th, td):not(.has-border-color, [style*="border"]) {
  border: 1px solid var(--pinks-reader-rule, #e9dfe8);
}
:is(.entry-content, .editor-styles-wrapper) :where(.wp-block-table, .pinks-table-scroll) :where(thead, tfoot):not(.has-background, .has-background *) {
  background: var(--pinks-reader-tint, #fbf0f5);
}
:is(.entry-content, .editor-styles-wrapper) :where(.wp-block-table, .pinks-table-scroll) :where(thead, tfoot) :where(th, td) {
  font-weight: 650;
}
:is(.entry-content, .editor-styles-wrapper) :where(figcaption, .wp-caption-text, table caption) {
  margin-block: .45rem 0;
  font-size: .91em;
  line-height: 1.45;
}
:is(.entry-content, .editor-styles-wrapper) :where(.wp-block-table, .pinks-table-scroll) :where(figcaption, caption) {
  margin: 0;
  padding: .7rem .85rem;
  caption-side: bottom;
  text-align: center;
}

/* The older centered Image block uses a table caption even when the figure is a block. */
:is(.entry-content, .editor-styles-wrapper) :where(.wp-block-image, .wp-caption) figcaption.wp-element-caption,
:is(.entry-content, .editor-styles-wrapper) :is(figure.wp-block-image, .wp-block-image > figure, .wp-caption) > figcaption {
  display: block;
  max-inline-size: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}
:is(.entry-content, .editor-styles-wrapper) :is(figure.wp-block-image, .wp-block-image > figure, figure.wp-caption, div.wp-caption):not(.wp-block-gallery *, .is-style-rounded, .has-background, .has-border-color, [style*="border-"]) {
  padding: clamp(.35rem, 1.2vw, .65rem);
  border: 1px solid var(--pinks-reader-rule, #e9dfe8);
  border-radius: .9rem;
  background: var(--pinks-reader-tint, #fcf8fb);
}
:is(.entry-content, .editor-styles-wrapper) :is(figure.wp-block-image, .wp-block-image > figure, .wp-caption):not(.wp-block-gallery *) > :is(figcaption, .wp-caption-text) {
  padding: .15rem .3rem .25rem;
  font-weight: 550;
}
.entry-content .vui-reader[data-theme="dark"] {
  --pinks-reader-rule: #465267;
  --pinks-reader-tint: #202b40;
}
:is(.entry-content, .pinks-sidebar) :where(.wp-block-embed, .wp-block-video, .wp-block-image, .wp-block-gallery, .wp-block-cover, .wp-block-media-text) {
  max-width: 100%;
}
:is(.entry-content, .pinks-sidebar) :where(img, video, iframe) { max-width: 100%; }
:is(.entry-content, .pinks-sidebar) :where(.wp-block-audio) audio { max-width: 100%; }
:is(.entry-content, .pinks-sidebar) :where(.wp-block-column, .wp-block-media-text__content) { min-width: 0; }
/* Wide and full blocks follow the available article width, including beside a sidebar. */
.pinks-entry :is(.entry-content, .vui-reader) > :where(.alignwide, .alignfull) { max-width: 100%; }
