/* Isolated fixed navigation for legacy BSG pages. */
#bsg-legacy-nav,#bsg-legacy-nav *{box-sizing:border-box!important;font-family:Arial,"Microsoft JhengHei",sans-serif!important;text-shadow:none!important;letter-spacing:normal!important}
#bsg-legacy-nav{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;height:90px!important;margin:0!important;padding:0 24px!important;z-index:2147483000!important;background:#f0f4f8!important;color:#15344d!important;border:0!important;border-bottom:1px solid #c9d6e2!important;box-shadow:0 3px 14px #142b431a!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:20px!important;text-align:left!important;line-height:1.5!important}
#bsg-legacy-nav a{color:#15344d!important;background:transparent!important;text-decoration:none!important;font-size:15px!important;font-weight:700!important;line-height:1.5!important;white-space:nowrap!important;margin:0!important;padding:10px 8px!important;border:0!important;float:none!important;display:inline-block!important}
#bsg-legacy-nav a:hover{color:#125cc1!important;text-decoration:underline!important}
#bsg-legacy-nav a:focus-visible,#bsg-legacy-nav summary:focus-visible{outline:3px solid #2166bb!important;outline-offset:3px!important}
#bsg-legacy-nav .bsg-legacy-brand{padding:0!important;flex:0 0 auto!important}
#bsg-legacy-nav .bsg-legacy-brand img{display:block!important;width:196px!important;height:auto!important;max-width:none!important;border:0!important;margin:0!important;object-fit:contain!important}
#bsg-legacy-nav .bsg-legacy-links{display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;padding:0!important}
#bsg-legacy-nav .bsg-legacy-mobile{display:none!important}
#bsg-legacy-spacer{display:block!important;height:90px!important;min-height:90px!important;width:100%!important;clear:both!important;margin:0!important;padding:0!important;border:0!important}
#bsg-legacy-content{display:block;min-width:0;max-width:100%}
#bsg-legacy-scroll-hint{display:none}
html{scroll-padding-top:110px}
@media(max-width:767px){
 #bsg-legacy-nav{height:68px!important;padding:0 18px!important}
 #bsg-legacy-nav .bsg-legacy-brand img{width:156px!important}
 #bsg-legacy-nav>.bsg-legacy-links{display:none!important}
 #bsg-legacy-nav .bsg-legacy-mobile{display:block!important;margin:0!important;padding:0!important}
 #bsg-legacy-nav summary{display:block!important;cursor:pointer!important;font-size:16px!important;font-weight:700!important;padding:10px!important;color:#15344d!important;list-style:none!important}
 #bsg-legacy-nav summary::-webkit-details-marker{display:none}
 #bsg-legacy-nav .bsg-legacy-mobile:not([open])>.bsg-legacy-links{display:none!important}
 #bsg-legacy-nav .bsg-legacy-mobile[open]>.bsg-legacy-links{position:absolute!important;top:68px!important;left:0!important;right:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;background:#f0f4f8!important;padding:12px 18px!important;max-height:calc(100vh - 88px)!important;overflow:auto!important;box-shadow:0 8px 16px #142b4322!important}
 #bsg-legacy-nav .bsg-legacy-mobile .bsg-legacy-links a{padding:13px 10px!important}
 #bsg-legacy-spacer{height:68px!important;min-height:68px!important}
 html{scroll-padding-top:88px}
}
@media(max-width:780px){
 body{width:auto!important;min-width:0!important;max-width:100%!important}
 #bsg-legacy-content{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
 #bsg-legacy-scroll-hint{display:block;margin:8px 0;padding:10px 12px;background:#edf3fa;color:#27425a;font:14px/1.6 Arial,"Microsoft JhengHei",sans-serif}
}
html.bsg-nav-embedded #bsg-legacy-nav,html.bsg-nav-embedded #bsg-legacy-spacer{display:none!important}
@media print{#bsg-legacy-nav,#bsg-legacy-spacer{display:none!important}}

.bsg-image-unavailable{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;max-width:100%;min-height:48px;padding:12px;background:#eef3f8;color:#27425a;border:1px solid #c8d5e1;font:14px/1.6 Arial,"Microsoft JhengHei",sans-serif;text-align:center}

#bsg-legacy-nav{background:#fff!important}#bsg-legacy-nav .bsg-legacy-brand img{width:170px!important}#bsg-legacy-nav a{font-size:14px!important;display:inline-flex!important;align-items:center!important;gap:5px!important;padding:10px 5px!important}#bsg-legacy-nav a svg{width:18px!important;height:18px!important;flex:0 0 18px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.7!important}#bsg-legacy-nav a:last-child{color:#087f98!important}@media(max-width:767px){#bsg-legacy-nav .bsg-legacy-brand img{width:156px!important}}
/* Unified desktop/laptop navigation and content-preserving mobile layout. */
body.bsg-unified{padding-top:0!important}
body.bsg-unified>.topline{display:none!important}
#bsg-legacy-nav{gap:12px!important;padding:0 16px!important}
#bsg-legacy-nav .bsg-legacy-links{gap:2px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
#bsg-legacy-nav a{font-size:14px!important}
@media(min-width:768px) and (max-width:1023px){#bsg-legacy-nav>.bsg-legacy-links{display:grid!important;grid-template-columns:repeat(4,auto)!important;gap:0 10px!important}#bsg-legacy-nav .bsg-legacy-brand img{width:150px!important}#bsg-legacy-nav a{padding:5px 2px!important;font-size:13px!important}}
@media(max-width:767px){
 #bsg-legacy-nav .bsg-legacy-mobile[open]>.bsg-legacy-links{align-items:stretch!important;flex-wrap:nowrap!important}
 #bsg-legacy-content{box-sizing:border-box!important;padding:0 12px!important;font:16px/1.7 Arial,"Microsoft JhengHei",sans-serif}
 #bsg-legacy-content img:not([usemap]){max-width:100%!important;height:auto!important;object-fit:contain!important}
 #bsg-legacy-content table{max-width:100%!important;width:100%!important;box-sizing:border-box!important}
 #bsg-legacy-content td,#bsg-legacy-content th{white-space:normal!important;overflow-wrap:anywhere;min-width:0!important}
 #bsg-legacy-content p,#bsg-legacy-content div,#bsg-legacy-content center{max-width:100%!important;box-sizing:border-box!important}
 #bsg-legacy-content font[size="1"],#bsg-legacy-content font[size="2"]{font-size:16px!important}
 #bsg-legacy-content .bsg-layout>tbody>tr,#bsg-legacy-content .bsg-layout>tr{display:flex!important;flex-direction:column!important}
 #bsg-legacy-content .bsg-layout>tbody>tr>td,#bsg-legacy-content .bsg-layout>tr>td{display:block!important;width:100%!important;height:auto!important;box-sizing:border-box!important}
 .bsg-table-scroll{overflow:auto!important;-webkit-overflow-scrolling:touch}
 #bsg-legacy-content .bsg-table-scroll>table{min-width:560px!important}
 #bsg-legacy-content iframe{max-width:100%!important}
}
@media print{#bsg-legacy-content{overflow:visible!important}}

.bsg-help{clear:both;box-sizing:border-box;max-width:1200px;margin:32px auto;padding:24px;background:#edf3f8;color:#15344d;font:16px/1.7 Arial,"Microsoft JhengHei",sans-serif;text-align:left}.bsg-help h2{font-size:22px;color:#15344d}.bsg-help nav{display:flex;flex-wrap:wrap;gap:12px}.bsg-help a{display:inline-block;padding:12px 16px;background:white;color:#154b70;border:1px solid #aabfd0;border-radius:6px;text-decoration:underline}.bsg-help a:focus-visible{outline:3px solid #2166bb}@media(max-width:767px){.bsg-help{margin:20px 12px;padding:18px}.bsg-help nav{display:grid;grid-template-columns:1fr}.bsg-help a{min-height:44px;box-sizing:border-box}}

/* Single desktop row plus the original BSG menu at the far right. */
@media(min-width:1024px){
 #bsg-legacy-nav{gap:8px!important;padding:0 14px!important}
 #bsg-legacy-nav .bsg-legacy-brand img{width:148px!important}
 #bsg-legacy-nav>.bsg-legacy-links{display:flex!important;flex-wrap:nowrap!important;gap:0!important;margin-left:auto!important}
 #bsg-legacy-nav a{font-size:13px!important;padding:10px 4px!important;gap:4px!important}
 #bsg-legacy-nav a svg{width:16px!important;height:16px!important;flex-basis:16px!important}
 #bsg-legacy-nav .bsg-legacy-mobile{display:block!important;flex:0 0 auto!important}
 #bsg-legacy-nav summary{display:block!important;cursor:pointer!important;font-size:14px!important;font-weight:700!important;padding:10px 6px!important;white-space:nowrap!important;list-style:none!important}
 #bsg-legacy-nav .bsg-legacy-mobile:not([open])>.bsg-legacy-links{display:none!important}
 #bsg-legacy-nav .bsg-legacy-mobile[open]>.bsg-legacy-links{display:flex!important;position:absolute!important;right:14px!important;top:90px!important;width:260px!important;flex-direction:column!important;align-items:stretch!important;background:#f0f4f8!important;padding:12px!important;max-height:calc(100vh - 110px)!important;overflow:auto!important;border:1px solid #c9d6e2!important;box-shadow:0 8px 20px #15344d22!important}
 #bsg-legacy-nav details .bsg-secondary-primary{display:none!important}
 #bsg-legacy-nav details .bsg-original-link{padding:12px!important;font-size:16px!important}
}
@media(min-width:768px) and (max-width:1023px){
 #bsg-legacy-nav>.bsg-legacy-links{display:none!important}
 #bsg-legacy-nav .bsg-legacy-mobile{display:block!important}
 #bsg-legacy-nav summary{display:block!important;cursor:pointer!important;padding:14px!important;font-size:16px!important;list-style:none!important}
 #bsg-legacy-nav .bsg-legacy-mobile:not([open])>.bsg-legacy-links{display:none!important}
 #bsg-legacy-nav .bsg-legacy-mobile[open]>.bsg-legacy-links{display:flex!important;position:absolute!important;right:14px!important;top:90px!important;width:300px!important;flex-direction:column!important;align-items:stretch!important;background:#f0f4f8!important;padding:12px!important;max-height:calc(100vh - 110px)!important;overflow:auto!important;box-shadow:0 8px 20px #15344d22!important}
 #bsg-legacy-nav details a{padding:12px!important;font-size:16px!important}
}
#bsg-legacy-nav .bsg-original-link:first-of-type{border-top:1px solid #c9d6e2!important}

/* Keep expanded menus in one column even on legacy page layouts. */
#bsg-legacy-nav details[open]>.bsg-legacy-links{flex-direction:column!important;flex-wrap:nowrap!important;align-content:stretch!important;column-count:1!important;white-space:normal!important}
#bsg-legacy-nav details a{flex-shrink:0!important;max-width:100%!important;box-sizing:border-box!important}

/* Keep all eight primary entries visible on standard 1024px desktop windows. */
@media(min-width:1024px) and (max-width:1199px){#bsg-legacy-nav{padding:0 10px!important;gap:5px!important}#bsg-legacy-nav .bsg-legacy-brand img{width:116px!important}#bsg-legacy-nav>.bsg-legacy-links a{font-size:12px!important;padding:10px 3px!important;gap:3px!important}#bsg-legacy-nav>.bsg-legacy-links a svg{width:14px!important;height:14px!important;flex-basis:14px!important}#bsg-legacy-nav summary{font-size:13px!important;padding:10px 4px!important}}

/* Compact fixed navigation: retain link size while reducing unused vertical space. */
#bsg-legacy-nav{height:64px!important}
#bsg-legacy-spacer{height:64px!important;min-height:64px!important}
#bsg-legacy-nav .bsg-legacy-mobile[open]>.bsg-legacy-links{top:64px!important;max-height:calc(100vh - 80px)!important;max-height:calc(100dvh - 80px)!important}
#bsg-legacy-nav summary{min-height:44px!important;box-sizing:border-box!important}
html{scroll-padding-top:80px}
@media(max-width:767px){
 #bsg-legacy-nav{height:56px!important}
 #bsg-legacy-spacer{height:56px!important;min-height:56px!important}
 #bsg-legacy-nav .bsg-legacy-brand img{width:136px!important}
 #bsg-legacy-nav .bsg-legacy-mobile[open]>.bsg-legacy-links{top:56px!important;max-height:calc(100vh - 72px)!important;max-height:calc(100dvh - 72px)!important}
 html{scroll-padding-top:72px}
}

/* Integrated audiovisual brand banner: exact QR and live contact links. */
#bsg-legacy-content .bsg-integrated-banner{position:relative!important;display:block!important;width:958px!important;max-width:100%!important;height:220px!important;overflow:hidden;background:#dfe8f0;border-radius:6px;margin:0 auto!important;text-align:left!important;color:#17334b;font-family:Arial,"Microsoft JhengHei",sans-serif}
#bsg-legacy-content .bsg-integrated-art{position:absolute;inset:0;display:block!important;height:220px!important;overflow:hidden}
#bsg-legacy-content .bsg-integrated-art img{position:absolute;right:0;top:0;display:block!important;width:660px!important;max-width:none!important;height:220px!important;object-fit:contain!important;border:0!important}
#bsg-legacy-content .bsg-integrated-heading{position:relative;z-index:1;padding:23px 28px 0;pointer-events:none}
#bsg-legacy-content .bsg-integrated-heading strong{display:block;font-size:28px;line-height:1.3;letter-spacing:1px;color:#17334b}
#bsg-legacy-content .bsg-integrated-heading span{display:block;font-size:16px;line-height:1.5;margin-top:6px;color:#34536a}
#bsg-legacy-content .bsg-integrated-contact{position:absolute;left:28px;bottom:15px;display:flex;align-items:center;gap:16px}
#bsg-legacy-content .bsg-integrated-qr{display:block;background:white;padding:5px;border-radius:4px;line-height:0}
#bsg-legacy-content .bsg-integrated-qr img{display:block!important;width:82px!important;height:85px!important;object-fit:contain!important;margin:0!important;border:0!important}
#bsg-legacy-content .bsg-integrated-contact a{text-decoration:none}
#bsg-legacy-content .bsg-integrated-line{display:flex;align-items:center;justify-content:center;min-height:44px;padding:0 15px;border-radius:5px;background:#087b45;color:white!important;font-size:16px;font-weight:600;box-sizing:border-box}
#bsg-legacy-content .bsg-integrated-phone{display:block;font-size:21px;font-weight:600;white-space:nowrap;line-height:1.3;margin-top:5px;color:#17334b!important}
#bsg-legacy-content .bsg-integrated-contact span{display:block;font-size:11px;color:#34536a;margin-top:3px}
@media(max-width:767px){
#bsg-legacy-content .bsg-integrated-banner{width:calc(100vw - 56px)!important;height:300px!important;margin:0!important}
#bsg-legacy-content .bsg-integrated-art{height:110px!important}
#bsg-legacy-content .bsg-integrated-art img{width:100%!important;height:110px!important;object-fit:cover!important;object-position:right center!important}
#bsg-legacy-content .bsg-integrated-heading{padding:123px 15px 0}
#bsg-legacy-content .bsg-integrated-heading strong{font-size:23px;letter-spacing:.5px}
#bsg-legacy-content .bsg-integrated-heading span{font-size:14px;margin-top:3px}
#bsg-legacy-content .bsg-integrated-contact{left:15px;bottom:14px;gap:14px}
#bsg-legacy-content td:has(>.bsg-integrated-banner){text-align:left!important}
#bsg-legacy-content table.bsg-layout:has(.bsg-integrated-banner){table-layout:fixed!important;min-width:0!important;width:calc(100vw - 56px)!important}
}
