/* K-MIRACLE Membership Core v4.29.0
 * Canonical public layer for Experts & Instructors + Contents.
 * This file intentionally contains ONLY final public-page rules. Historical
 * mobile/hero transforms are not allowed here.
 */
:is(.km428-experts,.km428-directory,.kmmc-v4-contents-page,.km423-contents),
:is(.km428-experts,.km428-directory,.kmmc-v4-contents-page,.km423-contents) *{
  box-sizing:border-box;
  min-width:0;
}
html{scrollbar-gutter:stable;}

/* -------------------------------------------------------------------------
   EXPERTS controls: server-rendered final structure; JavaScript never rebuilds it.
   ------------------------------------------------------------------------- */
.km428-directory .km428-controls{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:end;
  width:100%;
}
.km428-directory .kms421-types a.is-active,
.km428-directory .kms421-types a[aria-current="page"]{
  background:#163b5e!important;
  border-color:#163b5e!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
.km428-directory .kms421-types a.is-active *,
.km428-directory .kms421-types a[aria-current="page"] *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* -------------------------------------------------------------------------
   CONTENTS HERO = EXACT Experts & Instructors visual system.
   One HTML hero is used on desktop and mobile; only responsive sizing changes.
   ------------------------------------------------------------------------- */
.kmmc-v4-contents-page .km430-contents-hero{
  position:relative!important;
  width:100%!important;
  padding:35px 0 30px!important;
  margin:0!important;
  border:0!important;
  background:linear-gradient(118deg,#0c2745,#163b5e)!important;
  color:#fff!important;
  overflow:hidden!important;
}
.kmmc-v4-contents-page .km430-contents-hero>.km430-hero-shell{
  position:relative!important;
  width:min(1500px,calc(100% - 48px))!important;
  margin:0 auto!important;
  padding:0!important;
}
.kmmc-v4-contents-page .km430-contents-hero h1{
  margin:0 0 9px!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:27px!important;
  line-height:1.35!important;
  font-weight:600!important;
}
.kmmc-v4-contents-page .km430-contents-hero h2{
  margin:0 0 11px!important;
  color:#edf3f9!important;
  -webkit-text-fill-color:#edf3f9!important;
  font-size:17px!important;
  line-height:1.5!important;
  font-weight:600!important;
  display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;
}
.kmmc-v4-contents-page .km430-contents-hero h2>span{color:#edf3f9!important;-webkit-text-fill-color:#edf3f9!important;}
.kmmc-v4-contents-page .km430-contents-hero .km430-hero-red-point{display:inline-block!important;color:#d9364e!important;-webkit-text-fill-color:#d9364e!important;font-size:.72em!important;line-height:1!important;font-weight:700!important;opacity:1!important;visibility:visible!important;}
.kmmc-v4-contents-page .km430-contents-hero p{
  margin:0!important;
  color:#d4e0ec!important;
  -webkit-text-fill-color:#d4e0ec!important;
  font-size:14px!important;
  line-height:1.6!important;
  font-weight:500!important;
}
.kmmc-v4-contents-page .km430-contents-hero>.km430-hero-shell::after{
  content:'';
  display:block;
  width:35px;
  height:2px;
  margin-top:17px;
  background:#c64457;
}

/* -------------------------------------------------------------------------
   CONTENTS CATALOG: deterministic 10-item batches.
   Each batch owns a full desktop row. Never nest a grid inside another grid.
   ------------------------------------------------------------------------- */
body.kmmc-public-contents .kmmc-v4-contents-page.km423-contents{
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  overflow:visible!important;
}
body.kmmc-public-contents .km423-catalog-count{
  width:min(1500px,calc(100% - 48px))!important;
  margin:18px auto 12px!important;
}
body.kmmc-public-contents .km429-book-batches{
  display:block!important;
  width:min(1500px,calc(100% - 48px))!important;
  max-width:1500px!important;
  margin:0 auto!important;
  min-width:0!important;
}
body.kmmc-public-contents .km429-book-batch-section{
  display:block!important;
  width:100%!important;
  margin:0 0 30px!important;
}
body.kmmc-public-contents .km429-book-batch.km423-shelf{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:30px 24px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
body.kmmc-public-contents .km429-book-batch>.km423-book{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
}
body.kmmc-public-contents .km429-book-batch-section>.km428-ebook-nav{
  display:none!important;
}

/* Public/member pressed states must always remain readable. */
:is(.kms5,.kmmc-market-app) form[aria-busy="true"] :is(button[type="submit"],input[type="submit"]),
:is(.kms5,.kmmc-market-app) :is(button,.kms5-btn):active,
:is(.kms5,.kmmc-market-app) :is(button,.kms5-btn).is-active{
  background:#173d60!important;
  border-color:#173d60!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-shadow:none!important;
}
:is(.kms5,.kmmc-market-app) form[aria-busy="true"] :is(button[type="submit"],input[type="submit"]) *,
:is(.kms5,.kmmc-market-app) :is(button,.kms5-btn):active *,
:is(.kms5,.kmmc-market-app) :is(button,.kms5-btn).is-active *{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* eBook slider navigation is only visible on mobile. */
.km428-ebook-nav{display:none!important;}

@media(max-width:1023px) and (min-width:781px){
  body.kmmc-public-contents .km429-book-batch.km423-shelf{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:780px){
  /* Same hero as desktop / Experts; only sizes change. */
  .kmmc-v4-contents-page .km430-contents-hero{
    padding:26px 0 24px!important;
  }
  .kmmc-v4-contents-page .km430-contents-hero>.km430-hero-shell{
    width:calc(100% - 28px)!important;
  }
  .kmmc-v4-contents-page .km430-contents-hero h1{font-size:21px!important;}
  .kmmc-v4-contents-page .km430-contents-hero h2{font-size:15px!important;}
  .kmmc-v4-contents-page .km430-contents-hero p{font-size:13px!important;}

  .km428-directory .km428-controls{
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
  }

  /* 1–10 = one horizontal row, 11–20 = the next row. */
  body.kmmc-public-contents .km423-catalog-count{
    width:calc(100% - 28px)!important;
    max-width:390px!important;
    margin:14px auto 12px!important;
  }
  body.kmmc-public-contents .km429-book-batches{
    width:calc(100% - 28px)!important;
    max-width:390px!important;
    margin:0 auto!important;
  }
  body.kmmc-public-contents .km429-book-batch-section{
    margin:0 0 21px!important;
  }
  body.kmmc-public-contents .km429-book-batch.km423-shelf{
    display:flex!important;
    grid-template-columns:none!important;
    align-items:stretch!important;
    gap:0!important;
    width:100%!important;
    max-width:390px!important;
    margin:0 auto!important;
    padding:0!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    scroll-padding-inline:0!important;
    scroll-behavior:smooth!important;
    overscroll-behavior-x:contain!important;
    touch-action:pan-x pan-y pinch-zoom!important;
    scrollbar-width:none!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.kmmc-public-contents .km429-book-batch::-webkit-scrollbar{display:none!important;}
  body.kmmc-public-contents .km429-book-batch>.km423-book{
    flex:0 0 100%!important;
    width:100%!important;
    min-width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:3px 0 5px!important;
    scroll-snap-align:center!important;
    scroll-snap-stop:always!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
  }
  body.kmmc-public-contents .km429-book-batch .km423-cover.km423-cover{
    flex:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:min(72vw,276px)!important;
    max-width:276px!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:auto!important;
    margin:0 auto 15px!important;
    padding:0!important;
    overflow:visible!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  body.kmmc-public-contents .km429-book-batch .km423-cover img{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    max-height:58svh!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
    object-position:center center!important;
    margin:0 auto!important;
    border-radius:4px 10px 10px 4px!important;
    box-shadow:-4px 3px 0 #e1e5eb,0 12px 26px rgba(25,56,89,.10)!important;
  }
  body.kmmc-public-contents .km429-book-batch .km423-cover-placeholder{
    width:min(72vw,276px)!important;
    aspect-ratio:2/3!important;
    margin:0 auto!important;
    border-radius:4px 10px 10px 4px!important;
  }
  body.kmmc-public-contents .km429-book-batch .km423-book-copy.km423-book-copy{
    flex:none!important;
    width:calc(100% - 12px)!important;
    max-width:350px!important;
    align-self:center!important;
    margin:0 auto!important;
    padding:12px 13px 11px!important;
    gap:6px!important;
    border:1px solid #e0e7f0!important;
    border-radius:12px!important;
    background:#fff!important;
    text-align:left!important;
    box-shadow:0 7px 20px rgba(21,51,83,.055)!important;
  }
  body.kmmc-public-contents .km429-book-batch .km423-book-copy h3{
    font-size:13.8px!important;
    line-height:1.45!important;
    min-height:0!important;
  }
  body.kmmc-public-contents .km429-book-batch .km423-book :is(.km423-tags>span,.km423-book-meta,.km423-rating,.km423-rating small,.km423-review-link,.km423-detail-link){font-size:11.8px!important;}
  body.kmmc-public-contents .km429-book-batch .km423-book .km423-book-foot>strong{font-size:14px!important;}

  body.kmmc-public-contents .km429-book-batch-section>.km428-ebook-nav{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:12px!important;
    width:100%!important;
    max-width:390px!important;
    margin:10px auto 0!important;
  }
  .km428-ebook-nav button{
    display:grid!important;
    place-items:center!important;
    width:34px!important;
    height:34px!important;
    padding:0!important;
    border:1px solid #dbe4ee!important;
    border-radius:50%!important;
    background:#fff!important;
    color:#173d60!important;
    font-size:19px!important;
    line-height:1!important;
    cursor:pointer!important;
  }
  .km428-ebook-nav button:active{
    background:#173d60!important;
    border-color:#173d60!important;
    color:#fff!important;
  }
  .km428-ebook-nav button:disabled{opacity:.32!important;cursor:default!important;}
  .km428-ebook-nav output{
    min-width:58px!important;
    text-align:center!important;
    color:#5e7187!important;
    font-size:12px!important;
    line-height:1.4!important;
    font-variant-numeric:tabular-nums!important;
  }
}

/* -------------------------------------------------------------------------
   eBook detail: in-place modal, no page/header reload, safe mobile top area.
   ------------------------------------------------------------------------- */
.kmmc-market-modal.km425-modal.km429-lazy-detail,
.kmmc-market-modal.km425-modal{
  position:fixed!important;
  inset:0!important;
  z-index:999999!important;
}
.km425-book-sheet.km425-sheet.km425-sheet.km425-sheet.km425-sheet .km425-info-card h2{
  font-size:24.2px!important;
}
.km425-book-sheet.km425-sheet.km425-sheet.km425-sheet .km425-price-row strong{
  font-size:22.8px!important;
}
.km429-detail-loading{
  display:grid;
  place-items:center;
  align-content:center;
  gap:12px;
  min-height:280px;
  padding:28px;
  color:#667a90;
  text-align:center;
}
.km429-detail-loading>span{
  width:30px;
  height:30px;
  border:3px solid #dce6f0;
  border-top-color:#244e73;
  border-radius:50%;
  animation:km429spin .7s linear infinite;
}
@keyframes km429spin{to{transform:rotate(360deg)}}

@media(max-width:780px){
  .kmmc-market-modal.km425-modal.km425-modal{
    place-items:start center!important;
    padding:max(10px,env(safe-area-inset-top)) 8px max(10px,env(safe-area-inset-bottom))!important;
    overflow:hidden!important;
  }
  .kmmc-market-modal.km425-modal.km425-modal>.km425-panel.km425-panel{
    width:calc(100vw - 16px)!important;
    max-width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - 20px)!important;
    margin:0!important;
    scroll-padding-top:54px!important;
  }
  .km425-book-sheet.km425-sheet.km425-sheet.km425-sheet{
    padding:18px 14px 16px!important;
  }
  .km425-book-sheet.km425-sheet.km425-sheet .km425-book-hero{gap:14px!important;}
  .km425-book-sheet.km425-sheet.km425-sheet .km425-cover-cell{
    height:clamp(260px,46svh,390px)!important;
    padding:16px!important;
    margin-top:4px!important;
  }
  .km425-book-sheet.km425-sheet.km425-sheet .km425-cover-stage{
    height:100%!important;
    width:auto!important;
    max-width:min(86vw,310px)!important;
    aspect-ratio:auto!important;
  }
  .km425-book-sheet .km425-cover-stage>img{
    width:auto!important;
    height:100%!important;
    max-width:100%!important;
    object-fit:contain!important;
    object-position:center center!important;
  }
  .km425-book-sheet.km425-sheet.km425-sheet.km425-sheet.km425-sheet .km425-info-card h2{
    font-size:18.2px!important;
    line-height:1.35!important;
  }
  .km425-book-sheet.km425-sheet.km425-sheet.km425-sheet .km425-price-row strong{
    font-size:19.8px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .km429-book-batch{scroll-behavior:auto!important;}
  .km429-detail-loading>span{animation:none!important;}
}

/* =====================================================================
   v4.29.1 — SCREENSHOT-VERIFIED CONTENTS MOBILE / DETAIL / EMPTY-GAP FIX
   ===================================================================== */
body.kmmc-public-contents .kmmc-v4-contents-page .km430-contents-hero{
  position:relative!important;
  isolation:isolate!important;
  width:100%!important;
  margin:0!important;
  padding:35px 0 30px!important;
  min-height:0!important;
  background:linear-gradient(118deg,#071d38 0%,#0a294c 61%,#0b355e 100%)!important;
  color:#fff!important;
  overflow:hidden!important;
}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-contents-hero::before{
  content:''!important;position:absolute!important;inset:0!important;pointer-events:none!important;
  background:radial-gradient(circle at 50% 88%,rgba(82,129,176,.22),transparent 35%),linear-gradient(90deg,transparent 0 49.8%,rgba(255,255,255,.035) 49.8% 50.2%,transparent 50.2%)!important;
}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-shell{
  position:relative!important;z-index:1!important;width:min(1500px,calc(100% - 48px))!important;
  margin:0 auto!important;padding:0!important;text-align:left!important;
}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-kicker{
  display:block!important;margin:0 0 9px!important;color:#dfeaf6!important;-webkit-text-fill-color:#dfeaf6!important;
  font-size:12.5px!important;line-height:1.35!important;font-weight:500!important;letter-spacing:.14em!important;
}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-contents-hero h1{
  margin:0 0 9px!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  font-size:27px!important;line-height:1.35!important;font-weight:600!important;letter-spacing:-.02em!important;
}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-contents-hero h2{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;gap:8px!important;
  margin:0!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  font-size:17px!important;line-height:1.5!important;font-weight:600!important;letter-spacing:0!important;
}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-contents-hero h2>span{
  color:#fff!important;-webkit-text-fill-color:#fff!important;font:inherit!important;
}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-red-point{
  display:inline!important;color:#ef3348!important;-webkit-text-fill-color:#ef3348!important;font-size:.72em!important;line-height:1!important;
}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-red-line{
  display:block!important;width:42px!important;height:3px!important;margin:16px 0 0!important;border:0!important;border-radius:99px!important;background:#ef3348!important;
}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-contents-hero p{
  max-width:680px!important;margin:13px 0 0!important;color:#dce6f0!important;-webkit-text-fill-color:#dce6f0!important;
  font-size:14px!important;line-height:1.6!important;font-weight:500!important;
}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-art{
  position:absolute!important;right:10px!important;top:50%!important;transform:translateY(-50%)!important;
  width:210px!important;height:132px!important;opacity:.72!important;pointer-events:none!important;
}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-art>span{
  position:absolute!important;display:block!important;border:1px solid rgba(255,255,255,.24)!important;border-radius:13px!important;
  background:rgba(255,255,255,.035)!important;box-shadow:0 16px 32px rgba(1,13,28,.12)!important;
}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-art>span:nth-child(1){width:120px!important;height:92px!important;left:6px!important;top:25px!important;transform:rotate(-4deg)!important;}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-art>span:nth-child(2){width:102px!important;height:70px!important;right:4px!important;top:8px!important;transform:rotate(4deg)!important;}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-art>span:nth-child(3){width:92px!important;height:58px!important;right:13px!important;bottom:6px!important;transform:rotate(-2deg)!important;}
body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-art>b{
  position:absolute!important;display:block!important;right:28px!important;bottom:24px!important;width:64px!important;height:9px!important;
  border:0!important;border-radius:99px!important;background:#ef3348!important;box-shadow:0 0 0 8px rgba(239,51,72,.08)!important;
}

/* Only the shortcode/widget height may define the public CONTENTS page height. */
body.kmmc-public-contents .kmmc-v4-contents-page,
body.kmmc-public-contents .km429-book-batches,
body.kmmc-public-contents .km429-book-batch-section,
body.kmmc-public-contents .km429-book-batch{
  height:auto!important;min-height:0!important;max-height:none!important;
}
body.kmmc-public-contents .elementor-widget-shortcode:has(.kmmc-v4-contents-page),
body.kmmc-public-contents .elementor-widget-shortcode:has(.kmmc-v4-contents-page)>.elementor-widget-container{
  height:auto!important;min-height:0!important;max-height:none!important;margin-bottom:0!important;padding-bottom:0!important;
}
body.kmmc-public-contents .elementor-element.e-con:has(> .elementor-widget-container > .kmmc-v4-contents-page),
body.kmmc-public-contents .elementor-element.e-con:has(> .elementor-element > .elementor-widget-container > .kmmc-v4-contents-page){
  min-height:0!important;height:auto!important;padding-bottom:0!important;
}

/* eBook detail always begins below the real sticky global header. */
html.km429-detail-open,html.km429-detail-open body{overflow:hidden!important;}
.kmmc-market-modal.km425-modal.km425-modal{
  --kmmc-modal-top:0px;
  position:fixed!important;
  inset:var(--kmmc-modal-top) 0 0 0!important;
  width:100%!important;max-width:100%!important;
  height:calc(100dvh - var(--kmmc-modal-top))!important;
  min-height:0!important;
  z-index:2147481900!important;
  margin:0!important;padding:12px!important;
  place-items:start center!important;
  overflow:hidden!important;
}
.kmmc-market-modal.km425-modal.km425-modal>.km425-panel.km425-panel{
  width:min(1500px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important;
  max-height:calc(100dvh - var(--kmmc-modal-top) - 24px)!important;
  margin:0 auto!important;overflow:auto!important;overscroll-behavior:contain!important;
  scroll-padding-top:52px!important;
}

@media(max-width:780px){
  body.kmmc-public-contents .kmmc-v4-contents-page .km430-contents-hero{
    min-height:318px!important;padding:30px 0 20px!important;
  }
  body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-shell{
    width:calc(100% - 28px)!important;min-height:268px!important;text-align:center!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
  }
  body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-kicker{
    margin:0 0 10px!important;font-size:12.8px!important;line-height:1.35!important;letter-spacing:.12em!important;
  }
  body.kmmc-public-contents .kmmc-v4-contents-page .km430-contents-hero h1{
    margin:0 0 7px!important;font-size:31px!important;line-height:1.16!important;font-weight:600!important;
  }
  body.kmmc-public-contents .kmmc-v4-contents-page .km430-contents-hero h2{
    justify-content:center!important;gap:6px!important;margin:0!important;font-size:14.5px!important;line-height:1.4!important;
  }
  body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-red-line{
    width:54px!important;height:4px!important;margin:16px auto 0!important;
  }
  body.kmmc-public-contents .kmmc-v4-contents-page .km430-contents-hero p{
    max-width:340px!important;margin:12px auto 0!important;font-size:13px!important;line-height:1.55!important;text-align:center!important;
  }
  body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-art{
    position:relative!important;right:auto!important;top:auto!important;transform:none!important;
    width:190px!important;height:86px!important;margin:12px auto 0!important;opacity:.6!important;
  }
  body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-art>span:nth-child(1){width:102px!important;height:63px!important;left:10px!important;top:16px!important;}
  body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-art>span:nth-child(2){width:85px!important;height:48px!important;right:5px!important;top:3px!important;}
  body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-art>span:nth-child(3){width:80px!important;height:39px!important;right:12px!important;bottom:2px!important;}
  body.kmmc-public-contents .kmmc-v4-contents-page .km430-hero-art>b{right:23px!important;bottom:16px!important;width:54px!important;height:7px!important;}

  body.kmmc-public-contents .km423-catalog-count{margin-top:12px!important;}
  body.kmmc-public-contents .km429-book-batch-section:last-child{margin-bottom:8px!important;}

  .kmmc-market-modal.km425-modal.km425-modal{padding:8px!important;}
  .kmmc-market-modal.km425-modal.km425-modal>.km425-panel.km425-panel{
    width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;
    max-height:calc(100dvh - var(--kmmc-modal-top) - 16px)!important;border-radius:14px!important;
  }
  .km425-book-sheet.km425-sheet.km425-sheet .km425-cover-cell{
    height:clamp(300px,50svh,430px)!important;min-height:300px!important;
    padding:14px!important;margin-top:0!important;
  }
  .km425-book-sheet.km425-sheet.km425-sheet .km425-cover-stage{
    height:100%!important;width:auto!important;max-width:min(88vw,330px)!important;aspect-ratio:auto!important;
  }
  .km425-book-sheet .km425-cover-stage>img{
    display:block!important;width:auto!important;height:100%!important;max-width:100%!important;max-height:100%!important;
    object-fit:contain!important;object-position:center center!important;margin:0 auto!important;
  }
}

/* Collapse page-builder viewport/min-height wrappers only on the canonical Contents page. */
body.kmmc-public-contents :is(main,.site-main,.entry-content,.page-content,.elementor,.elementor-location-single):has(.kmmc-v4-contents-page),
body.kmmc-public-contents .e-con-inner:has(.kmmc-v4-contents-page){
  min-height:0!important;height:auto!important;max-height:none!important;
}
body.kmmc-public-contents :is(main,.site-main,.entry-content,.page-content):has(.kmmc-v4-contents-page){padding-bottom:0!important;margin-bottom:0!important;}


/* v4.29.2 — CONTENTS ONLY Elementor/front-end parity guard. */
#km-contents-root{position:relative!important;inset:auto!important;transform:none!important;margin:0!important;padding:0!important;min-height:0!important;height:auto!important}
#km-contents-root .km430-contents-hero{position:relative!important;inset:auto!important;transform:none!important}


/* v4.29.3 — CONTENTS ONLY bottom-gap hard stop. */
body.kmmc-public-contents :is(.elementor-element,.e-con,.e-con-inner,.elementor-widget-wrap,.elementor-container):has(#km-contents-root){height:auto!important;min-height:0!important;max-height:none!important;flex-grow:0!important;flex-basis:auto!important;margin-bottom:0!important;padding-bottom:0!important;}
body.kmmc-public-contents #km-contents-root{margin-bottom:0!important;padding-bottom:0!important;}
body.kmmc-public-contents #km-contents-root>.kmmc-v4-pagination:last-child,body.kmmc-public-contents #km-contents-root>.km429-book-batches:last-child{margin-bottom:0!important;padding-bottom:0!important;}
