/* 聯絡卡片文字對比 */
.page-id-1631 .sbl-contact-card p,
.page-id-1631 .sbl-contact-card strong,
.page-id-1631 .sbl-contact-card a,
.page-id-1631 .sbl-contact-card a:visited {
  color: #fff !important;
  background: transparent !important;
}













































































































































































































































































































































































































































































/* 非文章卡片與自動目錄相容性修正 */
.page-id-1631 #ez-toc-container,
.page-id-1716 #ez-toc-container {
  display: none !important;
}

.page-id-1631 .sbl-contact-card {
  min-height: 0;
}

/* ============================================================
   股市基友 自訂樣式 v3
   ------------------------------------------------------------
   1) 設計 Token（CSS 變數，含 Dark Mode）
   2) 全域與標題排版
   3) 文章內元件（連結 / 圖 / 表 / 引言 / 程式碼）
   4) 文章卡片 + 側邊欄 + 主選單
   5) 搜尋元件（精修）
   6) 自訂元件（免責聲明 / TOC / CRP / meta / 進度條）
   7) 新增功能（CTA / Tag / Callout / 漲跌色 / 作者卡 / 回頂部 / 骨架）
   8) 響應式（768px / 480px）
   9) 列印 + Dark Mode + Reduced Motion
   ============================================================ */

/* ============= 1. 設計 Token ============= */
:root {
  --sb-primary:        #0d2840;
  --sb-primary-soft:   #1a4d80;
  --sb-accent:         #c9a961;
  --sb-accent-soft:    rgba(201, 169, 97, 0.08);
  --sb-text:           #2c2c2c;
  --sb-text-soft:      #6b7280;
  --sb-bg:             #fafafa;
  --sb-card:           #ffffff;
  --sb-border:         #e5e5e5;
  --sb-border-soft:    #d6e0ec;
  --sb-highlight-bg:   #fff3cc;
  --sb-highlight-text: #8a6d1a;

  --sb-up:    #c9001f;   /* 漲（台股慣用：紅漲） */
  --sb-down:  #00795c;   /* 跌（台股慣用：綠跌） */
  --sb-info:  #1a4d80;
  --sb-warn:  #d97706;
  --sb-ok:    #00795c;

  --sb-font-sans:  'Noto Sans TC', -apple-system, BlinkMacSystemFont,
                   "Segoe UI", "Apple Color Emoji", "Segoe UI Emoji",
                   "Noto Color Emoji", sans-serif;
  --sb-font-serif: 'Noto Serif TC', Georgia, serif;
  --sb-font-mono:  ui-monospace, SFMono-Regular, Menlo, Consolas,
                   "Liberation Mono", monospace;

  --sb-radius:    8px;
  --sb-radius-sm: 4px;
  --sb-shadow-sm: 0 2px 8px rgba(13, 40, 64, 0.05);
  --sb-shadow-md: 0 4px 16px rgba(13, 40, 64, 0.10);
  --sb-shadow-lg: 0 8px 28px rgba(13, 40, 64, 0.14);
  --sb-trans:     0.25s ease;
}







































































































































































































/* ============================================================
   股市基友 v6：非文章頁面與互動工具（2026-08-12）
   ============================================================ */
:root {
  --sbl-navy: #102a43;
  --sbl-navy-2: #1f4b73;
  --sbl-gold: #b88746;
  --sbl-cream: #fbf8f1;
  --sbl-line: #e7dfd2;
  --sbl-muted: #607080;
  --sbl-warning-bg: #fff7e8;
  --sbl-warning-line: #e2a33b;
  --sbl-radius: 16px;
  --sbl-shadow: 0 10px 30px rgba(16, 42, 67, .08);
}

.page-id-3 .entry-content,
.page-id-15 .entry-content,
.page-id-17 .entry-content,
.page-id-1629 .entry-content,
.page-id-1631 .entry-content,
.page-id-1716 .entry-content,
body.page-child .entry-content {
  max-width: 920px;
  margin-inline: auto;
}

.sbl-page {
  color: var(--sb-text, #2c2c2c);
  font-size: 17px;
  line-height: 1.82;
}

.sbl-page > *:first-child {
  margin-top: 0;
}

.sbl-page .sbl-lead {
  margin: 0 0 28px;
  padding: 22px 24px;
  border-left: 4px solid var(--sbl-gold);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(135deg, #fbf8f1, #fff);
  color: #34495e;
  font-size: 19px;
  line-height: 1.75;
}

.sbl-page h2,
.page-id-3 .entry-content h2,
.page-id-17 .entry-content h2,
.page-id-1629 .entry-content h2 {
  margin-top: 2.15em;
  margin-bottom: .7em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sbl-line);
  color: var(--sbl-navy);
  font-size: clamp(23px, 3vw, 29px);
  line-height: 1.35;
}

.sbl-page p,
.sbl-page li,
.page-id-3 .entry-content p,
.page-id-3 .entry-content li {
  overflow-wrap: anywhere;
}

.sbl-page ul,
.sbl-page ol,
.page-id-3 .entry-content ul,
.page-id-3 .entry-content ol {
  padding-left: 1.35em;
}

.sbl-page li + li,
.page-id-3 .entry-content li + li {
  margin-top: .45em;
}

.sbl-callout {
  margin: 26px 0;
  padding: 20px 22px;
  border: 1px solid #d7e3ef;
  border-left: 4px solid var(--sbl-navy-2);
  border-radius: 12px;
  background: #f5f9fd;
  color: #31475b;
}

.sbl-callout-warning {
  border-color: #efd8ab;
  border-left-color: var(--sbl-warning-line);
  background: var(--sbl-warning-bg);
  color: #5b4423;
}

.sbl-callout a,
.sbl-page a {
  text-underline-offset: 3px;
}

.sbl-grid {
  display: grid;
  gap: 20px;
  margin: 28px 0;
}

.sbl-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sbl-info-card,
.sbl-contact-card {
  padding: 24px;
  border: 1px solid var(--sbl-line);
  border-radius: var(--sbl-radius);
  background: #fff;
  box-shadow: 0 6px 22px rgba(16, 42, 67, .055);
}

.sbl-info-card h2,
.sbl-contact-card h2 {
  margin-top: 0;
  font-size: 22px;
}

.sbl-contact-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #102a43 0%, #1f4b73 100%);
  color: #fff;
  box-shadow: var(--sbl-shadow);
}

.sbl-contact-card::after {
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: 170px;
  height: 170px;
  border: 28px solid rgba(255,255,255,.07);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.sbl-contact-card h2,
.sbl-contact-card a {
  position: relative;
  z-index: 1;
  color: #fff;
}

.sbl-contact-card a {
  font-weight: 700;
}

.sbl-updated {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--sbl-line);
  color: var(--sbl-muted);
}

/* 工具箱 */
.sbl-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.sbl-tool-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--sbl-line);
  border-radius: var(--sbl-radius);
  background: linear-gradient(145deg, #fff 0%, var(--sbl-cream) 100%);
  box-shadow: 0 5px 20px rgba(16,42,67,.055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sbl-tool-card:hover {
  transform: translateY(-3px);
  border-color: #cfb27d;
  box-shadow: var(--sbl-shadow);
}

.sbl-tool-card h2 {
  margin: 8px 0 12px;
  padding: 0;
  border: 0;
  font-size: 23px;
}

.sbl-tool-card p {
  flex: 1;
  margin-bottom: 22px;
  color: #4b5c6b;
}

.sbl-tool-kicker {
  color: var(--sbl-gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
}

.sbl-btn,
.sbl-btn:visited {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid var(--sbl-navy);
  border-radius: 10px;
  background: var(--sbl-navy);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.sbl-btn:hover,
.sbl-btn:focus-visible {
  border-color: var(--sbl-gold);
  background: var(--sbl-gold);
  color: #fff;
}

.sbl-section {
  margin: 38px 0 28px;
}

.sbl-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sbl-step;
}

.sbl-steps li {
  position: relative;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 8px 0 8px 54px;
  counter-increment: sbl-step;
}

.sbl-steps li::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--sbl-navy);
  color: #fff;
  content: counter(sbl-step);
  font-weight: 800;
}

/* 五個工具子頁：提升表單、結果區與表格可讀性 */
body.page-child .entry-content > h2 {
  margin-top: 2em;
  color: var(--sbl-navy);
}

body.page-child .entry-content input[type="number"],
body.page-child .entry-content input[type="text"],
body.page-child .entry-content select {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cdd8e3;
  border-radius: 9px;
  background: #fff;
  font-size: 16px;
}

body.page-child .entry-content input:focus,
body.page-child .entry-content select:focus {
  border-color: var(--sbl-navy-2);
  outline: 3px solid rgba(31,75,115,.14);
  outline-offset: 1px;
}

body.page-child .entry-content button,
body.page-child .entry-content input[type="button"],
body.page-child .entry-content input[type="submit"] {
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--sbl-navy);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

body.page-child .entry-content button:hover,
body.page-child .entry-content input[type="submit"]:hover {
  background: var(--sbl-navy-2);
}

body.page-child .entry-content table {
  overflow: hidden;
  border: 1px solid var(--sbl-line);
  border-radius: 10px;
  background: #fff;
}

body.page-child .entry-content th {
  background: #edf3f8;
  color: var(--sbl-navy);
}

/* 法律與政策頁 */
.page-id-3 .entry-content,
.page-id-15 .entry-content {
  line-height: 1.85;
}

.page-id-3 .entry-content > p:first-child {
  padding: 20px 22px;
  border-left: 4px solid var(--sbl-gold);
  background: var(--sbl-cream);
  color: #3f4e5d;
}

/* 鍵盤與減少動態效果 */
.sbl-page :focus-visible {
  outline: 3px solid rgba(184,135,70,.34);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .page-id-3 .entry-content,
  .page-id-15 .entry-content,
  .page-id-17 .entry-content,
  .page-id-1629 .entry-content,
  .page-id-1631 .entry-content,
  .page-id-1716 .entry-content,
  body.page-child .entry-content {
    max-width: 100%;
  }

  .sbl-page {
    font-size: 16px;
  }

  .sbl-page .sbl-lead {
    padding: 18px;
    font-size: 17px;
  }

  .sbl-grid-2,
  .sbl-tool-grid {
    grid-template-columns: 1fr;
  }

  .sbl-tool-card {
    min-height: 0;
    padding: 21px;
  }

  .sbl-info-card,
  .sbl-contact-card,
  .sbl-callout {
    padding: 18px;
  }

  body.page-child .entry-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .sbl-page .sbl-lead,
  .sbl-info-card,
  .sbl-contact-card,
  .sbl-callout,
  .sbl-tool-card {
    border-radius: 11px;
  }

  .sbl-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .sbl-steps li {
    padding-left: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sbl-tool-card {
    transition: none;
  }
}









/* ============= 2. 全域 & 標題 ============= */
body {
  font-family: var(--sb-font-sans);
  color: var(--sb-text);
  background-color: var(--sb-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  font-size: 17.5px;
}

/* 桌面版內文字級放大 */
.entry-content p,
.entry-content li {
  font-size: 17.5px;
  line-height: 1.85;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.wp-block-search__input:focus-visible {
  outline: 2px solid var(--sb-accent);
  outline-offset: 2px;
  border-radius: var(--sb-radius-sm);
}

::selection { background: var(--sb-accent); color: #fff; }
::-moz-selection { background: var(--sb-accent); color: #fff; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sb-font-serif);
  color: var(--sb-primary);
  font-weight: 700;
}

/* 用 clamp() 讓標題在不同螢幕自動微調，無需多寫 media */
.entry-title {
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem);
  line-height: 1.4;
  margin-bottom: 0.8em;
  border-bottom: 3px solid var(--sb-accent);
  padding-bottom: 0.5em;
}
.entry-content h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  margin-top: 1.5em;
  padding-left: 0.6em;
  border-left: 5px solid var(--sb-primary-soft);
}
.entry-content h3 {
  font-size: clamp(1.1rem, 1.05rem + 0.3vw, 1.3rem);
  color: var(--sb-primary-soft);
  margin-top: 1.2em;
}

/* ============= 3. 文章內元件 ============= */
.entry-content a,
.sidebar a,
.crp_related a {
  color: var(--sb-primary-soft);
  text-decoration: none;
  background-image: linear-gradient(var(--sb-accent), var(--sb-accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size var(--sb-trans), color var(--sb-trans);
}
.entry-content a:hover,
.sidebar a:hover,
.crp_related a:hover {
  color: var(--sb-accent);
  background-size: 100% 1px;
}

/* 外部連結標記（自動加箭頭，排除自家網域） */
.entry-content a[href^="http"]:not([href*="stockbuddyletter.com"])::after {
  content: " ↗";
  font-size: 0.85em;
  color: var(--sb-text-soft);
  margin-left: 2px;
}

/* 引言 */
.entry-content blockquote {
  border-left: 4px solid var(--sb-accent);
  background: var(--sb-highlight-bg);
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
  font-style: normal;
  color: #4a4a4a;
  border-radius: 0 var(--sb-radius) var(--sb-radius) 0;
}

/* 螢光筆 strong */
.entry-content strong {
  color: var(--sb-primary);
  font-weight: 700;
  background: linear-gradient(transparent 60%, var(--sb-highlight-bg) 60%);
  padding: 0 2px;
}

/* 程式碼 / 股票代號 */
.entry-content code {
  background: #f3f4f6;
  color: var(--sb-up);
  padding: 2px 6px;
  border-radius: var(--sb-radius-sm);
  font-size: 0.95em;
  font-family: var(--sb-font-mono);
}

/* 圖片 */
.entry-content img {
  border-radius: 6px;
  box-shadow: var(--sb-shadow-md);
  margin: 1em 0;
  height: auto;
  max-width: 100%;
}

/* 表格（財報數據） */
.entry-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
  font-size: 0.95em;
}
.entry-content table th {
  background: var(--sb-primary-soft);
  color: #fff;
  padding: 0.9em 1em;
  text-align: left;
  font-family: var(--sb-font-sans);
}
.entry-content table td {
  padding: 0.7em 1em;
  border-bottom: 1px solid var(--sb-border);
}
.entry-content table tr:nth-child(even) { background: #f5f5f5; }
.entry-content table td.up   { color: var(--sb-up);   font-weight: 700; }
.entry-content table td.down { color: var(--sb-down); font-weight: 700; }
@media (max-width: 600px) {
  .entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ============= 4. 文章卡片 + 側邊欄 + 主選單 ============= */
.post {
  background: var(--sb-card);
  padding: 2em;
  margin-bottom: 2em;
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow-sm);
  transition: box-shadow var(--sb-trans), transform var(--sb-trans);
}
body:not(.single) .post:hover {
  box-shadow: var(--sb-shadow-md);
  transform: translateY(-2px);
}
body:not(.single) .post .post-image img {
  transition: transform 0.4s ease;
}
body:not(.single) .post:hover .post-image img {
  transform: scale(1.02);
}

/* 側邊欄 */
.sidebar .widget {
  background: var(--sb-card);
  padding: 1.5em;
  margin-bottom: 1.5em;
  border-radius: var(--sb-radius);
  border: 1px solid var(--sb-border);
}
.sidebar .widget-title,
.sidebar h2.widget-title,
.sidebar h2,
.sidebar .wp-block-heading {
  font-size: 1.05em !important;
  margin: 0 0 0.8em !important;
  padding-bottom: 0.45em;
  border-bottom: 2px solid var(--sb-accent);
}

/* 最新文章樣式 */
.sidebar .widget_recent_entries ul li,
.sidebar .wp-block-latest-posts li {
  padding: 0.6em 0;
  border-bottom: 1px dashed var(--sb-border);
  line-height: 1.6;
  list-style: none;
}
.sidebar .widget_recent_entries ul,
.sidebar .wp-block-latest-posts { padding-left: 0; }
.sidebar .widget_recent_entries ul li:last-child,
.sidebar .wp-block-latest-posts li:last-child { border-bottom: none; }
.sidebar .wp-block-latest-posts__post-date {
  display: block;
  font-size: 0.8em;
  color: var(--sb-text-soft);
  margin-top: 2px;
}

/* sticky TOC：讓桌機右側目錄滾動跟隨 */
@media (min-width: 992px) {
  .sidebar { align-self: flex-start; }
  .sidebar .widget_block:has(#ez-toc-container),
  div#ez-toc-container.sb-sticky {
    position: sticky;
    top: 80px;
  }
}

/* 主選單 */
.main-navigation .main-nav ul li a,
.main-navigation .menu li a {
  font-weight: 600;
  transition: color var(--sb-trans), background var(--sb-trans);
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a {
  color: var(--sb-accent);
  background: transparent;
}
.main-navigation .main-nav ul ul {
  background: #fff;
  border: 1px solid var(--sb-border-soft);
  border-top: 3px solid var(--sb-accent);
  border-radius: 0 0 6px 6px;
  box-shadow: var(--sb-shadow-md);
  padding: 6px 0;
}
.main-navigation .main-nav ul ul li a {
  padding: 10px 20px;
  color: var(--sb-text);
  font-weight: 500;
}
.main-navigation .main-nav ul ul li:hover > a,
.main-navigation .main-nav ul ul li.sfHover > a,
.main-navigation .main-nav ul ul li.current-menu-item > a {
  color: var(--sb-accent);
  background: var(--sb-accent-soft);
}

/* 頁尾 */
.site-footer {
  background-color: var(--sb-primary);
  color: #d0d0d0;
  padding: 3em 0;
}
.site-footer a { color: var(--sb-accent); }

/* ============= 5. 搜尋元件（精修） ============= */
.wp-block-search .wp-block-search__inside-wrapper {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.wp-block-search .wp-block-search__label {
  font-size: 0.95em;
  font-weight: 600;
  margin-bottom: 0.4em;
  color: var(--sb-primary);
}
.wp-block-search__input {
  flex: 1 1 auto;
  height: 38px !important;
  min-height: 38px !important;
  padding: 6px 10px !important;
  font-size: 0.95em !important;
  line-height: 1.4 !important;
  border: 1px solid var(--sb-border) !important;
  border-right: none !important;
  border-radius: var(--sb-radius-sm) 0 0 var(--sb-radius-sm) !important;
  background: #fff !important;
  box-shadow: none !important;
}
.wp-block-search__button {
  flex: 0 0 auto;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  font-size: 0.9em !important;
  line-height: 38px !important;
  background: var(--sb-primary) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 var(--sb-radius-sm) var(--sb-radius-sm) 0 !important;
  cursor: pointer;
  transition: background var(--sb-trans);
}
.wp-block-search__button:hover { background: var(--sb-accent) !important; }
.sidebar .widget.widget_search,
.sidebar .widget_block.widget_search { padding: 1.2em 1.4em; }

/* ============= 6. 自訂元件 ============= */

/* 免責聲明 */
.disclaimer {
  background: var(--sb-highlight-bg);
  border-left: 4px solid var(--sb-accent);
  padding: 1em 1.5em;
  margin: 2.5em 0 1em;
  font-size: 0.95em;
  color: #5a4a1a;
  border-radius: 0 6px 6px 0;
  line-height: 1.75;
}
.disclaimer-title {
  font-weight: 700;
  margin-bottom: 0.4em;
  color: var(--sb-highlight-text);
  font-size: 1em;
}

/* Easy Table of Contents */
div#ez-toc-container {
  background: #f5f8fc;
  border: 1px solid var(--sb-border-soft);
  border-left: 4px solid var(--sb-accent);
  border-radius: 0 var(--sb-radius) var(--sb-radius) 0;
  padding: 1.2em 1.5em;
  margin: 2.5em 0;
  box-shadow: var(--sb-shadow-sm);
}
div#ez-toc-container .ez-toc-title-container {
  padding-bottom: 0.6em;
  border-bottom: 1px solid var(--sb-border-soft);
  margin-bottom: 0.6em;
}
div#ez-toc-container p.ez-toc-title {
  color: var(--sb-primary);
  font-size: 1.05em;
  font-weight: 700;
  font-family: var(--sb-font-serif);
  margin: 0;
}
div#ez-toc-container p.ez-toc-title::before { content: "📑 "; margin-right: 4px; }
div#ez-toc-container .ez-toc-toggle { color: var(--sb-text-soft); }
div#ez-toc-container .ez-toc-toggle:hover { color: var(--sb-accent); }
div#ez-toc-container ul.ez-toc-list {
  counter-reset: item;
  list-style: none;
  margin: 0; padding: 0;
}
div#ez-toc-container ul.ez-toc-list > li { line-height: 2; }
div#ez-toc-container ul.ez-toc-list > li > a::before {
  counter-increment: item;
  content: counter(item) ". ";
  color: var(--sb-accent);
  font-weight: 700;
  margin-right: 4px;
}
div#ez-toc-container ul.ez-toc-list li a {
  color: var(--sb-primary-soft);
  text-decoration: none;
  border-bottom: none;
  background: none;
  transition: color var(--sb-trans), padding-left var(--sb-trans);
  display: inline-block;
}
div#ez-toc-container ul.ez-toc-list li a:hover {
  color: var(--sb-accent);
  padding-left: 6px;
  background: var(--sb-accent-soft);
  border-radius: 3px;
}
div#ez-toc-container ul.ez-toc-list ul {
  list-style: none;
  margin: 0.1em 0 0.4em 1.6em;
  padding: 0;
}
div#ez-toc-container ul.ez-toc-list ul li { font-size: 0.95em; line-height: 1.85; }
div#ez-toc-container ul.ez-toc-list ul li a { color: #4a6585; }
div#ez-toc-container ul.ez-toc-list ul li a::before {
  content: "└ ";
  color: #b0bec5;
  margin-right: 4px;
  font-weight: 400;
}

