/* MUSASHI KURUME / H1-H4 visual design system, v2.1.0.
   Deliberately limited to the mkuf-onecol + mkuf-heading-system body classes.
   Preserves the DOM heading hierarchy and all existing text. Dedicated LPs are not affected.
   Rooted inside Ken'i main content, never header/navigation/footer or #mkuf-root. */

body.mkuf-onecol.mkuf-heading-system {
  --mkuf-head-ink: #1d1d1d;
  --mkuf-head-yellow: #f3c72c;
  --mkuf-head-soft: #fff9e6;
  --mkuf-head-line: #ebd37d;
}

/* H1: title of a post, static page or archive. Includes Ken'i 8 naming variants. */
body.mkuf-onecol.mkuf-heading-system .keni-main_outer :is(
  h1.entry_title, h1.entry-title, h1.page-title,
  h1.archive_title, h1.archive-title,
  .entry_title > h1, .entry-title > h1,
  .archive_title > h1, .archive-title > h1,
  .archive_title_wrap > h1, .archive-title-wrap > h1,
  .keni-main > h1, .keni-section > h1
) {
  display: block !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-bottom: 4px solid var(--mkuf-head-yellow) !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%) !important;
  padding: 13px 3px 19px !important;
  margin: 0 0 1.15em !important;
  color: var(--mkuf-head-ink) !important;
  font-size: clamp(27px, 3vw, 38px) !important;
  font-weight: 800 !important;
  line-height: 1.48 !important;
  letter-spacing: .015em !important;
  text-align: left !important;
  text-shadow: none !important;
  box-shadow: none !important;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
  text-wrap: pretty;
}
body.mkuf-onecol.mkuf-heading-system .keni-main_outer :is(
  h1.entry_title, h1.entry-title, h1.page-title,
  h1.archive_title, h1.archive-title,
  .entry_title > h1, .entry-title > h1,
  .archive_title > h1, .archive-title > h1,
  .archive_title_wrap > h1, .archive-title-wrap > h1,
  .keni-main > h1, .keni-section > h1
)::before,
body.mkuf-onecol.mkuf-heading-system .keni-main_outer :is(
  h1.entry_title, h1.entry-title, h1.page-title,
  h1.archive_title, h1.archive-title,
  .entry_title > h1, .entry-title > h1,
  .archive_title > h1, .archive-title > h1,
  .archive_title_wrap > h1, .archive-title-wrap > h1,
  .keni-main > h1, .keni-section > h1
)::after { content: none !important; display: none !important; }

/* Article body scopes: standard editor, SSEO .sseo-article nested inside article-body,
   direct WordPress group headings, and category/archive intro copy.
   The direct-child selection intentionally leaves complex shortcodes/sliders intact. */
body.mkuf-onecol.mkuf-heading-system .keni-main :is(
  .article-body, .entry-content, .sseo-article,
  .archive-description, .archive_description, .category-description, .category_description,
  .wp-block-group__inner-container
) > :is(h2, h3, h4) {
  display: block !important;
  box-sizing: border-box !important;
  position: relative;
  float: none !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100% !important;
  clear: both;
  color: var(--mkuf-head-ink) !important;
  font-family: inherit !important;
  letter-spacing: .012em !important;
  font-weight: 800 !important;
  line-height: 1.48 !important;
  text-align: left !important;
  text-shadow: none !important;
  box-shadow: none !important;
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
  text-wrap: pretty;
}

/* H2: calm pale-gold band with robust left accent. */
body.mkuf-onecol.mkuf-heading-system .keni-main :is(
  .article-body, .entry-content, .sseo-article,
  .archive-description, .archive_description, .category-description, .category_description,
  .wp-block-group__inner-container
) > h2 {
  background: linear-gradient(105deg, #fff4c9 0%, #fffaf0 55%, #fff 100%) !important;
  border: 0 !important;
  border-left: 6px solid var(--mkuf-head-yellow) !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 17px 20px !important;
  margin: 2.2em 0 .95em !important;
  font-size: clamp(22px, 2.45vw, 29px) !important;
}

/* H3: white foundation, black type, yellow underline. */
body.mkuf-onecol.mkuf-heading-system .keni-main :is(
  .article-body, .entry-content, .sseo-article,
  .archive-description, .archive_description, .category-description, .category_description,
  .wp-block-group__inner-container
) > h3 {
  background: #fff !important;
  border: 0 !important;
  border-bottom: 3px solid var(--mkuf-head-line) !important;
  border-radius: 0 !important;
  padding: 7px 3px 11px !important;
  margin: 1.9em 0 .9em !important;
  font-size: clamp(19px, 1.9vw, 24px) !important;
}

/* H4: smaller left accent and sufficient rhythm, never overdecorated. */
body.mkuf-onecol.mkuf-heading-system .keni-main :is(
  .article-body, .entry-content, .sseo-article,
  .archive-description, .archive_description, .category-description, .category_description,
  .wp-block-group__inner-container
) > h4 {
  background: #fffdf7 !important;
  border: 0 !important;
  border-left: 4px solid var(--mkuf-head-yellow) !important;
  border-radius: 0 6px 6px 0 !important;
  padding: 8px 11px !important;
  margin: 1.45em 0 .75em !important;
  font-size: clamp(17px, 1.6vw, 20px) !important;
}

/* Reset only the decorative pseudoelements attached to these controlled H tags. */
body.mkuf-onecol.mkuf-heading-system .keni-main :is(
  .article-body, .entry-content, .sseo-article,
  .archive-description, .archive_description, .category-description, .category_description,
  .wp-block-group__inner-container
) > :is(h2,h3,h4)::before,
body.mkuf-onecol.mkuf-heading-system .keni-main :is(
  .article-body, .entry-content, .sseo-article,
  .archive-description, .archive_description, .category-description, .category_description,
  .wp-block-group__inner-container
) > :is(h2,h3,h4)::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 767px) {
  body.mkuf-onecol.mkuf-heading-system .keni-main_outer :is(
    h1.entry_title, h1.entry-title, h1.page-title,
    h1.archive_title, h1.archive-title,
    .entry_title > h1, .entry-title > h1,
    .archive_title > h1, .archive-title > h1,
    .archive_title_wrap > h1, .archive-title-wrap > h1,
    .keni-main > h1, .keni-section > h1
  ) {
    font-size: clamp(24px, 6.1vw, 28px) !important;
    line-height: 1.48 !important;
    padding: 11px 2px 15px !important;
    border-bottom-width: 3px !important;
  }
  body.mkuf-onecol.mkuf-heading-system .keni-main :is(
    .article-body, .entry-content, .sseo-article,
    .archive-description, .archive_description, .category-description, .category_description,
    .wp-block-group__inner-container
  ) > h2 { font-size: 21px !important; line-height: 1.5 !important; padding: 13px 14px !important; margin: 1.9em 0 .9em !important; border-left-width: 5px !important; }
  body.mkuf-onecol.mkuf-heading-system .keni-main :is(
    .article-body, .entry-content, .sseo-article,
    .archive-description, .archive_description, .category-description, .category_description,
    .wp-block-group__inner-container
  ) > h3 { font-size: 19px !important; line-height: 1.5 !important; padding-bottom: 9px !important; }
  body.mkuf-onecol.mkuf-heading-system .keni-main :is(
    .article-body, .entry-content, .sseo-article,
    .archive-description, .archive_description, .category-description, .category_description,
    .wp-block-group__inner-container
  ) > h4 { font-size: 17px !important; line-height: 1.55 !important; padding: 8px 10px !important; }
}
