/* 11/24 無障礙修正：僅標題、非輪播焦點及圖片文字說明。 */
body[type="list"] > main > centerwrap > h1,
body[type="list"] centerwrap > h1 {
    display: block !important;
    font-size: 25px;
    line-height: 1.5;
    padding: 20px 0;
    color: #3c6a83;
}
#event_classify li:focus-visible, #spot_list > li:focus-visible,
#addcartBtn:focus-visible, #addcartBtnMove:focus-visible,
.inpage[type="spotInfo"] .cancelBtn:focus-visible {
    outline: 3px solid #173f55 !important;
    outline-offset: -4px !important;
    box-shadow: inset 0 0 0 6px #ffdf65 !important;
}
body[page="home"] #news_list a {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    padding: 3px 5px;
}
body[page="home"] #news_list a:focus-visible {
    outline: 3px solid #173f55 !important;
    outline-offset: -3px !important;
    background-color: #fff3bb;
    white-space: normal;
}
body[page="home"] #news_list li:focus-within {height: auto;min-height: 40px;white-space: normal;overflow: visible;}
body[page="CoastalRailway"] .railway-map-zoom {display: block;width: 100%;height: 100%;position: relative;border: 0;background: transparent;padding: 0;}
body[page="CoastalRailway"] .railway-map-zoom:focus-visible {outline: 4px solid #173f55 !important;outline-offset: -6px !important;box-shadow: inset 0 0 0 10px #ffdf65;}
.a11y-1124-description {clear: both;margin: 16px 0 28px;padding: 12px 16px;border: 1px solid #657d89;color: #222;background: #fff;line-height: 1.8;text-align: left;}
.a11y-1124-description summary {cursor: pointer;color: #265873;font-weight: 600;}
.a11y-1124-description table {width: 100%;border-collapse: collapse;}
.a11y-1124-description th,.a11y-1124-description td {border: 1px solid #68737b;padding: 8px;white-space: normal;}
.a11y-1124-description a {color: #265873;text-decoration: underline;}
.a11y-1124-description summary:focus-visible,.a11y-1124-description a:focus-visible {outline: 3px solid #173f55;outline-offset: 2px;}

/* 文章內文圖片自適應，不涵蓋輪播、園區地圖與介面圖示。 */
main article img:not(.h2icon):not([data-a11y-decorative="true"]) {max-width: 100% !important;height: auto !important;}

/* 首頁文字地圖入口覆蓋於左上，保留原生連結及可見的鍵盤焦點。 */
body[page="home"] section.map .mapwrap {position: relative;}
body[page="home"] section.map .mapwrap > p:first-child {position: absolute;top: 16px;left: 16px;z-index: 10;margin: 0;max-width: calc(100% - 32px);}
body[page="home"] .map-list-link {display: inline-block;box-sizing: border-box;max-width: 100%;padding: 10px 14px;border: 2px solid #3c6a83;border-radius: 8px;background: #fff;color: #265873;font-size: 14px;line-height: 1.5;text-decoration: none;box-shadow: 0 2px 6px #0002;}
body[page="home"] .map-list-link:hover {background: #edf5f8;}
body[page="home"] .map-list-link:focus-visible {outline: 3px solid #173f55;outline-offset: 3px;box-shadow: 0 0 0 6px #ffdf65;}

/* 只移動原播放控制的位置，不改 Slick 圖片比例、版型與播放設定。 */
body[page="home"] section.banner #banner_toggle {order: 0 !important;position: absolute !important;inset: 20px auto auto 50% !important;transform: translateX(-50%) !important;margin: 0 !important;flex: 0 0 auto;z-index: 5;background: #fff;box-shadow: 0 2px 8px #0003;}
body[page="home"] section.banner {position: relative;height: auto !important;padding-bottom: 70px;}
body[page="home"] section.banner .fadeout {pointer-events: none;}
body[page="shop"][type="list"] .banner #shop_banner_toggle {position: absolute;top: 20px;left: 50%;transform: translateX(-50%);margin: 0;z-index: 5;background: #fff;box-shadow: 0 2px 8px #0003;}
body[page="shop"][type="list"] .banner {position: relative;}
/* 商城圓點使用實體圓形及白邊，不受 Slick 字型透明度影響。 */
body[page="shop"][type="list"] #type_banners .slick-dots li button::before {content: '';width: 17px;height: 17px;top: 1.5px;left: 1.5px;box-sizing: border-box;border: 2px solid #fff;border-radius: 50%;background: #fff;opacity: 1;box-shadow: 0 2px 5px #0008;}
body[page="shop"][type="list"] #type_banners .slick-dots li.slick-active button::before {background: #173f55;}
body[page="home"] #banner_list a:focus-visible,
body[page="shop"][type="list"] #type_banners a:focus-visible {outline: 4px solid #173f55 !important;outline-offset: -6px !important;}
body[page="home"] #banner_list a:focus-visible .each,
body[page="shop"][type="list"] #type_banners a:focus-visible .each {box-shadow: inset 0 0 0 5px #ffdf65;}
#banner_toggle:focus-visible,#shop_banner_toggle:focus-visible {outline: 3px solid #173f55 !important;outline-offset: 3px !important;}
body[page="imagetext"] article {max-width: 960px;margin: 0 auto;padding: 20px;line-height: 1.9;}
body[page="imagetext"] table {border-collapse: collapse;width: 100%;}
body[page="imagetext"] th,body[page="imagetext"] td {border: 1px solid #657d89;padding: 8px;}
body[page="imagetext"] article a {color: #265873;text-decoration: underline;}
body[page="shop"][type="list"] #type_banners .slick-slide > a {display: block;width: 100%;height: 100%;}
body[page="home"] #banner_list a:focus-visible .each::after,
body[page="shop"][type="list"] #type_banners a:focus-visible .each::after {box-shadow: inset 0 0 0 5px #ffdf65;}
@media screen and (min-width: 1281px) {
    /* PC 圖片靠上對齊，移除 contain 垂直置中形成的頂部白邊，不裁切圖片。 */
    body[page="home"] #banner_list .each {background-position: center top;}
    /* PC 控制鈕已在圖片上，圓點不再為按鈕預留中央空位。 */
    body[page="home"] #banner_list .slick-dots li.banner-dot-gap {margin-left: 5px;}
    body[page="home"] #banner_list .slick-dots.banner-dots-odd {transform: none;}
}
@media screen and (max-width: 1280px) {
    /* 全站手機輪播播放控制統一尺寸：首頁、商城與共用相簿。 */
    #banner_toggle, #shop_banner_toggle, .a11y-slick-toggle {padding: 6px 10px !important;font-size: 12px !important;}
    /* 手機控制鈕與圓點同列；保留 DOM 中第一個輪播焦點。 */
    body[page="home"] section.banner #banner_toggle {top: auto !important;bottom: 25px !important;padding: 6px 10px;font-size: 12px;}
    body[page="home"] section.banner #banner_list .slick-dots {bottom: -50px !important;}
    body[page="home"] section.banner #banner_list .slick-dots li {width: 14px;margin: 0 1px;}
    body[page="home"] section.banner #banner_list .slick-dots li button {width: 14px;}
    body[page="home"] section.banner #banner_list .slick-dots li button::before {width: 14px;}
    body[page="home"] section.banner #banner_list .slick-dots li.banner-dot-gap {margin-left: 85px;}
    body[page="home"] section.banner #banner_list .slick-dots.banner-dots-odd {transform: translateX(8px);}
    /* 使用內文可用寬度而非含捲軸的 100vw，確保目前圖片完整可見。 */
    body[page="home"] section.banner #banner_list {width: 100% !important;}
}