/* 文章 meta */
.stockbuddy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: var(--sb-text-soft);
  font-size: 0.9em;
  margin: 0 0 2em;
  padding-bottom: 0.8em;
  border-bottom: 1px solid var(--sb-border);
}
.stockbuddy-meta .meta-item { display: inline-flex; align-items: center; }
.stockbuddy-meta .meta-updated {
  background: var(--sb-highlight-bg);
  color: var(--sb-highlight-text);
  padding: 3px 10px;
  border-radius: var(--sb-radius-sm);
  font-weight: 500;
}
.stockbuddy-meta .meta-updated::before { content: "🔄 "; margin-right: 2px; }
.stockbuddy-meta a {
  color: var(--sb-text-soft);
  border-bottom: 1px dotted #c0c0c0;
  background: none;
  padding: 0 1px;
}
.stockbuddy-meta a:hover {
  color: var(--sb-accent);
  border-bottom: 1px solid var(--sb-accent);
}
.single .entry-meta { display: none; }

/* 滾動進度條 */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--sb-accent), var(--sb-primary-soft));
  box-shadow: 0 1px 3px rgba(13, 40, 64, 0.18);
  z-index: 9999;
  transition: width 0.1s ease-out;
  pointer-events: none;
  will-change: width;
}
.admin-bar .reading-progress { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .reading-progress { top: 46px; }
}

/* 延伸閱讀（CRP） */
.crp_related,
#crp_related {
  margin: 3em 0 1em;
  padding: 1.5em 1.8em;
  background: #f5f8fc;
  border: 1px solid var(--sb-border-soft);
  border-left: 4px solid var(--sb-accent);
  border-radius: 0 var(--sb-radius) var(--sb-radius) 0;
  box-shadow: var(--sb-shadow-sm);
}
.crp_related h3 {
  font-family: var(--sb-font-serif);
  color: var(--sb-primary);
  font-size: 1.15em;
  margin: 0 0 0.8em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--sb-border-soft);
}
.crp_related h3::before { content: "📖 "; margin-right: 4px; }
.crp_related ul {
  list-style: none !important;
  counter-reset: crp-item;
  margin: 0 !important;
  padding: 0 !important;
}
.crp_related ul li {
  counter-increment: crp-item;
  line-height: 1.8;
  padding: 4px 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.crp_related ul li::marker { content: "" !important; }
.crp_related ul li::before {
  content: counter(crp-item) ". ";
  color: var(--sb-accent);
  font-weight: 700;
  margin-right: 6px;
}
.crp_related ul li a {
  color: var(--sb-primary-soft);
  border-bottom: none;
  background: none;
  transition: color var(--sb-trans), padding-left var(--sb-trans);
}
.crp_related ul li a:hover {
  color: var(--sb-accent);
  padding-left: 4px;
}
.crp_related:not(:has(li)) { display: none; }

/* ============= 7. 新增功能元件 ============= */

/* 7-1 Callout 三色貼紙：用法 [div class="sb-callout info|warn|ok"] */
.sb-callout {
  position: relative;
  margin: 1.8em 0;
  padding: 1em 1.2em 1em 3em;
  border-radius: var(--sb-radius);
  border-left: 4px solid var(--sb-info);
  background: #eef4fb;
  color: var(--sb-text);
  line-height: 1.75;
}
.sb-callout::before {
  position: absolute; left: 0.9em; top: 0.85em;
  font-size: 1.1em;
}
.sb-callout.info { border-left-color: var(--sb-info); background: #eef4fb; }
.sb-callout.info::before { content: "💡"; }
.sb-callout.warn { border-left-color: var(--sb-warn); background: #fff4e5; }
.sb-callout.warn::before { content: "⚠️"; }
.sb-callout.ok   { border-left-color: var(--sb-ok);   background: #e8f5ef; }
.sb-callout.ok::before   { content: "✅"; }
.sb-callout strong { background: none; padding: 0; color: inherit; }

/* 7-2 股票代號 Tag：[span class="sb-ticker"]00981A[/span] */
.sb-ticker {
  display: inline-block;
  font-family: var(--sb-font-mono);
  font-weight: 700;
  background: var(--sb-primary);
  color: #fff;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.88em;
  letter-spacing: 0.02em;
  vertical-align: 0.05em;
}
.sb-ticker.up   { background: var(--sb-up); }
.sb-ticker.down { background: var(--sb-down); }

/* 7-3 漲跌數字：[span class="sb-num up"]+3.58%[/span] */
.sb-num { font-family: var(--sb-font-mono); font-weight: 700; }
.sb-num.up   { color: var(--sb-up); }
.sb-num.down { color: var(--sb-down); }
.sb-num.up::before   { content: "▲ "; }
.sb-num.down::before { content: "▼ "; }

/* 7-4 電子報訂閱 CTA：[div class="sb-newsletter"]…[/div] */
.sb-newsletter {
  margin: 2.5em 0;
  padding: 1.6em 1.8em;
  background: linear-gradient(135deg, var(--sb-primary), var(--sb-primary-soft));
  color: #fff;
  border-radius: var(--sb-radius);
  box-shadow: var(--sb-shadow-md);
  text-align: center;
}
.sb-newsletter h3 {
  color: #fff;
  margin: 0 0 0.4em;
  font-size: 1.25em;
}
.sb-newsletter p { margin: 0 0 1em; color: #e9eef5; }
.sb-newsletter .sb-btn {
  display: inline-block;
  background: var(--sb-accent);
  color: #fff !important;
  padding: 0.7em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--sb-trans), background var(--sb-trans);
  background-image: none;
}
.sb-newsletter .sb-btn:hover {
  background: #b8965a;
  transform: translateY(-1px);
  background-image: none;
}

/* 7-5 作者卡：[div class="sb-author"]…[/div] */
.sb-author {
  display: flex;
  gap: 1em;
  align-items: center;
  margin: 2.5em 0 1em;
  padding: 1.2em 1.4em;
  background: var(--sb-card);
  border: 1px solid var(--sb-border);
  border-radius: var(--sb-radius);
}
.sb-author img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0;
  box-shadow: none;
  flex-shrink: 0;
}
.sb-author .sb-author-name {
  font-weight: 700; color: var(--sb-primary);
  margin-bottom: 0.2em;
}
.sb-author .sb-author-bio {
  font-size: 0.9em; color: var(--sb-text-soft); line-height: 1.6;
}

/* 7-6 回頂部：[button class="sb-back-to-top" aria-label="回到頁首"]↑[/button] */
.sb-back-to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sb-primary);
  color: #fff;
  border: none;
  font-size: 1.2em;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sb-shadow-md);
  z-index: 998;
  cursor: pointer;
  transition: background var(--sb-trans), transform var(--sb-trans), opacity var(--sb-trans);
}
.sb-back-to-top.visible { display: flex; }
.sb-back-to-top:hover {
  background: var(--sb-accent);
  transform: translateY(-2px);
}

