/* 動能版：全站內容與控制項補強。請置於既有樣式之後載入。 */
body.momentum-style {
  --momentum-bg: #030303;
  --momentum-panel: #17191c;
  --momentum-raised: #252a34;
  --momentum-ink: #ffffff;
  --momentum-copy: #dce0e7;
  --momentum-muted: #b7bdc8;
  --momentum-line: #424751;
  --momentum-blue: var(--brand-accent,#005CFF);
  --momentum-link: var(--brand-accent-soft,#8FB5FF);
  --ink: var(--momentum-ink);
  --muted: var(--momentum-muted);
  --line: var(--momentum-line);
  --paper: var(--momentum-panel);
  --blue: var(--momentum-blue);
  --lime: var(--momentum-blue);
  --yellow: var(--momentum-blue);
  background: var(--momentum-bg);
  color: var(--momentum-ink);
  color-scheme: dark;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

body.momentum-style :is(h1, h2, h3, h4, strong, button, input, select, textarea) {
  font-family: inherit;
}

/* 共用表面。照片、標誌、尺寸及排版由原版型維持。 */
body.momentum-style :is(.site-header, .site-nav, .nav-dropdown > div, .site-footer) {
  background: var(--momentum-panel);
  color: var(--momentum-ink);
  border-color: var(--momentum-line);
}
body.momentum-style :is(.route-band, .stats-section) {
  background: var(--momentum-bg);
  color: var(--momentum-ink);
  border-color: var(--momentum-line);
}
body.momentum-style :is(.journey, .app-hero, .app-teaser, .empty-state, .note-block, .layout-note) {
  background: var(--momentum-panel);
  color: var(--momentum-ink);
  border-color: var(--momentum-line);
}
body.momentum-style :is(.course-card, .skill-block, .feature, .career-brand, .journal-category, .venue-card, .persona-card) {
  background: var(--momentum-panel);
  color: var(--momentum-ink);
  border-color: var(--momentum-line);
}
body.momentum-style :is(.feature, .career-brand, .journal-category) {
  border-top-color: var(--momentum-blue);
}
body.momentum-style :is(.journal-category:nth-child(2), .journal-category:nth-child(3), .journal-category:nth-child(4)) {
  background: var(--momentum-panel);
  color: var(--momentum-ink);
  border-top-color: var(--momentum-blue);
}
body.momentum-style :is(.note-block, .career-roadmap) {
  border-left-color: var(--momentum-blue);
}
body.momentum-style :is(.course-card:hover, .classroom-links a:hover) {
  border-color: var(--momentum-link);
}
body.momentum-style :is(.route + .route, .step, .roadmap-step, .course-info, .facts, .facts > div, .venue-city, .partner-section, .footer-bottom, .detail-main details) {
  border-color: var(--momentum-line);
}

/* 一般內容不用深色舊字色；次要字至少維持淺灰。 */
body.momentum-style :is(.course-copy h3, .course-info strong, .detail-price, .detail-summary h1, .intro-page h1, .section-title, .section-head h2, .stat strong, .about-copy h2, .about-copy h3, .roadmap-step h3, .journal-category h2, .venue-copy h3, .persona-card h2, .app-persona h2, .skill-block strong, .feature h3) {
  color: var(--momentum-ink);
}
body.momentum-style :is(.muted, .bread, .intro-page p, .section-head p, .route p, .course-copy > p, .course-result-count, .course-info del, .detail-price del, .detail-summary > p, .facts dt, .visual-note, .layout-note, .step p, .partner-intro p, .partner-role, .partner-note, .stat span, .app-teaser p, .app-hero .intro-page p, .persona-card p, .app-persona > div > p, .skill-block p, .feature p, .career-brand p, .roadmap-step p, .journal-category > p, .article-link time, .venue-copy p, .footer-top p, .footer-bottom) {
  color: var(--momentum-muted);
}
body.momentum-style .momentum-course-shelf .course-copy > p,
body.momentum-style .momentum-course-shelf .course-info del {
  color: var(--momentum-muted);
}
body.momentum-style :is(.partner-grid span, .partner-grid .partner-role) {
  color: var(--momentum-muted);
}
body.momentum-style :is(.eyebrow, .detail-summary .eyebrow, .career-brand .eyebrow, .venue-copy .eyebrow, .persona-card .eyebrow, .route .route-mark, .step > span) {
  color: var(--momentum-link);
}
body.momentum-style :is(.site-nav a:hover, .site-nav [aria-current="page"], .bread a:hover, .text-link:hover, .article-link:hover) {
  color: var(--momentum-link);
}
body.momentum-style .nav-dropdown > div a:hover {
  background: var(--momentum-raised);
  color: var(--momentum-ink);
}
body.momentum-style :is(.about-copy, .detail-main, .retained-course, .facts dd) {
  color: var(--momentum-copy);
}
body.momentum-style .detail-main :is(p, li, dt, dd, .gc-note, .gc-section-intro),
body.momentum-style .retained-course :is(p, li, dt, dd) {
  color: var(--momentum-copy);
}
body.momentum-style :is(.detail-main, .about-copy) :is(h2, h3, h4, b, strong) {
  color: var(--momentum-ink);
}
body.momentum-style :is(.detail-main, .about-copy) a:not(.button):not(.gc-button) {
  color: var(--momentum-link);
}
body.momentum-style :is(.about-band, .coming-label, .skip) {
  background: #0c285b;
  color: var(--momentum-ink);
}
body.momentum-style .retained-course .gc-callout {
  background: var(--momentum-panel);
  color: var(--momentum-copy);
  border-left-color: var(--momentum-blue);
}
body.momentum-style :is(.retained-course article, .retained-course th, .retained-course td, .detail-main th, .detail-main td) {
  border-color: var(--momentum-line);
}
body.momentum-style :is(.detail-main table, .detail-main td) {
  background: var(--momentum-panel);
  color: var(--momentum-copy);
}
body.momentum-style .detail-main th {
  background: var(--momentum-raised);
  color: var(--momentum-ink);
}

/* 控制項保留原有幾何；暗底輸入與原生選單使用明確前景色。 */
body.momentum-style :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  background-color: var(--momentum-panel);
  color: var(--momentum-ink);
  border-color: var(--momentum-line);
  caret-color: var(--momentum-ink);
}
body.momentum-style :is(input, textarea)::placeholder {
  color: var(--momentum-muted);
  opacity: 1;
}
body.momentum-style :is(select option, select optgroup) {
  background: var(--momentum-panel);
  color: var(--momentum-ink);
}
body.momentum-style :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--momentum-blue);
}
body.momentum-style :is(.course-search, .mode-filters, .nav-utility) {
  border-color: var(--momentum-line);
}
body.momentum-style .course-search input {
  background: transparent;
  color: var(--momentum-ink);
}
body.momentum-style :is(.menu-button, .filter-bar button, .mode-filters button, .classroom-links a, .equipment-tags li) {
  background: var(--momentum-panel);
  color: var(--momentum-copy);
  border-color: var(--momentum-line);
}
body.momentum-style :is(.filter-bar button:hover, .mode-filters button:hover, .menu-button:hover) {
  background: var(--momentum-raised);
  color: var(--momentum-ink);
  border-color: var(--momentum-link);
}
body.momentum-style .filter-bar button[aria-pressed="true"],
body.momentum-style .mode-filters button[aria-pressed="true"] {
  background: var(--momentum-blue);
  color: var(--momentum-ink);
  border-color: var(--momentum-blue);
}
body.momentum-style :is(a, button, input, select, textarea, summary, [tabindex="0"]):focus-visible {
  outline-color: var(--momentum-link);
}

