/* 聰明購車術三頁 — 最後載入的覆蓋層（Terry 2026-08-18 指定調整） */

/* 1) 頁首固定置頂：Blocksy 的 #main-container overflow:clip 讓 position:sticky 失效，改用 fixed＋body 補位 */
body[data-motion-page] [data-od-id="site-header"]{position:fixed!important;top:0!important;left:0;right:0;width:100%;z-index:60}
/* 2026-08-21：頁首改由 Blocksy 佈景主題提供（一般定位，非 fixed），
   原本補償浮動頁首的 body padding 已不需要，保留會在頁面頂端多出空白。 */
/* body[data-motion-page]{padding-top:77px} */
/* @media(max-width:640px){body[data-motion-page]{padding-top:69px}} */

/* 2) 桌機導覽靠右：手機選單的 widget 包裝層在桌機仍是寬 0 的 flex item，
      會被 space-between 當成第三個項目、把 nav 推到中間 */
@media(min-width:641px){
  body[data-motion-page] [data-od-id="site-nav"]{margin-left:auto!important}
  body[data-motion-page] [data-od-id="site-header-inner"]>.elementor-widget:has(.mobile-menu){display:none!important}
}

/* 3) 課程頁「打破 3 個買車舊觀念」：設計把 grid-column 寫在 h3/p 上，
      但 Elementor 的格線項目是 widget 包裝層 → 內文被擠回第一欄。
      用 display:contents 把格線項目身分下放到真正的 h3/p。
      （放這裡而不是 course.css，避免重新產生 CSS 時被覆蓋） */
.secret-row :is(.elementor-widget,.elementor-widget-container){display:contents}

/* 2026-08-21：頁尾加入法遵連結後共 6 條，nowrap 會把每條壓到文字內換行。
   shared.css 的 .emxf-4 是四重 class (0,4,0)，這裡同權重但載入更晚 → 勝出。 */
.emxf-4.emxf-4.emxf-4.emxf-4{flex-wrap:wrap;row-gap:10px}