/* 7-7 骨架載入（給延遲載入內容）：[div class="sb-skeleton"][/div] */
.sb-skeleton {
  display: block;
  height: 1em;
  margin: 0.3em 0;
  background: linear-gradient(90deg, #eee 0%, #f5f5f5 50%, #eee 100%);
  background-size: 200% 100%;
  animation: sb-skel 1.4s ease-in-out infinite;
  border-radius: var(--sb-radius-sm);
}
@keyframes sb-skel {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============= 8. 響應式 ============= */
/* 「閱讀全文」按鈕:暗金色(與頁面金線呼應) */
.read-more {
  color: #B8860B !important;
  text-decoration: none;
}
.read-more:hover,
.read-more:focus {
  color: #92400E !important;
  text-decoration: underline;
}

/* Threads 圖示:放大白色 logo 並修正 SVG path 在 viewBox 內偏右問題 */
.sb-social-bottom a[aria-label="Threads"] svg,
a[aria-label="Threads"] svg {
  width: 28px !important;
  height: 28px !important;
  transform: translate(-3px, 0);
}
/* 三個圓圈垂直對齊在同一基線(避免 Threads 28px SVG 撐高 baseline) */
.sb-social-bottom a {
  vertical-align: middle;
}
@media (max-width: 768px) {
  body { font-size: 16.5px; line-height: 1.8; }
  .entry-content p,
  .entry-content li { font-size: 16.5px; line-height: 1.8; }

  .post,
  .inside-article {
    padding: 1em 0.45em !important;
    margin-bottom: 1em;
    overflow: hidden;
  }

  .grid-container,
  .site-content .container,
  .inside-content,
  body:not(.no-sidebar) .site-content {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  .entry-content { padding-left: 0; padding-right: 0; }

  /* 緊湊化 header */
  .inside-header { padding: 10px 15px !important; }
  .site-branding { margin: 0; padding: 0; }
  .site-logo img,
  .header-image { max-height: 50px; width: auto; }
  .main-navigation.mobile-header-navigation {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0;
  }
  .main-navigation.mobile-header-navigation .menu-toggle {
    padding: 10px 14px !important;
  }
  .main-title { margin-bottom: 0 !important; line-height: 1.2; }
  .site-description { margin-top: 4px; margin-bottom: 0; }

  /* 封面圖貼齊卡片 */
  .featured-image,
  .post-image,
  .inside-article .post-image {
    margin: 0 0 1em !important;
    padding: 0;
  }
  .featured-image img,
  .post-image img,
  body:not(.single) .post .post-image img,
  .inside-article .post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

	/* ============================================================
   Takeaway Box（重點速讀區塊）
   ============================================================ */
.sb-takeaway {
  position: relative;
  margin: 2em 0 2.5em;
  padding: 1.6em 1.8em 1.4em;
  background: #fff;
  border: 1px solid var(--sb-border-soft);
  border-left: 4px solid var(--sb-accent);
  border-radius: 0 var(--sb-radius) var(--sb-radius) 0;
  box-shadow: var(--sb-shadow-sm);
}

/* 右上角金色徽章 */
.sb-takeaway::before {
  content: "TAKEAWAY";
  position: absolute;
  top: -10px;
  left: 1.4em;
  background: var(--sb-accent);
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--sb-font-sans);
}

.sb-takeaway-title {
  font-family: var(--sb-font-serif);
  color: var(--sb-primary);
  font-size: 1.15em;
  font-weight: 700;
  margin: 0 0 0.8em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.sb-takeaway-title::before {
  content: "📌";
  font-size: 1em;
}

/* 用 ol 自動編號 */
.sb-takeaway ol {
  counter-reset: tk-item;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sb-takeaway ol li {
  counter-increment: tk-item;
  position: relative;
  padding: 0.5em 0 0.5em 2.4em;
  line-height: 1.7;
  border-bottom: 1px dashed var(--sb-border);
}
.sb-takeaway ol li:last-child { border-bottom: none; }
.sb-takeaway ol li::before {
  content: counter(tk-item);
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1.7em;
  height: 1.7em;
  background: var(--sb-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  font-weight: 700;
  font-family: var(--sb-font-mono);
}

/* 結論彩蛋：最後一句結論獨立樣式 */
.sb-takeaway .sb-takeaway-bottom {
  margin-top: 1em;
  padding-top: 0.8em;
  border-top: 2px solid var(--sb-accent);
  color: var(--sb-primary);
  font-weight: 600;
}

/* 行動版微調 */
@media (max-width: 600px) {
  .sb-takeaway {
    padding: 1.4em 1.2em 1.1em;
    margin: 1.5em 0 2em;
  }
  .sb-takeaway::before {
    left: 1em;
    font-size: 0.68em;
  }
}

/* ============= 10. 隱藏頁面滾動條（保留滾動功能） ============= */
html {
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* 舊版 IE / Edge */
}
html::-webkit-scrollbar {         /* Chrome / Safari / 新 Edge */
  width: 0;
  height: 0;
  display: none;
}
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
} /* close @media 768px (Claude fix) */


/* Claude Mobile Fix v2 */
.main-navigation a { font-size: 17px; }
.main-navigation .main-nav ul ul li a { font-size: 15px; }
.read-more { display: inline-block; margin-top: 10px; padding: 4px 12px; background-color: #c9a961; color: #ffffff !important; border-radius: 4px; font-weight: 500; font-size: 14px; }
.read-more:hover { background-color: #b39450; color: #ffffff !important; text-decoration: none; }
@media (max-width: 768px) {
  body { font-size: 19px !important; line-height: 1.85 !important; }
  .entry-content p, .entry-content li { font-size: 19px !important; line-height: 1.85 !important; }
  .entry-title { font-size: 24px !important; line-height: 1.4 !important; }
}


/* Claude Mobile Fix v3 - 補強段落字體 */
@media (max-width: 768px) {
  body p,
  article p,
  .widget p,
  .sidebar p,
  aside p { font-size: 18px !important; line-height: 1.8 !important; color: #333 !important; }
  .widget a,
  .sidebar a,
  aside a,
  .widget li,
  aside li { font-size: 17px !important; line-height: 1.7 !important; }
}


/* Claude Mobile Fix v4 - 防止 iOS 自動縮放文字 */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


/* ======================================================
   股市基友 首頁品牌排版 v1（由 Claude 新增，沿用 v3 tokens）
   ====================================================== */

/* ---- 區段共用 ---- */
.sb-section, .sb-about, .sb-foot-note { margin: 0 auto 3.5rem; }
.sb-anchor { display:block; position:relative; top:-90px; visibility:hidden; }
.sb-section-title {
  font-family: var(--sb-font-serif);
  font-size: 1.7rem; line-height:1.3; color: var(--sb-primary);
  margin: 0 0 .4rem; padding-left: .7rem;
  border-left: 4px solid var(--sb-accent);
}
.sb-section-intro {
  color: var(--sb-text-soft); font-size: 1rem; line-height:1.8;
  margin: 0 0 1.6rem; max-width: 760px;
}

/* ---- Hero 首屏 ---- */
.sb-hero {
  background: linear-gradient(135deg, var(--sb-primary) 0%, #143a5c 100%);
  color:#fff; border-radius: var(--sb-radius);
  padding: 3.4rem 2.2rem 3rem; margin-bottom: 3.2rem;
  text-align:center; box-shadow: var(--sb-shadow-md);
}
.sb-hero-title {
  font-family: var(--sb-font-serif); color:#fff;
  font-size: 2.4rem; line-height:1.35; margin:0 0 1rem; font-weight:700;
}
.sb-hero-sub {
  color: var(--sb-accent); font-size: 1.25rem; font-weight:600;
  margin:0 0 1.2rem; letter-spacing:.02em;
}
.sb-hero-desc {
  color: rgba(255,255,255,.85); font-size: 1.02rem; line-height:1.9;
  max-width: 620px; margin: 0 auto 1.8rem;
}
.sb-hero-btns { justify-content:center; gap:.7rem; }
.sb-hero-btns .wp-block-button__link {
  background: var(--sb-accent); color: var(--sb-primary);
  font-weight:700; border-radius: var(--sb-radius-sm);
  padding:.7rem 1.4rem; border:2px solid var(--sb-accent);
  transition: var(--sb-trans);
}
.sb-hero-btns .wp-block-button__link:hover { background:#dcc079; border-color:#dcc079; }
.sb-hero-btns .is-style-outline .wp-block-button__link {
  background:transparent; color:#fff; border:2px solid rgba(255,255,255,.6);
}
.sb-hero-btns .is-style-outline .wp-block-button__link:hover {
  border-color: var(--sb-accent); color: var(--sb-accent);
}

/* ---- 卡片（手動挑選 sb-card 為 column；自動 Query 也用 sb-card group）---- */
.sb-grid, .sb-card-grid { gap: 1.3rem !important; margin-bottom: 1.3rem; }
.sb-card {
  background: var(--sb-card); border:1px solid var(--sb-border);
  border-radius: var(--sb-radius); padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: var(--sb-shadow-sm); transition: var(--sb-trans);
  display:flex; flex-direction:column; gap:.55rem;
}
.sb-card:hover { box-shadow: var(--sb-shadow-md); transform: translateY(-3px); border-color: var(--sb-border-soft); }
.sb-card-cat, .sb-card .wp-block-post-terms {
  display:inline-block; align-self:flex-start;
  font-size:.74rem; font-weight:700; color: var(--sb-primary-soft);
  background: var(--sb-accent-soft); border:1px solid var(--sb-border-soft);
  padding:.15rem .6rem; border-radius: 999px; margin:0;
}
.sb-card-title, .sb-card .wp-block-post-title {
  font-family: var(--sb-font-sans); font-size:1.05rem; line-height:1.5;
  font-weight:700; margin:.1rem 0 0;
}
.sb-card-title a, .sb-card .wp-block-post-title a, .sb-card-title { color: var(--sb-text) !important; text-decoration:none; }
.sb-card-title a:hover, .sb-card .wp-block-post-title a:hover { color: var(--sb-primary-soft) !important; }
.sb-card-excerpt, .sb-card .wp-block-post-excerpt {
  font-size:.9rem; line-height:1.7; color: var(--sb-text-soft);
  margin:0; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.sb-card .wp-block-post-excerpt__more-text { display:none; }
.sb-card-meta { margin-top:auto; padding-top:.6rem; border-top:1px dashed var(--sb-border); align-items:center; }
.sb-card-date, .sb-card .wp-block-post-date { font-size:.78rem; color: var(--sb-text-soft); margin:0; }
.sb-card-more, .sb-card .wp-block-read-more {
  font-size:.85rem; font-weight:700; color: var(--sb-primary-soft) !important;
  text-decoration:none; margin:.2rem 0 0; border:none; padding:0;
}
.sb-card-more a { color: var(--sb-primary-soft); text-decoration:none; }
.sb-card-more a:hover, .sb-card .wp-block-read-more:hover { color: var(--sb-accent) !important; }

/* ---- 查看更多按鈕 ---- */
.sb-more-wrap { justify-content:center; margin-top:1.6rem; }
.sb-more-wrap .wp-block-button__link {
  color: var(--sb-primary); border:2px solid var(--sb-primary);
  background:transparent; border-radius: var(--sb-radius-sm);
  font-weight:700; padding:.55rem 1.5rem; transition: var(--sb-trans);
}
.sb-more-wrap .wp-block-button__link:hover { background: var(--sb-primary); color:#fff; }

/* ---- 關於 / 免責 ---- */
.sb-about {
  background: var(--sb-accent-soft); border:1px solid var(--sb-border-soft);
  border-radius: var(--sb-radius); padding: 2rem 1.8rem; text-align:center;
}
.sb-about-text { color: var(--sb-text); line-height:1.9; max-width:720px; margin:0 auto 1.4rem; }
.sb-about-btns { justify-content:center; gap:.6rem; }
.sb-about-btns .wp-block-button__link {
  background:transparent; color: var(--sb-primary); border:1.5px solid var(--sb-border-soft);
  border-radius: var(--sb-radius-sm); font-weight:600; padding:.5rem 1.1rem; font-size:.92rem;
}
.sb-about-btns .wp-block-button__link:hover { border-color: var(--sb-accent); color: var(--sb-primary-soft); }
.sb-foot-note { text-align:center; }
.sb-disclaimer {
  font-size:.85rem; color: var(--sb-text-soft); line-height:1.8;
  background: var(--sb-bg); border:1px dashed var(--sb-border);
  border-radius: var(--sb-radius-sm); padding:1rem 1.2rem; max-width:780px; margin:0 auto;
}

/* ---- 響應式：桌機3 / 平板2 / 手機1 ---- */
@media (max-width: 1024px) {
  .sb-card-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .sb-grid { flex-wrap:wrap; }
  .sb-grid .wp-block-column { flex-basis: calc(50% - .65rem) !important; }
}
@media (max-width: 768px) {
  .sb-hero { padding:2.4rem 1.3rem; }
  .sb-hero-title { font-size:1.85rem; }
  .sb-hero-sub { font-size:1.08rem; }
  .sb-section-title { font-size:1.4rem; }
  .sb-card-grid { grid-template-columns: 1fr !important; }
  .sb-grid .wp-block-column { flex-basis:100% !important; }
  .sb-hero-btns, .sb-about-btns { flex-direction:column; align-items:stretch; }
}




/* ---- Query Loop 卡片：內層容器撐滿並置頂、meta 置底 ---- */
.sb-query .sb-card { padding: 0; }
.sb-query .sb-card > .wp-block-group__inner-container {
  display: flex; flex-direction: column; gap: .55rem;
  height: 100%; padding: 1.3rem 1.3rem 1.1rem; justify-content: flex-start;
}
.sb-query .sb-card .sb-card-meta { margin-top: auto; }

/* ---- 首頁草稿(1613)：隱藏自動相關文章 ---- */
.page-id-1613 .crp_related { display: none !important; }


/* =========================================================
   2026-06 修正輪：手機 Hero 對比 / 卡片單層化 / 頁尾對比
   ========================================================= */

/* --- 1. 手機版 Hero 文字可讀性 --- */
.sb-hero .sb-hero-title { color:#ffffff !important; opacity:1 !important; }
.sb-hero .sb-hero-sub {
  color:#e8c97a !important;
  opacity:1 !important;
}
.sb-hero .sb-hero-desc {
  color:#f0f2f5 !important;
  opacity:1 !important;
}

@media (max-width: 768px) {
  .sb-hero .sb-hero-title { font-size:1.9rem !important; line-height:1.5 !important; }
  .sb-hero .sb-hero-sub   { font-size:1.12rem !important; line-height:1.7 !important; color:#e8c97a !important; }
  .sb-hero .sb-hero-desc  { font-size:1rem !important; line-height:2 !important; color:#f0f2f5 !important; }
  .sb-hero-btns { flex-direction:column; align-items:stretch; gap:.7rem; }
  .sb-hero-btns .wp-block-button,
  .sb-hero-btns .wp-block-button__link {
    width:100% !important; max-width:320px; margin-left:auto; margin-right:auto;
    text-align:center;
  }
}

/* --- 2. 自動文章卡片：移除「卡中卡」，只留單層 sb-card --- */
.sb-query .wp-block-post,
.sb-query li.wp-block-post {
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  border-radius:0 !important;
}
.sb-query .wp-block-post,
.sb-query .sb-card { height:100%; }
.sb-query .sb-card { box-shadow: var(--sb-shadow-sm); }

/* --- 3. 頁尾對比（白底版 v2）--- */
/* 頁尾為白底：標題維持深藍，內文改深灰，連結改深金棕 */
.site-footer { color:#374151; }
.site-footer p,
.site-footer li,
.site-footer span,
.site-footer .widget,
.site-footer .footer-widgets { color:#374151 !important; opacity:1 !important; }
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer .widget-title,
.site-footer .wp-block-heading { color:#0d2840 !important; }
.site-footer a { color:#b7791f !important; opacity:1 !important; }
.site-footer a:hover,
.site-footer a:focus { color:#0d2840 !important; text-decoration:underline; }
/* 最底部版權列 */
.site-footer .site-info,
.site-footer .copyright,
.site-footer .inside-site-info,
.site-footer .site-info span { color:#6b7280 !important; opacity:1 !important; }
.site-footer .site-info a { color:#b7791f !important; }
.site-footer .site-info a:hover,
.site-footer .site-info a:focus { color:#0d2840 !important; text-decoration:underline; }

@media (max-width: 768px) {
  .site-footer .inside-site-info,
  .site-footer .footer-widgets { line-height:1.85; }
  .site-footer .footer-widget,
  .site-footer .widget { margin-bottom:1.6rem; }
}

/* --- 4. 頁尾底部去重複（移除最底部選單列，只留版權）--- */
.site-footer .site-info .footer-bar { display:none !important; }


/* --- 首頁站內搜尋框 (sb-home-search) --- */
.sb-home-search {
  max-width: 1180px;
  margin: 28px auto 34px;
  padding: 0 20px;
}
.sb-home-search__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 26px;
  background: #fffdf7;
  border: 1px solid rgba(184, 143, 72, 0.38);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(16, 39, 66, 0.08);
}
.sb-home-search__text h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.35;
  color: #102742;
}
.sb-home-search__text p {
  margin: 0;
  color: #5f6670;
  font-size: 15px;
  line-height: 1.7;
}
.sb-home-search__form {
  display: flex;
  min-width: 420px;
  max-width: 520px;
  width: 42%;
  background: #ffffff;
  border: 1px solid rgba(16, 39, 66, 0.14);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}
.sb-home-search__form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 14px 18px;
  font-size: 15px;
  background: transparent;
  color: #102742;
  outline: none;
}
.sb-home-search__form input[type="search"]::placeholder {
  color: #9aa1aa;
}
.sb-home-search__form button {
  border: 0;
  padding: 0 22px;
  background: #102742;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}
.sb-home-search__form button:hover {
  background: #18395d;
}
@media (max-width: 768px) {
  .sb-home-search {
    margin: 22px auto 28px;
    padding: 0 16px;
  }
  .sb-home-search__inner {
    display: block;
    padding: 20px;
    border-radius: 18px;
  }
  .sb-home-search__text h2 {
    font-size: 20px;
  }
  .sb-home-search__text p {
    font-size: 14px;
  }
  .sb-home-search__form {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin-top: 16px;
  }
  .sb-home-search__form input[type="search"] {
    padding: 13px 15px;
    font-size: 14px;
  }
  .sb-home-search__form button {
    padding: 0 18px;
    font-size: 14px;
  }
	
	
}

/* === Claude v5：桌面閱讀優化（放在檔案最末，不要包進任何 media）=== */
@media (min-width: 769px) {
  .single .entry-content {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
  .single .entry-content h2 {
    font-size: 27px;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 0.6em;
  }
  .single .entry-content h3 {
    font-size: 20px;
    line-height: 1.4;
    margin-top: 1.6em;
  }
}

/* ============================================================
   股市基友 Motion Layer v4 — 2026-08-13
   首頁限定，可隨時整段移除
   ============================================================ */

.home {
  --sb-motion-gold: #d8b86a;
  --sb-motion-gold-bright: #f4d992;
  --sb-motion-blue: #123a5a;
  --sb-motion-ink: #081a2a;
  --sb-motion-line: rgba(20, 58, 88, .14);
  background:
    radial-gradient(circle at 8% 8%, rgba(201,169,97,.10), transparent 28rem),
    radial-gradient(circle at 92% 28%, rgba(26,77,128,.08), transparent 34rem),
    #f6f7f8;
}

.home .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(13,40,64,.09);
  box-shadow: 0 10px 35px rgba(8,26,42,.06);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.admin-bar.home .site-header { top: 32px; }

.home .main-navigation .main-nav ul li a {
  position: relative;
  transition: color .25s ease, transform .25s ease;
}
.home .main-navigation .main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--sb-motion-gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}
.home .main-navigation .main-nav > ul > li:hover > a::after,
.home .main-navigation .main-nav > ul > li.current-menu-item > a::after {
  transform: scaleX(1);
}

.home #page,
.home .site-content,
.home .inside-article {
  background: transparent;
}
.home .inside-article { overflow: visible; }

.home .sb-hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  min-height: 590px;
  display: grid;
  align-items: center;
  padding: clamp(76px, 8vw, 126px) clamp(24px, 7vw, 96px) 108px;
  border: 1px solid rgba(216,184,106,.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 8%, rgba(216,184,106,.22), transparent 28%),
    radial-gradient(circle at 84% 72%, rgba(47,115,166,.30), transparent 33%),
    linear-gradient(135deg, #071827 0%, #0d2b43 52%, #102f49 100%);
  box-shadow:
    0 34px 80px rgba(8,26,42,.24),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.home .sb-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -55%;
  opacity: .26;
  background-image:
    linear-gradient(rgba(255,255,255,.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.065) 1px, transparent 1px);
  background-size: 58px 58px;
  transform: perspective(900px) rotateX(64deg) translateY(-8%);
  animation: sbGridDrift 18s linear infinite;
  -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #000 36%, transparent 88%);
          mask-image: linear-gradient(to bottom, transparent 4%, #000 36%, transparent 88%);
}
.home .sb-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  bottom: -30%;
  left: 0;
  width: 17%;
  opacity: .55;
  transform: translate3d(-180%, 0, 0) skewX(-18deg);
  will-change: transform, opacity;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  filter: blur(2px);
  animation: sbHeroSweep 7s ease-in-out infinite;
}
.home .sb-hero > .wp-block-group__inner-container {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
}
.home .sb-hero > .wp-block-group__inner-container::after {
  content: "ETF  •  COST  •  RISK  •  ALLOCATION  •  MARKET DATA";
  position: absolute;
  left: 50%;
  bottom: -76px;
  width: max-content;
  max-width: 92vw;
  color: rgba(255,255,255,.43);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  white-space: nowrap;
  transform: translateX(-50%);
}
.home .sb-hero-title {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(42px, 5vw, 76px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 12px 44px rgba(0,0,0,.30);
  animation: sbHeroIn .85s cubic-bezier(.2,.8,.2,1) both;
}
.home .sb-hero-title::before {
  content: "STOCKBUDDY / INDEPENDENT RESEARCH";
  display: block;
  margin-bottom: 20px;
  color: var(--sb-motion-gold-bright);
  font-family: var(--sb-font-sans);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .30em;
}
.home .sb-hero-sub {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 9px 15px;
  border: 1px solid rgba(244,217,146,.35);
  border-radius: 999px;
  background: rgba(244,217,146,.08);
  color: var(--sb-motion-gold-bright);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
  animation: sbHeroIn .85s .12s cubic-bezier(.2,.8,.2,1) both;
}
.home .sb-hero-sub::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--sb-motion-gold-bright);
  box-shadow: 0 0 0 5px rgba(244,217,146,.11), 0 0 18px var(--sb-motion-gold);
  animation: sbPulse 2s ease-in-out infinite;
}
.home .sb-hero-desc {
  max-width: 780px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,.78);
  font-size: clamp(16px,1.25vw,19px);
  line-height: 1.9;
  animation: sbHeroIn .85s .2s cubic-bezier(.2,.8,.2,1) both;
}
.home .sb-hero-btns {
  animation: sbHeroIn .85s .28s cubic-bezier(.2,.8,.2,1) both;
}
.home .sb-hero .wp-block-button__link {
  position: relative;
  overflow: hidden;
  min-width: 164px;
  padding: 14px 22px;
  border: 1px solid rgba(244,217,146,.62);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  box-shadow: inset 0 0 0 0 var(--sb-motion-gold);
  backdrop-filter: blur(8px);
  transition: color .3s ease, border-color .3s ease, transform .3s ease, box-shadow .35s ease;
}
.home .sb-hero .wp-block-button__link:hover {
  color: #081a2a;
  border-color: var(--sb-motion-gold-bright);
  transform: translateY(-3px);
  box-shadow: inset 220px 0 0 0 var(--sb-motion-gold-bright), 0 12px 28px rgba(0,0,0,.18);
}

.home .sb-home-search {
  position: relative;
  z-index: 6;
  margin: -48px 20px 76px;
  border: 1px solid rgba(201,169,97,.34);
  border-radius: 20px;
  background: rgba(255,255,255,.90);
  box-shadow: 0 22px 54px rgba(8,26,42,.14);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.home .sb-home-search__inner { padding: 28px 32px; }
.home .sb-home-search h2 {
  position: relative;
  padding-left: 18px;
}
.home .sb-home-search h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  width: 3px;
  height: 1.15em;
  border-radius: 99px;
  background: linear-gradient(var(--sb-motion-gold-bright), #97702b);
  box-shadow: 0 0 14px rgba(201,169,97,.42);
}
.home .sb-home-search__form {
  padding: 6px;
  border: 1px solid rgba(13,40,64,.12);
  border-radius: 14px;
  background: rgba(246,247,248,.88);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.home .sb-home-search__form:focus-within {
  border-color: rgba(201,169,97,.76);
  box-shadow: 0 0 0 4px rgba(201,169,97,.12), 0 12px 30px rgba(8,26,42,.08);
  transform: translateY(-2px);
}
.home .sb-home-search__form button {
  border-radius: 10px;
  background: linear-gradient(135deg, #0d2840, #1a4d80);
  box-shadow: 0 8px 18px rgba(13,40,64,.18);
}

.home .sb-section,
.home .sb-tbxh {
  position: relative;
  margin-top: clamp(76px,9vw,122px);
  margin-bottom: clamp(76px,9vw,122px);
}
.home .sb-section-title,
.home .sb-tbxh-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 15px;
  color: var(--sb-primary);
  font-size: clamp(28px,3vw,43px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.home .sb-section-title::before,
.home .sb-tbxh-title::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  border: 1px solid rgba(201,169,97,.48);
  border-radius: 50%;
  color: #9a6b2f;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 0 0 7px rgba(201,169,97,.06);
}
.home .sb-section-title::after,
.home .sb-tbxh-title::after {
  content: "";
  height: 1px;
  flex: 1;
  margin-left: 8px;
  background: linear-gradient(90deg, rgba(201,169,97,.72), rgba(13,40,64,.10), transparent);
}
.home .sb-section-intro,
.home .sb-tbxh-sub {
  max-width: 820px;
  color: #5e6873;
  font-size: 17px;
  line-height: 1.8;
}

.home .sb-card,
.home .sb-tbxh-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(13,40,64,.10);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(251,249,244,.84));
  box-shadow: 0 10px 30px rgba(8,26,42,.065);
  transition: transform .36s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .36s ease;
}
.home .sb-card::before,
.home .sb-tbxh-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px;
  opacity: 0;
  background: linear-gradient(115deg, transparent 18%, rgba(244,217,146,.34) 43%, transparent 66%);
  transform: translateX(-80%);
  transition: opacity .3s ease;
}
.home .sb-card:hover,
.home .sb-tbxh-card:hover {
  transform: translateY(-9px);
  border-color: rgba(201,169,97,.58);
  box-shadow: 0 24px 55px rgba(8,26,42,.14);
}
.home .sb-card:hover::before,
.home .sb-tbxh-card:hover::before {
  opacity: 1;
  animation: sbCardShine 1.1s ease forwards;
}
.home .sb-card-title a {
  background-image: linear-gradient(90deg, var(--sb-motion-gold), var(--sb-motion-gold));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color .25s ease, background-size .35s ease;
}
.home .sb-card:hover .sb-card-title a { background-size: 100% 1px; }
.home .sb-card-cat,
.home .sb-card-cat a {
  color: #9a6b2f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.home .sb-card-more,
.home .sb-card-more a,
.home .sb-tbxh-btn,
.home .sb-tbxh-all {
  transition: color .25s ease, transform .25s ease, letter-spacing .25s ease;
}
.home .sb-card:hover .sb-card-more,
.home .sb-card:hover .sb-card-more a,
.home .sb-tbxh-card:hover .sb-tbxh-btn {
  letter-spacing: .04em;
}

.home .sb-tbxh {
  max-width: none;
  padding: clamp(34px,5vw,66px);
  border: 1px solid rgba(216,184,106,.20);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 10%, rgba(216,184,106,.18), transparent 26%),
    linear-gradient(135deg, #091d2e, #123a5a);
  box-shadow: 0 30px 70px rgba(8,26,42,.18);
}
.home .sb-tbxh-title { color: #fff; }
.home .sb-tbxh-title::after { background: linear-gradient(90deg, rgba(244,217,146,.55), rgba(255,255,255,.08), transparent); }
.home .sb-tbxh-sub { color: rgba(255,255,255,.68); }
.home .sb-tbxh-card {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}
.home .sb-tbxh-card-title { color: #fff; }
.home .sb-tbxh-card-desc { color: rgba(255,255,255,.68); }
.home .sb-tbxh-btn {
  border-color: rgba(244,217,146,.54);
  background: transparent;
  color: var(--sb-motion-gold-bright);
}
.home .sb-tbxh-card:hover .sb-tbxh-btn {
  background: var(--sb-motion-gold-bright);
  color: var(--sb-motion-ink);
}

.home .sb-more-btn .wp-block-button__link {
  border-color: rgba(13,40,64,.18);
  border-radius: 999px;
  padding: 12px 22px;
  background: transparent;
  color: var(--sb-primary);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.home .sb-more-btn .wp-block-button__link:hover {
  border-color: var(--sb-primary);
  background: var(--sb-primary);
  color: #fff;
  transform: translateY(-2px);
}

@keyframes sbHeroIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sbHeroSweep {
  0%, 14% { transform: translate3d(-180%, 0, 0) skewX(-18deg); opacity: 0; }
  28% { transform: translate3d(40%, 0, 0) skewX(-18deg); opacity: .55; }
  62%, 100% { transform: translate3d(700%, 0, 0) skewX(-18deg); opacity: 0; }
}
@keyframes sbGridDrift {
  from { transform: perspective(900px) rotateX(64deg) translate3d(0,-8%,0); }
  to { transform: perspective(900px) rotateX(64deg) translate3d(58px,50px,0); }
}
@keyframes sbPulse {
  0%,100% { opacity: .7; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes sbCardShine {
  from { transform: translateX(-80%); }
  to { transform: translateX(80%); }
}
@keyframes sbSectionReveal {
  from { opacity: 0; transform: translateY(46px); }
  to { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  .home .sb-section,
  .home .sb-tbxh {
    animation: sbSectionReveal both;
    animation-timeline: view();
    animation-range: entry 8% cover 28%;
  }
}

@media (max-width: 900px) {
  .admin-bar.home .site-header { top: 46px; }
  .home .sb-hero {
    min-height: 540px;
    padding: 72px 24px 102px;
    border-radius: 22px;
  }
  .home .sb-hero-title { font-size: clamp(38px,8vw,58px); }
  .home .sb-home-search { margin: -38px 12px 62px; }
  .home .sb-home-search__inner { padding: 23px 20px; }
  .home .sb-tbxh { padding: 34px 22px; border-radius: 22px; }
}
@media (max-width: 600px) {
  .home .site-header { position: relative; top: auto !important; }
  .home .sb-hero {
    min-height: 0;
    padding: 58px 20px 90px;
    border-radius: 18px;
  }
  .home .sb-hero-title { font-size: clamp(35px,11.5vw,48px); letter-spacing: -.055em; }
  .home .sb-hero-title::before { font-size: 9px; letter-spacing: .20em; }
  .home .sb-hero-desc { font-size: 15px; line-height: 1.75; }
  .home .sb-hero .wp-block-button,
  .home .sb-hero .wp-block-button__link { width: 100%; }
  .home .sb-hero > .wp-block-group__inner-container::after {
    font-size: 8px;
    letter-spacing: .16em;
  }
  .home .sb-home-search { margin-inline: 8px; }
  .home .sb-section-title,
  .home .sb-tbxh-title { align-items: flex-start; font-size: 28px; }
  .home .sb-section-title::after,
  .home .sb-tbxh-title::after { display: none; }
  .home .sb-card:hover,
  .home .sb-tbxh-card:hover { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *::before,
  .home *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* Motion Layer v4.1 minor alignment */
.home .sb-tbxh-title {
  border-left: 0 !important;
  padding-left: 0 !important;
}
.home .sb-tbxh-all {
  color: var(--sb-motion-gold-bright) !important;
}
.home .sb-tbxh-all:hover { color: #fff !important; }


/* ============================================================
   Motion Layer v4.2 — contrast & reading refinement
   ============================================================ */
.home .sb-tbxh-sub {
  color: #cbd7e2 !important;
  font-size: 16px !important;
  line-height: 1.75 !important;
}
.home .sb-tbxh-grid {
  gap: 20px !important;
  align-items: stretch;
}
.home .sb-tbxh-card {
  min-height: 230px;
  padding: 30px 30px 27px !important;
  border-color: rgba(244,217,146,.24) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.045)) !important;
}
.home .sb-tbxh-card::after {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(244,217,146,.24);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}
.home .sb-tbxh-card:nth-child(1)::after { content: "01"; }
.home .sb-tbxh-card:nth-child(2)::after { content: "02"; }

.home .sb-tbxh-card-title {
  max-width: calc(100% - 42px);
  margin-bottom: 12px !important;
  color: #ffffff !important;
  font-size: 21px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  letter-spacing: -.015em;
}
.home .sb-tbxh-card-desc {
  margin-bottom: 23px !important;
  color: #d9e3ec !important;
  opacity: 1 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.75 !important;
}
.home .sb-tbxh-btn {
  min-height: 46px;
  padding: 12px 18px !important;
  border: 1px solid #f1d487 !important;
  border-radius: 10px !important;
  background: #f1d487 !important;
  color: #102b42 !important;
  box-shadow: 0 9px 24px rgba(0,0,0,.18);
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}
.home .sb-tbxh-btn:hover {
  border-color: #fff2c4 !important;
  background: #fff2c4 !important;
  color: #081a2a !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.24), 0 0 24px rgba(244,217,146,.18);
}
.home .sb-tbxh-all {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .home .sb-tbxh-card {
    min-height: 0;
    padding: 24px 24px 23px !important;
  }
  .home .sb-tbxh-card-title {
    font-size: 20px !important;
  }
  .home .sb-tbxh-card-desc {
    font-size: 15.5px !important;
    line-height: 1.72 !important;
  }
  .home .sb-tbxh-btn {
    width: auto !important;
    min-height: 48px;
  }
}


/* ============================================================
   Motion Layer v4.3 — homepage rhythm + article reading system
   ============================================================ */

/* 首頁：縮短「新手文章 → 工具箱」過度留白 */
.home .sb-section,
.home .sb-tbxh {
  margin-top: clamp(64px, 7vw, 92px);
  margin-bottom: clamp(64px, 7vw, 92px);
}
.home .sb-section:has(+ #sb-toolbox) {
  margin-bottom: 34px;
}
.home #sb-toolbox + .sb-tbxh {
  margin-top: 0;
}

/* 文章頁：背景與整體欄位 */
.single-post {
  background:
    radial-gradient(circle at 7% 5%, rgba(201,169,97,.09), transparent 30rem),
    radial-gradient(circle at 94% 22%, rgba(26,77,128,.08), transparent 34rem),
    #f5f7f9;
}
.single-post .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.91);
  border-bottom: 1px solid rgba(13,40,64,.09);
  box-shadow: 0 10px 34px rgba(8,26,42,.055);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.admin-bar.single-post .site-header { top: 32px; }
.single-post .site-content {
  gap: 30px;
  padding-top: 38px;
  padding-bottom: 72px;
}
.single-post .site-main .inside-article {
  position: relative;
  overflow: hidden;
  padding: 52px 58px 68px;
  border: 1px solid rgba(13,40,64,.09);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(239,245,249,.72) 0, #fff 190px);
  box-shadow: 0 24px 64px rgba(8,26,42,.09);
}

/* 封面與文章標題 */
.single-post .featured-image {
  position: relative;
  overflow: hidden;
  margin: 0 0 38px !important;
  border: 1px solid rgba(201,169,97,.30);
  border-radius: 18px;
  background: #081a2a;
  box-shadow: 0 20px 46px rgba(8,26,42,.20);
}
.single-post .featured-image img {
  display: block;
  width: 100%;
  transform: scale(1.002);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}
.single-post .featured-image:hover img {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.02);
}
.single-post .entry-header {
  position: relative;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(13,40,64,.12);
}
.single-post .entry-header::before {
  content: "RESEARCH NOTE  /  MARKET INTEL";
  display: block;
  margin-bottom: 14px;
  color: #9a6b2f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .24em;
}
.single-post .entry-title {
  max-width: 760px;
  margin: 0 !important;
  color: #0d2840;
  font-size: clamp(36px, 3.2vw, 48px) !important;
  font-weight: 900;
  line-height: 1.3 !important;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.single-post .entry-header .entry-meta {
  display: none;
}

/* 閱讀資訊列 */
.single-post .stockbuddy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 32px;
  padding: 14px 16px;
  border: 1px solid rgba(13,40,64,.10);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(13,40,64,.045), rgba(201,169,97,.065));
  color: #526170;
  font-size: 14px;
  line-height: 1.5;
}
.single-post .stockbuddy-meta .meta-item {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(13,40,64,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
}
.single-post .stockbuddy-meta a {
  color: #174f79;
  font-weight: 700;
}

/* 文章本文 */
.single-post .entry-content {
  color: #263440;
  font-size: 18px;
  line-height: 1.85;
}
.single-post .entry-content > p {
  margin-top: 0;
  margin-bottom: 1.45em;
  color: #2d3a45;
}
.single-post .entry-content > p:first-of-type strong {
  color: #102f49;
}
.single-post .entry-content a:not(.ez-toc-link):not(.sb-tbxh-btn) {
  color: #155789;
  text-decoration-color: rgba(21,87,137,.34);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.single-post .entry-content a:not(.ez-toc-link):hover {
  color: #9a6b2f;
  text-decoration-color: #c9a961;
}
.single-post .entry-content h2 {
  position: relative;
  margin: 2.35em 0 .9em;
  padding: 17px 20px 17px 24px;
  border-left: 4px solid #c9a961;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(13,40,64,.075), rgba(13,40,64,.018) 72%, transparent);
  color: #0d2840;
  font-size: clamp(26px,2.2vw,32px);
  font-weight: 850;
  line-height: 1.45;
  letter-spacing: -.025em;
  scroll-margin-top: 120px;
}
.single-post .entry-content h3 {
  margin: 1.9em 0 .7em;
  color: #123a5a;
  font-size: clamp(21px,1.7vw,25px);
  font-weight: 800;
  line-height: 1.5;
  scroll-margin-top: 120px;
}
.single-post .entry-content h3::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 9px;
  border: 1px solid rgba(201,169,97,.52);
  border-radius: 50%;
  color: #9a6b2f;
  font-size: 14px;
  line-height: 1;
  vertical-align: .08em;
}

/* 目錄 */
.single-post #ez-toc-container {
  width: 100% !important;
  box-sizing: border-box;
  margin: 4px 0 38px !important;
  padding: 24px 26px 22px !important;
  border: 1px solid rgba(201,169,97,.24) !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(201,169,97,.12), transparent 34%),
    linear-gradient(135deg, #f5f8fb, #eef3f7) !important;
  box-shadow: 0 12px 30px rgba(8,26,42,.055);
}
.single-post #ez-toc-container .ez-toc-title-container {
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(13,40,64,.10);
}
.single-post #ez-toc-container .ez-toc-title {
  color: #0d2840 !important;
  font-size: 18px !important;
  font-weight: 850 !important;
  letter-spacing: .04em;
}
.single-post #ez-toc-container .ez-toc-title::before {
  content: "CONTENTS";
  display: inline-block;
  margin-right: 12px;
  color: #9a6b2f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.single-post #ez-toc-container nav > ul {
  margin-top: 8px;
}
.single-post #ez-toc-container .ez-toc-link {
  display: inline-block;
  padding: 4px 0;
  color: #244b69 !important;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.55;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}
.single-post #ez-toc-container .ez-toc-link:hover {
  color: #9a6b2f !important;
  transform: translateX(3px);
}

/* 圖片、引用與資料表 */
.single-post .entry-content figure.wp-block-image {
  margin: 34px 0 38px;
}
.single-post .entry-content figure.wp-block-image img {
  width: 100%;
  border: 1px solid rgba(13,40,64,.09);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(8,26,42,.11);
}
.single-post .entry-content figcaption {
  margin-top: 10px;
  color: #6b7680;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}
.single-post .entry-content blockquote {
  position: relative;
  margin: 34px 0;
  padding: 26px 28px 26px 32px !important;
  border: 1px solid rgba(201,169,97,.25);
  border-left: 4px solid #c9a961 !important;
  border-radius: 0 16px 16px 0;
  background:
    radial-gradient(circle at 92% 20%, rgba(201,169,97,.14), transparent 32%),
    linear-gradient(135deg, #0b2235, #123a5a);
  color: rgba(255,255,255,.90);
  box-shadow: 0 16px 36px rgba(8,26,42,.15);
}
.single-post .entry-content blockquote p {
  margin: 0;
  color: inherit !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
}
.single-post .entry-content blockquote a {
  color: #f2d995 !important;
  text-decoration-color: rgba(242,217,149,.44) !important;
}
.single-post .entry-content .etf-data {
  overflow-x: auto;
  margin: 30px 0 36px;
  padding: 24px;
  border: 1px solid rgba(13,40,64,.10);
  border-radius: 16px;
  background: #f8fafb;
  box-shadow: 0 12px 30px rgba(8,26,42,.055);
}
.single-post .entry-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(13,40,64,.11);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.55;
}
.single-post .entry-content table thead th {
  border-color: rgba(255,255,255,.10);
  background: #0d2840;
  color: #fff;
  font-weight: 750;
}
.single-post .entry-content table th,
.single-post .entry-content table td {
  padding: 11px 12px;
  border-color: rgba(13,40,64,.08);
}
.single-post .entry-content table tbody tr:nth-child(even) {
  background: #f3f6f8;
}
.single-post .entry-content small {
  color: #677481;
  font-size: 13px;
  line-height: 1.75;
}

/* 側欄卡片 */
.single-post #right-sidebar .widget {
  overflow: hidden;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid rgba(13,40,64,.09);
  border-radius: 17px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 36px rgba(8,26,42,.07);
}
.single-post #right-sidebar .widget-title {
  position: relative;
  margin-bottom: 17px;
  padding-bottom: 13px;
  color: #0d2840;
  font-size: 19px;
  font-weight: 850;
}
.single-post #right-sidebar .widget-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #c9a961, rgba(13,40,64,.12), transparent);
}
.single-post #right-sidebar li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(13,40,64,.075);
  line-height: 1.65;
}
.single-post #right-sidebar li:last-child { border-bottom: 0; }
.single-post #right-sidebar a {
  color: #244b69;
  transition: color .2s ease;
}
.single-post #right-sidebar a:hover { color: #9a6b2f; }
.single-post #right-sidebar input[type="search"] {
  border: 1px solid rgba(13,40,64,.13);
  border-radius: 10px 0 0 10px;
  background: #f7f9fa;
}
.single-post #right-sidebar button,
.single-post #right-sidebar input[type="submit"] {
  border-radius: 0 10px 10px 0;
  background: #0d2840;
}

/* 桌機與手機閱讀調整 */
@media (min-width: 1025px) {
  .single-post #right-sidebar {
    position: sticky;
    top: 112px;
    align-self: flex-start;
  }
}
@media (max-width: 1024px) {
  .single-post .site-main .inside-article {
    padding: 42px 40px 56px;
  }
  .single-post .entry-title {
    font-size: clamp(34px,5vw,43px) !important;
  }
}
@media (max-width: 768px) {
  .admin-bar.single-post .site-header { top: 46px; }
  .single-post .site-content {
    padding-top: 20px;
    padding-bottom: 48px;
  }
  .single-post .site-main .inside-article {
    padding: 24px 20px 44px;
    border-radius: 18px;
  }
  .single-post .featured-image {
    margin-bottom: 28px !important;
    border-radius: 13px;
  }
  .single-post .entry-title {
    font-size: clamp(30px,8.8vw,38px) !important;
    line-height: 1.34 !important;
  }
  .single-post .entry-content {
    font-size: 17px;
  }
  .single-post .entry-content h2 {
    margin-top: 2em;
    padding: 14px 15px 14px 18px;
    font-size: 24px;
  }
  .single-post #ez-toc-container {
    padding: 20px 18px 18px !important;
  }
  .single-post .stockbuddy-meta {
    padding: 12px;
  }
  .single-post .entry-content .etf-data {
    margin-inline: -4px;
    padding: 16px;
  }
}
@media (max-width: 600px) {
  .single-post .site-header { position: relative; top: auto !important; }
  .home .sb-section:has(+ #sb-toolbox) { margin-bottom: 24px; }
  .home #sb-toolbox + .sb-tbxh { margin-top: 0; }
}


/* ============================================================
   Motion Layer v4.4 — compact rhythm, clean frames, navigation
   ============================================================ */

/* 首頁首屏：保留震撼感，縮短上下空白 */
.home .sb-hero {
  min-height: 0 !important;
  padding: 72px clamp(30px, 6vw, 78px) 82px !important;
  border-radius: 24px;
}
.home .sb-hero-title {
  margin-bottom: 20px;
}
.home .sb-hero > .wp-block-group__inner-container::after {
  bottom: -58px;
}

/* 搜尋區：移除雙層框，稍微疊住藍色首屏 */
.home .sb-home-search {
  margin: -60px 24px 24px !important;
  padding: 0 !important;
  border: 1px solid rgba(201,169,97,.30) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: 0 18px 42px rgba(8,26,42,.12) !important;
}
.home .sb-home-search__inner {
  padding: 24px 28px !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  box-shadow: none !important;
}
.home .sb-home-search h2 {
  padding-left: 17px !important;
  border-left: 0 !important;
}
.home .sb-home-search__form {
  border: 1px solid rgba(13,40,64,.13) !important;
  border-radius: 12px !important;
  background: #f6f8fa !important;
  box-shadow: none;
}
.home .sb-home-search__form input {
  min-height: 48px;
  background: transparent !important;
}
.home .sb-home-search__form button {
  min-height: 46px;
  padding-inline: 22px;
}
.home .sb-home-search + #sb-beginner + .sb-section {
  margin-top: 42px !important;
}

/* 區塊節奏：取消雙裝飾並縮短段落間距 */
.home .sb-section,
.home .sb-tbxh {
  margin-top: clamp(52px, 5vw, 72px);
  margin-bottom: clamp(52px, 5vw, 72px);
}
.home .sb-section-title {
  padding-left: 0 !important;
  border-left: 0 !important;
}
.home .sb-section:has(+ #sb-toolbox) {
  margin-bottom: 18px !important;
}
.home #sb-toolbox + .sb-tbxh {
  margin-top: 0 !important;
}

/* 工具箱：降低盒子高度與卡片空白 */
.home .sb-tbxh {
  padding: 46px 48px 42px !important;
  border-radius: 22px;
}
.home .sb-tbxh-title {
  margin-bottom: 10px !important;
}
.home .sb-tbxh-sub {
  margin-bottom: 20px !important;
}
.home .sb-tbxh-card {
  min-height: 190px;
  padding: 24px 24px 22px !important;
}
.home .sb-tbxh-card-desc {
  margin-bottom: 18px !important;
}
.home .sb-tbxh-more {
  margin-top: 16px !important;
}

/* 文章：移除外層舊卡片，保留一個清楚主框 */
.single-post .site-main > article {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.single-post .site-main .inside-article {
  width: 100%;
  box-sizing: border-box;
  padding: 46px 48px 58px;
}
.single-post .featured-image {
  margin-bottom: 30px !important;
}
.single-post .entry-header {
  margin-bottom: 22px;
  padding-bottom: 21px;
}
.single-post .entry-title {
  font-size: clamp(35px,3vw,46px) !important;
}
.single-post .stockbuddy-meta {
  margin-bottom: 27px;
}
.single-post .entry-content > p {
  margin-bottom: 1.28em;
}
.single-post .entry-content h2 {
  margin-top: 1.95em;
  margin-bottom: .78em;
}
.single-post .entry-content h3 {
  margin-top: 1.6em;
}
.single-post #ez-toc-container {
  margin-bottom: 30px !important;
}
.single-post .entry-content figure.wp-block-image {
  margin-top: 28px;
  margin-bottom: 32px;
}
.single-post #right-sidebar .widget {
  margin-bottom: 18px;
}

/* 桌面主選單與下拉面板 */
@media (min-width: 769px) {
  #site-navigation .main-nav > ul > li > a {
    position: relative;
    transition: color .22s ease;
  }
  #site-navigation .main-nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 9px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #c9a961, transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s ease;
  }
  #site-navigation .main-nav > ul > li:hover > a::after,
  #site-navigation .main-nav > ul > li.current-menu-item > a::after,
  #site-navigation .main-nav > ul > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
  }
  #site-navigation .main-nav > ul > li > a .dropdown-menu-toggle {
    transition: transform .25s ease;
  }
  #site-navigation .main-nav > ul > li:hover > a .dropdown-menu-toggle {
    transform: rotate(180deg);
  }
  #site-navigation .main-nav ul ul {
    min-width: 220px;
    padding: 9px !important;
    border: 1px solid rgba(13,40,64,.11) !important;
    border-top: 2px solid #c9a961 !important;
    border-radius: 0 0 13px 13px !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 20px 48px rgba(8,26,42,.16) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  #site-navigation .main-nav ul ul::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 26px;
    width: 12px;
    height: 12px;
    border-top: 1px solid rgba(13,40,64,.10);
    border-left: 1px solid rgba(13,40,64,.10);
    background: #fff;
    transform: rotate(45deg);
  }
  #site-navigation .main-nav ul ul li {
    border-bottom: 1px solid rgba(13,40,64,.065);
  }
  #site-navigation .main-nav ul ul li:last-child {
    border-bottom: 0;
  }
  #site-navigation .main-nav ul ul li a {
    position: relative;
    padding: 11px 13px !important;
    border-radius: 8px;
    color: #183b56 !important;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
    transition: padding-left .22s ease, color .22s ease, background .22s ease;
  }
  #site-navigation .main-nav ul ul li a::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c9a961;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity .2s ease;
  }
  #site-navigation .main-nav ul ul li:hover > a,
  #site-navigation .main-nav ul ul li.current-menu-item > a {
    padding-left: 19px !important;
    background: linear-gradient(90deg, rgba(201,169,97,.13), rgba(13,40,64,.035)) !important;
    color: #0d2840 !important;
  }
  #site-navigation .main-nav ul ul li:hover > a::before,
  #site-navigation .main-nav ul ul li.current-menu-item > a::before {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .home .sb-hero {
    padding: 58px 24px 76px !important;
  }
  .home .sb-home-search {
    margin: -42px 12px 20px !important;
  }
  .home .sb-home-search__inner {
    padding: 21px 20px !important;
  }
  .home .sb-home-search + #sb-beginner + .sb-section {
    margin-top: 34px !important;
  }
  .home .sb-tbxh {
    padding: 34px 24px 30px !important;
  }
  .home .sb-tbxh-card {
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .home .sb-hero {
    padding: 48px 18px 70px !important;
  }
  .home .sb-home-search {
    margin: -34px 8px 18px !important;
  }
  .home .sb-home-search + #sb-beginner + .sb-section {
    margin-top: 28px !important;
  }
  .home .sb-section:has(+ #sb-toolbox) {
    margin-bottom: 14px !important;
  }
  .single-post .site-main .inside-article {
    padding: 22px 18px 40px;
  }
}


