/* ait-article-typo-separator-contract-v1
 * Xu Deling 2026-11-03:
 * 1) Hide Gutenberg separator short rules in articles (all posts).
 * 2) Downsize in-content h2/h3 so they sit clearly below the post title.
 * Permanent CSS contract; do not patch per-article HTML as the main fix.
 */

/* ---- separators ---- */
.ast-single-post .entry-content .wp-block-separator,
.single-post .entry-content .wp-block-separator,
.ast-single-post .entry-content hr.wp-block-separator,
.single-post .entry-content hr.wp-block-separator,
.editor-styles-wrapper .wp-block-separator,
.editor-styles-wrapper hr.wp-block-separator,
.block-editor-writing-flow .wp-block-separator,
.block-editor-writing-flow hr.wp-block-separator {
  display: none !important;
  border: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: transparent !important;
}

/* ---- title stays dominant; in-content headings step down ---- */
.ast-single-post .entry-header .entry-title,
.single-post .entry-header .entry-title,
.ast-single-post h1.entry-title,
.single-post h1.entry-title {
  font-size: 32px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.ast-single-post .entry-content h2,
.single-post .entry-content h2,
.ast-single-post .entry-content h2.wp-block-heading,
.single-post .entry-content h2.wp-block-heading,
.editor-styles-wrapper .wp-block-post-content h2,
.editor-styles-wrapper .editor-post-title + * h2,
.block-editor-writing-flow h2.wp-block-heading,
.editor-styles-wrapper h2.wp-block-heading {
  font-size: 22px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  margin-top: 1.4em !important;
  margin-bottom: 0.55em !important;
}

.ast-single-post .entry-content h3,
.single-post .entry-content h3,
.ast-single-post .entry-content h3.wp-block-heading,
.single-post .entry-content h3.wp-block-heading,
.block-editor-writing-flow h3.wp-block-heading,
.editor-styles-wrapper h3.wp-block-heading {
  font-size: 18px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
  margin-top: 1.2em !important;
  margin-bottom: 0.45em !important;
}

.ast-single-post .entry-content h4,
.single-post .entry-content h4,
.block-editor-writing-flow h4.wp-block-heading,
.editor-styles-wrapper h4.wp-block-heading {
  font-size: 16px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

@media (max-width: 921px) {
  .ast-single-post .entry-header .entry-title,
  .single-post .entry-header .entry-title,
  .ast-single-post h1.entry-title,
  .single-post h1.entry-title {
    font-size: 28px !important;
  }
  .ast-single-post .entry-content h2,
  .single-post .entry-content h2,
  .ast-single-post .entry-content h2.wp-block-heading,
  .single-post .entry-content h2.wp-block-heading,
  .block-editor-writing-flow h2.wp-block-heading,
  .editor-styles-wrapper h2.wp-block-heading {
    font-size: 20px !important;
  }
}

@media (max-width: 544px) {
  .ast-single-post .entry-header .entry-title,
  .single-post .entry-header .entry-title,
  .ast-single-post h1.entry-title,
  .single-post h1.entry-title {
    font-size: 24px !important;
  }
  .ast-single-post .entry-content h2,
  .single-post .entry-content h2,
  .ast-single-post .entry-content h2.wp-block-heading,
  .single-post .entry-content h2.wp-block-heading,
  .block-editor-writing-flow h2.wp-block-heading,
  .editor-styles-wrapper h2.wp-block-heading {
    font-size: 18px !important;
  }
}

/* ait-article-typo-separator-contract-v1b
 * Cover has-* font-size utility classes and linked heading underlines.
 */
.ast-single-post .entry-content h2.wp-block-heading,
.ast-single-post .entry-content h2.wp-block-heading[class*="has-"],
.single-post .entry-content h2.wp-block-heading,
.single-post .entry-content h2.wp-block-heading[class*="has-"],
.editor-styles-wrapper h2.wp-block-heading,
.block-editor-writing-flow h2.wp-block-heading {
  font-size: 22px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
}
.ast-single-post .entry-content h3.wp-block-heading,
.ast-single-post .entry-content h3.wp-block-heading[class*="has-"],
.single-post .entry-content h3.wp-block-heading,
.single-post .entry-content h3.wp-block-heading[class*="has-"],
.editor-styles-wrapper h3.wp-block-heading,
.block-editor-writing-flow h3.wp-block-heading {
  font-size: 18px !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}
.ast-single-post .entry-content h2.wp-block-heading a,
.ast-single-post .entry-content h3.wp-block-heading a,
.ast-single-post .entry-content h4.wp-block-heading a,
.single-post .entry-content h2.wp-block-heading a,
.single-post .entry-content h3.wp-block-heading a,
.single-post .entry-content h4.wp-block-heading a {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
}
