/* FrontPage-safe layout: no changes to msnavigation boundaries. */
body>table{max-width:960px;margin-left:auto;margin-right:auto}
.chiayu-shared-header{width:100%;max-width:960px!important}
.chiayu-shared-header img{max-width:100%;height:auto!important}
.chiayu-shared-header table{max-width:100%;margin:auto}
.chiayu-summary{max-width:960px!important;margin-top:0!important;margin-bottom:0!important}
@media(max-width:1000px){
 html{overflow-wrap:break-word}
 body{margin:0!important;padding:0!important;min-width:0!important;font-size:16px;line-height:1.5}
 body>table{display:table!important;table-layout:fixed!important;width:100%!important;max-width:100%!important;overflow:visible!important}
 body>table>tbody>tr>td{display:block;box-sizing:border-box;width:100%!important;max-width:100%;min-width:0;overflow-x:auto}
 body>table>tbody{display:table-row-group!important;width:auto!important}
 table{max-width:100%!important}
 td,th{overflow-wrap:anywhere}
 img:not([usemap]){max-width:100%;height:auto!important}
 iframe,video{max-width:100%}
 .chiayu-shared-header table{width:100%!important;table-layout:auto!important}
 .chiayu-shared-header tr:not(:has(tr)){display:flex;flex-wrap:wrap}
 .chiayu-shared-header tr:not(:has(tr))>td{display:block;box-sizing:border-box;flex:1 1 120px;width:auto!important;height:auto!important}
 .chiayu-shared-header a{display:inline-block;padding:8px 5px;line-height:1.4}
 .chiayu-shared-header td:has(>img),.chiayu-shared-header td:has(>a>img){flex-basis:100%!important}
 .chiayu-shared-header p{margin:0}
 .chiayu-summary{width:100%;max-width:100%!important;padding:12px!important}
 .chiayu-table-scroll{display:block;box-sizing:border-box;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 .chiayu-table-scroll:focus-visible{outline:2px solid #174f82;outline-offset:-2px}
 .chiayu-mobile-layout,.chiayu-mobile-layout>tbody,.chiayu-mobile-layout>tbody>tr,.chiayu-mobile-layout>tr{display:block!important;width:100%!important;height:auto!important}
 .chiayu-mobile-layout>tbody>tr>td,.chiayu-mobile-layout>tr>td{display:block!important;box-sizing:border-box;width:100%!important;height:auto!important}
 .chiayu-mobile-layout>tbody>tr,.chiayu-mobile-layout>tr{display:flex!important;flex-direction:column}
 .chiayu-mobile-layout .chiayu-mobile-aside{order:2}
 .chiayu-mobile-content{width:100%!important;max-width:100%!important;min-width:0!important}
 .chiayu-mobile-content>div,.chiayu-mobile-content>center{max-width:100%}
 table[data-chiayu-fluid]{width:100%!important;table-layout:auto!important}
 table[data-chiayu-fluid]>tbody>tr>td,table[data-chiayu-fluid]>tr>td{width:auto!important;max-width:100%}
 table[data-chiayu-layout],table[data-chiayu-layout]>tbody,table[data-chiayu-layout]>tbody>tr,table[data-chiayu-layout]>tr{display:block!important;width:100%!important;height:auto!important}
 table[data-chiayu-layout]>tbody>tr,table[data-chiayu-layout]>tr{display:flex!important;flex-direction:column}
 table[data-chiayu-layout]>tbody>tr>td,table[data-chiayu-layout]>tr>td{display:block!important;box-sizing:border-box;width:100%!important;height:auto!important}
 td[data-chiayu-aside]{order:2}
 font[size="1"],font[size="2"],font[size="-1"]{font-size:16px!important}
}

/* User-approved original header: keep all five promotion cards and original row order. */
.chiayu-shared-header{max-width:100%!important;overflow-x:auto}
.chiayu-shared-header>table{width:958px!important;min-width:958px;max-width:none!important}
@media(max-width:1000px){
 .chiayu-shared-header,.chiayu-shared-header>table{width:100%!important;min-width:0!important;max-width:100%!important}
 .chiayu-shared-header table{width:100%!important;max-width:100%!important;min-width:0!important}
 .chiayu-shared-header a{box-sizing:border-box;font-size:14px;line-height:1.4}
 .chiayu-shared-header tr:not(:has(tr))>td{min-width:0;vertical-align:middle}
 .chiayu-shared-header tr:not(:has(tr)):has(>td:nth-child(5) img){display:flex!important;flex-wrap:nowrap!important;width:100%;overflow-x:auto;scroll-snap-type:x proximity}
 .chiayu-shared-header tr:not(:has(tr)):has(>td:nth-child(5) img)>td{flex:0 0 46%!important;width:46%!important;scroll-snap-align:start}
 .chiayu-shared-header tr:not(:has(tr)):has(>td:nth-child(5) img) img{display:block;width:100%;height:auto!important}
 table[data-chiayu-layout]>tbody>tr>td,table[data-chiayu-layout]>tr>td{flex:0 0 auto!important;width:100%!important;max-width:100%!important;min-width:0!important}
 .chiayu-summary{background:#fff!important;color:#172b3a;padding:16px!important}
 .chiayu-summary h1{font-size:22px;line-height:1.4;margin:0 0 8px}
 .chiayu-summary p{font-size:16px;line-height:1.65;margin:0}
}
