/* TLCC 自訂樣式。⚠ 外包改版時此檔不可覆蓋（外包沒有這個檔，覆蓋 site.css 不影響它）。
   index.html 要在 site.css 之後載入這支（外包覆蓋 index.html 後要把 <link> 加回去）。 */

/* 頁首帳號列：按鈕沿用網站的 .primary（紅底、內細框、hover 變深上浮），這裡只縮成頁首適合的大小 */
.tlcc-account{display:flex;align-items:center;gap:10px;min-width:0}
/* 帳號方塊與按鈕用同一個高度變數，兩者並排時上下切齊 */
.tlcc-account{--tlcc-account-h:46px}
.site-header .tlcc-account-button{height:var(--tlcc-account-h);padding:0 20px;font-size:16px;letter-spacing:2px;white-space:nowrap;flex-shrink:0}
.tlcc-account-id{display:inline-flex;align-items:center;box-sizing:border-box;height:var(--tlcc-account-h);padding:0 16px;border:1px solid #8b9b83;background:#faf8f0;color:var(--ink);font:15px Georgia,var(--serif);font-variant-numeric:lining-nums;letter-spacing:2px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media(max-width:1100px){
  .tlcc-account{--tlcc-account-h:42px}
  .site-header .tlcc-account-button{padding:0 14px;font-size:15px;letter-spacing:1px}
  .tlcc-account-id{padding:0 12px;font-size:14px;letter-spacing:1px;max-width:150px}
}
@media(max-width:760px){
  /* 手機頁首放不下時，讓帳號方塊縮短（省略號），不要把漢堡選單擠出畫面 */
  .site-header .header-actions{min-width:0;gap:8px}
  .tlcc-account{--tlcc-account-h:34px;gap:6px}
  .site-header .tlcc-account-button{padding:0 9px;font-size:13px;letter-spacing:0;gap:0}
  .site-header .tlcc-account-button:before{inset:3px}
  .tlcc-account-id{display:block;line-height:32px;flex:0 1 auto;min-width:3em;padding:0 7px;font-size:12px;letter-spacing:0;max-width:24vw}
}
@media(max-width:480px){
  /* logo 圖在手機只有約 82px 寬，外框卻佔 160px；縮成 100px 讓出空間給帳號列（圖本身大小不變） */
  .site-header .company-logo-window{width:100px;flex-basis:100px}
  .site-header .company-logo-window .company-logo{max-width:100px}
  .site-header{gap:10px}
}
