/* Heritage refinement: burgundy, ivory and gold. */
body .WordSection1 .sc-share-panel{box-sizing:border-box;width:100%;margin:12px auto 18px;padding:14px 12px;background:#fff9ed!important;border:1px solid #d6bb8e;border-top:3px solid #792541;border-radius:8px;color:#522337;text-align:center;}
body .WordSection1 .sc-share-panel h2{font:700 13px/1.4 system-ui,sans-serif!important;color:#601d37!important;letter-spacing:.07em;margin:0 0 10px!important;}
body .WordSection1 .sc-share-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;}
body .WordSection1 .sc-share-links a{box-sizing:border-box;display:inline-flex!important;justify-content:center;align-items:center;width:34px;height:34px;padding:4px;background:#f4e7d2!important;border:1px solid #d6bb8e;border-radius:6px;}
body .WordSection1 .sc-share-links img{display:block;width:24px!important;height:24px!important;object-fit:contain;filter:none;}
body .WordSection1 .mbc-classic-legacy{box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;margin:12px auto!important;padding:10px!important;overflow-x:auto!important;overflow-y:hidden!important;background:#fff9ed!important;border:1px solid #d6bb8e!important;}
body .WordSection1 .mbc-classic-legacy table{background:transparent!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;margin:0!important;table-layout:auto!important;}
body .WordSection1 .mbc-classic-legacy :is(tr,td,th){background:transparent!important;color:#45272d!important;border-color:#d6bb8e!important;height:auto!important;min-height:0!important;vertical-align:middle!important;padding:5px!important;}
body .WordSection1 .mbc-classic-legacy :is(p,span,b,strong,font){color:#45272d!important;background:transparent!important;text-indent:0!important;text-shadow:none!important;}
body .WordSection1 .mbc-classic-legacy p{margin:3px 0!important;line-height:1.4!important;}
body .WordSection1 .mbc-classic-legacy a,body .WordSection1 .mbc-classic-legacy a :is(span,b,strong,font){color:#761f3e!important;}
body .WordSection1 .mbc-classic-legacy img{max-width:100%!important;object-fit:contain;vertical-align:middle;}
body .WordSection1 .mbc-classic-catalogue{max-height:none!important;height:auto!important;width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-color:#9c654c #f5e7cc;scrollbar-width:auto;}
body .WordSection1 .mbc-classic-catalogue::-webkit-scrollbar{height:15px;}body .WordSection1 .mbc-classic-catalogue::-webkit-scrollbar-thumb{background:#9c654c;border:3px solid #f5e7cc;border-radius:8px;}
body .WordSection1 .mbc-classic-table{margin:0!important;border-collapse:collapse!important;}
body .WordSection1 .mbc-classic-table tr:first-child{background:#601d37!important;}body .WordSection1 .mbc-classic-table tr:first-child :is(td,th,p,span,b,strong,font){color:#fff7e7!important;background:transparent!important;}
body .WordSection1 .sc-action-cell,body .WordSection1 .sc-action-cell :is(p,div){text-align:center!important;text-indent:0!important;margin:0!important;padding-inline:3px!important;}
body .WordSection1 a.sc-chip{display:inline-block!important;position:static!important;float:none!important;box-sizing:border-box!important;min-width:0!important;margin:2px auto!important;padding:7px 9px!important;border:0!important;border-radius:6px!important;color:white!important;background:#761f3e!important;font:700 12px/1.25 system-ui,sans-serif!important;text-decoration:none!important;text-align:center!important;white-space:nowrap!important;vertical-align:middle!important;}
body .WordSection1 a.sc-chip :is(span,b,strong,font){color:inherit!important;background:transparent!important;text-decoration:none!important;font:inherit!important;}
body .WordSection1 a.sc-gh{background:#59402d!important;}body .WordSection1 a.sc-join{background:#136a80!important;}body .WordSection1 a.sc-list{background:#51466e!important;}body .WordSection1 a.sc-go{background:#37644c!important;}body .WordSection1 a.sc-dd{background:#8c521f!important;}
body .WordSection1 .sc-torrent a.sc-download{background:#37644c!important;}
body a:focus-visible,body input:focus-visible{outline:3px solid #b07827!important;outline-offset:2px!important;}

/* HERITAGE V1.1 - consistent share and action controls */
body .WordSection1 .sc-share-panel{padding:18px 16px!important;background:#fff9ed!important;border:1px solid #d6bb8e!important;border-top:4px solid #761f3e!important;box-shadow:0 3px 12px #634a2810;text-align:center!important;}
body .WordSection1 .sc-share-panel h2{color:#761f3e!important;background:transparent!important;font:700 15px/1.5 system-ui,sans-serif!important;letter-spacing:.07em;margin:0 0 12px!important;text-align:center!important;}
body .WordSection1 .sc-share-links a{width:38px!important;height:38px!important;}
body .WordSection1 .sc-share-links a[aria-label="Copy Link"]{background:#761f3e!important;border-color:#761f3e!important;}
body .WordSection1 .sc-share-links a:hover{background:#e8d4ad!important;border-color:#a37948!important;}
body .WordSection1 .sc-share-extra{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:12px auto 0;padding-top:10px;border-top:1px solid #d6bb8e;}
body .WordSection1 .sc-share-extra p{flex-basis:100%;margin:0 0 3px!important;color:#761f3e!important;font:600 12px/1.5 system-ui,sans-serif!important;}
body .WordSection1 .sc-share-extra a{display:inline-flex!important;padding:7px 12px!important;border:1px solid #d6bb8e!important;border-radius:6px!important;background:#f4e7d2!important;color:#601d37!important;font:700 12px/1.3 system-ui,sans-serif!important;text-decoration:none!important;}
body .WordSection1 .sc-action-cell,body .WordSection1 .sc-header-cell{vertical-align:middle!important;text-align:center!important;}
body .WordSection1 .sc-action-cell :is(p,div),body .WordSection1 .sc-header-cell :is(p,div,pre){text-align:center!important;text-indent:0!important;margin:0!important;padding:0!important;line-height:1.3!important;}
body .WordSection1 .sc-header-cell :is(span,b,strong,font){font-size:0!important;line-height:0!important;letter-spacing:0!important;}
body .WordSection1 .sc-header-cell img{display:block!important;float:none!important;position:static!important;margin:0 auto!important;width:42px!important;height:42px!important;max-width:100%!important;object-fit:contain!important;background:transparent!important;}
body .WordSection1 .sc-header-cell .sc-header-label{display:block!important;font:700 11px/1.3 system-ui,sans-serif!important;color:#fff7e7!important;text-align:center!important;margin:4px 0 0!important;}
body .WordSection1 table.mbc-classic-table a.sc-chip,body .WordSection1 table a.sc-chip{display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;min-width:58px!important;min-height:32px!important;padding:7px 10px!important;margin:2px auto!important;border:1px solid transparent!important;border-radius:7px!important;color:#fff!important;background:#761f3e!important;font:700 12px/1.25 system-ui,sans-serif!important;text-decoration:none!important;white-space:nowrap!important;box-shadow:none!important;vertical-align:middle!important;}
body .WordSection1 table a.sc-chip :is(span,b,strong,font){color:inherit!important;font:inherit!important;text-decoration:none!important;background:transparent!important;}
body .WordSection1 table a.sc-chip.sc-gh{background:#59402d!important;}body .WordSection1 table a.sc-chip.sc-join{background:#136a80!important;}body .WordSection1 table a.sc-chip.sc-list{background:#51466e!important;}body .WordSection1 table a.sc-chip.sc-go{background:#37644c!important;}body .WordSection1 table a.sc-chip.sc-dd{background:#8c521f!important;}body .WordSection1 table .sc-torrent a.sc-chip.sc-download{background:#37644c!important;}
body .WordSection1 table a.sc-chip:hover{filter:brightness(1.13);}
body .WordSection1 .mbc-classic-legacy :is(pre,table,td,tr,th){background:transparent!important;color:#45272d!important;}
body .WordSection1 .mbc-classic-legacy pre{white-space:normal!important;text-align:center!important;font-family:inherit!important;}

/* MBC visual repair: social alignment, title indentation and list-button contrast. */
body :is(.mbc-res-social,.mbc-nova-share-buttons,.sc-share-links,p[data-mbc-china-row="true"]) {
 display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:7px!important;
 box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;
 margin:8px auto!important;padding:4px!important;text-align:center!important;text-indent:0!important;white-space:normal!important;
}
body :is(.mbc-res-social,.mbc-nova-share-buttons,.sc-share-links,p[data-mbc-china-row="true"]) > a {
 display:inline-flex!important;flex:0 0 38px!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;
 width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;min-height:38px!important;max-height:38px!important;
 padding:4px!important;margin:0!important;float:none!important;position:static!important;border:1px solid #d6bb8e!important;border-radius:6px!important;background:#f4e7d2!important;line-height:1!important;vertical-align:middle!important;
}
body :is(.mbc-res-social,.mbc-nova-share-buttons,.sc-share-links,p[data-mbc-china-row="true"]) > a :is(span,b,font) {
 display:contents!important;margin:0!important;padding:0!important;line-height:1!important;background:transparent!important;
}
body :is(.mbc-res-social,.mbc-nova-share-buttons,.sc-share-links,p[data-mbc-china-row="true"]) > a img {
 display:block!important;width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important;object-fit:contain!important;
 position:static!important;float:none!important;margin:0!important;padding:0!important;border:0!important;vertical-align:middle!important;
}
body p[data-mbc-china-row="true"] > :is(span,o\:p) {display:none!important;}
/* Legacy Word social/clone row: occupy its own full-width block, no orphaned plus button. */
body .WordSection1 table:has(> tbody > tr > td p[data-mbc-china-row="true"]) {width:100%!important;max-width:100%!important;min-width:0!important;margin:0 auto!important;table-layout:auto!important;background:#fff9ed!important;}
body .WordSection1 tr:has(> td p[data-mbc-china-row="true"]) {display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:center!important;width:100%!important;height:auto!important;background:#fff9ed!important;}
body .WordSection1 tr:has(> td p[data-mbc-china-row="true"]) > td {display:block!important;box-sizing:border-box!important;flex:1 1 100%!important;width:100%!important;max-width:100%!important;min-width:0!important;height:auto!important;padding:6px!important;margin:0!important;text-align:center!important;background:#fff9ed!important;border-color:#d6bb8e!important;}
body .WordSection1 tr:has(> td p[data-mbc-china-row="true"]) > td:last-child:not(:has(a,img)) {padding:0!important;min-height:0!important;}
body .WordSection1 tr:has(> td p[data-mbc-china-row="true"]) :is(p,pre) {margin:4px 0!important;text-indent:0!important;text-align:center!important;white-space:normal!important;}
body .WordSection1 tr:has(> td p[data-mbc-china-row="true"]) :is(p,pre,span,b,strong,font) {color:#42282d!important;background-color:transparent!important;text-shadow:none!important;}
body .WordSection1 tr:has(> td p[data-mbc-china-row="true"]) #mega-book-mirror a {display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:3px!important;padding:7px 10px!important;background:#51466e!important;border:1px solid #51466e!important;border-radius:5px!important;color:white!important;font:700 12px/1.3 system-ui,sans-serif!important;text-decoration:none!important;}
body .WordSection1 tr:has(> td p[data-mbc-china-row="true"]) #mega-book-mirror a :is(span,b,strong,font) {color:white!important;background:transparent!important;font:inherit!important;text-decoration:none!important;}
/* Recover Word's off-canvas first-line indent in collection names, without changing text. */
body .WordSection1 :is(table.mbc-library-table,table.mbc-classic-table) tr:not(:first-child) > td:not(:has(a.mbc-action,a.mbc-classic-chip,a.sc-chip)) > :is(p,pre),
body .WordSection1 :is(table.mbc-library-table,table.mbc-classic-table) tr:not(:first-child) > td.mbc-collection-title > :is(p,pre) {margin-left:0!important;margin-right:0!important;text-indent:0!important;white-space:normal!important;overflow-wrap:anywhere!important;}
body .WordSection1 :is(table.mbc-library-table,table.mbc-classic-table) tr:not(:first-child) > td.mbc-collection-title :is(p,span,b,strong,font),
body .WordSection1 :is(table.mbc-library-table,table.mbc-classic-table) tr:not(:first-child) > td:not(:has(a.mbc-action,a.mbc-classic-chip,a.sc-chip)) :is(p,span,b,strong,font) {color:#42282d!important;text-shadow:none!important;}
body .WordSection1 :is(table.mbc-library-table,table.mbc-classic-table) tr:not(:first-child) > td:not(:has(a.mbc-action,a.mbc-classic-chip,a.sc-chip)) a,
body .WordSection1 :is(table.mbc-library-table,table.mbc-classic-table) tr:not(:first-child) > td:not(:has(a.mbc-action,a.mbc-classic-chip,a.sc-chip)) a :is(span,b,strong,font) {color:#761f3e!important;}
/* Consistent filled See list controls, including inherited Word spans. */
body .WordSection1 :is(table.mbc-library-table,table.mbc-classic-table) td a:is(.mbc-a-list,.mbc-classic-list,.sc-list),
body .WordSection1 :is(table.mbc-library-table,table.mbc-classic-table) td a:is(.mbc-a-list,.mbc-classic-list,.sc-list):visited {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;
 background:#51466e!important;border:1px solid #51466e!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 font:700 12px/1.3 system-ui,sans-serif!important;min-height:30px!important;padding:6px 9px!important;border-radius:6px!important;
 text-decoration:none!important;white-space:nowrap!important;vertical-align:middle!important;text-shadow:none!important;
}
body .WordSection1 :is(table.mbc-library-table,table.mbc-classic-table) td a:is(.mbc-a-list,.mbc-classic-list,.sc-list) :is(span,b,strong,font,u,i) {
 color:#fff!important;-webkit-text-fill-color:#fff!important;background:transparent!important;font:inherit!important;text-decoration:none!important;text-shadow:none!important;
}

/* One-row Word social header: prevent its legacy minimum width on small screens. */
body .WordSection1 table:has(> tbody > tr > td p[data-mbc-china-row="true"]) {display:block!important;box-sizing:border-box!important;}
body .WordSection1 table:has(> tbody > tr > td p[data-mbc-china-row="true"]) > tbody {display:block!important;width:100%!important;}
@media (max-width:700px) {
 body .WordSection1 table:has(> tbody > tr > td p[data-mbc-china-row="true"]) {width:100%!important;max-width:calc(100vw - 48px)!important;}
 body .WordSection1 :is(.mbc-classic-legacy,.mbc-legacy-content):has(p[data-mbc-china-row="true"]) {box-sizing:border-box!important;max-width:100%!important;}
}
/* Use the actual theme color on nested button spans, even with old per-cell rules. */
body .WordSection1 table.mbc-library-table tr td a.mbc-action.mbc-a-list,
body .WordSection1 table.mbc-library-table tr td a.mbc-action.mbc-a-list:visited {background:#51466e!important;border-color:#51466e!important;color:#fff!important;-webkit-text-fill-color:#fff!important;}
body .WordSection1 table.mbc-library-table tr td a.mbc-action.mbc-a-list :is(span,b,strong,font,u,i) {color:#fff!important;-webkit-text-fill-color:#fff!important;}
