html[data-site-design]{--font:'SUIT Variable','Noto Sans TC',sans-serif;font-synthesis:none}
html[data-site-design][lang^=zh i],html[data-site-design] [lang^=zh i]{--font:'Noto Sans TC','SUIT Variable',sans-serif;font-family:var(--font)}
html[data-site-design] [lang^=ko i],html[data-site-design] [lang^=en i]{--font:'SUIT Variable','Noto Sans TC',sans-serif;font-family:var(--font)}
html[data-site-design] :focus-visible{outline-color:var(--focus)}
html[data-site-design] ::selection{background:var(--accent-soft);color:var(--ink)}
html[data-site-design] .search-input button,html[data-site-design] .button{color:var(--on-accent)}
html[data-site-design] input,html[data-site-design] select,html[data-site-design] .share-button{border-color:var(--control-line)}
html[data-site-design] .prose pre{border:1px solid var(--line)}
html[data-site-design] #language{width:144px;max-width:none}
/* Controlled HTML details menu avoids the OS-native select selection rectangle.
   Keyboard focus retains a visible ring. */
html[data-site-design] .language-menu{position:relative;min-width:144px;z-index:12}
html[data-site-design] .language-menu summary{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:44px;max-width:none;width:100%;padding:10px 5px;
  color:var(--muted);background:transparent;border:0;border-radius:6px;
  list-style:none;cursor:pointer;user-select:none
}
html[data-site-design] .language-menu summary::-webkit-details-marker{display:none}
html[data-site-design] .language-menu summary::after{
  content:"";width:7px;height:7px;border-right:1.5px solid currentColor;
  border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg)
}
html[data-site-design] .language-menu[open] summary::after{transform:translateY(2px) rotate(225deg)}
html[data-site-design] .language-menu summary:focus{outline:none}
html[data-site-design] .language-menu summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
html[data-site-design] .language-options{
  position:absolute;right:0;top:calc(100% + 3px);min-width:156px;
  padding:5px;border:1px solid var(--line);border-radius:9px;
  background:var(--surface);box-shadow:0 8px 22px #0003
}
html[data-site-design] .language-options a{
  display:block;padding:9px 12px;border-radius:6px;color:var(--ink);
  font-size:13px;line-height:1.55;white-space:nowrap
}
html[data-site-design] .language-options a:hover,
html[data-site-design] .language-options a:focus-visible{background:var(--soft);color:var(--ink)}
html[data-site-design] .language-options a[aria-current="page"]{font-weight:650;color:var(--accent)}
/* Theme and language controls use the same accessible in-page popup, without
   a native OS selection rectangle. Buttons inherit the active palette tokens. */
html[data-site-design] .theme-menu{min-width:104px}
html[data-site-design] .theme-options button{
  display:block;width:100%;padding:9px 12px;border:0;border-radius:6px;
  background:transparent;color:var(--ink);font-family:inherit;
  font-size:13px;line-height:1.55;text-align:start;white-space:nowrap
}
html[data-site-design] .theme-options button:hover,
html[data-site-design] .theme-options button:focus-visible{
  background:var(--soft);color:var(--ink)
}
html[data-site-design] .theme-options button[aria-pressed="true"]{
  font-weight:650;color:var(--accent)
}

html[data-site-design] #main-navigation a[aria-current],html[data-site-design] .section-tabs a[aria-current=page]{color:var(--accent);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}
html[data-site-design] .section-tabs a{display:inline-flex;align-items:center;min-height:44px;padding-inline:4px}
@media(max-width:800px){
html[data-site-design] .header-inner{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"brand toggle" "controls controls" "navigation navigation";gap:0 12px;padding-block:4px;min-height:0}
html[data-site-design] .brand{grid-area:brand;margin-right:0;min-width:0}
html[data-site-design] .menu-toggle{grid-area:toggle}
html[data-site-design] .header-controls{grid-area:controls;justify-content:flex-end;gap:8px}
html[data-site-design] .header-controls .compact-select{padding-right:22px}
html[data-site-design] #main-navigation{grid-area:navigation}
}
html[data-site-design] .home-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space);align-items:start}
html[data-site-design] .home-columns>section{min-width:0}
html[data-site-design] .home-cards{display:grid;gap:var(--space);align-items:start}
html[data-site-design] .home-columns .section-heading{margin-bottom:18px}
html[data-site-design] .home-news{display:block}
@media(max-width:800px){
html[data-site-design] .home-columns{grid-template-columns:minmax(0,1fr);gap:38px}
html[data-site-design] .home-news{margin-top:38px}
}
@media(max-width:720px){
html[data-site-design] .home-cards{gap:20px}
html[data-site-design] .home-columns .section-heading{margin-bottom:16px}
html[data-site-design] .home-columns h2{font-size:19px}
}
