/* Knowledge index and the exact detail pages listed in its three inventories. */
.c.c-knowledge-mobile.c-tpl-knowledge .shell{display:block}
/* Keep legacy body-level blocks and script-wrapped tables in the reading column. */
.c.c-knowledge-mobile.c-reading>:is(p,h2,h3,ul,ol,table,.summary,.warning,.review,.cta,.breadcrumb,.language-switcher,.c-article-table-scroll){box-sizing:border-box;width:min(680px,calc(100% - 40px));max-width:680px;margin-inline:auto!important}
.c.c-knowledge-mobile .c-article-table-scroll{max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
.c.c-knowledge-mobile .c-article-table-scroll table{width:100%;min-width:var(--c-table-min,0)}
/* Imported WeChat pages use one centered column at every screen size. */
.c.c-knowledge-mobile.c-tpl-archive main#main{display:block;grid-template-columns:none;width:100%;max-width:760px;margin-inline:auto;padding:0 24px 64px}
.c.c-knowledge-mobile.c-tpl-archive article.article-shell{width:100%;max-width:680px;margin:40px auto!important;padding:0}
.c.c-knowledge-mobile.c-tpl-archive .wechat-original{width:100%;max-width:100%;margin-inline:0!important}
.c.c-knowledge-mobile.c-tpl-archive aside.side{display:block;position:static;width:100%;max-width:680px;margin:40px auto 0}
@media (max-width:760px){
  .c.c-knowledge-mobile.c-tpl-archive article.article-shell{width:100%}
  .c.c-knowledge-mobile.c-tpl-archive .wechat-original{width:100%;margin-inline:0!important}
  .c.c-knowledge-mobile :is(h1,h2,h3,h4,.ac-title){overflow-wrap:anywhere;hyphens:auto}
  .c.c-knowledge-mobile h3.sub-h{flex-wrap:wrap;gap:8px 16px}
  .c.c-knowledge-mobile h3.sub-h .tag{max-width:100%}
  .c.c-knowledge-mobile :is(.ac-meta,.ac-footer){flex-wrap:wrap;gap:8px}
  .c.c-knowledge-mobile .c-toc-m{scroll-margin-top:var(--c-hdr)}
  .c.c-knowledge-mobile .c-toc-m nav{max-height:min(52dvh,calc(100dvh - var(--c-hdr) - 80px - env(safe-area-inset-bottom)))}
  .c.c-knowledge-mobile .c-article-table-scroll{display:block;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}
  .c.c-knowledge-mobile .c-article-table-scroll:focus-visible{outline:2px solid var(--c-gold-ink);outline-offset:2px}
  .c.c-knowledge-mobile .c-article-table-scroll table{width:100%;min-width:var(--c-table-min);table-layout:fixed}
  .c.c-knowledge-mobile .c-article-table-scroll :is(th,td){overflow-wrap:anywhere;hyphens:auto}
  /* Some article-specific min-width rules survived the original card adapter. */
  .c.c-knowledge-mobile table[data-c-cards]{min-width:0!important;max-width:100%;table-layout:auto}
  .c.c-knowledge-mobile table[data-c-cards] :is(tbody,tr,td){min-width:0;max-width:100%;overflow-wrap:anywhere}
}
@media (max-width:1080px){
  .c.c-knowledge-mobile .c-totop{display:none}
  .c.c-knowledge-mobile .share-float{position:static;inset:auto;max-width:680px;margin:24px auto;padding:0 20px}
  .c.c-knowledge-mobile .share-trigger{max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
@media (max-width:720px){
  .c.c-knowledge-mobile .c-totop{display:none}
  .c.c-knowledge-mobile .c-mbar{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);height:auto;min-height:54px;bottom:calc(12px + env(safe-area-inset-bottom))}
  .c.c-knowledge-mobile .c-mbar a{min-width:0;min-height:54px;padding:10px 12px;line-height:1.35;letter-spacing:.04em;text-align:center;overflow-wrap:anywhere}
  .c.c-knowledge-mobile .c-mbar.is-hidden{transform:translateY(calc(100% + 16px + env(safe-area-inset-bottom)))}
  .c.c-knowledge-mobile:is(.c-reading-inline-consult,:has(.c-toc-m[open])) .c-mbar{visibility:hidden;pointer-events:none}
  .c.c-knowledge-mobile .c-ftr{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
  .c.c-knowledge-mobile [data-consult-action]{scroll-margin-block:calc(var(--c-hdr) + 80px) 90px}
}
@media (max-width:720px),(max-height:600px){
  .c.c-knowledge-mobile .fs-consult-panel{padding:0}
  .c.c-knowledge-mobile .fs-consult-close{position:sticky;top:0;right:auto;display:flex;align-items:center;justify-content:flex-end;width:100%;height:56px;min-height:56px;margin:0;padding:0 16px;border-radius:0;border-bottom:1px solid #eef0f3;font:400 26px/1 var(--c-sans);color:#13284a;background:#fff;z-index:2}
  .c.c-knowledge-mobile .fs-consult-close:focus-visible{outline:2px solid var(--c-gold-ink);outline-offset:-4px}
  .c.c-knowledge-mobile .fs-consult-close:active{transform:none}
}
