/* ===========================================================================
   監督資料庫（WP5 前端）— 金版設計（2026-09-10 用戶核定，融合廖偉翔官網語言）
   ARCH_監督資料庫.md §7：本檔為 WP5 所有物；style.css 一律不碰。
   全部選擇器掛在 .ov-page 之下（或 .ov-drawer / .ov-backdrop 這兩個直接掛 body
   的 overlay），避免污染站內其他頁面。

   設計語言（黑白襯線 + 藍 accent，取自廖偉翔官網）：
     - Noto Serif TC（標題）／Noto Sans TC（內文）／IBM Plex Mono（數字·日期·eyebrow）
     - 1px 髮絲線、6px 圓角、藥丸鈕、反白 hover、巨大襯線幽靈浮水印
     - 顏色走本檔自帶 token（--ink/--paper/--ash/--line/--blue…），不吃站內 --c-*，
       但主題仍跟著站內 html[data-theme="dark"] 走（站台唯一真相）。
   =========================================================================== */

/* ── 金版 token（light 預設；dark 由站內 data-theme 覆蓋，與舊檔同慣例） ──── */
.ov-page, .ov-drawer, .ov-backdrop {
  --paper: #ffffff; --wash: #f7f6f3; --sink: #efece7;
  --ink: #171414; --ink2: #3a3531; --ash: #6d6862; --faint: #9a938a;
  --line: #e5e1da; --line2: #d9d4cc; --hair: #171414;
  --blue: #1a63c8; --navy: #12224a;
  --gold: #977415; --silver: #6c7079; --skel: #a59d92;
  --dodge: #b23528; --cut: #1c6a55; --promise: #8a6413;
  --gold-w: #f6efdd; --dodge-w: #f8e7e3; --cut-w: #e2f0ea; --blue-w: #e7effb;
  --serif: "Noto Serif TC", Songti TC, "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --ov-radius: 6px;
}
html[data-theme="dark"] .ov-page,
html[data-theme="dark"] .ov-drawer,
html[data-theme="dark"] .ov-backdrop {
  --paper: #131210; --wash: #191714; --sink: #211e1a;
  --ink: #ece6dc; --ink2: #cabfb0; --ash: #9a9086; --faint: #6f665c;
  --line: #2c2823; --line2: #3a352e; --hair: #ece6dc;
  --blue: #6fa2ec; --navy: #a9c0ea;
  --gold: #d4b25a; --silver: #a4a9b3; --skel: #7d766b;
  --dodge: #e77363; --cut: #4bb394; --promise: #d4a94f;
  --gold-w: #2a2412; --dodge-w: #2f1a16; --cut-w: #122720; --blue-w: #15233d;
}

.ov-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 0 90px;
  font-family: var(--sans);
  color: var(--ink);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
.ov-page ::selection { background: var(--ink); color: var(--paper); }

/* ⚠ 坑：本檔很多容器自帶 display:flex/grid，優先級高過 UA 的 [hidden]{display:none}，
   會讓 el.hidden = true 「關不掉」。這條總閘一次擋掉。 */
.ov-page [hidden], .ov-drawer[hidden], .ov-backdrop[hidden] { display: none !important; }

