/* MUSASHI KURUME - Ken'i 8 unified one-column overlay (v2.0.0)
   Scope: body class is added only on eligible normal pages. LP elements never targeted.
   Does not change WP options, widgets, theme PHP, posts, or media. */
body.mkuf-onecol{
  --mkuf-layout-gutter:clamp(16px,3.4vw,32px);
  --mkuf-layout-gold:#f8cf31;
  --mkuf-content-max:1160px;
  overflow-x:clip;
}
/* Ken'i 8 normally keeps a negative right margin and right padding for the sidebar.
   BOTH must be reset: hiding the sidebar alone leaves a narrow article. */
body.mkuf-onecol .keni-main_outer,
body.mkuf-onecol.col2 .keni-main_outer,
body.mkuf-onecol.col2r .keni-main_outer,
body.mkuf-onecol.col1 .keni-main_outer {
  box-sizing:border-box!important;
  width:100%!important;
  max-width:var(--mkuf-content-max,1160px)!important;
  min-width:0!important;
  margin-inline:auto!important;
  padding-inline:var(--mkuf-layout-gutter)!important;
  float:none!important;
  display:block!important;
}
body.mkuf-onecol .keni-main_outer::after{content:"";display:table;clear:both}
body.mkuf-onecol .keni-main,
body.mkuf-onecol.col2 .keni-main,
body.mkuf-onecol.col2r .keni-main,
body.mkuf-onecol .col2 .keni-main,
body.mkuf-onecol .col2r .keni-main,
body.mkuf-onecol .keni-main_outer > main,
body.mkuf-onecol .keni-main_outer > .keni-main_wrap {
  box-sizing:border-box!important;
  float:none!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  margin-right:0!important;
  margin-left:0!important;
  padding-left:0!important;
  padding-right:0!important;
  display:block!important;
}
/* Sidebar is only visually hidden on selected layouts; widget data is intact. */
body.mkuf-onecol .keni-main_outer .keni-sub,
body.mkuf-onecol .keni-main_outer #sidebar,
body.mkuf-onecol .keni-main_outer > aside.sidebar {
  display:none!important;
}
body.mkuf-onecol .keni-main .keni-section_wrap,
body.mkuf-onecol .keni-main .keni-section,
body.mkuf-onecol .keni-main .entry-content,
body.mkuf-onecol .keni-main .article-body {
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body.mkuf-onecol .keni-main :is(.article-body,.entry-content) img,
body.mkuf-onecol .keni-main :is(.article-body,.entry-content) video,
body.mkuf-onecol .keni-main .wp-caption img,
body.mkuf-onecol .keni-main .wp-block-image img {
  max-width:100%!important;
  height:auto;
}
body.mkuf-onecol .keni-main :is(.article-body,.entry-content) figure,
body.mkuf-onecol .keni-main :is(.article-body,.entry-content) .wp-caption,
body.mkuf-onecol .keni-main .wp-block-embed {
  max-width:100%!important;
}
body.mkuf-onecol .keni-main :is(.article-body,.entry-content) :is(table,pre){
  max-width:100%;
  overflow-x:auto;
}
body.mkuf-onecol .keni-main :is(.article-body,.entry-content) iframe{
  max-width:100%;
}
/* Soft visual alignment for standard articles/pages only (never custom LPs). */
body.mkuf-onecol.mkuf-article-polish .keni-main :is(.article-body,.entry-content){
  color:#222;
  line-height:1.9;
  font-size:clamp(16px,1.5vw,18px);
  overflow-wrap:break-word;
}
body.mkuf-onecol.mkuf-article-polish .keni-main :is(.article-body,.entry-content) p{
  margin-block:0 1.55em;
  line-height:inherit;
}
body.mkuf-onecol.mkuf-article-polish .keni-main :is(.article-body,.entry-content) > h2 {
  border-left:5px solid var(--mkuf-layout-gold)!important;
  border-bottom:1px solid #e6dcc1!important;
  background:linear-gradient(100deg,#fff9e5 0%,#fff 85%)!important;
  color:#171717!important;
  padding:14px 18px!important;
  margin:2.1em 0 .95em!important;
  line-height:1.45!important;
  font-size:clamp(21px,2.6vw,29px)!important;
  box-shadow:none!important;
  text-shadow:none!important;
  overflow-wrap:break-word;
}
body.mkuf-onecol.mkuf-article-polish .keni-main :is(.article-body,.entry-content) > h2::before,
body.mkuf-onecol.mkuf-article-polish .keni-main :is(.article-body,.entry-content) > h2::after{
  content:none!important;display:none!important;
}
body.mkuf-onecol.mkuf-article-polish .keni-main :is(.article-body,.entry-content) > h3{
  border:0!important;
  border-bottom:2px solid #eecb45!important;
  background:transparent!important;
  padding:4px 0 10px!important;
  margin:1.7em 0 .85em!important;
  color:#222!important;
  line-height:1.5!important;
  font-size:clamp(18px,2vw,23px)!important;
  box-shadow:none!important;
}
body.mkuf-onecol.mkuf-article-polish .keni-main :is(.article-body,.entry-content) > h3::before,
body.mkuf-onecol.mkuf-article-polish .keni-main :is(.article-body,.entry-content) > h3::after{
  content:none!important;display:none!important;
}
body.mkuf-onecol.mkuf-article-polish .keni-main :is(.article-body,.entry-content) a{
  text-underline-offset:3px;
}
body.mkuf-onecol.mkuf-article-polish .keni-main .entry_title{
  line-height:1.45!important;
  overflow-wrap:break-word;
}
/* Archive category landing page width and first heading. Preserve custom modules, sliders, CTAs. */
body.mkuf-onecol.mkuf-archive-polish .archive_title,
body.mkuf-onecol.mkuf-archive-polish .archive_title_wrap{
  max-width:var(--mkuf-content-max,1160px)!important;
  box-sizing:border-box;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.mkuf-onecol.mkuf-archive-polish .archive_title{
  color:#171717;
  line-height:1.45;
  overflow-wrap:break-word;
}
body.mkuf-onecol.mkuf-archive-polish .keni-main .archive-list > li{
  min-width:0;
}
/* Mobile: enough horizontal padding, never a two-column content canvas. */
@media(max-width:767px){
  body.mkuf-onecol{--mkuf-layout-gutter:16px;overflow-x:clip}
  body.mkuf-onecol .keni-main_outer{max-width:100%!important}
  body.mkuf-onecol .keni-main :is(.article-body,.entry-content) {max-width:100%!important}
  body.mkuf-onecol.mkuf-article-polish .keni-main :is(.article-body,.entry-content) > h2{
    font-size:21px!important;padding:12px 13px!important;line-height:1.5!important;
  }
  body.mkuf-onecol.mkuf-article-polish .keni-main :is(.article-body,.entry-content) > h3{font-size:18px!important}
}
@media(prefers-reduced-motion:reduce){
  body.mkuf-onecol .keni-main *,body.mkuf-onecol .keni-main *::before,
  body.mkuf-onecol .keni-main *::after {scroll-behavior:auto!important}
}
