/* 文章內頁 — 對齊首頁（handoff/outdoors_home/build_home.py 的 .odh token）：深森林綠＋琥珀黃＋沙色，標題改黑體粗字 */
body.single-post {
  --od-g: #1F4D3A;
  --od-g2: #2F6B4F;
  --od-sun: #F2B544;
  --od-sand: #F6EBD2;
  --od-ink: #1d2722;
  --od-mut: #5d6b63;
  --od-line: #e3e8e4;
}

/* 標題字型：Playfair Display 是英文襯線字，中文會掉到系統字，改跟首頁一樣用內文黑體 */
body.single-post .hero-section h1,
body.single-post .entry-content h2,
body.single-post .entry-content h3,
body.single-post .entry-content h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Roboto, Helvetica, Arial, sans-serif !important;
  font-weight: 800;
  letter-spacing: .01em;
}

/* Hero：跟首頁一樣的深綠漸層遮罩，標題純白 */
body.single-post .hero-section[data-type="type-2"] > figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,30,22,.70) 0%, rgba(10,30,22,.50) 45%, rgba(10,30,22,.82) 100%);
}
body.single-post .hero-section[data-type="type-2"] > figure { position: absolute; }
body.single-post .hero-section[data-type="type-2"] > figure::after { z-index: 1; }
body.single-post .hero-section h1 { color: #fff; line-height: 1.35; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
body.single-post .hero-section .entry-meta,
body.single-post .hero-section .entry-meta a { color: rgba(255,255,255,.88); }
body.single-post .hero-section .meta-categories a,
body.single-post .entry-meta .meta-categories a {
  background: var(--od-sun) !important; color: var(--od-ink) !important;
  border-radius: 999px; padding: 3px 12px; font-weight: 700;
}

/* 內文 */
body.single-post .entry-content { color: #3d4842; }
body.single-post .entry-content p a,
body.single-post .entry-content li a,
body.single-post .entry-content td a {
  color: var(--od-g2); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(242,181,68,.85);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
body.single-post .entry-content p a:hover,
body.single-post .entry-content li a:hover,
body.single-post .entry-content td a:hover { color: var(--od-g); text-decoration-color: var(--od-g); }

/* H2：深森林綠色帶＋左側琥珀條（取代舊的 #467500 綠底） */
body.single-post .entry-content h2 {
  font-size: 28px; line-height: 1.4;
  color: #fff; background: var(--od-g);
  border-left: 6px solid var(--od-sun);
  padding: 12px 20px; margin: 40px 0 18px;
  border-radius: 10px; box-shadow: 0 6px 18px rgba(16,40,30,.12);
}
/* H3：深綠字＋琥珀底線 */
body.single-post .entry-content h3 {
  font-size: 23px; line-height: 1.45; color: var(--od-g);
  padding: 0 0 8px; margin: 30px 0 12px;
  border-bottom: 3px solid var(--od-sun);
  display: block;
}
body.single-post .entry-content h4 {
  font-size: 19px; color: var(--od-g2);
  margin: 22px 0 10px; font-style: normal; text-decoration: none;
  padding-left: 12px; border-left: 4px solid var(--od-sun);
}

/* 表格：深綠表頭、斑馬列 */
body.single-post .entry-content table { border-collapse: collapse; border: 1px solid var(--od-line); border-radius: 10px; overflow: hidden; }
body.single-post .entry-content table caption {
  caption-side: top; text-align: left; font-weight: 700; color: var(--od-g);
  padding: 0 0 8px; font-size: 15px;
}
body.single-post .entry-content thead th,
body.single-post .entry-content table tr:first-child th {
  background: var(--od-g); color: #fff; font-weight: 700; border-color: rgba(255,255,255,.15);
}
body.single-post .entry-content td, body.single-post .entry-content th { border-color: var(--od-line); }
body.single-post .entry-content tbody tr:nth-child(even) td { background: #f4f6f2; }

/* 目錄（Easy Table of Contents）：沙色卡片 */
body.single-post #ez-toc-container {
  background: #fbf6ea; border: 1px solid #ecdfbf; border-radius: 12px;
  box-shadow: none; padding: 14px 20px;
}
body.single-post #ez-toc-container .ez-toc-title { color: var(--od-g); font-weight: 800; }
body.single-post #ez-toc-container a { color: var(--od-g2); }
body.single-post #ez-toc-container a:hover { color: var(--od-g); text-decoration: underline; text-decoration-color: var(--od-sun); }

/* 清單符號、引言 */
body.single-post .entry-content ul li::marker { color: var(--od-sun); }
body.single-post .entry-content ol li::marker { color: var(--od-g2); font-weight: 700; }
body.single-post .entry-content blockquote {
  border-left: 5px solid var(--od-sun); background: #fbf6ea; color: var(--od-ink);
  padding: 14px 20px; border-radius: 0 10px 10px 0;
}

/* 商品卡左側強調色改深綠（卡片本身在 od-product.css） */
body.single-post .od-prod { --od-accent: var(--od-g2); }

@media (max-width: 689px) {
  body.single-post .entry-content h2 { font-size: 22px; padding: 10px 14px; margin-top: 32px; }
  body.single-post .entry-content h3 { font-size: 19px; }
  body.single-post .hero-section h1 { font-size: 26px; }
}