/* ── hero（金版 masthead：eyebrow / 巨大襯線標題 / 幽靈浮水印） ──────────── */
.ov-hero {
  position: relative; overflow: hidden;
  padding: 22px 4px 20px; margin-bottom: 2px;
  border-bottom: 2px solid var(--hair);
}
.ov-hero::after {
  content: "監"; position: absolute; right: -10px; top: -66px;
  font-family: var(--serif); font-weight: 900; font-size: 220px; line-height: 1;
  color: var(--ink); opacity: .04; pointer-events: none; user-select: none; letter-spacing: -.04em;
}
.ov-hero-row { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.ov-eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ash); font-weight: 500; align-self: center;
}
.ov-title {
  font-family: var(--serif); font-size: clamp(26px, 4.4vw, 40px); font-weight: 900;
  color: var(--ink); margin: 0; line-height: 1.04; letter-spacing: -.01em;
}
.ov-pill {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; vertical-align: 5px;
  background: var(--navy); color: #fff; padding: 2px 9px; border-radius: 999px; letter-spacing: .12em;
}
html[data-theme="dark"] .ov-pill { background: #22375f; color: #dbe6fa; }
.ov-hero-sp { flex: 1 1 auto; }
.ov-gen { font-family: var(--mono); font-size: 11.5px; color: var(--ash); white-space: nowrap; }
.ov-help-btn {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  cursor: pointer; border: 1px solid var(--line2); background: var(--paper); color: var(--ash);
}
.ov-help-btn:hover, .ov-help-btn.on { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.ov-help {
  position: relative; z-index: 1;
  margin: 14px 0 0; max-width: 880px; background: var(--wash);
  border: 1px solid var(--line); border-left: 2px solid var(--blue); border-radius: 0 var(--ov-radius) var(--ov-radius) 0;
  padding: 13px 16px; font-size: 13px; color: var(--ash); line-height: 1.75;
}
.ov-help b { color: var(--ink2); }
.ov-help p { margin: 0 0 8px; }
.ov-help p:last-child { margin-bottom: 0; }

/* ── 全文搜尋 ───────────────────────────────────────────────────────────── */
.ov-searchbar { display: flex; gap: 8px; margin: 16px 0 0; flex-wrap: wrap; position: relative; z-index: 1; }
.ov-searchbar input[type="search"] {
  flex: 1 1 320px; min-width: 0; padding: 10px 15px; font-size: 14px; font-family: var(--sans);
  border: 1px solid var(--line2); border-radius: var(--ov-radius);
  background: var(--paper); color: var(--ink); outline: none;
}
.ov-searchbar input[type="search"]:focus { border-color: var(--blue); }
.ov-btn {
  cursor: pointer; border: 1px solid var(--line2); background: var(--paper);
  color: var(--ink); padding: 9px 17px; border-radius: 999px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: all .15s ease;
}
.ov-btn:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.ov-btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ov-btn.primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.ov-btn:disabled { opacity: .45; cursor: not-allowed; }
.ov-search-hint { margin: 8px 2px 0; font-size: 11.5px; color: var(--faint); font-family: var(--mono); letter-spacing: .02em; }
.ov-search-results { margin: 12px 0 0; }

/* ── 主入口 tab（金版底線 switch 風） ──────────────────────────────────── */
.ov-tabs {
  display: flex; flex-wrap: wrap; gap: 0 4px; margin: 18px 0 18px;
  border-bottom: 1px solid var(--line);
}
.ov-tab {
  cursor: pointer; border: 0; background: none; color: var(--ash);
  padding: 12px 16px 11px; margin-bottom: -1px;
  font-family: var(--serif); font-size: 16px; font-weight: 700; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .15s ease;
}
.ov-tab:hover { color: var(--ink2); }
.ov-tab.active { color: var(--ink); border-bottom-color: var(--hair); }

.ov-panel[hidden] { display: none; }

/* ── 麵包屑 ─────────────────────────────────────────────────────────────── */
.ov-crumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 2px 14px; font-family: var(--mono); font-size: 12px; color: var(--ash); letter-spacing: .02em;
}
.ov-crumb .ov-crumb-cur { color: var(--ink); font-weight: 600; }
.ov-crumb a { cursor: pointer; color: var(--blue); text-decoration: none; }
.ov-crumb a:hover { text-decoration: underline; }

/* ── 委員會 / 委員 卡片格 ───────────────────────────────────────────────── */
.ov-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px; margin: 0 2px;
}
.ov-tile {
  border: 1px solid var(--line); border-radius: var(--ov-radius);
  background: var(--paper); padding: 15px 16px; cursor: pointer;
  transition: border-color .15s ease, transform .12s ease;
}
.ov-tile:hover { border-color: var(--hair); transform: translateY(-1px); }
.ov-tile-name { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.ov-tile-n { font-family: var(--mono); font-size: 11.5px; color: var(--ash); margin-top: 8px; letter-spacing: .02em; }
.ov-tile-n b { color: var(--blue); font-size: 17px; font-weight: 600; }
.ov-tile.ov-tile-empty { opacity: .5; cursor: default; }
.ov-tile.ov-tile-empty:hover { border-color: var(--line); transform: none; }
/* 委員圖卡：黨派色（左邊色條＋淡底），資料／金版兩格 */
.ov-tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ov-tile-head .ov-party { flex: 0 0 auto; margin-top: 2px; }
.ov-tile-n { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ov-tile-stat { white-space: nowrap; }
.ov-tile-gold b { color: #b8860b; }
.ov-tile-gold.is-zero b { color: var(--ash); font-weight: 500; }
.ov-tile-kmt, .ov-tile-dpp, .ov-tile-tpp, .ov-tile-npp { border-left-width: 4px; }
.ov-tile-kmt { border-left-color: #1e4fb8; background: #f3f6fd; }
.ov-tile-dpp { border-left-color: #1f7a4d; background: #f1f9f4; }
.ov-tile-tpp { border-left-color: #0d7a7a; background: #eff8f8; }
.ov-tile-npp { border-left-color: #d9b23a; background: #fdf9ec; }
.ov-tile-none { border-left-width: 4px; border-left-color: var(--line2); }
html[data-theme="dark"] .ov-tile-gold b { color: #e2b93b; }
html[data-theme="dark"] .ov-tile-kmt { border-left-color: #6fa2ec; background: #151a27; }
html[data-theme="dark"] .ov-tile-dpp { border-left-color: #4fc38a; background: #13201a; }
html[data-theme="dark"] .ov-tile-tpp { border-left-color: #4fc3c3; background: #122021; }
html[data-theme="dark"] .ov-tile-npp { border-left-color: #e2b93b; background: #221e12; }

/* ── 篩選列（金版 fbar） ────────────────────────────────────────────────── */
.ov-filters {
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  margin: 0 2px 14px; padding: 11px 13px;
  background: var(--paper); border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--ov-radius);
}
.ov-filters label { font-size: 12px; color: var(--ash); display: flex; align-items: center; gap: 6px; }
.ov-filters select, .ov-filters input[type="text"] {
  padding: 6px 10px; font-size: 12.5px; font-family: var(--sans); border: 1px solid var(--line2);
  border-radius: var(--ov-radius); background: var(--paper); color: var(--ink); max-width: 190px; outline: none;
}
.ov-filters select:focus, .ov-filters input[type="text"]:focus { border-color: var(--blue); }
.ov-filters select:disabled { opacity: .4; cursor: not-allowed; }
.ov-filters .ov-chk { cursor: pointer; }
.ov-local-mark {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; color: var(--promise);
  border: 1px solid currentColor; border-radius: 3px; padding: 0 3px; margin-left: 3px; letter-spacing: .04em;
}
.ov-filters-sp { flex: 1 1 auto; }
.ov-count { font-family: var(--mono); font-size: 12px; color: var(--ash); }
.ov-count b { color: var(--ink); font-weight: 600; }

/* ── 文件卡列表（金版 .ov-card） ────────────────────────────────────────── */
.ov-list { display: flex; flex-direction: column; gap: 12px; margin: 0 2px; }
.ov-card {
  border: 1px solid var(--line); border-radius: var(--ov-radius);
  background: var(--paper); padding: 16px 18px; cursor: pointer;
  transition: border-color .15s ease;
}
.ov-card:hover { border-color: var(--hair); }
.ov-card-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ov-card-title {
  font-family: var(--serif); font-size: 16.5px; font-weight: 700; color: var(--ink);
  line-height: 1.45; letter-spacing: .005em; flex: 1 1 260px;
}
.ov-card-meta {
  display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ash); margin-top: 10px; letter-spacing: .02em;
}
.ov-card-sum {
  margin-top: 10px; font-size: 13.5px; color: var(--ink2); line-height: 1.75; font-family: var(--sans);
}
.ov-card-sum li { margin-left: 17px; }
.ov-card-sum ul { margin: 0; padding: 0; }
.ov-card-sum.ov-d-none { color: var(--faint); font-style: italic; }
.ov-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }

.ov-ag-point { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 15.5px; line-height: 1.45; }
.ov-ag-summary { color: var(--ash); font-size: 12.5px; line-height: 1.6; margin-top: 5px; }
.ov-ag-subjects { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 11px; }
.ov-ag-subjects b { font-family: var(--mono); font-size: 11px; color: var(--ash); letter-spacing: .04em; }
.ov-ag-subjects span { border-left: 2px solid var(--blue); background: var(--wash); padding: 5px 9px; border-radius: 0 4px 4px 0; font-size: 12.5px; color: var(--ink2); }
.ov-ag-more { margin: 11px 0 2px; }
.ov-ag-raw { margin-top: 10px; font-size: 12px; color: var(--ash); }
.ov-ag-raw summary { cursor: pointer; font-weight: 700; color: var(--blue); font-family: var(--mono); }

/* ── 徽章（tier 走金版 tbadge 藥丸） ────────────────────────────────────── */
.ov-b {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; line-height: 1.7;
  padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line2); color: var(--ash); background: var(--paper);
}
.ov-b-tier-gold { color: var(--gold); background: var(--gold-w); border-color: transparent; }
.ov-b-tier-silver { color: var(--silver); background: var(--sink); border-color: transparent; }
.ov-b-tier-skeleton { color: var(--faint); background: transparent; border: 1px dashed var(--line2); }

.ov-b-src { color: var(--blue); background: transparent; border-color: var(--blue); }
.ov-b-topic { color: var(--ash); background: transparent; border-color: var(--line2); }
.ov-b-has { color: var(--promise); background: var(--gold-w); border-color: transparent; }
.ov-b-warn { color: var(--dodge); background: var(--dodge-w); border-color: transparent; }
.ov-b-ok { color: var(--cut); background: var(--cut-w); border-color: transparent; }

.ov-party { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; padding: 1px 7px; border-radius: 999px; letter-spacing: .06em; }
.ov-party-kmt { color: #fff; background: var(--navy); }
.ov-party-dpp { color: #fff; background: #1f7a4d; }
.ov-party-tpp { color: #fff; background: #0d7a7a; }
.ov-party-npp { color: #3a2f00; background: #d9b23a; }
.ov-party-none { color: var(--ash); background: var(--sink); }
html[data-theme="dark"] .ov-party-kmt { color: #dbe6fa; background: #22375f; }
html[data-theme="dark"] .ov-party-dpp { color: #d4f3e2; background: #1c4c34; }
html[data-theme="dark"] .ov-party-tpp { color: #cdf0f0; background: #144a4a; }
html[data-theme="dark"] .ov-party-npp { color: #ffe9a8; background: #5a4a12; }

/* ── 分頁 ───────────────────────────────────────────────────────────────── */
.ov-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 2px 0; }

/* ── 空狀態 / 載入 ──────────────────────────────────────────────────────── */
.ov-empty {
  margin: 8px 2px; padding: 46px 18px; text-align: center;
  border: 1px dashed var(--line2); border-radius: var(--ov-radius);
  background: var(--wash); color: var(--ash); font-size: 13.5px; line-height: 1.85;
}
.ov-empty .ov-empty-ico { font-size: 30px; display: block; margin-bottom: 10px; }
.ov-empty b { color: var(--ink); font-family: var(--serif); }
.ov-empty code { font-family: var(--mono); font-size: 12px; background: var(--sink); padding: 1px 5px; border-radius: 3px; }
.ov-loading { margin: 8px 2px; padding: 40px; text-align: center; color: var(--ash); font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }
.ov-spin {
  display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px;
  border: 2px solid var(--line2); border-top-color: var(--blue);
  border-radius: 50%; animation: ov-spin .8s linear infinite;
}
@keyframes ov-spin { to { transform: rotate(360deg); } }

/* ── 委員頁：金版 hero + stats + 面板 + 時間軸 ──────────────────────────── */
.ov-legi-head {
  position: relative; overflow: hidden;
  margin: 0 2px 20px; padding: 4px 2px 22px;
  border-bottom: 1px solid var(--line);
}
.ov-legi-name { display: block; font-family: var(--serif); font-size: clamp(38px, 7vw, 68px); font-weight: 900; color: var(--ink); line-height: .98; letter-spacing: .02em; margin-bottom: 8px; }
.ov-legi-head .ov-party { vertical-align: 6px; margin-right: 10px; }
.ov-legi-meta { font-family: var(--mono); font-size: 12px; color: var(--ash); letter-spacing: .04em; }
.ov-legi-head .ov-filters-sp { display: none; }

/* 統計條（巨大襯線數字） */
.ov-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin: 20px 2px 0; }
.ov-stat { padding: 15px 6px 16px; border-right: 1px solid var(--line); }
.ov-stat:last-child { border-right: 0; }
.ov-stat .n { font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 3.2vw, 34px); line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.ov-stat .n .u { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ash); margin-left: 3px; letter-spacing: 0; }
.ov-stat .l { font-size: 11.5px; color: var(--ash); margin-top: 8px; letter-spacing: .03em; }
.ov-stat.acc .n { color: var(--blue); }
.ov-stat.dg .n { color: var(--dodge); }
.ov-stat.pr .n { color: var(--promise); }

.ov-style-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px; margin: 24px 2px;
}
.ov-style-card { background: none; }
.ov-style-h {
  font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ash);
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.ov-bar-row { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 12.5px; }
.ov-bar-lbl { flex: 0 0 88px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-bar-track { flex: 1 1 auto; height: 5px; background: var(--sink); border-radius: 3px; overflow: hidden; }
.ov-bar-fill { display: block; height: 100%; background: var(--ink2); border-radius: 3px; }
.ov-bar-row:first-of-type .ov-bar-fill { background: var(--blue); }
.ov-bar-n { flex: 0 0 30px; text-align: right; font-family: var(--mono); color: var(--ash); font-variant-numeric: tabular-nums; }

.ov-spark { display: flex; align-items: flex-end; gap: 3px; height: 88px; }
.ov-spark-col { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.ov-spark-bar { width: 100%; background: var(--blue); border-radius: 1px 1px 0 0; min-height: 2px; }
.ov-spark-lbl { font-family: var(--mono); font-size: 9px; color: var(--faint); margin-top: 5px; white-space: nowrap; transform: rotate(-45deg); transform-origin: center; }
.ov-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.ov-chips .ov-chip-n { font-family: var(--mono); font-size: 11px; color: var(--ash); margin: 0 8px 0 -3px; align-self: center; }
.ov-chips .ov-b em { font-style: normal; font-family: var(--mono); color: var(--ash); }

/* 委員頁 2026-09-10：連續月份長條（補零、標籤不旋轉）＋戰果數字鈕＋寬卡 */
.ov-spark-m { height: 96px; gap: 2px; padding-bottom: 14px; position: relative; border-bottom: 1px solid var(--line); }
.ov-spark-m .ov-spark-col { position: relative; }
.ov-spark-m .ov-spark-lbl { transform: none; font-size: 9px; margin-top: 4px; position: absolute; top: 100%; left: 0; right: 0; text-align: center; overflow: hidden; }
.ov-spark-m .ov-spark-lbl.yr { color: var(--ink2); font-weight: 600; }
.ov-spark-m .ov-spark-col.zero .ov-spark-bar { background: var(--line2); }
.ov-spark-m .ov-spark-col.zero .ov-spark-lbl { color: var(--line2); }
.ov-spark-v { font-family: var(--mono); font-size: 8.5px; color: var(--ash); line-height: 1; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.ov-spark-note { font-size: 11.5px; color: var(--ash); margin-top: 14px; line-height: 1.6; }
.ov-style-card-wide { grid-column: 1 / -1; }
.ov-style-hr { float: right; letter-spacing: 0; text-transform: none; font-size: 11px; color: var(--faint); }
.ov-legi-last { color: var(--promise); }
.ov-stats-lg { margin-top: 0; border-bottom: 1px solid var(--line); }
.ov-stats-lg .ov-stat { appearance: none; background: none; font: inherit; text-align: left; cursor: pointer; color: inherit; border-top: 2px solid transparent; }
.ov-stats-lg .ov-stat:hover { background: var(--wash); }
.ov-stats-lg .ov-stat.on { border-top-color: var(--ink); background: var(--wash); }
.ov-stats-lg .ov-stat:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ov-promise-list .ov-promise .ov-b { white-space: nowrap; }
.ov-quote-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.ov-quote-list .ov-quote { cursor: pointer; margin: 0; }
.ov-quote-list .ov-quote:hover { border-left-color: var(--dodge); }
.ov-quote-list .ov-quote footer { font-family: var(--mono); font-size: 11px; color: var(--ash); margin-top: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ov-promise-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 0 18px; }
.ov-tl-item[hidden] { display: none; }
.ov-style-grid .ov-bar-lbl { flex-basis: 104px; }

/* 時間軸 */
.ov-timeline { position: relative; margin: 0 2px; padding-left: 22px; }
.ov-timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line2);
}
.ov-tl-item { position: relative; margin-bottom: 12px; }
.ov-tl-item::before {
  content: ""; position: absolute; left: -18px; top: 20px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--blue); border: 2px solid var(--paper);
}
.ov-tl-date { font-family: var(--mono); font-size: 11px; color: var(--ash); font-variant-numeric: tabular-nums; }

/* ── 議程對題 ───────────────────────────────────────────────────────────── */
.ov-meet {
  border: 1px solid var(--line); border-radius: var(--ov-radius);
  background: var(--paper); margin: 0 2px 13px; overflow: hidden;
}
.ov-meet-head { padding: 15px 16px; border-bottom: 1px solid var(--line); }
.ov-meet-title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.ov-meet-meta { font-family: var(--mono); font-size: 11px; color: var(--ash); margin-top: 8px; display: flex; gap: 6px 14px; flex-wrap: wrap; letter-spacing: .02em; }
.ov-meet-agenda { font-size: 12.5px; color: var(--ink2); margin-top: 9px; line-height: 1.75; }
.ov-meet-body { padding: 12px 16px 15px; background: var(--wash); }
.ov-meet-body-h { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ash); margin-bottom: 9px; }
.ov-sim-row {
  display: flex; align-items: flex-start; gap: 11px; padding: 8px 10px; border-radius: var(--ov-radius);
  cursor: pointer; font-size: 13px; color: var(--ink); line-height: 1.65;
}
.ov-sim-row:hover { background: var(--paper); }
.ov-sim-score {
  flex: 0 0 auto; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--blue);
  font-variant-numeric: tabular-nums; padding-top: 2px;
}
.ov-sim-body { flex: 1 1 auto; min-width: 0; }
.ov-sim-meta { font-family: var(--mono); font-size: 11px; color: var(--ash); margin-top: 4px; }

/* ── 監督視角 ───────────────────────────────────────────────────────────── */
.ov-sec { margin: 0 2px 30px; }
.ov-sec-h {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-family: var(--serif); font-size: 20px; font-weight: 900; color: var(--ink);
  margin-bottom: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.ov-sec-h small { font-size: 12px; font-weight: 400; color: var(--ash); font-family: var(--sans); }
.ov-sec-body { margin-top: 14px; }

.ov-promise {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; margin-bottom: 10px;
  border: 1px solid var(--line); border-left-width: 3px; border-radius: 0 var(--ov-radius) var(--ov-radius) 0;
  background: var(--paper); cursor: pointer;
}
.ov-promise:hover { border-top-color: var(--hair); border-right-color: var(--hair); border-bottom-color: var(--hair); }
.ov-promise.is-overdue { border-left-color: var(--dodge); }
.ov-promise.is-upcoming { border-left-color: var(--promise); }
.ov-promise.is-open { border-left-color: var(--blue); }
.ov-promise.is-no_deadline { border-left-color: var(--line2); }
.ov-promise-st { flex: 0 0 auto; }
.ov-promise-body { flex: 1 1 auto; min-width: 0; }
.ov-promise-txt { font-size: 13.5px; color: var(--ink); line-height: 1.75; }
.ov-promise-meta { font-family: var(--mono); font-size: 11px; color: var(--ash); margin-top: 7px; display: flex; gap: 5px 12px; flex-wrap: wrap; }

.ov-dossier {
  border: 1px solid var(--line); border-radius: var(--ov-radius);
  background: var(--paper); margin-bottom: 11px; overflow: hidden;
}
.ov-dossier-head {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 13px 15px; cursor: pointer; user-select: none;
}
.ov-dossier-head:hover { background: var(--wash); }
.ov-dossier-tag { font-family: var(--serif); font-size: 15.5px; font-weight: 700; color: var(--ink); }
.ov-dossier-sp { flex: 1 1 auto; }
.ov-dossier-caret { color: var(--ash); font-family: var(--mono); font-size: 12px; }
.ov-dossier-body { padding: 4px 15px 15px; border-top: 1px solid var(--line); }

.ov-dodge-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.ov-dodge-tbl th, .ov-dodge-tbl td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--line); }
.ov-dodge-tbl th { font-family: var(--mono); font-size: 10.5px; color: var(--ash); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ov-dodge-tbl td { color: var(--ink); }
.ov-dodge-tbl tbody tr:hover { background: var(--wash); }
.ov-dodge-rank { font-family: var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; width: 34px; }
.ov-dodge-rate { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--dodge); }
.ov-dodge-meter { width: 120px; }
.ov-dodge-meter i { display: block; height: 6px; border-radius: 3px; background: var(--dodge); }
.ov-dodge-num { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ash); white-space: nowrap; }
.ov-tbl-wrap { overflow-x: auto; }

/* ── drawer（詳情，金版文件版式） ──────────────────────────────────────── */
.ov-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .42);
  z-index: 998; opacity: 0; transition: opacity .18s ease;
}
.ov-backdrop[hidden] { display: none; }
.ov-backdrop.show { opacity: 1; }

.ov-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 96vw);
  background: var(--paper); border-left: 2px solid var(--hair);
  z-index: 999; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .22s ease;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .14); color: var(--ink); font-family: var(--sans);
}
.ov-drawer[hidden] { display: none; }
.ov-drawer.show { transform: translateX(0); }
.ov-drawer { zoom: var(--app-zoom, 1); }   /* 搬到 body 後仍跟 A± 字級縮放（.content 才有 zoom） */
html[data-theme="dark"] .ov-drawer { box-shadow: -8px 0 34px rgba(0, 0, 0, .55); }

.ov-drawer-top {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.ov-drawer-top-t { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); flex: 1 1 auto; }
.ov-drawer-x {
  background: none; border: 1px solid var(--line2); cursor: pointer; color: var(--ash);
  font-size: 16px; line-height: 1; width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
}
.ov-drawer-x:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.ov-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 22px 22px 60px; }

.ov-d-title { font-family: var(--serif); font-size: 22px; font-weight: 900; color: var(--ink); line-height: 1.4; margin: 0 0 12px; letter-spacing: .005em; }
.ov-d-meta { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; font-family: var(--mono); font-size: 11.5px; color: var(--ash); }
.ov-d-sec { margin-top: 22px; }
.ov-d-h {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 11px; padding-bottom: 6px; border-bottom: 1px dotted var(--line2);
  display: flex; align-items: baseline; gap: 8px;
}
.ov-d-h small { font-weight: 400; font-size: 11px; color: var(--ash); letter-spacing: 0; }
.ov-d-sec ul, .ov-d-sec ol { margin: 0; padding-left: 0; list-style: none; counter-reset: ovi; }
.ov-d-sec li { position: relative; font-size: 14px; color: var(--ink2); line-height: 1.75; margin-bottom: 6px; padding-left: 30px; }
.ov-d-sec li::before {
  counter-increment: ovi; content: counter(ovi, decimal-leading-zero);
  position: absolute; left: 0; top: 3px; font-family: var(--mono); font-size: 11px; color: var(--blue); font-weight: 500;
}
.ov-d-sec.ov-d-def li::before { color: var(--dodge); }
.ov-d-none { font-size: 12.5px; color: var(--faint); font-style: italic; }

.ov-point {
  padding: 12px 14px; margin-bottom: 9px; border-radius: var(--ov-radius);
  background: var(--wash); border: 1px solid var(--line);
}
.ov-point-t { font-size: 14px; color: var(--ink); line-height: 1.75; }
.ov-point-g {
  font-family: var(--mono); font-size: 11px; color: var(--ash); margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--line2); line-height: 1.7;
}
.ov-point-g b { color: var(--cut); }

.ov-money-row, .ov-bill-row, .ov-promise-row {
  display: flex; align-items: baseline; justify-content: flex-start; gap: 10px; flex-wrap: wrap;
  padding: 9px 0; border-bottom: 1px dotted var(--line);
  font-size: 13.5px; color: var(--ink2); line-height: 1.7;
}
.ov-money-amt { font-family: var(--mono); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-money-sub { font-family: var(--mono); font-size: 11px; color: var(--ash); }
.ov-link { color: var(--blue); cursor: pointer; text-decoration: none; border-bottom: 1px solid transparent; }
.ov-link:hover { border-bottom-color: var(--blue); }

.ov-quote {
  font-family: var(--serif); font-size: 14.5px; line-height: 1.85; color: var(--ink2); background: var(--wash);
  border-left: 2px solid var(--line2); padding: 13px 16px; border-radius: 0 var(--ov-radius) var(--ov-radius) 0;
}

.ov-raw { margin-top: 22px; }
.ov-raw > summary {
  cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink); letter-spacing: .04em;
  padding: 10px 13px; border: 1px solid var(--line2); border-radius: var(--ov-radius); background: var(--wash);
  list-style: none;
}
.ov-raw > summary::-webkit-details-marker { display: none; }
.ov-raw > summary::before { content: "▸ "; color: var(--ash); }
.ov-raw[open] > summary::before { content: "▾ "; }
.ov-raw > summary small { font-weight: 400; color: var(--ash); margin-left: 6px; }
.ov-raw-text {
  margin-top: 10px; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--ov-radius);
  background: var(--wash); font-size: 13.5px; line-height: 2; color: var(--ink2);
  white-space: pre-wrap; word-break: break-word; max-height: 460px; overflow-y: auto;
}

