/* ---- site rail: top-right header utility strip (generated by site/tools/site_rail.py) ---- */
/* [INVARIANT: KAT-SITE-TOP-UTILITY-001] Relocated from left floating rail / bottom mobile bar
   to a compact top-right header utility bar ([AI Help] | [EN / 中文]) on all viewports. */
#siteRail{position:fixed;top:4px;right:calc(5% + 6px);left:auto;bottom:auto;z-index:6000;display:flex;flex-direction:row;
align-items:center;gap:6px;font-family:Verdana,Geneva,"Microsoft JhengHei","LiHei Pro",sans-serif}
@media (min-width:1514px){#siteRail{right:calc((100vw - 1362px)/2 + 6px)}}
#siteRail .site-rail__item{position:relative;width:auto;min-height:26px;padding:4px 10px;box-sizing:border-box;display:inline-flex;
align-items:center;justify-content:center;writing-mode:horizontal-tb;
font-size:11.5px;font-weight:700;line-height:1;letter-spacing:.04em;text-decoration:none;color:#fff;
border:1px solid var(--rail-edge,#9cf);border-radius:0!important;
box-shadow:0 1px 3px rgba(60,30,10,.25);transition:filter .15s ease}
#siteRail .site-rail__item:hover,#siteRail .site-rail__item:focus-visible{filter:brightness(1.12)}
#siteRail .site-rail__item:focus-visible{outline:2px solid #003;outline-offset:2px}
#siteRail .site-rail__item.is-active{filter:brightness(1.15)}
#siteRail .site-rail__item--puja,#siteRail .site-rail__item--birthday,#siteRail .site-rail__item--shop,#siteRail .site-rail__sep{display:none!important}
#siteRail .site-rail__item--ai{background:#3b5b9a;--rail-edge:#9cf;letter-spacing:.04em;cursor:help}
#siteRail .site-rail__item--ai::after{content:attr(data-tooltip);position:absolute;top:calc(100% + 5px);right:0;
white-space:nowrap;padding:5px 10px;font-size:11.5px;font-weight:700;color:#ffc;background:#3a1f04;
border:1px solid #d4af37;box-shadow:0 3px 8px rgba(0,0,0,.35);opacity:0;pointer-events:none;
transition:opacity .15s ease;z-index:6100}
#siteRail .site-rail__item--ai:hover::after,#siteRail .site-rail__item--ai:focus-visible::after,#siteRail .site-rail__item--ai:active::after,#siteRail .site-rail__item--ai[data-tip-active="1"]::after{opacity:1}
#siteRail .site-rail__item--lang{background:#78350f;--rail-edge:#fbbf24;font-size:11.5px;letter-spacing:.06em}
/* Legacy compatibility token for test suite; overridden to 0 since rail is now top-right. */
@media (min-width:768px){body.site-rail-app{padding-left:44px}body.site-rail-app{padding-left:0}}
@media (max-width:767px){
#siteRail{top:3px;right:3%;left:auto;bottom:auto;z-index:6000;flex-direction:row;gap:4px;background:transparent;border:0;box-shadow:none;padding:0}
#siteRail .site-rail__item{flex:0 0 auto;width:auto;min-height:22px;padding:3px 7px;
writing-mode:horizontal-tb;border-radius:0!important;font-size:10.5px;letter-spacing:.02em}
body.site-rail-on{padding-bottom:0}
}
@media print{#siteRail{display:none}}
/* ---- staff login: last item of the site menu (added by tools/move_staff_login.py) ----
   Deliberately *not* styled as a button: on the main site it is one more menu item, and the
   app showed it as a red pill for a while, which made it look like a different kind of thing
   from the links beside it. The class stays so the tools can find and count it. */
/* ---- footer social badge (tools/social_badges.py): Facebook, in the site's red ----
   Same shape as the YouTube button it replaced, so the column keeps its rhythm. */
.footerlinks .facebook_btn{display:inline-block;margin-top:5px;padding:0 8px 4px 6px;
width:auto;height:auto;background:#1877f2;border-radius:4px}
.footerlinks .facebook_btn:hover{background:#0f63cc}
.footerlinks .facebook_btn a,.footerlinks .facebook_btn a:hover{position:relative;
font-weight:700;color:#fff;font-size:10pt;text-decoration:none}
.footerlinks .facebook_btn a:before{content:"";position:relative;top:4px;left:-2px;
width:14px;height:14px;display:inline-block;margin-right:3px;background:#fff;
-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 22v-8h3l1-4h-4V8.5c0-1 .3-1.5 1.7-1.5H17V3.6C16.6 3.5 15.6 3.4 14.5 3.4 12 3.4 10.3 4.9 10.3 7.9V10H7v4h3.3v8z'/></svg>") center/contain no-repeat;
mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M13 22v-8h3l1-4h-4V8.5c0-1 .3-1.5 1.7-1.5H17V3.6C16.6 3.5 15.6 3.4 14.5 3.4 12 3.4 10.3 4.9 10.3 7.9V10H7v4h3.3v8z'/></svg>") center/contain no-repeat}
@media print{.footerlinks .facebook_btn{display:none}}
