/* ============================================================
   w04-daily-practice（每日一練日曆）v2 風格覆寫
   年齡層：kids（國小）　科目：數學
   自訂屬性→權杖對應簡表：
   --ink→--tp-text　--soft→--tp-text-soft　--paper→--tp-bg
   --card→--tp-surface　--line→--tp-line　--stamp→--tp-accent
   --stamp-deep→--tp-accent-strong　--stamp-soft→--tp-accent-soft
   --teal→--tp-success（完成進度）　--gold→--tp-warning
   --shadow→--tp-shadow-2　--radius→--tp-radius-card　--font→--tp-font-sans
   ============================================================ */

/* 一、自訂屬性整批指向 v2 權杖（無自帶深色，權杖自動切換） */
html[data-tp-theme="v2"]:root {
  --ink: var(--tp-text);
  --soft: var(--tp-text-soft);
  --paper: var(--tp-bg);
  --card: var(--tp-surface);
  --line: var(--tp-line);
  --stamp: var(--tp-accent-strong);
  --stamp-deep: var(--tp-accent-strong);
  --stamp-soft: var(--tp-accent-soft);
  --teal: var(--tp-success);
  --teal-soft: var(--tp-success-soft);
  --gold: var(--tp-warning);
  --gold-soft: var(--tp-warning-soft);
  --shadow: var(--tp-shadow-2);
  --shadow-sm: var(--tp-shadow-1);
  --radius: var(--tp-radius-card);
  --radius-sm: var(--tp-radius-ctl);
  --font: var(--tp-font-sans);
}

/* 二、標題換襯線，聚焦環對齊 accent 系（原為青綠） */
html[data-tp-theme="v2"] h1,
html[data-tp-theme="v2"] h2 {
  font-family: var(--tp-font-serif);
}

html[data-tp-theme="v2"] :focus-visible {
  outline-color: var(--tp-focus-ring);
}

/* 三、主按鈕字色對齊 accent-on（原寫死 white，深色需反轉） */
html[data-tp-theme="v2"] .primary {
  color: var(--tp-accent-on);
}

/* 四、選取態對齊 accent：年級鈕、分頁鈕原為墨底反白，篩選鈕原為青綠 */
html[data-tp-theme="v2"] .grade[aria-pressed="true"],
html[data-tp-theme="v2"] .tabs button[aria-selected="true"],
html[data-tp-theme="v2"] .seg button[aria-pressed="true"] {
  background: var(--tp-accent-strong);
  color: var(--tp-accent-on);
  border-color: var(--tp-accent-strong);
}

/* 五、寫死白底的輸入框改隨表面色 */
html[data-tp-theme="v2"] #ans,
html[data-tp-theme="v2"] .field input[type="date"],
html[data-tp-theme="v2"] .field input[type="text"] {
  background: var(--tp-surface);
}

/* 六、科目徽章：數學對齊科目識別色（語文、生活沿用 accent／warning 系） */
html[data-tp-theme="v2"] .chip.math {
  background: var(--tp-subject-math-soft);
  color: var(--tp-subject-math);
}

/* 列印學習單 .half／.answersheet／.exam-block 寫死白紙，屬刻意紙張樣式，保留 */
