/* 柴不多: mobile refinements, no framework dependency. */
body.mobile-refined{padding-bottom:env(safe-area-inset-bottom,0px)}
body.mobile-refined :is(.shop-card,.family-story,.overview-card,.knowledge-type,.post-card){border-radius:16px;overflow:hidden}
body.mobile-refined .shop-card{border-color:#e3e2d8;background:#fffefa;box-shadow:0 6px 20px #28332506}
body.mobile-refined .shop-card h2{font-size:var(--type-subheading,20px)!important;line-height:1.5;margin:8px 0}
body.mobile-refined .shop-card :is(h2,h3) a{text-decoration:none;display:block;padding-block:3px}
body.mobile-refined .shop-card :is(h2,h3) a:hover{text-decoration:underline;text-underline-offset:4px}
body.mobile-refined :is(a,button,input,select,textarea):focus-visible{outline:2px solid #50634a;outline-offset:3px}
body.mobile-refined .shop-video-caption{background:#f2f1e9}
body.mobile-refined :is(.mineral-carousel,.observation-photo,.atlas-hero,.founder-photo){border-radius:16px;overflow:hidden}
body.mobile-refined .login-prompt{border-radius:14px}
body.mobile-refined .topic-tabs{scrollbar-width:thin}
body.mobile-refined .topic-tabs button{min-height:48px}
body.mobile-refined .site-footer{padding-bottom:max(28px,env(safe-area-inset-bottom,0px))}
@media(max-width:900px){
 .site-nav.site-nav{padding-top:max(10px,env(safe-area-inset-top,0px));padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
 .mobile-refined .wrap{padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
 .site-nav.site-nav .site-nav-links>a{text-align:center;display:flex;justify-content:center;align-items:center;min-height:48px}
}
@media(max-width:700px){
 .mobile-refined .shop-grid{gap:24px}
 .mobile-refined .shop-card-body{padding:18px}
 .mobile-refined .shop-card-bottom{margin-top:14px}
 .mobile-refined .knowledge-overview{margin-bottom:18px}
 .mobile-refined .knowledge-overview .overview-card{padding:14px;min-height:0}
 .mobile-refined .knowledge-overview .overview-card h2{margin:8px 0 4px}
 .mobile-refined .overview-note{margin-top:12px}
 .mobile-refined .topic-tabs{margin-bottom:22px}
 .mobile-refined .topic-tabs button{flex:1 1 0;min-width:0;padding-inline:8px}
 .mobile-refined :is(.shop-detail-hero .shop-video-shell){border-radius:14px;overflow:hidden}
 .mobile-refined .topic-reader{width:calc(100% - 16px);max-height:calc(100dvh - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-radius:16px}
 .mobile-refined .topic-reader-header{gap:12px}
 .mobile-refined .topic-reader-header button{min-height:44px;min-width:52px;flex-shrink:0}
 .mobile-refined .topic-reader-body{padding:18px}
 .mobile-refined .post-card{padding:18px}
 .mobile-refined .post-content{overflow-wrap:anywhere}
 .mobile-refined .post-image{max-width:100%;height:auto}
 .mobile-refined :is(input,select,textarea){font-size:16px!important}
 .mobile-refined .breadcrumb{flex-wrap:wrap;row-gap:4px}
}
@media(max-width:360px){
 .site-nav.site-nav{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
 .mobile-refined .wrap{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
 .mobile-refined .topic-tabs button{font-size:14px!important;padding-inline:5px}
 .mobile-refined .knowledge-overview .overview-card{padding:12px}
}