/* 按鈕角色分開定義，避免混合選擇器提高一般按鈕的優先權。 */
body.momentum-style .button,
body.momentum-style .site-nav .button,
body.momentum-style .retained-course .gc-button,
body.momentum-style .persona-card a {
  background: var(--momentum-blue);
  color: var(--momentum-ink);
  border-color: var(--momentum-blue);
}
body.momentum-style .button:hover,
body.momentum-style .site-nav .button:hover,
body.momentum-style .retained-course .gc-button:hover,
body.momentum-style .persona-card a:hover {
  background: #1a6cff;
  color: var(--momentum-ink);
  border-color: #1a6cff;
}
body.momentum-style .button--light,
body.momentum-style .site-nav .button--light,
body.momentum-style .app-teaser .actions .button--light,
body.momentum-style .app-hero .button--light {
  background: transparent;
  color: var(--momentum-ink);
  border-color: #777f8e;
}
body.momentum-style .button--light:hover,
body.momentum-style .site-nav .button--light:hover,
body.momentum-style .app-teaser .actions .button--light:hover,
body.momentum-style .app-hero .button--light:hover {
  background: var(--momentum-raised);
  color: var(--momentum-ink);
  border-color: var(--momentum-link);
}
body.momentum-style .footer-app a {
  background: transparent;
  color: var(--momentum-ink);
  border-color: #777f8e;
}
body.momentum-style .footer-app a:hover {
  background: var(--momentum-blue);
  color: var(--momentum-ink);
  border-color: var(--momentum-blue);
}

