/* Content styles: shared by the site (.entry-content) and the block editor (.editor-styles-wrapper). */
.entry-content { max-width: var(--measure); }
.entry-content > * + *, .editor-styles-wrapper .is-root-container > * + * { margin-top: var(--space-2); }
:is(.entry-content, .editor-styles-wrapper) h2 { margin-top: var(--space-4); font-size: var(--step-2); }
:is(.entry-content, .editor-styles-wrapper) h3 { margin-top: var(--space-3); font-size: var(--step-1); }
:is(.entry-content, .editor-styles-wrapper) ul, :is(.entry-content, .editor-styles-wrapper) ol { padding-left: 1.25em; }
:is(.entry-content, .editor-styles-wrapper) blockquote { margin: var(--space-3) 0; padding-left: var(--space-3); border-left: 1px solid var(--gold); font-family: var(--serif); font-size: var(--step-1); }
:is(.entry-content, .editor-styles-wrapper) a { color: var(--navy); text-decoration-color: var(--gold); }
.back-link { display: inline-block; margin-top: var(--space-4); font-weight: 600; font-size: var(--step--1); color: var(--gold-ink); text-decoration: none; }

/* Image and embed blocks inside content */
:is(.entry-content, .editor-styles-wrapper) figure { margin: var(--space-3) 0; }
:is(.entry-content, .editor-styles-wrapper) figcaption { margin-top: 0.5rem; font-size: var(--step--1); color: var(--text-soft); }
:is(.entry-content, .editor-styles-wrapper) .wp-block-image img { border-radius: var(--radius); }
:is(.entry-content, .editor-styles-wrapper) .wp-block-embed__wrapper iframe { max-width: 100%; }

/* Lists, tables, files and buttons inside content */
:is(.entry-content, .editor-styles-wrapper) li + li { margin-top: 0.35rem; }
:is(.entry-content, .editor-styles-wrapper) table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
:is(.entry-content, .editor-styles-wrapper) th, :is(.entry-content, .editor-styles-wrapper) td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
:is(.entry-content, .editor-styles-wrapper) thead th { border-bottom: 2px solid var(--navy); font-weight: 600; }
:is(.entry-content, .editor-styles-wrapper) .wp-block-table { overflow-x: auto; }
:is(.entry-content, .editor-styles-wrapper) .wp-block-table figcaption { text-align: left; }
:is(.entry-content, .editor-styles-wrapper) .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--stone); border-radius: var(--radius); }
:is(.entry-content, .editor-styles-wrapper) .wp-block-file a:not(.wp-block-file__button) { font-weight: 600; }
:is(.entry-content, .editor-styles-wrapper) .wp-block-file__button { background: var(--navy); color: var(--white); padding: 0.6em 1.2em; border-radius: var(--radius); font-size: var(--step--1); font-weight: 600; text-decoration: none; }
:is(.entry-content, .editor-styles-wrapper) .wp-block-file__button:hover { background: var(--navy-deep); color: var(--white); }
:is(.entry-content, .editor-styles-wrapper) .wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--space-2); }
:is(.entry-content, .editor-styles-wrapper) .wp-block-button__link {
  display: inline-flex; align-items: center; font: 600 var(--step--1)/1 var(--sans); letter-spacing: 0.02em;
  padding: 1em 1.6em; border-radius: var(--radius); background: var(--gold); color: var(--navy); text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
:is(.entry-content, .editor-styles-wrapper) .wp-block-button__link:hover { background: #c9a352; color: var(--navy); }

/* Block editor: the post title is centered in the content column, like the blocks below it.
   The wrapper stays full width (it carries the global padding); only the title is constrained. */
.editor-styles-wrapper :is(.edit-post-visual-editor__post-title-wrapper, .editor-visual-editor__post-title-wrapper) {
  max-width: none;
  margin-inline: 0;
}
.editor-styles-wrapper :is(.edit-post-visual-editor__post-title-wrapper, .editor-visual-editor__post-title-wrapper) .wp-block-post-title {
  max-width: var(--wp--style--global--content-size, var(--measure));
  margin-inline: auto !important;
}