/* Motion Layer v4.4.1 — final vertical rhythm */
.home .sb-hero > .wp-block-group__inner-container {
  padding: 0 !important;
}
.home .sb-hero-desc {
  line-height: 1.75;
}
.home .sb-home-search {
  margin-bottom: 12px !important;
}
.home .sb-home-search + #sb-beginner + .sb-section {
  margin-top: 24px !important;
}
.home .sb-tbxh {
  padding: 38px 42px 34px !important;
}
.home .sb-tbxh-card {
  min-height: 180px;
  padding: 22px 22px 20px !important;
}
@media (max-width: 900px) {
  .home .sb-home-search {
    margin-bottom: 10px !important;
  }
  .home .sb-home-search + #sb-beginner + .sb-section {
    margin-top: 24px !important;
  }
}


/* Motion Layer v4.5 — remove hidden heading margins */
.home .sb-section-title,
.home .sb-tbxh-title {
  margin-top: 0 !important;
}
.home .sb-tbxh {
  margin-bottom: 18px !important;
}
.home .sb-tbxh + #sb-etf + .sb-section {
  margin-top: 0 !important;
}


/* Motion Layer v4.5.1 — remove inner vertical padding */
.home .sb-section > .wp-block-group__inner-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.home .sb-tbxh ~ #sb-etf + .sb-section {
  margin-top: 0 !important;
}


