/* Shared visual frame for real WordPress subpages, mobile only */
@media screen and (max-width:899px){
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home){background:#080c0e!important;color:#f4f4f4!important;padding-top:72px!important;padding-bottom:calc(68px + env(safe-area-inset-bottom))!important;min-width:0!important;overflow-x:clip!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home)>header,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home)>.chg-mobile-bottom-nav,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home)>footer{display:none!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home)>#shadow{background:#080c0e!important;width:100%!important;max-width:100%!important;min-height:60vh!important;padding:0!important;margin:0 auto!important;color:#f4f4f4!important;box-shadow:none!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container{background:#10171b!important;color:#f4f4f4!important;border:1px solid #78400e!important;border-radius:9px!important;padding:14px!important;margin:12px auto 18px!important;width:calc(100% - 20px)!important;max-width:820px!important;box-sizing:border-box!important;min-width:0!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container h1{color:#fff!important;font-size:clamp(22px,6vw,30px)!important;border-bottom:2px solid #ff7900!important;padding:0 0 10px!important;margin:0 0 15px!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container h2,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container h3,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container h4{color:#fff!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container p,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container li,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container span{color:#eee}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container a{color:#ff922b!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container img{max-width:100%;height:auto}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container article{background:transparent!important;color:#fff!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container table{max-width:100%;display:block;overflow-x:auto}
#chgm26-inner-ui{display:block;position:relative;z-index:999991;font-family:Arial,Helvetica,sans-serif}
#chgm26-inner-ui *{box-sizing:border-box}
#chgm26-inner-ui .m26-inner-header{position:fixed;z-index:999994;top:0;left:0;right:0;width:100%;height:72px;background:#0b0e10;border-bottom:2px solid #ff7900;display:flex;align-items:center;padding:7px 12px;gap:12px;box-shadow:0 2px 12px #000a}
#chgm26-inner-ui .m26-inner-brand{flex:1;display:flex;align-items:center;gap:9px;min-width:0;text-decoration:none;color:#fff!important}
#chgm26-inner-ui .m26-inner-brand img{width:45px;height:45px;object-fit:contain;flex:none}
#chgm26-inner-ui .m26-inner-brand strong{font-size:19px;line-height:1.05;display:block;color:#fff;font-weight:900;white-space:nowrap;letter-spacing:-.35px}
#chgm26-inner-ui .m26-inner-brand em{color:#ff7900;font-style:normal}
#chgm26-inner-ui .m26-inner-brand small{font-size:8px;font-weight:800;white-space:nowrap;display:block;color:#fff}
#chgm26-inner-ui .m26-inner-search,#chgm26-inner-ui .m26-inner-toggle{display:grid;place-items:center;width:33px;height:40px;border:0;background:none;color:#fff!important;padding:0;flex:none;cursor:pointer}
#chgm26-inner-ui .m26-inner-menu{position:fixed;z-index:999993;top:72px;left:0;right:0;background:#101518;border-bottom:2px solid #ff7900;box-shadow:0 12px 26px #000c;padding:12px 14px 17px;max-height:calc(100dvh - 143px);overflow-y:auto;overscroll-behavior:contain;color:#fff}
#chgm26-inner-ui .m26-inner-menu[hidden]{display:none!important}
#chgm26-inner-ui .m26-inner-menu-title{display:flex;align-items:center;justify-content:space-between;font-size:16px;font-weight:900;padding-bottom:9px;border-bottom:1px solid #4b321c}
#chgm26-inner-ui .m26-inner-close{background:none;border:0;color:#fff;font-size:22px;padding:2px 9px;cursor:pointer}
#chgm26-inner-ui .m26-inner-quick{display:flex;flex-wrap:wrap;gap:6px;padding:11px 0 12px;border-bottom:1px solid #52402c}
#chgm26-inner-ui .m26-inner-quick a{border:1px solid #a55312;border-radius:16px;background:#22282b;color:#fff!important;text-decoration:none;font-size:11px;font-weight:800;padding:8px 10px;min-height:36px}
#chgm26-inner-ui .m26-inner-menu-caption{color:#ff870b;font-size:11px;font-weight:900;letter-spacing:.5px;margin:12px 0 9px}
#chgm26-inner-ui .m26-menu-sections{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
#chgm26-inner-ui .m26-menu-group{display:block;margin:0;border:1px solid #89430d;border-radius:8px;overflow:hidden;background:linear-gradient(95deg,#22292d,#101517);color:#fff}
#chgm26-inner-ui .m26-menu-group summary{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:47px;padding:12px 13px;list-style:none;cursor:pointer;color:#fff!important;font-size:14px;font-weight:900}
#chgm26-inner-ui .m26-menu-group summary>span:first-child{color:#fff!important}
#chgm26-inner-ui .m26-menu-group summary::-webkit-details-marker{display:none}
#chgm26-inner-ui .m26-menu-chevron{color:#ff8300!important;font-size:23px;line-height:16px}
#chgm26-inner-ui .m26-menu-group[open]{border-color:#ff7900}
#chgm26-inner-ui .m26-menu-group[open] .m26-menu-chevron{transform:rotate(180deg)}
#chgm26-inner-ui .m26-menu-sub{padding:3px 9px 10px;border-top:1px solid #49311d;background:#0c1114}
#chgm26-inner-ui .m26-menu-sub a{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:42px;color:#eee!important;text-decoration:none;padding:10px 8px;border-bottom:1px solid #273037;font-size:12px;overflow-wrap:anywhere}
#chgm26-inner-ui .m26-menu-sub a:last-child{border-bottom:0}
#chgm26-inner-ui .m26-menu-sub a span{color:#ff8700}
#chgm26-inner-ui .m26-menu-sub a.m26-menu-parent-link{color:#ff9a32!important;font-weight:900}
#chgm26-inner-ui .m26-menu-single{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:47px;padding:12px 13px;background:linear-gradient(95deg,#22292d,#101517);border:1px solid #89430d;border-radius:8px;color:#fff!important;text-decoration:none;font-size:14px;font-weight:900}
#chgm26-inner-ui .m26-menu-single span:last-child{color:#ff8300}
#chgm26-inner-ui .m26-inner-bottom{position:fixed;z-index:999995;bottom:0;left:0;right:0;width:100%;height:calc(65px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#06090b;border-top:1px solid #333;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));box-shadow:0 -4px 18px #000a}
#chgm26-inner-ui .m26-inner-bottom a{min-width:0;min-height:45px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;text-decoration:none;color:#fff!important;font-size:10px;font-weight:600}
#chgm26-inner-ui .m26-inner-bottom a svg{width:23px;height:23px}
#chgm26-inner-ui .m26-inner-dots{font-size:22px;line-height:22px;letter-spacing:1px}
#chgm26-inner-ui a:focus-visible,#chgm26-inner-ui button:focus-visible,#chgm26-inner-ui summary:focus-visible{outline:2px solid white;outline-offset:-2px}
}
@media screen and (min-width:900px){#chgm26-inner-ui{display:none!important}}
@media screen and (max-width:359px){#chgm26-inner-ui .m26-inner-brand strong{font-size:16px}#chgm26-inner-ui .m26-inner-brand small{font-size:7px}#chgm26-inner-ui .m26-inner-header{gap:5px;padding:6px 8px}}

/* v0.1.1 — inherited inner theme collision corrections */
@media screen and (max-width:899px){
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #shadow>div{background:#080c0e!important;color:#f4f4f4!important;box-shadow:none!important}
#chgm26-inner-ui .m26-inner-header svg,
#chgm26-inner-ui .m26-inner-search svg,
#chgm26-inner-ui .m26-inner-toggle svg,
#chgm26-inner-ui .m26-inner-bottom a svg{color:#fff!important;stroke:#fff!important}
#chgm26-inner-ui .m26-inner-bottom a svg[fill="currentColor"]{fill:#fff!important;stroke:none!important}
#chgm26-inner-ui .m26-inner-bottom{left:0!important;right:0!important;width:100%!important;margin:0!important}
#chgm26-inner-ui .m26-inner-bottom a,#chgm26-inner-ui .m26-inner-bottom a span{color:#fff!important}
#chgm26-inner-ui .m26-inner-dots{color:#fff!important}
#chgm26-inner-ui .m26-inner-toggle{color:#fff!important}
}

/* v0.1.2 — restore inherited content contrast without breaking light archival cards */
@media screen and (max-width:899px){
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container strong,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container b,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container em{color:inherit!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .article-long p,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .article-long li{color:inherit}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container table td,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container table th{color:#f1f1f1}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container table tr:nth-child(even){background:#192229!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container table tr:nth-child(odd){background:#11191f!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container table tr[style*="background"]{background:#243039!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container table td[style*="background"]{color:#151515!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .gallery h2,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .gallery h3{color:#fff!important}
}

/* v0.1.3 — explicit dark-card contrast; preserve white gallery blocks */
@media screen and (max-width:899px){
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .article-long p,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .article-long li{color:#f0f0f0!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .chg-core-hub-intro,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .chg-core-hub-intro p,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .chg-core-hub-intro li,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .ngg-album,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .ngg-album p{color:#333!important}
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .chg-core-hub-intro strong,
html:not(.chgdt-requested-desktop) body.chgdt-theme:not(.home) #post-container .ngg-album strong{color:inherit!important}
}
