/* baseball.twtools.cc 百科線樣式表——由 scripts/gen-mlb-encyclopedia-season.py 產出，請勿手改。*/

:root {
  --radius: 16px;
  --radius-sm: 11px;
  --font-display: 'Anton', 'Noto Sans TC', sans-serif;
  --font-ui: 'Archivo', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
  --surface: #ffffff; --surface-2: #f8faf6; --surface-3: #eef1ec;
  --fg: #1b211e; --fg-soft: #49534d; --dim: #6f7a73; --faint: #9aa39d;
  --line: rgba(20,28,24,0.10); --line-2: rgba(20,28,24,0.17);
  --sheet-shadow: rgba(20,28,24,0.16); --scrim: rgba(20,28,24,0.34);
}
:root[data-theme="grass"]    { --bg:#f1f4ed; --bg-glow:#e2efdc; --accent:#1f9d63; --accent-bright:#23b372; --accent-ink:#ffffff; --accent-soft:rgba(31,157,99,0.10);  --accent-line:rgba(31,157,99,0.30);  --accent-glow:rgba(31,157,99,0.26); }
:root[data-theme="cobalt"]   { --bg:#eef1f7; --bg-glow:#e1e8f7; --accent:#2b5ce0; --accent-bright:#3a6bf0; --accent-ink:#ffffff; --accent-soft:rgba(43,92,224,0.10);  --accent-line:rgba(43,92,224,0.30);  --accent-glow:rgba(43,92,224,0.26); }
:root[data-theme="tangerine"]{ --bg:#f7f1e9; --bg-glow:#f3e6d4; --accent:#d4622a; --accent-bright:#e8743a; --accent-ink:#ffffff; --accent-soft:rgba(212,98,42,0.10);  --accent-line:rgba(212,98,42,0.30);  --accent-glow:rgba(212,98,42,0.26); }
:root[data-theme="berry"]    { --bg:#f6eef2; --bg-glow:#f2e1ea; --accent:#c0356f; --accent-bright:#d44a82; --accent-ink:#ffffff; --accent-soft:rgba(192,53,111,0.10); --accent-line:rgba(192,53,111,0.30); --accent-glow:rgba(192,53,111,0.26); }
:root[data-theme="teal"]     { --bg:#ebf2f1; --bg-glow:#dcecea; --accent:#0f8a8a; --accent-bright:#14a3a0; --accent-ink:#ffffff; --accent-soft:rgba(15,138,138,0.10); --accent-line:rgba(15,138,138,0.30); --accent-glow:rgba(15,138,138,0.26); }
:root[data-theme="plum"]     { --bg:#f1eef6; --bg-glow:#e6e1f3; --accent:#6c4bd1; --accent-bright:#7d5ee0; --accent-ink:#ffffff; --accent-soft:rgba(108,75,209,0.10); --accent-line:rgba(108,75,209,0.30); --accent-glow:rgba(108,75,209,0.26); }
:root[data-theme="dark"] {
  --surface: #143524; --surface-2: #1a4530; --surface-3: #1f4a36;
  --fg: #e8f0e6; --fg-soft: #b8c5bb; --dim: #8a9c8d; --faint: #6a7a6e;
  --line: rgba(232,240,230,0.10); --line-2: rgba(232,240,230,0.18);
  --sheet-shadow: rgba(0,0,0,0.55); --scrim: rgba(0,0,0,0.55);
  --bg: #0d2818; --bg-glow: #143a26; --accent: #d4af37; --accent-bright: #f0c850;
  --accent-ink: #0d2818; --accent-soft: rgba(212,175,55,0.12); --accent-line: rgba(212,175,55,0.35); --accent-glow: rgba(212,175,55,0.30);
}
:root[data-theme="dark"] body::before { mix-blend-mode: screen; opacity: 0.22; }
:root[data-theme="dark"] .theme-switch { box-shadow: 0 6px 22px rgba(0,0,0,0.45); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg); color: var(--fg); font-family: var(--font-ui);
  line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh; padding: 0 16px 110px; position: relative;
  background: radial-gradient(130% 72% at 50% -12%, var(--bg-glow) 0%, transparent 56%), var(--bg);
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

:root[data-theme="navy"] {
  color-scheme:dark;
  --surface:#10294a; --surface-2:#16335a; --surface-3:#1b3c69;
  --fg:#f3efe4; --fg-soft:#c7cfdb; --dim:#9ca6b8; --faint:#8690a2;
  --line:rgba(243,239,228,0.12); --line-2:rgba(243,239,228,0.20);
  --sheet-shadow:rgba(0,0,0,0.5); --scrim:rgba(0,0,0,0.5);
  --bg:#0a1f3c; --bg-glow:#0e2547; --bb-header-bg:rgba(8,24,46,0.86);
  --accent:#e8b84b; --accent-bright:#f3c860; --accent-ink:#0a1f3c;
  --accent-soft:rgba(232,184,75,0.12); --accent-line:rgba(232,184,75,0.36); --accent-glow:rgba(232,184,75,0.3);
  --accent-pos:#5fb878; --accent-neg:#d98a8a;
}
:root[data-theme="azure"] {
  color-scheme:dark;
  --surface:#235384; --surface-2:#27588a; --surface-3:#2b5e91;
  --fg:#f7f3ea; --fg-soft:#dde5f0; --dim:#c9d4e3; --faint:#b9c5d5;
  --line:rgba(247,243,234,0.12); --line-2:rgba(247,243,234,0.20);
  --sheet-shadow:rgba(0,0,0,0.5); --scrim:rgba(0,0,0,0.5);
  --bg:#1d4a7a; --bg-glow:#245487; --bb-header-bg:rgba(24,64,106,0.88);
  --accent:#ffd36b; --accent-bright:#ffdf8f; --accent-ink:#15375c;
  --accent-soft:rgba(255,211,107,0.12); --accent-line:rgba(255,211,107,0.36); --accent-glow:rgba(255,211,107,0.3);
  --accent-pos:#8fe0a8; --accent-neg:#ffb4a3;
}
:root[data-theme="indigo"] {
  color-scheme:dark;
  --surface:#212160; --surface-2:#28286d; --surface-3:#30307b;
  --fg:#f4f0e6; --fg-soft:#d3d3ec; --dim:#aeb0d6; --faint:#8a8dbf;
  --line:rgba(244,240,230,0.12); --line-2:rgba(244,240,230,0.20);
  --sheet-shadow:rgba(0,0,0,0.5); --scrim:rgba(0,0,0,0.5);
  --bg:#1a1a4d; --bg-glow:#21215c; --bb-header-bg:rgba(22,22,66,0.88);
  --accent:#f2c14e; --accent-bright:#f8d06e; --accent-ink:#1a1a4d;
  --accent-soft:rgba(242,193,78,0.12); --accent-line:rgba(242,193,78,0.36); --accent-glow:rgba(242,193,78,0.3);
  --accent-pos:#7ddc9c; --accent-neg:#ff9b86;
}
:root[data-theme="ice"] {
  color-scheme:light;
  --surface:#ffffff; --surface-2:#f6f9fe; --surface-3:#e3ecf8;
  --fg:#10213a; --fg-soft:#324660; --dim:#4d5e78; --faint:#5f7088;
  --line:rgba(16,33,58,0.12); --line-2:rgba(16,33,58,0.20);
  --sheet-shadow:rgba(16,33,58,0.14); --scrim:rgba(16,33,58,0.34);
  --bg:#edf4fc; --bg-glow:#dfeafa; --bb-header-bg:rgba(237,244,252,0.90);
  --accent:#1a5bb5; --accent-bright:#134a96; --accent-ink:#ffffff;
  --accent-soft:rgba(26,91,181,0.12); --accent-line:rgba(26,91,181,0.36); --accent-glow:rgba(26,91,181,0.3);
  --accent-pos:#1d7a45; --accent-neg:#b3361f;
}
:root[data-theme="paper"] {
  color-scheme:light;
  --surface:#fffcf5; --surface-2:#faf6ed; --surface-3:#efe7d6;
  --fg:#14233b; --fg-soft:#3a4457; --dim:#565f70; --faint:#666e7e;
  --line:rgba(20,35,59,0.12); --line-2:rgba(20,35,59,0.20);
  --sheet-shadow:rgba(20,35,59,0.14); --scrim:rgba(20,35,59,0.34);
  --bg:#f6f1e6; --bg-glow:#efe6d2; --bb-header-bg:rgba(246,241,230,0.90);
  --accent:#8a5c00; --accent-bright:#6f4a00; --accent-ink:#ffffff;
  --accent-soft:rgba(138,92,0,0.12); --accent-line:rgba(138,92,0,0.36); --accent-glow:rgba(138,92,0,0.3);
  --accent-pos:#1f7542; --accent-neg:#ad351d;
}
:root[data-theme="navy"] body::before,
:root[data-theme="azure"] body::before,
:root[data-theme="indigo"] body::before { mix-blend-mode:screen; opacity:0.18; }
:root[data-theme="navy"] .site-header,
:root[data-theme="azure"] .site-header,
:root[data-theme="indigo"] .site-header,
:root[data-theme="ice"] .site-header,
:root[data-theme="paper"] .site-header { position:sticky; top:0; z-index:30; margin-bottom:34px;
  padding:14px 0; background:var(--bb-header-bg); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line); }
:root[data-theme="navy"] .site-nav a,
:root[data-theme="azure"] .site-nav a,
:root[data-theme="indigo"] .site-nav a,
:root[data-theme="ice"] .site-nav a,
:root[data-theme="paper"] .site-nav a { text-transform:none; letter-spacing:1px; font-size:13px;
  padding:6px 13px; border-radius:999px; border-bottom:none; }
:root[data-theme="navy"] .site-nav a:hover,
:root[data-theme="azure"] .site-nav a:hover,
:root[data-theme="indigo"] .site-nav a:hover,
:root[data-theme="ice"] .site-nav a:hover,
:root[data-theme="paper"] .site-nav a:hover { color:var(--accent); background:var(--accent-soft); border-bottom:none; }
:root[data-theme="navy"] .site-nav a.active,
:root[data-theme="azure"] .site-nav a.active,
:root[data-theme="indigo"] .site-nav a.active,
:root[data-theme="ice"] .site-nav a.active,
:root[data-theme="paper"] .site-nav a.active { color:var(--accent-ink); background:var(--accent); border-bottom:none; }
:root[data-theme="navy"] .brand-tag,
:root[data-theme="azure"] .brand-tag,
:root[data-theme="indigo"] .brand-tag,
:root[data-theme="ice"] .brand-tag,
:root[data-theme="paper"] .brand-tag { color:var(--dim); }
:root[data-theme="navy"] .ts-dot,
:root[data-theme="azure"] .ts-dot,
:root[data-theme="indigo"] .ts-dot,
:root[data-theme="ice"] .ts-dot,
:root[data-theme="paper"] .ts-dot { background:linear-gradient(135deg, var(--sw-bg) 0 56%, var(--sw) 56% 100%); }
:root[data-theme="navy"] .ts-sep,
:root[data-theme="azure"] .ts-sep,
:root[data-theme="indigo"] .ts-sep,
:root[data-theme="ice"] .ts-sep,
:root[data-theme="paper"] .ts-sep { width:1px; align-self:stretch; margin:1px 2px; background:var(--line-2); }


.theme-switch {
  position: fixed; top: 14px; right: 16px; z-index: 150;
  display: flex; align-items: center; gap: 11px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--line); border-radius: 99px;
  padding: 7px 13px 7px 14px; box-shadow: 0 6px 22px rgba(20,28,24,0.10);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ts-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--dim); text-transform: uppercase; }
.ts-dots { display: flex; gap: 8px; }
.ts-dot {
  width: 19px; height: 19px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--sw); border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.ts-dot:hover { transform: scale(1.14); }
.ts-dot.active { box-shadow: 0 0 0 2px var(--sw); transform: scale(1.05); }
@media (max-width: 520px) {
  .theme-switch { top: 10px; right: 10px; padding: 6px 11px; gap: 9px; }
  .ts-label { display: none; }
}


.site-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 36px 0 20px; margin-bottom: 44px;
  border-bottom: 1px solid var(--line);
  gap: 24px; flex-wrap: wrap;
}
.brand-block { display: flex; flex-direction: column; gap: 6px; }
.brand-mark {
  font-family: var(--font-display); font-size: 30px; line-height: 1;
  color: var(--accent); letter-spacing: 1.2px;
  text-decoration: none; transition: color 0.15s ease;
}
.brand-mark:hover { color: var(--accent-bright); }
.brand-tag {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 2.5px; color: var(--dim); text-transform: uppercase;
}
.site-nav {
  display: flex; gap: 22px; align-items: center;
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 2px; text-transform: uppercase;
}
.site-nav a {
  color: var(--dim); text-decoration: none;
  padding: 6px 0; border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--accent); border-bottom-color: var(--accent);
}
@media (max-width: 580px) {
  .site-header { padding-top: 22px; gap: 16px; }
  .brand-mark { font-size: 24px; }
  .site-nav { gap: 16px; font-size: 11px; }
}
.site-disclaimer { font-size: 11px; color: var(--faint); line-height: 1.7; text-align: center; max-width: 600px; margin: 18px auto 0; }
.site-disclaimer span { opacity: 0.75; }


/* ---- 百科季頁（M3）。純文字版型：無隊徽／球員照／聯盟標誌（IP 紅線）。 ---- */
.container { max-width: 980px; margin: 0 auto; position: relative; z-index: 1; padding-top: 0; }
.enc-h1 { font-family: var(--font-display); font-size: clamp(32px,5.4vw,50px); line-height:1.08; margin: 6px 0 8px; }
.enc-kicker { font-family:var(--font-mono); font-size:12px; letter-spacing:2px; color:var(--dim); text-transform:uppercase; }
.enc-crumbs { font-family:var(--font-mono); font-size:12px; letter-spacing:1px; color:var(--dim); margin: 2px 0 10px; }
.enc-crumbs a { color: var(--dim); text-decoration:none; border-bottom:1px solid var(--line); }
.enc-crumbs a:hover { color: var(--accent); }
.enc-crumbs .here { color: var(--fg-soft); }
.enc-lede { color: var(--fg-soft); font-size: 16px; line-height: 1.9; margin: 14px 0 10px; }
.enc-lede b { color: var(--accent); font-weight: 700; }
.enc-sec { font-family:var(--font-mono); font-size:12px; letter-spacing:2px; color:var(--dim); text-transform:uppercase; margin: 40px 0 10px; border-top:1px solid var(--line); padding-top:18px; }
.enc-div { font-size: 17px; font-weight: 700; margin: 24px 0 6px; }
.enc-table { width:100%; border-collapse:collapse; margin: 6px 0 8px; font-size: 14.5px; }
.enc-table th, .enc-table td { padding: 9px 8px; text-align:center; border-bottom:1px solid var(--line); white-space: nowrap; }
.enc-table th { color: var(--dim); font-weight:600; font-size:12.5px; }
.enc-table td.l, .enc-table th.l { text-align:left; white-space: normal; }
.enc-table td.w { color: var(--accent); font-weight:800; }
.enc-table .en { color: var(--faint); font-size: 12px; }
/* 表格內的連結（球隊名）。原本沒有任何規則，掉回瀏覽器預設藍，深底主題上等於讀不到
   ——2026-08-22 上線前目檢抓到，四道 gate 與 golden 都驗不出這種缺陷（它們比對的是
   內容與 bytes，不是可讀性）。
   ⚠️ 刻意不用 var(--accent)：金／綠等強調色在同一張表裡已經承載「勝場數」這個語意
   （.enc-table td.w），連結再用一次會讓同一個視覺通道承載兩件事。連結用前景色，
   可點性交給底線，hover 才轉強調色。 */
.enc-table a { color: var(--fg); text-decoration: underline;
  text-decoration-color: var(--accent-line); text-decoration-thickness: 1px;
  text-underline-offset: 3px; }
.enc-table a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.enc-table tr.champ td { background: var(--accent-soft); }
.enc-scroll { overflow-x: auto; }
.enc-p { color: var(--fg-soft); font-size: 15px; line-height: 1.95; margin: 12px 0; }
.enc-p a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.enc-note { color: var(--dim); font-size: 13px; line-height: 1.85; margin: 10px 0; }
.enc-note a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.enc-era { border-left: 2px solid var(--line-2); padding: 2px 0 2px 16px; margin: 10px 0 0; }
.enc-todo { list-style:none; margin: 10px 0 0; padding: 0; }
.enc-todo li { color: var(--dim); font-size: 14px; line-height: 1.9; padding: 8px 0 8px 18px; border-bottom: 1px solid var(--line); position: relative; }
.enc-todo li::before { content: '—'; position: absolute; left: 0; color: var(--faint); }
.enc-todo b { color: var(--fg-soft); font-weight: 700; }
.enc-receipt { border:1px solid var(--line-2); border-radius: var(--radius-sm); padding: 18px 20px; margin: 12px 0 0; }
.enc-receipt dl { display:grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 13.5px; line-height: 1.8; }
.enc-receipt dt { color: var(--dim); }
.enc-receipt dd { color: var(--fg-soft); margin: 0; word-break: break-word; }
.article-footer { margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 22px; }
.foot-links { display: flex; gap: 22px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 1px; }
.foot-links a { color: var(--dim); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }
@media (max-width: 640px) {
  .enc-table { font-size: 13px; }
  .enc-table th, .enc-table td { padding: 8px 5px; }
  .enc-receipt dl { grid-template-columns: 1fr; gap: 2px 0; }
  .enc-receipt dt { margin-top: 8px; }
}