/* Motion Layer v4.5.2 — balanced section breathing room */
.home .sb-home-search + #sb-beginner + .sb-section {
  margin-top: 44px !important;
}
.home .sb-tbxh {
  margin-bottom: 38px !important;
}
@media (max-width: 900px) {
  .home .sb-home-search + #sb-beginner + .sb-section {
    margin-top: 36px !important;
  }
  .home .sb-tbxh {
    margin-bottom: 32px !important;
  }
}


/* ============================================================
   Motion Layer v4.6 — related reading, sidebar, footer
   ============================================================ */

/* 延伸閱讀：由一般清單改成導讀面板 */
.single-post .crp_related.crp-text-only {
  position: relative;
  overflow: hidden;
  margin: 44px 0 22px !important;
  padding: 28px 30px 26px !important;
  border: 1px solid rgba(13,40,64,.10) !important;
  border-left: 0 !important;
  border-radius: 17px !important;
  background:
    radial-gradient(circle at 96% 4%, rgba(201,169,97,.13), transparent 34%),
    linear-gradient(145deg, #f8fafc, #eef4f8) !important;
  box-shadow: 0 16px 38px rgba(8,26,42,.07);
}
.single-post .crp_related.crp-text-only::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #e2c573, #9a6b2f);
}
.single-post .crp_related h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 16px !important;
  padding: 0 0 15px !important;
  border-bottom: 1px solid rgba(13,40,64,.11) !important;
  color: #0d2840;
  font-size: 22px;
  font-weight: 850;
  line-height: 1.35;
}
.single-post .crp_related h3::before {
  content: "READ NEXT";
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid rgba(201,169,97,.38);
  border-radius: 999px;
  color: #9a6b2f;
  font-family: var(--sb-font-sans);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: .13em;
}
.single-post .crp_related ul {
  display: grid;
  gap: 7px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  counter-reset: sb-related;
}
.single-post .crp_related li {
  position: relative;
  margin: 0 !important;
  counter-increment: sb-related;
}
.single-post .crp_related li a {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) 22px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px !important;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #21577f !important;
  font-size: 15.5px;
  font-weight: 620;
  line-height: 1.55;
  text-decoration: none !important;
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}
.single-post .crp_related li a::before {
  content: counter(sb-related, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201,169,97,.36);
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  color: #9a6b2f;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .03em;
}
.single-post .crp_related li a::after {
  content: "→";
  color: #b78a3d;
  font-size: 17px;
  opacity: .7;
  transform: translateX(-3px);
  transition: transform .22s ease, opacity .22s ease;
}
.single-post .crp_related li a:hover {
  border-color: rgba(201,169,97,.22);
  background: rgba(255,255,255,.82);
  color: #0d2840 !important;
  transform: translateX(3px);
}
.single-post .crp_related li a:hover::after {
  opacity: 1;
  transform: translateX(1px);
}

