/* 基本元素與全站工具 class（.muted、.mono、.num、.pos/.neg、.sr-only、.push-end、
   .hide-sm…）。不放任何區域專屬的東西。 */
*{box-sizing:border-box}
html{scroll-padding-top:var(--sticky-top)}
/* font-synthesis-weight:none：DM Mono 只有 300／400／500，等寬字遇到 600／700 時
   瀏覽器會自己把字描粗（假粗體，筆畫糊成一團）。關掉之後退回最接近的 500。 */
body{margin:0;background:
  radial-gradient(56.25rem 25rem at 90% -5%, #ffe8c4 0%, transparent 60%), var(--ink);
  color:var(--text);font-family:var(--sans);line-height:1.5;font-synthesis-weight:none}
small{color:var(--muted)}
a{color:var(--gold)}
.runs a,.runs-table a,.screener a{text-decoration:none}
.runs a:hover,.runs-table a:hover{text-decoration:underline}
/* 標題用圓體。h3 在這站是小標籤（大寫、淡色），不是標題，維持內文字體。 */
h1,h2{font-family:var(--title);font-weight:700}
h2{font-size:1.25rem;margin:0}
h3{font-size:1.0156rem;margin:0;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.loading{color:var(--muted);padding:2.5rem;text-align:center}
.muted{color:var(--muted)}
.num{font-variant-numeric:tabular-nums}
.mono{font-family:var(--mono)}
/* 表單欄位：白底、細框、圓角。搜尋框另有全圓的 .search（components.css）。 */
input,select,textarea{background:var(--panel);border:.0625rem solid var(--line);color:var(--text);
  border-radius:var(--r-inner);padding:.5rem .75rem;font-size:1.0938rem;font-family:inherit}
/* 下拉選單換掉瀏覽器原生的箭頭，改成內縮、同色系（--muted）的 chevron：原生箭頭貼著右邊框，各家也長得不一樣
   （10-28 Joey 要全站統一）。多選、列表式的不用箭頭。:where 讓特異性跟 select 一樣，各處的 class 照樣蓋得過。 */
select:where(:not([multiple],[size])){-webkit-appearance:none;appearance:none;padding-right:2.25rem;
  background:var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237a6550' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")
    no-repeat right .75rem center / .875rem}
/* 焦點框用讀得出來的金（白底 5.58）：主要金 --primary 對白底只有 1.88，看不出焦點在哪 */
input:focus-visible,select:focus-visible,textarea:focus-visible{outline:.125rem solid var(--gold);outline-offset:.0625rem;border-color:var(--gold)}
/* 不能改的欄位（例：後台改不了自己的角色）要看得出來 */
input:disabled,select:disabled,textarea:disabled{background-color:var(--panel-2);color:var(--muted);cursor:not-allowed}
input[type=checkbox],input[type=radio]{accent-color:var(--primary)}
.pos{color:var(--green)} .neg{color:var(--red)}
.sr-only{position:absolute;width:.0625rem;height:.0625rem;padding:0;margin:-.0625rem;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.push-end{margin-left:auto}   /* 手機在窄斷點歸零，見下方 */

@media (max-width: 47.9375rem){
  .hide-sm{display:none}

  .push-end{margin-left:0}
}