.ov-pdf-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--blue);
  color: var(--blue); font-family: var(--mono); font-size: 12.5px; font-weight: 500; text-decoration: none; letter-spacing: .02em;
}
.ov-pdf-btn:hover { background: var(--blue); color: #fff; }

/* ── reveal on scroll（可選，JS 有掛 .rv 才生效） ───────────────────────── */
.ov-page .rv { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.ov-page .rv.in { opacity: 1; transform: none; }

/* ── RWD ────────────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .ov-page { padding: 4px 0 64px; }
  .ov-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .ov-tile { padding: 13px; }
  .ov-style-grid { grid-template-columns: 1fr; gap: 22px; }
  .ov-drawer { width: 100vw; border-left: none; }
  .ov-drawer-body { padding: 18px 16px 56px; }
  .ov-filters { padding: 10px; }
  .ov-filters select, .ov-filters input[type="text"] { max-width: 140px; }
  .ov-bar-lbl { flex-basis: 68px; }
  .ov-tab { padding: 10px 12px; font-size: 15px; }
  .ov-stats { grid-template-columns: repeat(3, 1fr); }
  .ov-stat:nth-child(3n) { border-right: 0; }
}

@media (min-width: 821px) {
  .ov-backdrop.show { display: none; }
  .ov-drawer { width: min(50vw, 760px); box-shadow: -8px 0 34px rgba(0,0,0,.18); }
  body.ov-detail-open .ov-page { margin-right: min(50vw, 760px); max-width: none; }
  body.ov-detail-open { overflow: auto !important; }
}

/* ── 列印 ───────────────────────────────────────────────────────────────── */
/* 站內已知坑：@media print 一定要 zoom:1，否則 Chrome 沿用螢幕縮放導致版面爆掉 */
@media print {
  .ov-page { zoom: 1 !important; max-width: none; padding: 0; }
  .ov-hero::after, .ov-legi-head::after { display: none !important; }
  .ov-drawer { zoom: 1 !important; position: static; width: auto; transform: none;
               box-shadow: none; border-left: none; }
  .ov-drawer-body { overflow: visible; max-height: none; padding: 0; }
  .ov-raw-text { max-height: none; overflow: visible; }
  .ov-backdrop, .ov-tabs, .ov-searchbar, .ov-help-btn, .ov-pager,
  .ov-drawer-x, .ov-drawer-top, .ov-filters, .no-print { display: none !important; }
  .ov-card, .ov-tile, .ov-meet, .ov-dossier, .ov-style-card { break-inside: avoid; }
  .ov-raw[open] > summary { border: none; background: none; }
  .ov-page .rv { opacity: 1 !important; transform: none !important; }
}