/* 文章側欄：更清楚的閱讀導覽 */
.single-post #right-sidebar .widget {
  position: relative;
  padding: 22px 22px 20px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(8,26,42,.065);
}
.single-post #right-sidebar .widget::before {
  content: "";
  position: absolute;
  top: 0;
  left: 21px;
  right: 21px;
  height: 2px;
  border-radius: 0 0 99px 99px;
  background: linear-gradient(90deg, #c9a961, rgba(201,169,97,.16), transparent);
}
.single-post #right-sidebar .widget-title,
.single-post #right-sidebar .widget > h2,
.single-post #right-sidebar .widget > h3,
.single-post #right-sidebar .widget .wp-block-heading {
  margin: 0 0 12px !important;
  padding: 0 0 12px !important;
  border-bottom: 1px solid rgba(13,40,64,.09);
  color: #0d2840;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.4;
}
.single-post #right-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.single-post #right-sidebar li {
  position: relative;
  margin: 0;
  padding: 0;
}
.single-post #right-sidebar li a {
  position: relative;
  display: block;
  padding: 12px 22px 12px 0;
  color: #285773;
  font-size: 14.5px;
  font-weight: 560;
  line-height: 1.58;
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
}
.single-post #right-sidebar li a::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 3px;
  color: #c09a50;
  font-size: 19px;
  opacity: 0;
  transform: translate(-5px,-50%);
  transition: opacity .2s ease, transform .2s ease;
}
.single-post #right-sidebar li a:hover {
  padding-left: 5px;
  color: #9a6b2f;
}
.single-post #right-sidebar li a:hover::after {
  opacity: 1;
  transform: translate(0,-50%);
}
.single-post #right-sidebar .wp-block-search__label {
  display: block;
  margin-bottom: 11px;
  color: #0d2840;
  font-size: 18px;
  font-weight: 850;
}
.single-post #right-sidebar .wp-block-search__inside-wrapper {
  overflow: hidden;
  min-height: 43px;
  border: 1px solid rgba(13,40,64,.12);
  border-radius: 10px;
  background: #f5f8fa;
}
.single-post #right-sidebar .wp-block-search__input {
  min-width: 0;
  border: 0 !important;
  background: transparent;
}
.single-post #right-sidebar .wp-block-search__button {
  width: 45px;
  min-width: 45px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #0d2840;
}
.single-post #right-sidebar .wp-block-search__button::before {
  content: "⌕";
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

/* 全站頁尾：接回首頁的深藍科技語言 */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  border-top: 1px solid rgba(201,169,97,.26);
  background:
    radial-gradient(circle at 8% 18%, rgba(201,169,97,.12), transparent 30%),
    radial-gradient(circle at 88% 68%, rgba(47,115,166,.17), transparent 34%),
    linear-gradient(135deg, #071827, #0d2b43 58%, #102f49) !important;
  color: rgba(255,255,255,.70);
}
.site-footer::before {
  content: "STOCKBUDDY  •  ETF  •  COST  •  RISK  •  MARKET DATA";
  display: block;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: rgba(244,217,146,.62);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .25em;
  text-align: center;
}
.site-footer .footer-widgets {
  background: transparent !important;
  color: inherit;
}
.site-footer .footer-widgets-container {
  padding-top: 46px !important;
  padding-bottom: 42px !important;
}
.site-footer .inside-footer-widgets {
  gap: clamp(26px,4vw,58px);
}
.site-footer .widget {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: inherit;
}
.site-footer .footer-widget-1,
.site-footer .footer-widget-2,
.site-footer .footer-widget-3,
.site-footer .footer-widget-4 {
  position: relative;
}
.site-footer h3.wp-block-heading {
  position: relative;
  margin: 0 0 19px !important;
  padding: 0 0 13px !important;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
  line-height: 1.35;
}
.site-footer h3.wp-block-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #e2c573, rgba(226,197,115,.14));
}
.site-footer p {
  color: rgba(255,255,255,.65) !important;
  font-size: 14px;
  line-height: 1.8;
}
.site-footer ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.site-footer li {
  margin: 0 !important;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  padding: 5px 0;
  color: rgba(255,255,255,.72) !important;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none !important;
  transition: color .2s ease, transform .2s ease;
}
.site-footer a::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: #c9a961;
  opacity: .68;
}
.site-footer a:hover {
  color: #f2d995 !important;
  transform: translateX(3px);
}
.site-footer #block-9 h3::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  border: 1px solid rgba(226,197,115,.46);
  border-radius: 50%;
  color: #e2c573;
  font-size: 15px;
  vertical-align: .08em;
}
.site-footer #block-19 {
  margin-top: 2px !important;
  padding: 15px 17px !important;
  border: 1px solid rgba(226,197,115,.18);
  border-radius: 11px;
  background: rgba(255,255,255,.045) !important;
}
.site-footer #block-19 p {
  margin: 0;
  font-size: 13px;
}
.site-footer .site-info {
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(3,15,25,.46) !important;
  color: rgba(255,255,255,.48);
}
.site-footer .inside-site-info {
  min-height: 54px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-footer .site-info a::before,
.site-footer .footer-bar a::before {
  display: none;
}

@media (max-width: 768px) {
  .single-post .crp_related.crp-text-only {
    padding: 23px 18px 21px !important;
  }
  .single-post .crp_related li a {
    grid-template-columns: 29px minmax(0,1fr) 18px;
    gap: 8px;
    padding-inline: 7px !important;
    font-size: 14.5px;
  }
  .site-footer .footer-widgets-container {
    padding-top: 38px !important;
    padding-bottom: 30px !important;
  }
  .site-footer .inside-footer-widgets {
    gap: 32px;
  }
}


/* Motion Layer v4.6.1 — related list counter cleanup */
.single-post .crp_related li::before,
.single-post .crp_related li::marker {
  content: none !important;
  display: none !important;
}



/* Motion Layer v4.6.2 — footer contrast */
.site-footer .footer-widgets .wp-block-heading,
.site-footer .footer-widgets h2,
.site-footer .footer-widgets h3 {
  color: #f7fbff !important;
  border-color: rgba(226, 197, 115, .42) !important;
  opacity: 1 !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .22);
}


/* Motion Layer v4.6.3 — cleaner reading list and sidebar */
.single-post .crp_related li a {
  grid-template-columns: minmax(0, 1fr) 18px !important;
  gap: 12px !important;
  padding-left: 10px !important;
}
.single-post .crp_related li a::before {
  content: none !important;
  display: none !important;
}
#right-sidebar .widget::before {
  content: none !important;
  display: none !important;
}
@media (max-width: 768px) {
  .single-post .crp_related li a {
    grid-template-columns: minmax(0, 1fr) 16px !important;
  }
}


/* Archive Design System v1.0 — unify category, tag, author and date archives */
body.archive {
  --sb-ink: #0d2840;
  --sb-ink-soft: #183d59;
  --sb-gold: #d6b85f;
  --sb-paper: #ffffff;
  --sb-muted: #66717d;
  --sb-line: rgba(13, 40, 64, .10);
  background: #f5f7f8;
}

body.archive #content.site-content {
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  margin-inline: auto;
  padding: 48px 0 76px;
  align-items: flex-start;
}

body.archive #primary {
  width: 100%;
  float: none;
}

body.archive #right-sidebar {
  display: none !important;
}

body.archive #main.site-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.archive #main > .page-header {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  padding: 40px 44px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, rgba(214, 184, 95, .17), transparent 34%),
    linear-gradient(135deg, #0b2236 0%, #10344f 100%);
  border: 1px solid rgba(214, 184, 95, .28);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(8, 26, 42, .13);
  overflow: hidden;
}

body.archive #main > .page-header::before {
  content: "STOCKBUDDY / CATEGORY";
  display: block;
  margin-bottom: 12px;
  color: var(--sb-gold);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .18em;
}

body.archive .page-header .page-title {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.18;
  letter-spacing: .03em;
}

body.archive .page-header .taxonomy-description {
  max-width: 760px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.85;
}

body.archive .page-header .taxonomy-description p {
  margin: 0;
}

body.archive #main > article {
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--sb-paper);
  border: 1px solid var(--sb-line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(8, 26, 42, .067);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.archive #main > article:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 184, 95, .50);
  box-shadow: 0 18px 40px rgba(8, 26, 42, .12);
}

body.archive #main > article .inside-article {
  height: 100%;
  padding: 0 22px 22px !important;
  display: flex;
  flex-direction: column;
  background: transparent;
}

body.archive #main > article .post-image {
  order: -3;
  margin: 0 -22px 18px !important;
  padding: 0 !important;
}

body.archive #main > article .post-image a {
  display: block;
  overflow: hidden;
}

