/* Classic Editor content styling — shared by every post_content
   wrapper (.single-post__content, .single-object__content, and any
   future one) via the .entry-content class alongside each page's own
   scoped class, e.g. class="single-post__content entry-content".
   TinyMCE can produce any of these tags regardless of which page
   renders the_content(), so this is the one place that styles them
   using the theme's own tokens instead of WP core's block-library
   defaults (dequeued in inc/helpers.php now that the block editor is
   disabled site-wide). */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 1.25em 0 0.5em;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child,
.entry-content h5:first-child,
.entry-content h6:first-child {
  margin-top: 0;
}

.entry-content h1 {
  font-size: 2.25em;
}

.entry-content h2 {
  font-size: 1.75em;
}

.entry-content h3 {
  font-size: 1.4em;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table,
.entry-content figure,
.entry-content pre,
.entry-content dl {
  margin: 0 0 1em;
}

.entry-content > :last-child {
  margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25em;
}

.entry-content li {
  margin-bottom: 0.4em;
}

.entry-content li > ul,
.entry-content li > ol {
  margin-top: 0.4em;
}

.entry-content strong,
.entry-content b {
  font-weight: 700;
}

.entry-content em,
.entry-content i {
  font-style: italic;
}

.entry-content small {
  font-size: 0.85em;
  color: var(--theme-color-text-muted);
}

.entry-content mark {
  background: color-mix(in srgb, var(--theme-color-accent) 25%, transparent);
  color: inherit;
}

.entry-content blockquote {
  padding-left: 1em;
  border-left: var(--theme-line-width) solid var(--theme-line-color);
  font-style: italic;
  color: var(--theme-color-text-muted);
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.entry-content figure {
  margin: 0 0 1em;
}

.entry-content figcaption {
  margin-top: 0.5em;
  font-size: 0.85em;
  color: var(--theme-color-text-muted);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
}

.entry-content th,
.entry-content td {
  padding: 0.5em 0.75em;
  border: var(--theme-line-width) solid var(--theme-line-color);
  text-align: left;
}

.entry-content th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.5px;
}

.entry-content dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25em 1em;
}

.entry-content dt {
  font-weight: 700;
}

.entry-content dd {
  margin: 0;
}

.entry-content code,
.entry-content kbd {
  font-family: monospace;
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: color-mix(in srgb, var(--theme-color-text) 8%, transparent);
  border-radius: 3px;
}

.entry-content pre {
  padding: 1em;
  overflow-x: auto;
  background: color-mix(in srgb, var(--theme-color-text) 8%, transparent);
}

.entry-content pre code {
  padding: 0;
  background: none;
}

.entry-content hr {
  margin: 1.5em 0;
  border: none;
  border-top: var(--theme-line-width) solid var(--theme-line-color);
}

/* Classic Editor's built-in alignment/caption classes. */
.entry-content .alignleft {
  float: left;
  margin: 0 1em 1em 0;
}

.entry-content .alignright {
  float: right;
  margin: 0 0 1em 1em;
}

.entry-content .aligncenter {
  display: block;
  margin: 0 auto 1em;
}

.entry-content .wp-caption {
  max-width: 100%;
}

.entry-content .wp-caption-text {
  margin-top: 0.5em;
  font-size: 0.85em;
  color: var(--theme-color-text-muted);
}
