/* Publish Custom CSS — 首頁按鈕分色（lt-home） */
img[src$="LT-panel-hero.png"] {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  object-position: center;
}

.lt-home h4 {
  margin: 0.55em 0 0.35em;
  font-size: 1em;
  font-weight: 700;
}

.lt-home h4 a,
.lt-home h4 a.internal-link,
.published-container .lt-home h4 a {
  display: inline-block !important;
  padding: 0.45em 1.15em !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18) !important;
  opacity: 1 !important;
  filter: none !important;
  background: #184a6b !important;
}

/* 01 道次第：褐 */
.lt-home h4 a[href*="01"] {
  background: #6b4a2e !important;
  background-color: #6b4a2e !important;
}
.lt-home h4 a[href*="01"]:hover {
  background: #7d5838 !important;
}

/* 04 般若：綠（callout apply） */
.lt-home h4 a[href*="04"] {
  background: #2e6b4a !important;
  background-color: #2e6b4a !important;
}

/* 02 修心：同褐系略深 */
.lt-home h4 a[href*="02"] {
  background: #5c3d28 !important;
  background-color: #5c3d28 !important;
}

/* 03 專論：青藍 */
.lt-home h4 a[href*="03"] {
  background: #2f5f73 !important;
  background-color: #2f5f73 !important;
}

/* 05 中觀：金黃 */
.lt-home h4 a[href*="05"] {
  background: #b8892c !important;
  background-color: #b8892c !important;
  color: #1a1408 !important;
  -webkit-text-fill-color: #1a1408 !important;
}

/* 06 密續：紫 */
.lt-home h4 a[href*="06"] {
  background: #5b3d7a !important;
  background-color: #5b3d7a !important;
}

/* 07／08 補述與思辨：褐（callout roottext） */
.lt-home h4 a[href*="07"],
.lt-home h4 a[href*="08"] {
  background: #6b4a2e !important;
  background-color: #6b4a2e !important;
}

/* 09–11 檢索：藍（callout note） */
.lt-home h4 a[href*="09"],
.lt-home h4 a[href*="10"],
.lt-home h4 a[href*="11"] {
  background: #184a6b !important;
  background-color: #184a6b !important;
}

.lt-home h4 a:visited {
  color: inherit !important;
}

.lt-home ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.85em;
  line-height: 1.45;
}
.lt-home ul li {
  display: inline-block;
  margin: 0 0.18em 0.18em 0;
}
.lt-home ul a,
.lt-home ul a.internal-link,
.published-container .lt-home ul a {
  display: inline-block !important;
  padding: 0.12em 0.45em !important;
  border-radius: 6px !important;
  font-size: 0.82em !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  opacity: 1 !important;
  color: #184a6b !important;
  -webkit-text-fill-color: #184a6b !important;
  background: #e8eef3 !important;
  border: 1px solid #184a6b !important;
}

.lt-home h4:has(a[href*="01"]) + ul a {
  color: #6b4a2e !important;
  -webkit-text-fill-color: #6b4a2e !important;
  background: #f3ebe3 !important;
  border-color: #6b4a2e !important;
}
.lt-home h4:has(a[href*="04"]) + ul a {
  color: #2e6b4a !important;
  -webkit-text-fill-color: #2e6b4a !important;
  background: #e6f0ea !important;
  border-color: #2e6b4a !important;
}
.lt-home h4:has(a[href*="02"]) + ul a {
  color: #5c3d28 !important;
  -webkit-text-fill-color: #5c3d28 !important;
  background: #f1e9e3 !important;
  border-color: #5c3d28 !important;
}
.lt-home h4:has(a[href*="03"]) + ul a {
  color: #2f5f73 !important;
  -webkit-text-fill-color: #2f5f73 !important;
  background: #e4eef2 !important;
  border-color: #2f5f73 !important;
}
.lt-home h4:has(a[href*="05"]) + ul a {
  color: #8a6a18 !important;
  -webkit-text-fill-color: #8a6a18 !important;
  background: #f7efd6 !important;
  border-color: #b8892c !important;
}
.lt-home h4:has(a[href*="06"]) + ul a {
  color: #5b3d7a !important;
  -webkit-text-fill-color: #5b3d7a !important;
  background: #efe8f5 !important;
  border-color: #5b3d7a !important;
}

.lt-home ul a:hover {
  filter: brightness(0.97);
}

/* callout 分區：內距、標題不當第三層標題搶層級 */
.lt-home .callout {
  margin: 0.9em 0 1.15em;
  padding: 0.55em 0.9em 0.35em;
  border-radius: 12px;
}
.lt-home .callout-title {
  margin-bottom: 0.35em;
}
.lt-home .callout h4 {
  margin-top: 0.35em;
}
.lt-home .callout ul {
  margin-bottom: 0.55em;
}

/* 自訂 callout：Publish 內建只有 note/question 等；roottext 等需自訂變數 */
.lt-home .callout[data-callout="roottext"] {
  --callout-color: 184, 115, 18 !important;
}
.lt-home .callout[data-callout="framework"] {
  --callout-color: 32, 96, 184 !important;
}
.lt-home .callout[data-callout="verse"] {
  --callout-color: 112, 64, 168 !important;
}
.lt-home .callout[data-callout="apply"] {
  --callout-color: 32, 128, 64 !important;
}
.lt-home .callout[data-callout="lecture"] {
  --callout-color: 48, 72, 168 !important;
}
.lt-home .callout[data-callout="question"] {
  --callout-color: 184, 140, 24 !important;
}
.lt-home .callout {
  background-color: rgba(var(--callout-color), 0.14) !important;
  border-left-color: rgb(var(--callout-color)) !important;
  border-left-width: 4px !important;
}
.lt-home .callout-title,
.lt-home .callout-title-inner {
  color: rgb(var(--callout-color)) !important;
}

/* 首頁不顯示頁底反向連結長列表 */
body:has(.lt-home) .backlinks,
body:has(.lt-home) .embedded-backlinks,
body:has(.lt-home) .published-backlinks,
body:has(.lt-home) .mod-backlinks,
body:has(.lt-home) .backlink-pane,
body:has(.lt-home) section.backlinks,
body:has(img[src*="LT-home"]) .backlinks,
body:has(img[src*="LT-home"]) .published-backlinks,
.published-container:has(.lt-home) .backlinks,
.published-container:has(.lt-home) .published-backlinks {
  display: none !important;
}
