/* Layout, controls and colors come from the same stylesheets as KO/EN/JA. */
html[lang="zh-TW"] body { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
html[lang="zh-TW"] * { letter-spacing: 0; }
.brand-heading > div, .info-brand > div { min-width: 0; }
.brand-heading h1, .info-brand h1 { line-height: 1.4; overflow-wrap: anywhere; }
.tw-note-preview { align-self: start; }
.tw-note-preview .small-button { text-decoration: none; white-space: nowrap; }
.tw-preview-links { display: grid; }
.tw-preview-links a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; text-decoration: none; }
.tw-preview-links a:hover { color: var(--teal); }
.tw-preview-links a span { color: var(--teal); }
.tw-content-navigation { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; min-width: 0; }
.tw-compare-title { margin-top: 28px; }
.tw-compare-title h1 { font-size: 44px; }
.trust-document h1 { font-size: 48px; }
.tw-intro { padding: 28px 0; border-top: 1px solid var(--line); margin-top: 28px; }
.tw-meta { color: var(--muted); font-size: 13px; }
.tw-note-detail .info-body { gap: 28px; }
.tw-note-detail .info-body p { line-height: 1.9; }
.tw-note-detail h3 { font-size: 17px; margin: 22px 0 8px; }
.tw-note-detail a { overflow-wrap: anywhere; }
.tw-filter-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tw-filter-heading label { font-weight: 700; }
#note-count { font-size: 13px; color: var(--muted); }
#note-filter { width: 100%; min-height: 44px; padding: 12px; font: inherit; background: #fff; border: 1px solid #bdced8; border-radius: 6px; }
.tw-category-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; font-size: 13px; }
.tw-category-nav a { color: var(--teal); text-underline-offset: 4px; }
.tw-category-nav span { color: var(--muted); margin-left: 5px; }
.tw-note-group { scroll-margin-top: 20px; }
.tw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tw-note { min-width: 0; padding: 16px; align-content: start; grid-template-rows: auto 1fr auto; }
.tw-note strong { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.tw-note span { font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.tw-note .tw-card-more { color: var(--teal); font-size: 12px; padding-top: 6px; }
.tw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.tw-tags span { padding: 4px 9px; background: var(--chip); border-radius: 4px; font-size: 14px; }
.tw-search-link { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--teal); border-radius: 5px; background: #e3f5f1; color: #075c5b; text-decoration: underline; font-weight: 600; margin: 12px 0; }
.tw-search-link:hover { background: #caeae3; }
#note-filter:focus-visible, .tw-note:focus-visible, .tw-search-link:focus-visible, .tw-preview-links a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.tw-note[hidden], .tw-note-group[hidden], .tw-category-nav[hidden] { display: none; }
@media (max-width: 1000px) { .tw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-content-navigation { justify-content: flex-start; }
  .tw-content-navigation .language-switcher { flex-shrink: 0; }
  .tw-compare-title h1, .trust-document h1 { font-size: 30px; }
}
@media (max-width: 500px) { .tw-grid { grid-template-columns: minmax(0, 1fr); } }
