/* Shared legal-footer hierarchy also applies to desktop; configured text/links stay intact. */
body.docwk-front :is(.site-footer,.gov-footer){box-sizing:border-box;color:var(--ui-muted,var(--el-text-color-secondary));font-size:12px;line-height:1.85;text-align:center;overflow-wrap:anywhere;text-wrap:pretty;border-top:1px solid var(--el-border-color-lighter,#f0f0f0);margin-top:30px;padding:24px 0 8px}
body.docwk-front :is(.docwk-footer-copy,.gf-copy){max-width:780px;margin-inline:auto;white-space:pre-line}
body.docwk-front :is(.docwk-footer-legal,.gf-beian){display:flex;align-items:center;justify-content:center;flex-wrap:wrap;column-gap:16px;row-gap:4px;margin-top:6px}
body.docwk-front :is(.docwk-footer-legal,.gf-beian) a{color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:4px;max-width:100%;overflow-wrap:anywhere}
body.docwk-front :is(.docwk-footer-legal,.gf-beian) a:hover{color:var(--el-color-primary)}
@media screen and (max-width:1024px), screen and (max-width:1366px) and (hover:none) and (pointer:coarse){
body.docwk-front.docwk-unified-ui :is(.site-footer,.gov-footer){width:auto!important;max-width:100%!important;margin:24px 0 0!important;padding:18px var(--ui-gutter,16px) 20px!important;border-top:1px solid var(--ui-line,#e6ebf2);background:transparent!important;font-size:11px!important;line-height:1.8!important}
body.docwk-front.docwk-unified-ui :is(.docwk-footer-legal,.gf-beian){gap:4px 12px!important;line-height:1.8;min-width:0}
body.docwk-front.docwk-unified-ui .gf-wangan img{width:14px;height:14px;flex:none}
body.docwk-front.docwk-unified-ui .uc-shell{box-sizing:border-box;padding-bottom:calc(var(--docwk-bottom-height,74px) + 20px)!important;min-height:100dvh}
body.docwk-front.docwk-unified-ui .uc-footer-wrap{width:100%!important;max-width:100%!important;margin:0!important;box-sizing:border-box}
body.docwk-front.docwk-unified-ui :is(.vip-page,.about-page){padding-bottom:calc(var(--docwk-bottom-height,74px) + 20px)!important}
body.docwk-front.docwk-unified-ui .gov-content{scroll-padding-bottom:calc(var(--docwk-bottom-height,74px) + 20px)}
body.docwk-front.docwk-unified-ui .gov-page>.cats.docwk-categories-ended{visibility:hidden!important;pointer-events:none!important}
body.docwk-front.docwk-unified-ui .tpl-page .cat-section.docwk-category-hidden{display:none!important}
/* Panels attach to the viewport, so the message icon's horizontal position cannot clip them. */
body.docwk-front.docwk-unified-ui :is(.gov-msg-panel,.uc-msg-panel){position:fixed!important;left:auto!important;right:var(--ui-gutter,16px)!important;top:var(--docwk-message-top,68px)!important;bottom:auto!important;width:min(420px,calc(100vw - 2 * var(--ui-gutter,16px)))!important;min-width:0!important;max-width:calc(100vw - 2 * var(--ui-gutter,16px))!important;max-height:calc(100dvh - var(--docwk-message-top,68px) - var(--docwk-bottom-height,74px) - 16px)!important;margin:0!important;box-sizing:border-box;overflow:auto;transform:none!important;z-index:2300}
body.docwk-front.docwk-unified-ui :is(.gov-msg-panel,.uc-msg-panel) .uc-msg-arrow{display:none!important}
body.docwk-front.docwk-unified-ui :is(.gov-msg-panel,.uc-msg-panel) :is(.uc-msg-title,.uc-msg-text){overflow-wrap:anywhere;min-width:0}
body.docwk-front.docwk-unified-ui :is(.vip-page,.about-page) .topbar-brand{display:none!important}
/* Seven columns always fit; date cells no longer have a fixed 50px width. */
body.docwk-front.docwk-unified-ui .uc-sign-card{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px 12px!important;align-items:center!important;padding:18px!important;min-width:0;box-sizing:border-box}
body.docwk-front.docwk-unified-ui .uc-sign-streak{width:auto!important;height:auto!important;border:0!important;min-width:0}
body.docwk-front.docwk-unified-ui .uc-sign-streak-num{font-size:38px!important;color:var(--ui-strong,var(--el-color-primary));font-variant-numeric:tabular-nums}
body.docwk-front.docwk-unified-ui .uc-sign-today{margin:0!important;padding:0!important;min-width:0}
body.docwk-front.docwk-unified-ui .uc-sign-today-desc{font-size:12px!important;line-height:1.7}
body.docwk-front.docwk-unified-ui .uc-sign-days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr));grid-column:1/-1;gap:4px!important;width:100%!important;overflow:visible!important;min-width:0}
body.docwk-front.docwk-unified-ui .uc-sign-day{width:auto!important;min-width:0!important;height:66px!important;border-radius:10px!important;box-sizing:border-box;background:var(--ui-soft,#f2f5fa)}
body.docwk-front.docwk-unified-ui .uc-sign-day.current{outline:1px solid var(--ui-accent,var(--el-color-primary));outline-offset:-1px}
body.docwk-front.docwk-unified-ui .uc-sign-day.signed{color:var(--ui-strong,var(--el-color-primary));background:var(--ui-tint,#edf3ff)}
body.docwk-front.docwk-unified-ui .uc-sign-day-num{font-size:15px!important}
body.docwk-front.docwk-unified-ui .uc-sign-day-week{font-size:11px!important}
body.docwk-front.docwk-unified-ui .uc-sign-action{grid-column:1/-1;width:100%!important;margin:0!important}
body.docwk-front.docwk-unified-ui .uc-sign-btn{width:100%!important;min-height:42px!important;border-radius:12px!important}
/* Library reading: a back control plus full-width search, then one compact information card. */
body.docwk-front.docwk-unified-ui .detail-toolbar{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;padding:12px var(--ui-gutter,16px)!important;align-items:center!important;border:0!important;background:var(--ui-bg,#f5f7fb)!important}
body.docwk-front.docwk-unified-ui .detail-toolbar .breadcrumb{display:block!important;min-width:0;width:42px;height:42px;margin:0!important;padding:0!important}
body.docwk-front.docwk-unified-ui .detail-toolbar .breadcrumb>:not(.bc-back){display:none!important}
body.docwk-front.docwk-unified-ui .detail-toolbar .bc-back{display:flex!important;align-items:center;justify-content:center;width:42px;height:42px;box-sizing:border-box;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface,#fff);color:var(--ui-ink);margin:0!important;font-size:0!important;gap:0!important;cursor:pointer}
body.docwk-front.docwk-unified-ui .detail-toolbar .bc-back .el-icon{font-size:18px!important}
body.docwk-front.docwk-unified-ui .toolbar-search{display:flex!important;align-items:center;gap:8px;width:100%!important;max-width:none!important;height:44px!important;box-sizing:border-box;padding:5px 6px 5px 12px!important;border:1px solid var(--ui-line)!important;border-radius:12px!important;background:var(--ui-surface,#fff)!important}
body.docwk-front.docwk-unified-ui .toolbar-search input{min-width:0;flex:1;width:100%!important;font-size:13px!important;padding:0!important;border:0!important;background:transparent!important}
body.docwk-front.docwk-unified-ui .toolbar-search button{height:32px;padding:0 12px!important;min-width:48px;border:0!important;border-radius:8px!important;background:var(--ui-strong,var(--el-color-primary));color:#fff;font-size:12px!important;flex:none}
body.docwk-front.docwk-unified-ui .detail-scroll{padding:0 var(--ui-gutter,16px) 20px!important;box-sizing:border-box}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card{display:block!important;position:relative;padding:18px!important;margin:0 0 16px!important;border-radius:18px!important;min-height:0!important;background:var(--ui-surface,#fff)}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card>.cover-wrap{display:none!important}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card>.doc-info{display:flex!important;flex-direction:column!important;gap:10px!important;min-width:0!important;padding:0!important;width:100%}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card .doc-head-tags{order:0;display:flex;gap:6px;flex-wrap:wrap;margin:0!important}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card .doc-title{order:1;font-size:21px!important;line-height:1.45!important;margin:0!important;overflow-wrap:anywhere}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card .meta{order:2;display:flex!important;flex-wrap:wrap;gap:6px 12px!important;line-height:1.6!important;margin:0!important;font-size:11px!important}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card .meta-item{margin:0!important;padding:0!important;border:0!important;white-space:normal;overflow-wrap:anywhere}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card .actions{order:5;display:flex!important;position:static!important;flex-wrap:wrap;gap:8px!important;margin:4px 0 0!important;padding:12px 0 0!important;border-top:1px solid var(--ui-line);width:100%!important;justify-content:flex-start!important}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card .actions button{min-height:40px!important;height:auto!important;padding:8px 16px!important;border-radius:11px!important;font-size:13px!important}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card .actions button:first-child{flex:1}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card :is(.keywords,.doc-desc){order:3;margin:0!important;line-height:1.7!important;font-size:12px!important}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card .keywords{display:flex!important;align-items:flex-start;flex-wrap:wrap;gap:6px!important;padding:0!important}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card .keyword-label{padding:0!important;margin:0!important;font-size:11px!important;line-height:26px!important;color:var(--ui-muted)}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card .keyword-list{display:flex!important;flex-wrap:wrap;gap:5px!important;margin:0!important;padding:0!important;flex:1;min-width:0}
body.docwk-front.docwk-unified-ui .wenku-page .detail-main .detail-card .keyword{font-size:11px!important;padding:2px 8px!important;line-height:22px!important;margin:0!important;border-radius:7px!important}
body.docwk-front.docwk-unified-ui:has(.detail-main) .gov-topbar .docwk-page-back{display:none!important}
/* Manual navigation stays inside the header; expanded menu is viewport-bound. */
body.docwk-front.docwk-unified-ui .docs-header .header-left{min-width:0!important;gap:10px!important;flex:1}
body.docwk-front.docwk-unified-ui .docs-header .manual-mobile-btn{flex:none!important;max-width:100px!important;padding:6px 8px!important;gap:4px!important;font-size:12px!important;line-height:20px!important}
body.docwk-front.docwk-unified-ui .manual-mobile-btn .manual-pop{position:fixed!important;left:var(--ui-gutter,16px)!important;right:var(--ui-gutter,16px)!important;top:64px!important;margin:0!important;width:auto!important;max-width:none!important;box-sizing:border-box;max-height:calc(100dvh - 160px);overflow:auto}
body.docwk-front.docwk-unified-ui .manual-pop::before,body.docwk-front.docwk-unified-ui .manual-pop::after{display:none!important}
body.docwk-front.docwk-unified-ui .docs-standalone .toc-expand{top:auto!important;bottom:calc(var(--docwk-bottom-height,74px) + 16px)!important;left:var(--ui-gutter,16px)!important;width:44px!important;height:44px!important;border-radius:14px!important;z-index:2050;background:var(--ui-surface,#fff);color:var(--ui-strong,var(--el-color-primary));border:1px solid var(--ui-line);box-shadow:0 4px 18px #16345814}
body.docwk-front.docwk-unified-ui .docs-standalone .docs-main{padding-bottom:64px!important}
body.docwk-front.docwk-unified-ui:has(>main#main) .footer{gap:20px!important;align-items:flex-start!important;padding-bottom:calc(var(--docwk-bottom-height,0px) + 24px)!important}
body.docwk-front.docwk-unified-ui:has(>main#main) .footer-right{max-width:100%;text-align:left;overflow-wrap:anywhere}
body.docwk-front.docwk-unified-ui:has(>main#main) .footer-right small{display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-size:11px;line-height:1.8}
body.docwk-front.docwk-unified-ui:has(>main#main) .footer-right small a{margin:0!important;max-width:100%;overflow-wrap:anywhere}
}
@media screen and (max-width:600px){
body.docwk-front.docwk-unified-ui .docwk-print-control{display:none!important}
body.docwk-front.docwk-unified-ui :is(.docwk-footer-legal,.gf-beian){flex-direction:column!important;align-items:center!important}
}
