/* 4.23.2: isolated detail layout. No changes to catalog, invoice or membership screens. */
.km425-sheet.km425-sheet.km425-sheet.km425-sheet {
  --km425-copy:13.8px;--kmmc-copy-size:13.8px;--kmmc-help-size:13.8px;--kmmc-font-floor:13.8px;
  --km425-navy:#123252;--km425-red:#bd3549;--km425-text:#4d6279;--km425-line:#dce5ef;
  --km425-hero-height:clamp(340px,30vw,420px);
  display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:22px!important;box-sizing:border-box!important;
  color:var(--km425-text);background:#fff;font:500 var(--km425-copy)/1.65 'KMiraclePaperlogy5','Paperlogy5',Arial,sans-serif;
  overflow-wrap:break-word;word-break:normal;container-type:inline-size;container-name:km425-details;
}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet *,
.km425-sheet.km425-sheet.km425-sheet.km425-sheet *::before,
.km425-sheet.km425-sheet.km425-sheet.km425-sheet *::after{box-sizing:border-box;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet :is(section,article,div,header,figure,dl,dd){min-width:0;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet :is(p,dt,dd,li,a,label,small,button,input,span){font-size:var(--km425-copy)!important;line-height:1.65!important;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet :is(p,dt,dd){margin:0;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet :is(h2,h3,h4){color:var(--km425-navy);font-weight:600;letter-spacing:-.025em;line-height:1.4!important;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet h2{font-size:26.8px!important;margin:6px 0 16px!important;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet h3{font-size:16.8px!important;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet h4{font-size:14.8px!important;margin:0 0 9px;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet a{color:#214f7c;text-decoration:none;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet :focus-visible{outline:2px solid #4579a4;outline-offset:3px;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet .km425-kicker{display:block;color:#54718e;letter-spacing:.075em;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet .km425-muted{color:#6c7c8d;font-size:var(--km425-copy)!important;margin-top:12px;}
/* Modal shell: actual viewport bounds, not the width of an Elementor parent. */
.kmmc-market-modal.km425-modal.km425-modal{inset:0!important;width:100%!important;max-width:100%!important;height:100%!important;margin:0!important;padding:16px!important;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);place-items:center;}
.kmmc-market-modal.km425-modal.km425-modal[hidden]{display:none!important;}
.kmmc-market-modal.km425-modal.km425-modal>.km425-panel.km425-panel{width:min(1500px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;min-width:0!important;height:auto!important;max-height:calc(100vh - 32px)!important;max-height:calc(100dvh - 32px)!important;margin:0!important;padding:0!important;border:1px solid #dce5ef!important;border-radius:18px!important;background:#fff!important;overflow:auto!important;overscroll-behavior:contain;box-shadow:0 24px 90px #102a5033;position:relative;}
.km425-toolbar.km425-toolbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:8px 18px;border-bottom:1px solid #e8edf3;background:#fffffff5;color:#6a8097;font:500 13.8px/1.5 'KMiraclePaperlogy5','Paperlogy5',Arial,sans-serif;backdrop-filter:blur(8px);}
.km425-toolbar .km425-close.km425-close.km425-close{position:static!important;inset:auto!important;display:grid;place-items:center;flex:0 0 34px;width:34px!important;height:34px!important;min-width:34px;min-height:34px;margin:0!important;padding:0!important;border:1px solid #dce5ef!important;border-radius:50%;background:#fff!important;color:#163a62!important;font-size:23px!important;line-height:1!important;cursor:pointer;}
/* The cover controls desktop height; long basic data scrolls inside its equal-height card. */
.km425-sheet.km425-sheet .km425-book-hero{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px;align-items:start;margin:0;padding:0;}
.km425-cover-cell.km425-cover-cell{display:flex;align-items:center;justify-content:center;height:var(--km425-hero-height);background:#f7f9fc;border:1px solid var(--km425-line);border-radius:15px;}
.km425-sheet.km425-sheet .km425-cover-stage{position:relative;display:flex;align-items:center;justify-content:center;flex:none;height:100%;width:auto;max-width:calc(100% - 24px);aspect-ratio:2/3;margin:0;padding:0;}
.km425-cover-stage>img{display:block;height:100%;width:100%;max-width:100%;object-fit:contain;object-position:center;border-radius:4px;box-shadow:0 10px 24px #122d4c1a;}
.km425-cover-placeholder{display:flex;align-items:center;justify-content:center;text-align:center;width:100%;height:100%;background:#183b48;color:#fff;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet .km425-isbn{position:absolute;right:8px;top:10px;padding:3px 8px;border-radius:6px;background:#123252e8;color:#fff;font-size:var(--km425-copy)!important;line-height:1.4!important;box-shadow:0 2px 7px #112f5220;}
.km425-sheet.km425-sheet .km425-info-card{display:flex;flex-direction:column;height:var(--km425-hero-height);max-height:var(--km425-hero-height);margin:0;padding:24px 26px;border:1px solid var(--km425-line);border-radius:15px;background:#fff;overflow:auto;scrollbar-width:thin;scrollbar-color:#aabacd #f1f5f9;overscroll-behavior:auto;}
.km425-sheet.km425-sheet .km425-info-card>*{flex-shrink:0;}
.km425-sheet.km425-sheet .km425-info-card h2{overflow-wrap:anywhere;}
.km425-sheet.km425-sheet .km425-inline-facts{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);gap:14px;margin:0 0 18px;padding:14px 0;border-top:1px solid #e7edf4;border-bottom:1px solid #e7edf4;}
.km425-inline-facts dt{color:#718499;margin-bottom:5px!important;}
.km425-inline-facts dd{color:#173d64;overflow-wrap:anywhere;}
.km425-price-row.km425-price-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:auto;padding:13px 16px;background:#f5f8fc;border-radius:10px;border-left:2px solid var(--km425-red);}
.km425-price-row>div>span{display:block;color:#627c96;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet .km425-price-row strong{display:block;font-size:22.8px!important;line-height:1.35!important;color:var(--km425-navy);white-space:normal;overflow-wrap:anywhere;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet :is(.km425-button,.km425-access>a,.km425-purchase-cta>a){display:inline-flex;justify-content:center;align-items:center;gap:6px;max-width:100%;min-height:42px;margin:0;padding:10px 17px;border:1px solid #153858;border-radius:9px;background:#153858;color:#fff!important;font-size:var(--km425-copy)!important;line-height:1.4!important;white-space:normal;overflow-wrap:anywhere;cursor:pointer;text-align:center;}
.km425-sheet.km425-sheet .km425-access{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.km425-sheet.km425-sheet .km425-access-note{margin:11px 0 0;color:#6f8195;}
/* Fixed semantic pairs: short details/download, long intro/contents, audience/highlights. */
.km425-deck.km425-deck{display:block;min-width:0;margin-top:22px;}
.km425-deck-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;color:#72869a;letter-spacing:.065em;}
.km425-mobile-hint{display:none;}
.km425-sheet.km425-sheet .km425-deck-track{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;gap:16px;align-items:stretch;width:100%;max-width:100%;min-width:0;margin:0;padding:0;border:0;}
.km425-sheet.km425-sheet .km425-box{display:flex;flex-direction:column;position:relative;grid-area:auto;align-self:stretch;height:auto;min-width:0;min-height:0;max-width:100%;margin:0;padding:18px;border:1px solid var(--km425-line);border-radius:13px;background:#fff;box-shadow:0 6px 20px #16344f04;}
.km425-sheet.km425-sheet .km425-box.km425-span-all{grid-column:1/-1;}
.km425-sheet.km425-sheet .km425-box>h3{flex:none;display:block;position:static;margin:0 0 12px!important;padding:0 0 9px;border-bottom:1px solid #edf1f5;}
.km425-box>h3::before{content:'';display:inline-block;width:3px;height:12px;margin-right:8px;border-radius:1px;background:var(--km425-red);}
.km425-sheet.km425-sheet .km425-box-body{position:static;min-height:0;max-height:330px;overflow:auto;scrollbar-width:thin;scrollbar-color:#a8b9cb #f2f5f9;overflow-wrap:anywhere;padding-right:5px;flex:1;}
.km425-box[data-km425-size=short]>.km425-box-body{max-height:210px;}
.km425-box[data-km425-size=medium]>.km425-box-body{max-height:250px;}
.km425-sheet.km425-sheet .km425-box-body :is(p,li,dd){white-space:normal;word-break:normal;overflow-wrap:anywhere;}
.km425-sheet.km425-sheet .km425-box-body p+p{margin-top:9px;}
.km425-sheet.km425-sheet .km425-box-body img{max-width:100%;height:auto;}
.km425-sheet.km425-sheet .km425-box-body :is(video,iframe,table){max-width:100%;}
.km425-data-list{display:block;margin:0;}
.km425-data-list>div{display:grid;grid-template-columns:104px minmax(0,1fr);gap:14px;padding:7px 0;border-bottom:1px solid #f0f3f7;}
.km425-data-list>div:last-child{border-bottom:0;}
.km425-data-list dt{color:#76889c;}.km425-data-list dd{color:#284a6d;overflow-wrap:anywhere;}
.km425-sheet.km425-sheet .km425-lines{margin:0;padding:0 0 0 18px;}
.km425-sheet.km425-sheet .km425-lines li{margin:0 0 9px;padding:0 0 0 2px;}
.km425-lines li::marker{color:#9b4653;}
.km425-deck-nav[hidden]{display:none!important;}
.km425-sheet.km425-sheet .km425-deck-nav{display:none;}
.km425-additional:empty{display:none;}
/* Existing review and same-author APIs are unchanged. Only local sizes are reduced. */
.km425-sheet.km425-sheet.km425-sheet.km425-sheet .km423-author,
.km425-sheet.km425-sheet.km425-sheet.km425-sheet .km423-public-reviews{margin-top:20px;padding:18px;border:1px solid var(--km425-line);border-radius:13px;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet :is(.km423-author,.km423-public-reviews) :is(p,span,small,a,button,li){font-size:var(--km425-copy)!important;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet :is(.km423-author,.km423-public-reviews) h3{font-size:16.8px!important;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet .km423-author .km423-book-copy h3{font-size:14.8px!important;}
/* Profile header and details use the same card system. Public card/search markup is untouched. */
dialog.kms5.kms421-profile-dialog.km425-profile-dialog{height:fit-content!important;min-height:0!important;width:min(1500px,calc(100% - 32px))!important;max-width:calc(100% - 32px)!important;max-height:calc(100dvh - 32px)!important;border-radius:18px!important;}
dialog.kms5.kms421-profile-dialog.km425-profile-dialog .kms421-dialog-body{padding:0!important;}
.km425-sheet.km425-sheet .km425-profile-hero{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;align-items:start;}
.km425-portrait-cell{display:flex;justify-content:center;align-items:center;height:210px;background:#f6f9fc;border:1px solid var(--km425-line);border-radius:13px;}
.km425-sheet.km425-sheet .km425-portrait{height:100%;width:auto;aspect-ratio:4/5;margin:0;padding:0;}
.km425-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 20%;border-radius:4px;}
.km425-portrait .kms421-no-photo{min-height:0!important;height:100%;}
.km425-profile-info{height:210px;overflow:auto;scrollbar-width:thin;padding:17px 21px;border:1px solid var(--km425-line);border-radius:13px;background:#fff;}
.km425-sheet.km425-sheet.km425-sheet.km425-sheet .km425-profile-info h2{font-size:19.8px!important;margin:3px 0 4px!important;}
.km425-name-en{color:#778ba0;margin:0 0 10px!important;}
.km425-profile-facts{display:grid;grid-template-columns:1.2fr .9fr .9fr;gap:10px;margin:13px 0 0;}
.km425-profile-facts>div{padding:9px 11px;border:1px solid #e4eaf1;border-radius:8px;background:#f8fafc;}
.km425-profile-facts dt{color:#788c9e;margin-bottom:4px!important;}
.km425-profile-facts dd{color:#284766;overflow-wrap:anywhere;}
.km425-tags{display:flex;flex-wrap:wrap;gap:7px;}
.km425-tags>span{display:block;max-width:100%;padding:4px 10px;border:1px solid #dfe7ef;border-radius:16px;background:#f6f9fc;color:#3a5a7b;overflow-wrap:anywhere;}
@media(max-width:900px){
 .km425-sheet.km425-sheet .km425-profile-hero{grid-template-columns:170px minmax(0,1fr);gap:16px;}
 .km425-profile-facts{grid-template-columns:1fr;}
}
@media(max-width:780px){
 .km425-sheet.km425-sheet.km425-sheet.km425-sheet{--km425-copy:13px;--kmmc-copy-size:13px;--kmmc-font-floor:13px;--kmmc-help-size:13px;padding:14px!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 - 16px)!important;border-radius:14px!important;}
 .km425-toolbar.km425-toolbar{padding:6px 12px;font-size:13px;}
 .km425-sheet.km425-sheet .km425-book-hero{grid-template-columns:minmax(0,1fr)!important;gap:12px;}
 .km425-cover-cell.km425-cover-cell{height:clamp(175px,29svh,240px);padding:0;border-radius:11px;}
 .km425-sheet.km425-sheet .km425-info-card{height:auto;max-height:none;overflow:visible;padding:15px;border-radius:11px;}
 .km425-sheet.km425-sheet.km425-sheet.km425-sheet .km425-info-card h2{font-size:20.8px!important;margin:3px 0 10px!important;line-height:1.35!important;}
 .km425-sheet.km425-sheet .km425-inline-facts{margin:0 0 10px;padding:9px 0;gap:10px;}
 .km425-price-row.km425-price-row{padding:10px 12px;gap:10px;}
 .km425-sheet.km425-sheet.km425-sheet.km425-sheet .km425-price-row strong{font-size:19.8px!important;}
 .km425-sheet.km425-sheet.km425-sheet.km425-sheet :is(.km425-button,.km425-purchase-cta>a){min-height:40px;padding:9px 12px;}
 .km425-sheet.km425-sheet .km425-access-note{margin-top:8px;}
 .km425-deck.km425-deck{margin-top:17px;}
 .km425-deck-heading{margin-bottom:9px;gap:8px;letter-spacing:.025em;flex-wrap:wrap;}
 .km425-mobile-hint{display:inline;color:#8a7780;}
 .km425-sheet.km425-sheet .km425-deck-track{display:flex;gap:12px;align-items:flex-start;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#9cafc4 #edf2f7;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom;padding:0 0 10px;}
 .km425-sheet.km425-sheet .km425-box{flex:0 0 100%;align-self:flex-start!important;width:100%;height:auto!important;max-width:100%;padding:15px;scroll-snap-align:start;scroll-snap-stop:always;}
 .km425-sheet.km425-sheet .km425-box-body{max-height:min(42svh,320px);}
 .km425-sheet.km425-sheet .km425-box>h3{font-size:15.8px!important;}
 .km425-sheet.km425-sheet .km425-deck-nav{display:flex;align-items:center;gap:10px;margin:10px 0 0;}
 .km425-deck-nav>button{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;min-width:36px;padding:0;border:1px solid #dbe4ee;border-radius:50%;background:#fff;color:#254d73;cursor:pointer;}
 .km425-deck-nav>button:disabled{opacity:.4;cursor:default;}
 .km425-scroll-control{flex:1;min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:1px 9px;align-items:center;padding:4px 10px;background:#f7f9fc;border-radius:10px;}
 .km425-sheet.km425-sheet.km425-sheet.km425-sheet input[data-km425-range]{display:block!important;width:100%!important;min-width:0!important;height:20px!important;min-height:20px!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;accent-color:#315b83;background:transparent;cursor:ew-resize;}
 .km425-sheet.km425-sheet.km425-sheet.km425-sheet .km425-scroll-help{grid-column:1/-1;text-align:center;font-size:13px!important;color:#7f90a3;}
 .km425-sheet.km425-sheet.km425-sheet.km425-sheet :is(.km423-author,.km423-public-reviews){padding:14px;margin-top:18px;}
 dialog.kms5.kms421-profile-dialog.km425-profile-dialog{width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important;max-height:calc(100dvh - 16px)!important;}
 .km425-sheet.km425-sheet .km425-profile-hero{grid-template-columns:1fr;gap:12px;}
 .km425-portrait-cell{height:170px;}
 .km425-profile-info{height:auto;max-height:none;overflow:visible;padding:15px;}
 .km425-profile-facts{grid-template-columns:1fr;gap:7px;}
 .km425-profile-facts>div{display:grid;grid-template-columns:95px minmax(0,1fr);gap:8px;padding:8px 10px;}
 .km425-profile-facts dt{margin-bottom:0!important;}
 .km425-sheet.km425-sheet.km425-sheet.km425-sheet .km425-profile-info h2{font-size:20.8px!important;}
}
@media(prefers-reduced-motion:reduce){.km425-deck-track{scroll-behavior:auto!important;}}