body.archive #main > article .post-image img {
  width: 100% !important;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform .35s ease;
}

body.archive #main > article:hover .post-image img {
  transform: scale(1.025);
}

body.archive #main > article footer.entry-meta {
  order: -2;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 0;
}

body.archive #main > article footer.entry-meta .cat-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.archive #main > article footer.entry-meta .cat-links .gp-icon,
body.archive #main > article footer.entry-meta .cat-links .screen-reader-text,
body.archive #main > article footer.entry-meta .tags-links,
body.archive #main > article footer.entry-meta .comments-link {
  display: none !important;
}

body.archive #main > article footer.entry-meta .cat-links a {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 10px;
  color: #806b2b;
  background: rgba(214, 184, 95, .14);
  border: 1px solid rgba(214, 184, 95, .32);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-decoration: none;
}

body.archive #main > article .entry-header {
  order: -1;
  margin: 0;
}

body.archive #main > article .entry-title {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.45;
  letter-spacing: .015em;
}

body.archive #main > article .entry-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 13px;
  background: linear-gradient(90deg, var(--sb-gold), rgba(214, 184, 95, .15));
}

body.archive #main > article .entry-title a {
  color: var(--sb-ink);
  text-decoration: none;
}

body.archive #main > article .entry-title a:hover {
  color: #a8872d;
}

body.archive #main > article header .entry-meta {
  margin-top: 10px;
  color: #7b8791;
  font-size: 12px;
  line-height: 1.5;
}

body.archive #main > article header .entry-meta .byline {
  display: none;
}

body.archive #main > article .entry-summary {
  margin: 15px 0 0;
  color: var(--sb-muted);
  font-size: 14px;
  line-height: 1.75;
}

body.archive #main > article .entry-summary p {
  margin: 0;
}

body.archive #main > article .read-more {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--sb-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
}

body.archive #main > article .read-more::after {
  content: " →";
  color: #a8872d;
}

body.archive #main > .paging-navigation {
  grid-column: 1 / -1;
  margin-top: 12px;
  background: transparent;
}

body.archive #main > .paging-navigation .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

body.archive #main > .paging-navigation .page-numbers {
  min-width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 7px 12px;
  color: var(--sb-ink);
  background: #fff;
  border: 1px solid var(--sb-line);
  border-radius: 999px;
  text-decoration: none;
}

body.archive #main > .paging-navigation .page-numbers.current,
body.archive #main > .paging-navigation .page-numbers:hover {
  color: #fff;
  background: var(--sb-ink);
  border-color: var(--sb-ink);
}

@media (max-width: 1024px) {
  body.archive #content.site-content {
    width: min(100% - 36px, 920px);
    padding-top: 36px;
  }

  body.archive #main.site-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  body.archive #content.site-content {
    width: auto;
    margin: 0;
    padding: 22px 15px 54px !important;
  }

  body.archive #main.site-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  body.archive #main > .page-header {
    margin: 0 0 4px;
    padding: 28px 24px;
    border-radius: 18px;
  }

  body.archive #main > .page-header::before {
    margin-bottom: 10px;
    font-size: 9px;
  }

  body.archive .page-header .page-title {
    font-size: 30px;
  }

  body.archive .page-header .taxonomy-description {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.75;
  }

  body.archive #main > article {
    border-radius: 16px;
  }

  body.archive #main > article .inside-article {
    padding: 0 18px 20px !important;
  }

  body.archive #main > article .post-image {
    margin: 0 -18px 17px !important;
  }

  body.archive #main > article .entry-title {
    font-size: 19px;
    line-height: 1.48;
  }

  body.archive #main > article .entry-summary {
    font-size: 14px;
    line-height: 1.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.archive #main > article,
  body.archive #main > article .post-image img {
    transition: none;
  }

  body.archive #main > article:hover {
    transform: none;
  }
}


/* Archive Design System v1.0.1 — mobile taxonomy contrast */
body.archive .page-header .taxonomy-description,
body.archive .page-header .taxonomy-description p {
  color: rgba(255, 255, 255, .80) !important;
}


/* Archive Design System v1.0.2 — taxonomy typography */
body.archive .page-header .taxonomy-description,
body.archive .page-header .taxonomy-description p {
  font-size: 15px !important;
  line-height: 1.85 !important;
}
@media (max-width: 768px) {
  body.archive .page-header .taxonomy-description,
  body.archive .page-header .taxonomy-description p {
    font-size: 14px !important;
    line-height: 1.75 !important;
  }
}


/* Archive Design System v1.0.3 — compact mobile titles */
@media (max-width: 768px) {
  body.archive #main > article .entry-title {
    font-size: 19px !important;
    line-height: 1.48 !important;
  }
}


/* Archive Design System v1.0.4 — aligned read-more */
body.archive #main > article .entry-summary {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

body.archive #main > article .entry-summary > p {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
}

body.archive #main > article .entry-summary .read-more {
  margin-top: auto;
}


/* Archive Design System v1.0.5 — compact pagination */
body.archive .paging-navigation {
  margin-top: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.archive .paging-navigation .nav-previous,
body.archive .paging-navigation .nav-next {
  display: none !important;
}

body.archive .paging-navigation .nav-links {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

body.archive .paging-navigation .page-numbers {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 42px !important;
  width: auto !important;
  height: 42px !important;
  padding: 0 13px !important;
  border: 1px solid rgba(13, 40, 64, .14) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #0d2840 !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(13, 40, 64, .06);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.archive .paging-navigation a.page-numbers:hover,
body.archive .paging-navigation a.page-numbers:focus-visible {
  border-color: #0d2840 !important;
  background: #f4f7f9 !important;
  color: #0d2840 !important;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(13, 40, 64, .11);
}

body.archive .paging-navigation .page-numbers.current {
  border-color: #0d2840 !important;
  background: #0d2840 !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(13, 40, 64, .18);
}

body.archive .paging-navigation .page-numbers.dots {
  min-width: 26px !important;
  padding: 0 2px !important;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none;
}

body.archive .paging-navigation .next.page-numbers,
body.archive .paging-navigation .prev.page-numbers {
  gap: 7px;
  padding-inline: 16px !important;
}

body.archive .paging-navigation .next.page-numbers span,
body.archive .paging-navigation .prev.page-numbers span {
  display: inline !important;
  line-height: 1 !important;
}

@media (max-width: 600px) {
  body.archive .paging-navigation {
    margin-top: 30px !important;
  }

  body.archive .paging-navigation .nav-links {
    gap: 6px;
  }

  body.archive .paging-navigation .page-numbers {
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 11px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
  }

  body.archive .paging-navigation .page-numbers.dots {
    min-width: 18px !important;
    padding: 0 !important;
  }

  body.archive .paging-navigation .next.page-numbers,
  body.archive .paging-navigation .prev.page-numbers {
    padding-inline: 13px !important;
  }
}


/* Archive Design System v1.0.6 — clean, equal title rows */
body.archive #main > article .entry-title {
  box-sizing: border-box;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

@media (min-width: 769px) {
  body.archive #main > article .entry-title {
    min-height: 111px;
    display: flex;
    flex-direction: column;
    font-size: 22px !important;
    line-height: 1.45 !important;
  }

  body.archive #main > article .entry-title::after {
    flex: 0 0 2px;
    margin-top: auto;
  }
}


/* ============================================================
   Motion Layer v5.0 — full template completion
   Search, empty states, pages, tools, comments, responsive
   ============================================================ */

/* ---------- 1. Search results ---------- */
body.search-results {
  background: #f5f7f9 !important;
}
.search-results .page-header {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px !important;
  padding: 38px 42px 34px !important;
  border: 1px solid rgba(226,197,115,.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(48,111,151,.30), transparent 34%),
    linear-gradient(135deg, #09283d 0%, #0d3551 62%, #123e5c 100%) !important;
  box-shadow: 0 18px 50px rgba(8,26,42,.13);
}
.search-results .page-header::before {
  content: "STOCKBUDDY / SEARCH";
  display: block;
  margin-bottom: 12px;
  color: #e2c573;
  font: 700 10px/1.2 system-ui, sans-serif;
  letter-spacing: .2em;
}
.search-results .page-header::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
}
.search-results .page-title {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(29px, 3.2vw, 43px) !important;
  line-height: 1.22;
  letter-spacing: -.025em;
}
.search-results #main > article {
  margin: 0 0 20px !important;
  border: 1px solid rgba(13,40,64,.09);
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 12px 34px rgba(8,26,42,.075);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.search-results #main > article:hover {
  transform: translateY(-3px);
  border-color: rgba(201,169,97,.38);
  box-shadow: 0 18px 42px rgba(8,26,42,.12);
}
.search-results #main > article > .inside-article {
  display: grid;
  grid-template-columns: minmax(176px, 31%) minmax(0, 1fr);
  grid-template-areas:
    "image header"
    "image summary";
  align-items: start;
  gap: 10px 25px;
  min-height: 218px;
  padding: 0 !important;
}
.search-results article .post-image {
  grid-area: image;
  align-self: stretch;
  min-height: 218px;
  margin: 0 !important;
  background: #0d283f;
}
.search-results article .post-image a,
.search-results article .post-image img {
  width: 100%;
  height: 100%;
}
.search-results article .post-image img {
  min-height: 218px;
  object-fit: cover;
  transition: transform .5s ease;
}
.search-results article:hover .post-image img {
  transform: scale(1.035);
}
.search-results article .entry-header {
  grid-area: header;
  align-self: end;
  padding: 26px 26px 0 0;
}
.search-results article .entry-title {
  margin: 0 0 10px !important;
  font-size: clamp(20px, 2.05vw, 25px) !important;
  line-height: 1.4;
  letter-spacing: -.012em;
}
.search-results article .entry-title a {
  color: #0d283f !important;
  background-image: none !important;
}
.search-results article .entry-title a:hover {
  color: #276589 !important;
}
.search-results article .entry-header .entry-meta {
  color: #7a8792;
  font: 600 12px/1.5 system-ui, sans-serif;
  letter-spacing: .025em;
}
.search-results article .entry-header .byline {
  display: none;
}
.search-results article .entry-summary {
  grid-area: summary;
  padding: 0 26px 25px 0;
  color: #5d6a75;
}
.search-results article .entry-summary p {
  font-size: 14.5px;
}
.search-results article .read-more {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  color: #a87921 !important;
  font-weight: 700;
  white-space: nowrap;
  background-image: none !important;
}

.search-results article footer.entry-meta {
  display: none !important;
}
.search-results .paging-navigation {
  margin-top: 34px !important;
}

/* ---------- 2. Empty search and 404 ---------- */
body.search-no-results,
body.error404 {
  background: #f5f7f9 !important;
}
.search-no-results #right-sidebar,
.error404 #right-sidebar {
  display: none !important;
}
.search-no-results #primary,
.error404 #primary {
  float: none !important;
  width: 100% !important;
  max-width: 900px;
  margin: 0 auto !important;
}
.search-no-results #main > .no-results,
.error404 #main > .inside-article {
  position: relative;
  overflow: hidden;
  padding: 46px 48px !important;
  border: 1px solid rgba(226,197,115,.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(48,111,151,.30), transparent 34%),
    linear-gradient(135deg, #09283d, #0d3551 68%, #123e5c) !important;
  box-shadow: 0 20px 54px rgba(8,26,42,.15);
}
.search-no-results #main > .no-results::before,
.error404 #main > .inside-article::before {
  display: block;
  margin-bottom: 14px;
  color: #e2c573;
  font: 700 10px/1.2 system-ui, sans-serif;
  letter-spacing: .2em;
}
.search-no-results #main > .no-results::before {
  content: "STOCKBUDDY / SEARCH";
}
.error404 #main > .inside-article::before {
  content: "STOCKBUDDY / ERROR 404";
}
.search-no-results .page-title,
.error404 .entry-title {
  margin: 0 0 14px !important;
  color: #fff !important;
  font-size: clamp(29px, 3.6vw, 43px) !important;
  line-height: 1.25;
}
.search-no-results .page-content,
.error404 .entry-content {
  color: rgba(255,255,255,.74) !important;
  font-size: 16px;
}
.search-no-results .page-content p,
.error404 .entry-content p {
  color: rgba(255,255,255,.74) !important;
}
.search-no-results #main .search-form,
.error404 #main .search-form {
  display: flex;
  max-width: 560px;
  margin-top: 25px;
}
.search-no-results #main .search-field,
.error404 #main .search-field {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px 0 0 12px;
  background: rgba(255,255,255,.96);
}
.search-no-results #main .search-submit,
.error404 #main .search-submit {
  width: 58px;
  min-width: 58px;
  height: 50px;
  border: 1px solid #e2c573;
  border-radius: 0 12px 12px 0;
  background: #d6b55e;
  color: #0d283f;
}

/* ---------- 3. Static pages and tools ---------- */
body.page:not(.home) article.page > .inside-article {
  padding: 0 !important;
  background: transparent !important;
}
body.page:not(.home) article.page > .inside-article > .entry-header {
  position: relative;
  overflow: hidden;
  margin: 0 0 26px !important;
  padding: 36px 40px 32px !important;
  border: 1px solid rgba(226,197,115,.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 8%, rgba(48,111,151,.28), transparent 35%),
    linear-gradient(135deg, #09283d, #0d3551 68%, #123e5c);
  box-shadow: 0 18px 48px rgba(8,26,42,.12);
}
body.page:not(.home) article.page > .inside-article > .entry-header::before {
  content: "STOCKBUDDY / GUIDE";
  display: block;
  margin-bottom: 11px;
  color: #e2c573;
  font: 700 10px/1.2 system-ui, sans-serif;
  letter-spacing: .19em;
}
body.page.page-parent article.page > .inside-article > .entry-header::before,
body.page.page-child.parent-pageid-1716 article.page > .inside-article > .entry-header::before {
  content: "STOCKBUDDY / TOOLKIT";
}
body.page:not(.home) article.page > .inside-article > .entry-header .entry-title {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(29px, 3.4vw, 43px) !important;
  line-height: 1.28;
  letter-spacing: -.025em;
}
body.page:not(.home) article.page > .inside-article > .entry-content {
  margin-top: 0 !important;
  padding: clamp(28px, 4vw, 48px) !important;
  border: 1px solid rgba(13,40,64,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 45px rgba(8,26,42,.07);
}
body.page:not(.home) #ez-toc-container,
body.page:not(.home) .ez-toc-container {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 34px !important;
  padding: 22px 24px !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
body.page:not(.home) #ez-toc-container nav > ul,
body.page:not(.home) .ez-toc-container nav > ul {
  columns: 2;
  column-gap: 36px;
}
body.page:not(.home) #ez-toc-container li,
body.page:not(.home) .ez-toc-container li {
  break-inside: avoid;
}
body.page:not(.home) .entry-content > h2:first-of-type {
  margin-top: 1.2em;
}

/* Tool forms and panels */
body.page-parent .entry-content input,
body.page-parent .entry-content select,
body.page-child.parent-pageid-1716 .entry-content input,
body.page-child.parent-pageid-1716 .entry-content select {
  border-radius: 10px;
}
body.page-parent .entry-content button,
body.page-child.parent-pageid-1716 .entry-content button {
  border-radius: 10px;
}

/* ---------- 4. Comment area ---------- */
.single-post #respond,
.single-post .comment-respond {
  margin-top: 40px;
  padding: 30px !important;
  border: 1px solid rgba(13,40,64,.09);
  border-radius: 20px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 16px 42px rgba(8,26,42,.07);
}
.single-post #reply-title {
  margin-bottom: 18px;
  color: #0d283f;
  font-size: 27px;
}
.single-post #respond textarea,
.single-post #respond input[type="text"],
.single-post #respond input[type="email"],
.single-post #respond input[type="url"] {
  border: 1px solid #d8e1e8;
  border-radius: 12px;
  background: #f8fafb;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.single-post #respond textarea:focus,
.single-post #respond input:focus {
  border-color: #c9a961;
  box-shadow: 0 0 0 3px rgba(201,169,97,.14);
}
.single-post #respond #submit {
  border: 1px solid rgba(226,197,115,.6);
  border-radius: 11px;
  background: #0d3551;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 9px 22px rgba(13,53,81,.17);
}
.single-post #respond #submit:hover {
  transform: translateY(-2px);
  background: #154968;
}
.single-post .comment-list .comment-body {
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(13,40,64,.08);
  border-radius: 16px;
  background: #fff;
}