/* 原生課圖只調整文字面板，實際照片及其裁切設定不變。 */
body.momentum-style .gt-cover {
  --cover-ink: #ffffff;
  --cover-accent: var(--brand-accent,#005CFF);
  --cover-secondary: #17191c;
  background: var(--momentum-panel);
  color: var(--momentum-ink);
  border-color: var(--momentum-line);
}
body.momentum-style :is(.gt-cover--organize, .gt-cover--interior, .gt-cover--repair),
body.momentum-style :is(.gt-cover--graphic.gt-cover--variant-0, .gt-cover--graphic.gt-cover--variant-1, .gt-cover--graphic.gt-cover--variant-2, .gt-cover--graphic.gt-cover--variant-3, .gt-cover--graphic.gt-cover--variant-4) {
  --cover-ink: #ffffff;
  --cover-accent: var(--brand-accent,#005CFF);
  --cover-secondary: #17191c;
  background: var(--momentum-panel);
  color: var(--momentum-ink);
}
body.momentum-style :is(.gt-cover--interior, .gt-cover--repair)::before {
  background: var(--momentum-panel);
}
body.momentum-style .gt-cover--interior::after {
  background: #0c285b;
}
body.momentum-style .gt-cover__tag,
body.momentum-style .gt-cover--interior .gt-cover__tag {
  background: var(--momentum-blue);
  color: var(--momentum-ink);
}
body.momentum-style :is(.gt-cover--organize, .gt-cover--interior, .gt-cover--repair, .gt-cover--graphic) .gt-cover__series {
  background: var(--momentum-panel);
  color: var(--momentum-ink);
}
body.momentum-style .gt-cover--organize:has(.gt-cover__media) .gt-cover__series {
  background: var(--momentum-panel);
  color: var(--momentum-ink);
}
body.momentum-style .gt-cover__subtitle,
body.momentum-style .gt-cover--organize .gt-cover__subtitle {
  color: var(--momentum-copy);
}
body.momentum-style .gt-cover__cost {
  background: var(--momentum-raised);
  color: var(--momentum-ink);
  box-shadow: 0 1px 0 var(--momentum-line);
}
body.momentum-style :is(.gt-cover__media, .gt-photo-crop) {
  background-color: var(--momentum-panel);
}
body.momentum-style .gt-cover-meta {
  background: var(--momentum-bg);
  color: var(--momentum-ink);
}
body.momentum-style :is(.gt-cover-meta__schedule, .gt-cover-meta__price s) {
  color: var(--momentum-muted);
}
body.momentum-style .gt-cover-meta__row {
  border-color: var(--momentum-line);
}
body.momentum-style .gt-cover-meta__action {
  background: var(--momentum-blue);
  color: var(--momentum-ink);
  border-color: var(--momentum-blue);
}
body.momentum-style .gt-cover-meta__action:hover {
  background: #1a6cff;
  color: var(--momentum-ink);
  border-color: #1a6cff;
}

/* 場次元件自帶獨立 CSS；兩個舊變數在 site.css 含 !important。 */
body.momentum-style .gt-session-browser {
  --gtsb-ink: #ffffff;
  --gtsb-muted: #b7bdc8;
  --gtsb-line: #424751;
  --gtsb-paper: #17191c !important;
  --gtsb-yellow: var(--brand-accent,#005CFF);
  --gtsb-green: #202c44 !important;
  background: var(--momentum-bg);
  color: var(--momentum-ink);
  color-scheme: dark;
}
body.momentum-style .gt-session-browser :is(.gtsb-filter-form, .gtsb-field select, .gtsb-cohort, .gtsb-inquiry-card, .gtsb-room-chip) {
  background: var(--momentum-panel);
  color: var(--momentum-ink);
  border-color: var(--momentum-line);
}
body.momentum-style .gt-session-browser :is(.gtsb-tabs, .gtsb-reset, .gtsb-location-intro, .gtsb-empty, .gtsb-fallback) {
  background: var(--momentum-panel);
  color: var(--momentum-ink);
  border-color: var(--momentum-line);
}
body.momentum-style .gt-session-browser :is(.gtsb-date-badge span, .gtsb-time, .gtsb-date-badge strong) {
  color: var(--momentum-ink);
}
body.momentum-style .gt-session-browser :is(.gtsb-room-pending, .gtsb-tag) {
  background: var(--momentum-raised);
  color: var(--momentum-muted);
}
body.momentum-style .gt-session-browser :is(.gtsb-full-dates li, .gtsb-full-dates .is-match) {
  background: var(--momentum-raised);
  color: var(--momentum-ink);
  border-color: var(--momentum-line);
}
body.momentum-style .gt-session-browser .gtsb-full-dates .is-match {
  background: #0c285b;
  border-color: var(--momentum-link);
}
body.momentum-style .gt-session-browser .gtsb-region-heading {
  border-color: var(--momentum-line);
}
body.momentum-style .gt-session-browser .gtsb-button,
body.momentum-style .gt-session-browser .gtsb-tab[aria-selected="true"],
body.momentum-style .gt-session-browser .gtsb-room-chip[aria-pressed="true"] {
  background: var(--momentum-blue);
  color: var(--momentum-ink);
  border-color: var(--momentum-blue);
}
body.momentum-style .gt-session-browser .gtsb-button:hover {
  background: #1a6cff;
  color: var(--momentum-ink);
  border-color: #1a6cff;
}
body.momentum-style .gt-session-browser .gtsb-button-quiet {
  background: transparent;
  color: var(--momentum-ink);
  border-color: #777f8e;
}
body.momentum-style .gt-session-browser :is(.gtsb-reset:hover, .gtsb-button-quiet:hover) {
  background: var(--momentum-raised);
  color: var(--momentum-ink);
  border-color: var(--momentum-link);
}
body.momentum-style .gt-session-browser :is(a, button, select, summary, [tabindex="0"]):focus-visible {
  outline-color: var(--momentum-link);
}
