/* 語言選單（<details>，不需 JS）。院長 11-25：全站一鍵切換多語言。
   放在頁首原本 Visitor Guide 捷徑的位置，尺寸與斷點跟 .visitor-link 一致（site.css 56–62 行）。 */
.lang-switch { position: relative; margin-left: auto; margin-right: 4px; flex: 0 0 auto; font-size: .85rem; }
.lang-switch summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border: 1px solid var(--teal, #00a3ad); border-radius: 999px; color: var(--deep, #00727a);
  background: #fff; font-weight: 600; white-space: nowrap; writing-mode: horizontal-tb; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { background: rgba(0,163,173,.08); }
.lang-switch ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 12em; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid #cfe3e5; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.lang-switch li a { display: block; padding: 10px 12px; border-radius: 8px; color: #1a2b33; text-decoration: none; white-space: nowrap; }
.lang-switch li a:hover, .lang-switch li a:focus-visible { background: #e9f6f7; }
.lang-switch li a[aria-current="true"] { font-weight: 700; color: #00727a; }
@media (min-width: 1200px) { .lang-switch { margin-left: 8px; margin-right: 8px; } }
@media (min-width: 1200px) and (max-width: 1359px) {
  .lang-switch summary { padding: 6px 8px; }
  .lang-switch .ls-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 520px) { .lang-switch .ls-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 379px) { .lang-switch summary { padding: 4px 6px; font-size: .72rem; } .lang-switch { margin-left: 6px; } }
/* 中文頁頁尾的語言列 */
.lang-footer { margin: 8px 0 0; font-size: .85rem; }
.lang-footer a { color: inherit; }
/* 外文頁桌機選單：字較長，1200–1439px 收窄字級與間距避免溢出 */
@media (min-width: 1200px) and (max-width: 1439px) {
  html:not([lang^="zh"]) .nav-list > li > a { padding-left: 6px; padding-right: 6px; font-size: 14px; }
  html:not([lang^="zh"]) .site-nav { gap: 10px; }
  html:not([lang^="zh"]) .nav-cta { padding: .5em .8em; font-size: 14px; }
}
/* 外文頁：英文長字讓雙欄格子撐寬（320px 首頁 News 區溢出 88px，11-28 上線後實測）。只作用在非中文頁。 */
html:not([lang^="zh"]) .two-col > * { min-width: 0; }
html:not([lang^="zh"]) main { overflow-wrap: break-word; }
/* 外文頁的門診時間表：英文「Closed」、星期縮寫較寬，窄螢幕縮字與內距（中文頁不受影響） */
@media (max-width: 520px) {
  html:not([lang^="zh"]) .hours th, html:not([lang^="zh"]) .hours td { padding: 10px 2px; font-size: 13px; }
  html:not([lang^="zh"]) .hours tbody th { padding-left: 8px; }
  html:not([lang^="zh"]) .hours tbody th small { font-size: 11px; }
  html:not([lang^="zh"]) .hours .off { font-size: 11px; }
}