/* ---------- 5. Sidebar search icon ---------- */
#right-sidebar .wp-block-search__button,
.widget-area .wp-block-search__button {
  position: relative;
  min-width: 48px;
  font-size: 0 !important;
  color: transparent !important;
}
#right-sidebar .wp-block-search__button::before,
.widget-area .wp-block-search__button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-62%, -62%);
}
#right-sidebar .wp-block-search__button::after,
.widget-area .wp-block-search__button::after {
  content: "";
  position: absolute;
  top: 57%;
  left: 57%;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: left center;
}

/* ---------- 6. Narrow desktop / landscape tablet ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-header .inside-header {
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 13px;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }
  .site-header .site-branding-container,
  .site-header .site-logo {
    justify-self: center;
  }
  .site-header .main-navigation {
    width: 100%;
  }
  .site-header .main-navigation .main-nav > ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .site-header .main-navigation .main-nav > ul > li > a {
    padding-right: 11px !important;
    padding-left: 11px !important;
    font-size: 13.5px;
  }
  .site-footer .inside-footer-widgets {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 46px !important;
  }
  .site-footer .inside-footer-widgets > div {
    width: auto !important;
    margin: 0 !important;
  }
}

/* ---------- 7. Mobile refinements ---------- */
@media (max-width: 768px) {
  .search-results .page-header,
  body.page:not(.home) article.page > .inside-article > .entry-header {
    padding: 28px 24px 25px !important;
    border-radius: 17px;
  }
  .search-results #main > article > .inside-article {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "image"
      "header"
      "summary";
    gap: 0;
  }
  .search-results article .post-image,
  .search-results article .post-image img {
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .search-results article .entry-header {
    padding: 21px 21px 0;
  }
  .search-results article .entry-summary {
    padding: 0 21px 22px;
  }
  .search-no-results #main > .no-results,
  .error404 #main > .inside-article {
    padding: 32px 24px !important;
    border-radius: 18px;
  }
  body.page:not(.home) article.page > .inside-article > .entry-content {
    padding: 25px 20px !important;
    border-radius: 17px;
  }
  body.page:not(.home) #ez-toc-container nav > ul,
  body.page:not(.home) .ez-toc-container nav > ul {
    columns: 1;
  }
  .single-post #respond,
  .single-post .comment-respond {
    padding: 23px 19px !important;
    border-radius: 16px;
  }
}


/* Motion Layer v5.0.1 — empty state structure correction */
.search-no-results #main > .no-results {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.search-no-results #main > .no-results > .inside-article {
  position: relative;
  overflow: hidden;
  padding: 46px 48px !important;
  border: 1px solid rgba(226,197,115,.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(48,111,151,.30), transparent 34%),
    linear-gradient(135deg, #09283d, #0d3551 68%, #123e5c) !important;
  box-shadow: 0 20px 54px rgba(8,26,42,.15);
}
.search-no-results #main > .no-results > .inside-article::before {
  content: "STOCKBUDDY / SEARCH";
  display: block;
  margin-bottom: 14px;
  color: #e2c573;
  font: 700 10px/1.2 system-ui, sans-serif;
  letter-spacing: .2em;
}
.search-no-results .site-content,
.error404 .site-content {
  padding-bottom: 66px !important;
}
@media (max-width: 768px) {
  .search-no-results #main > .no-results > .inside-article {
    padding: 32px 24px !important;
    border-radius: 18px;
  }
}


/* Motion Layer v5.0.2 — empty state contrast */
.search-no-results #main > .no-results::before {
  content: none !important;
  display: none !important;
}
.search-no-results #main > .no-results .entry-title {
  color: #fff !important;
  border-color: rgba(226,197,115,.55) !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.search-no-results #main > .no-results .entry-content,
.search-no-results #main > .no-results .entry-content p {
  color: rgba(255,255,255,.78) !important;
}


/* Motion Layer v5.0.3 — search thumbnail ratio */
@media (min-width: 769px) {
  .search-results #main > article > .inside-article {
    grid-template-columns: minmax(205px, 36%) minmax(0, 1fr);
    min-height: 0;
  }
  .search-results article .post-image {
    align-self: start;
    min-height: 0;
    height: auto;
    margin: 24px 0 24px 24px !important;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
  }
  .search-results article .post-image a,
  .search-results article .post-image img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}


/* Motion Layer v5.0.4 — compact search cards on narrow desktop */
@media (min-width: 769px) and (max-width: 1024px) {
  .search-results #main > article > .inside-article {
    align-items: center;
  }
  .search-results article .post-image {
    align-self: center;
  }
  .search-results article .entry-header {
    align-self: center;
    padding: 25px 25px 25px 0;
  }
  .search-results article .entry-summary {
    display: none !important;
  }
}


/* ============================================================
   Motion Layer v5.1 — search results match category archive
   ============================================================ */
.search-results #right-sidebar {
  display: none !important;
}
.search-results #primary {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}
.search-results .site-content {
  display: block !important;
}
.search-results #main {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px !important;
  width: 100%;
  margin-right: 0 !important;
}
.search-results #main > .page-header,
.search-results #main > .paging-navigation {
  grid-column: 1 / -1;
}
.search-results #main > article {
  display: block !important;
  height: 100%;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(13,40,64,.10);
  border-radius: 18px;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(8,26,42,.067);
}
.search-results #main > article > .inside-article {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  grid-template-areas: none !important;
  gap: 0 !important;
  height: 100%;
  min-height: 0;
  padding: 0 22px 22px !important;
  background: transparent !important;
}
.search-results article .post-image {
  order: -3;
  align-self: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 -22px 18px !important;
  overflow: hidden;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
}
.search-results article .post-image a,
.search-results article .post-image img {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover;
}
.search-results article footer.entry-meta {
  order: -2;
  display: block !important;
  margin: 0 0 10px !important;
  font-size: 0;
  line-height: 0;
}
.search-results article footer.entry-meta .cat-links {
  display: inline-flex !important;
  align-items: center;
}
.search-results article footer.entry-meta .cat-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 11px;
  border: 1px solid rgba(201,169,97,.35);
  border-radius: 999px;
  background: #fbf8f0;
  color: #9a722d !important;
  font: 700 11px/1.2 system-ui, sans-serif;
  letter-spacing: .03em;
  background-image: none !important;
}
.search-results article footer.entry-meta .cat-links .gp-icon,
.search-results article footer.entry-meta .tags-links,
.search-results article footer.entry-meta .comments-link {
  display: none !important;
}
.search-results article .entry-header {
  order: -1;
  align-self: auto !important;
  padding: 0 !important;
}
.search-results article .entry-title {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  font-size: 22px !important;
  line-height: 1.45;
}
.search-results article .entry-header .entry-meta {
  margin-top: 10px;
  color: #7b8791;
  font-size: 12px;
  line-height: 1.5;
}
.search-results article .entry-summary {
  display: flex !important;
  flex: 1;
  flex-direction: column;
  padding: 0 !important;
  margin-top: 15px;
  color: #66717d;
}
.search-results article .entry-summary p {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}
.search-results article .read-more {
  align-self: flex-start;
  margin: auto 0 0 !important;
  padding: 4px 12px;
  border-radius: 4px;
  background: #c9a961 !important;
  color: #fff !important;
  font: 700 12px/1.75 system-ui, sans-serif;
}
.search-results article .read-more::after {
  content: " →";
}
@media (min-width: 769px) and (max-width: 1100px) {
  .search-results #main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-results article .entry-summary {
    display: flex !important;
  }
}
@media (max-width: 768px) {
  .search-results #main {
    grid-template-columns: 1fr;
    gap: 18px !important;
  }
  .search-results #main > article > .inside-article {
    display: flex !important;
    padding: 0 19px 20px !important;
  }
  .search-results article .post-image {
    margin: 0 -19px 17px !important;
  }
  .search-results article .entry-title {
    font-size: 20px !important;
  }
}



/* Performance hardening — 2026-08-14 */
@media (prefers-reduced-motion: reduce) {
  .home .sb-hero::after { animation: none !important; }
}


/* Header navigation refresh — 2026-08-14 */


/* Tools navigation and button contrast — 2026-08-14 */
.entry-content a.sbl-btn,
.entry-content a.sbl-btn:visited {
  background-color: var(--sbl-navy, #102a43) !important;
  background-image: none !important;
  color: #fff !important;
  text-decoration: none !important;
}

.entry-content a.sbl-btn:hover,
.entry-content a.sbl-btn:focus-visible {
  border-color: var(--sbl-gold, #b88746) !important;
  background-color: var(--sbl-gold, #b88746) !important;
  background-image: none !important;
  color: #fff !important;
}

@media (min-width: 769px) {
  #menu-item-2971 {
    display: flex;
    align-items: center;
    margin-left: 8px;
  }

  #menu-item-2971 > a,
  #menu-item-2971.current-menu-item > a {
    height: 40px;
    margin: 10px 0;
    padding: 0 17px !important;
    border: 1px solid var(--sb-accent, #c9a961);
    border-radius: 999px;
    background: linear-gradient(135deg, #0d2840, #1a4d80);
    color: #fff !important;
    line-height: 38px;
    box-shadow: 0 6px 16px rgba(13, 40, 64, .16);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  }

  #menu-item-2971 > a::before {
    margin-right: 7px;
    color: var(--sb-accent, #c9a961);
    content: "▦";
    font-size: 14px;
  }

  #menu-item-2971 > a:hover,
  #menu-item-2971 > a:focus-visible {
    transform: translateY(-1px);
    border-color: var(--sb-accent, #c9a961);
    background: var(--sb-accent, #c9a961);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(13, 40, 64, .2);
  }
}

@media (min-width: 1025px) {
  .main-navigation .main-nav > ul {
    flex-wrap: nowrap;
    align-items: center;
  }

  .main-navigation .main-nav > ul > li > a {
    padding-right: 15px !important;
    padding-left: 15px !important;
    white-space: nowrap;
  }
}


/* SB shared interface v1 — 2026-09-06. Navigation and ticker only. */
#masthead :is(a,button,[role="button"]):focus-visible,
#sbTick :is(a,button,[role="button"]):focus-visible {outline:3px solid #986313;outline-offset:3px}
#sbTick .sb-tick-view:focus-visible {outline:3px solid #e2bd70;outline-offset:-3px}
#sbTick:focus-within .sb-tick-track {animation-play-state:paused}
@media(min-width:601px){
 #sbTick .sb-tick-item {flex:0 0 auto;width:auto;grid-template-columns:max-content max-content max-content;column-gap:9px;padding:10px 16px}
 #sbTick .sb-tick-item em:empty {display:none}
 #sbTick .sb-tick-item:has(em:empty) {grid-template-columns:max-content max-content}
}
@media(min-width:768.01px) and (max-width:1219px){
 #masthead .inside-header {display:grid!important;grid-template-columns:minmax(0,1fr);justify-items:center;align-items:center;gap:8px;padding:14px 20px!important}
 #masthead .site-branding-container {justify-self:center}
 #masthead #site-navigation {width:100%;margin:0}
 #masthead #site-navigation .inside-navigation {justify-content:center}
 #masthead #site-navigation .main-nav>ul {display:flex;flex-wrap:wrap;justify-content:center}
 #masthead #site-navigation .main-nav>ul>li>a {font-size:14px;line-height:44px;padding:0 6px!important}
}
@media(max-width:768px){
 #masthead.site-header {position:sticky;top:0!important;z-index:80;background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 3px 14px #0d284010}
 #masthead .inside-header {padding:12px 16px!important;gap:10px}
 #masthead .site-branding-container {min-width:0;flex:1;gap:10px}
 #masthead .site-logo {margin-right:0!important;flex:none}
 #masthead .header-image {width:42px;height:42px;max-height:42px;object-fit:cover}
 #masthead .main-title {font-size:18px!important;line-height:1.3!important}
 #masthead .site-description {font-size:12px!important;line-height:1.45!important;margin-top:3px;white-space:normal}
 #masthead .mobile-menu-control-wrapper {margin:0!important;flex:none}
 #masthead .mobile-menu-control-wrapper .menu-toggle {display:flex;align-items:center;justify-content:center;width:44px;min-height:44px;padding:10px!important;border:1px solid #d8c9ad;border-radius:10px;background:#faf7f0;color:#0d2840}
 #masthead #site-navigation {width:100%;margin:0!important;border-radius:12px}
 #masthead #site-navigation .inside-navigation {padding:0!important}
 #masthead #site-navigation.toggled .main-nav {max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-block:8px;padding:6px;background:#faf7f0;border:1px solid #d8c9ad;border-radius:12px;box-sizing:border-box}
 #masthead #site-navigation .main-nav>ul>li>a {min-height:48px;padding:0 16px!important;line-height:48px;font-size:16px;color:#17364a}
 #masthead #site-navigation .main-nav>ul>li+li {border-top:1px solid #dfd6c866}
 #masthead #site-navigation .dropdown-menu-toggle {min-width:44px;min-height:44px;padding:0 12px;line-height:48px;text-align:center}
 #masthead #site-navigation .sub-menu {border:0;border-left:2px solid #b08436;border-radius:0;background:#fff;box-shadow:none;margin:0 8px 6px;padding:4px 0}
 #masthead #site-navigation .sub-menu li a {min-height:44px;padding:10px 16px!important;line-height:24px;font-size:15px;box-sizing:border-box}
 #masthead #site-navigation .main-nav>ul>li>a::after {display:none}
 #masthead #site-navigation a:hover,#masthead #site-navigation a:focus-visible {color:#68470e;background:#eee5d3}
}
@media(min-width:601px) and (max-width:768px){body.admin-bar #masthead.site-header {top:46px!important}}
@media(max-width:600px){
 #sbTick .sb-tick-item {grid-template-columns:minmax(0,1fr) max-content;grid-template-rows:17px 21px;gap:1px 8px;align-content:center;padding:3px 8px;height:46px}
 #sbTick .sb-tick-item b {grid-column:1/-1;font-size:11px;line-height:17px;color:#c5d2df;text-align:left}
 #sbTick .sb-tick-item i {font-size:14px;line-height:21px;text-align:left;overflow:visible;text-overflow:clip}
 #sbTick .sb-tick-item em {font-size:12px;line-height:21px;text-align:right}
 #sbTick .sb-tick-item em:empty {display:none}
 #sbTick .sb-tick-item:has(em:empty) i {grid-column:1/-1}
 #sbTick .sb-tick-more {min-height:46px}
}
/* END SB shared interface v1 */


/* StockBuddy 2026-09-14: remove primary navigation white rectangle. Keep submenu and tool button surfaces. */
#masthead #site-navigation.main-navigation,
#masthead #site-navigation .inside-navigation {
  background: transparent !important;
  box-shadow: none !important;
}
