/*
 * 單一元件的樣式：麵包屑、輪播箭頭、底部面板、行動版列表工具列、骨架載入。
 *
 * 為什麼不併進 cards.css 或 layout.css：那兩份各自有明確範圍（卡片、頁首頁尾），
 * 這些是獨立元件。載入順序放在最後，三份都包 :where()（特異性 0）所以彼此不會
 * 互相蓋；真的出現同名選擇器時才需要重新決定順序。
 *
 * 全部包 :where()：套件 CSS 在使用端最後載入，特異性歸零才不會贏過使用端刻意的覆寫。
 */

/* ── 麵包屑 ──────────────────────────────────────────────────────────
 *
 * 只收外觀。「窄螢幕隱藏」那條留在使用端——房地王六個頁型各自用
 * @media + display:none !important 決定在哪個斷點收起來，那是版面政策不是元件外觀，
 * 而且套件出 !important 會讓使用端沒辦法覆寫，正好違反包 :where() 的用意。
 */
:where(.proj-breadcrumb) {
  min-height: 2.75rem;
  min-width: 0;
  overflow: hidden;
  color: #9ca3af;
  font-size: var(--ht-type-meta);
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  align-items: center;
}

:where(.proj-breadcrumb > a, .proj-breadcrumb > span:not([aria-current="page"])) {
  flex-shrink: 0;
}

:where(.proj-breadcrumb > a) {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  transition: color 150ms ease;
}

:where(.proj-breadcrumb > a:hover) {
  color: #6b7280;
}

:where(.proj-breadcrumb > [aria-current="page"]) {
  min-width: 0;
  overflow: hidden;
  color: #6b7280;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── 輪播箭頭 ────────────────────────────────────────────────────────
 *
 * 值取自房地王分站首頁那組（原 index.css 的 body.page-index .slider-control）。
 * 房地王另有第二組：詢問表單的預約日期列（.cf-date-slider-controls .slider-control，
 * 2.25rem、不透明白底），那組有自己的前綴，屬於使用端的覆寫，留在使用端。
 *
 * 刻意沒收兩件事，兩件都是為了不讓「補上預設值」順手改掉別的東西：
 *
 * 1. :active 的 transform: scale(0.96)。房地王的日期列箭頭目前沒有按下縮放，
 *    收進來會讓它多一個原本沒有的動作。留在使用端的首頁樣式裡。
 * 2. （原本也想略過 :disabled 的 pointer-events: none，後來收了：使用端要能把
 *    自己那份整塊刪掉改吃套件版，少一個宣告就得留著整塊。停用的 <button> 本來
 *    就不會觸發事件，日期列的停用狀態又是 visibility: hidden，所以沒有行為差異。）
 */
:where(.sec-arrows) {
  display: flex;
  gap: 0.375rem;
}

:where(.slider-control, .sec-arrow) {
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 0.625rem 1.875rem rgba(17, 24, 39, 0.12), inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.68);
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), background .16s cubic-bezier(.2, .8, .2, 1), color .16s cubic-bezier(.2, .8, .2, 1), box-shadow .16s cubic-bezier(.2, .8, .2, 1), opacity .16s cubic-bezier(.2, .8, .2, 1);
  -webkit-tap-highlight-color: transparent;
}

:where(.slider-control, .sec-arrow) svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/*
 * 箭頭裡的 <i> 圖示刻意不收，這是包 :where() 的直接後果，值得寫下來：
 *
 * 使用端的規則是 .slider-control > i（特異性 0,1,1），要贏過房地王給所有圖示字型
 * 做基線校正的 .fi { display: inline-block }（0,1,0）。包進 :where() 之後類別那段
 * 歸零，只剩型別選擇器的 0,0,1，反而輸給 .fi——圖示會從 inline-flex（在 flex 容器裡
 * 算成 flex）變成 inline-block（算成 block），實測位置偏移。
 *
 * 所以圖示的排版留在使用端：它本來就是各家圖示字型生態的一部分，海外會有自己的一套。
 * 套件只負責按鈕本身。
 */

:where(.slider-control:hover:not(:disabled), .sec-arrow:hover:not(:disabled)) {
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-600, #ff5722);
  box-shadow: 0 0.875rem 2.25rem rgba(17, 24, 39, 0.16);
}

:where(.slider-control:disabled, .sec-arrow:disabled) {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

/* ── 底部面板（bottom sheet）與地區選擇 ─────────────────────────────
 *
 * 手機／平板的底部面板：地區選擇、主導覽、列表篩選共用同一套外殼。
 * 元件（mobile-region-sheet、mobile-main-navigation-sheet）2026-08-29 就搬進套件了，
 * 樣式留在房地王的 custom.css 與 shared-components.css，這次補完。
 *
 * 留在使用端的：`.bs-footer`（只有房地王列表頁的篩選面板有）、
 * `#bs-filter .bs-body > .sb-filter-group`（以 id 指名的版面）、
 * `@media print` 的隱藏，以及 `.page-info .bs-area-single .bs-area-sub.active`。
 *
 * 顯示狀態機（下半段）與外觀（上半段）必須一起搬：只有其中一半的話，
 * 會得到「看不見的面板」或「關不掉的遮罩」。
 */

:where(.bs-overlay) {
  position: fixed;
  inset: 0;
  background: var(--ht-scrim);
  backdrop-filter: var(--ht-scrim-blur);
  -webkit-backdrop-filter: var(--ht-scrim-blur);
  z-index: 9996;
}

:where(.bs-sheet) {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9997;
  background: #fff;
  border-radius: 18px 18px 0 0;
  height: clamp(30rem, 78vh, 42rem);
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - 1rem);
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.25,.8,.25,1);
}

:where(.bs-handle) {
  width: 40px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

:where(.bs-header) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

:where(.bs-title) {
  font-size: var(--ht-text-base);
  font-weight: 600;
  color: #111827;
}

:where(.bs-close) {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #6b7280;
  flex-shrink: 0;
  padding: 0;
}

:where(.bs-close-icon) {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 50%;
  transition: background .12s;
}

:where(.bs-close:hover .bs-close-icon) {
  background: #e5e7eb;
}

:where(.bs-body) {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 12px;
}

:where(.bs-body .sb-section-title) {
  padding-left: 0;
  padding-right: 0;
}

:where(.bs-area-body) {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

:where(.bs-area-cols) {
  flex: 1;
  min-height: 0;
  display: flex;
}

:where(.bs-area-left) {
  width: 45%;
  flex-shrink: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
}

:where(.bs-area-right) {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

:where(.bs-tab) {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.875rem;
  font-size: var(--ht-text-base);
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background .12s,color .12s;
  line-height: 1.4;
}

:where(.bs-tab:hover) {
  background: #f3f4f6;
}

:where(.bs-tab.active, .bs-tab[aria-selected="true"]) {
  background: #fff;
  color: var(--state-active-text);
  font-weight: var(--state-active-weight);
}

:where(.bs-tab.active, .bs-tab[aria-selected="true"])::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--state-active-text);
  border-radius: 0 2px 2px 0;
}

:where(.bs-area-sub) {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: var(--ht-text-base);
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  transition: background .12s,color .12s;
  line-height: 1.4;
}

:where(.bs-area-sub--with-count) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

:where(.bs-area-count) {
  flex: 0 0 auto;
  color: #9ca3af;
  font-size: var(--ht-text-2xs-plus);
  font-weight: 500;
  line-height: 1.2;
}

:where(.bs-area-sub:hover) {
  background: var(--page-brand-bg, var(--brand-50, #fef3ee));
  color: var(--page-brand-color, var(--brand-600, #ff5722));
}

:where(.bs-area-link) {
  cursor: pointer;
}

:where(.bs-area-sub.active, .bs-area-link.active, .bs-area-sub[aria-current="page"], .bs-area-link[aria-current="page"]) {
  color: var(--state-active-text);
  font-weight: var(--state-active-weight);
}

:where(.bs-area-sub.active) {
  background: none;
}

:where(.bs-area-sub.active .bs-area-count, .bs-area-sub[aria-current="page"] .bs-area-count) {
  color: var(--state-active-text);
}

:where(.bsa-featured) {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.25rem;
}

:where(.bsa-featured-title) {
  font-size: var(--ht-text-sm);
  color: #9ca3af;
  padding: 0.5rem 1rem;
  margin: 0;
}

:where(.bsa-featured-row) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #374151;
  transition: background .12s;
  line-height: 1.4;
}

:where(.bsa-featured-row:hover) {
  background: var(--page-brand-bg, var(--brand-50, #fef3ee));
}

:where(.bsa-featured-name) {
  font-size: var(--ht-text-sm);
  color: #6b7280;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 狀態機。以 class／屬性指名遮罩與面板本身，控制權在 assets/js/dialog.js。
 * 少了最後那組（min-width: 80rem）的話，在手機寬度開著面板再把視窗拉寬，
 * 面板會消失但遮罩留在原地蓋住整頁，點什麼都沒反應。 */
:where(.bs-overlay[hidden], [data-region-sheet][hidden]) {
  display: none;
}

:where(.bs-overlay, [data-region-sheet]) {
  display: none;
}

@media (max-width: 79.9375rem) {
  :where(.bs-overlay:not([hidden]).is-open) {
    display: block;
  }

  :where([data-region-sheet]:not([hidden]).is-open) {
    display: flex;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (min-width: 80rem) {
  :where(.bs-overlay, [data-region-sheet]) {
    display: none;
  }
}

:where([data-region-sheet] .bsa-panel:not(.bsa-panel-active)) {
  display: none;
}

:where([data-region-sheet] .bsa-panel-active) {
  display: block;
}

/* ── 行動版列表工具列 ────────────────────────────────────────────────
 *
 * `.fb`／`.fg` 與房地王的頁型覆寫由使用端提供。工具列按鈕的作用中與
 * 非作用中邊框也都留在使用端：它們需要贏過使用端類別，並使用使用端色票。
 */
:where(.list-filter-bar-inner) {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

:where(.list-filter-bar-left) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

:where(.btn-area-text) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(.mobile-filter-btn-label) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

:where(.filter-badge) {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  flex-shrink: 0;
  color: var(--brand-600);
}

/* ── 骨架載入 ────────────────────────────────────────────────────────
 *
 * skeleton.js 與這組外觀同由 site-kit 出貨；ht-content-fade 是文字骨架的直接
 * 動畫依賴，所以也跟兩個 ht-skeleton-* keyframes 一起搬。列表的 min-width 與 cards.css
 * 的卡片比例／圖片規則刻意維持較高特異性；實測搬移前後一般動畫與
 * reduced-motion 均無差異。
 *
 * `.ht-skeleton-media img.ht-img-loading` 不在這裡：skeleton.js 不會替骨架
 * 媒體內的圖片加該 class，只有使用端另行標記時才需要關掉第二層 shimmer，
 * 因此那條相容規則留在使用端。
 */
@keyframes ht-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

@keyframes ht-content-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes ht-skeleton-autohide {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

:where(img.ht-img-loading) {
  background-color: #f3f4f6;
  background-image: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 38%, #f3f4f6 76%);
  background-size: 200% 100%;
  animation: ht-skeleton-shimmer 1.15s ease-in-out infinite;
}

:where(img.ht-img-loaded) {
  background-image: none;
  animation: none;
}

:where(.ht-skeleton-scope .ht-skeleton-media, .ht-skeleton-scope.ht-skeleton-media) {
  position: relative;
  overflow: hidden;
  background: #f3f4f6;
}

:where(
  .ht-skeleton-scope .ht-skeleton-media,
  .ht-skeleton-scope.ht-skeleton-media,
  .ht-skeleton-scope:not(.ht-skeleton-text-loaded) [data-skeleton-text]
)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 38%, #f3f4f6 76%);
  background-size: 200% 100%;
  animation: ht-skeleton-shimmer 1.15s ease-in-out infinite;
  pointer-events: none;
}

:where(
  .ht-skeleton-scope.ht-skeleton-loaded .ht-skeleton-media,
  .ht-skeleton-scope.ht-skeleton-loaded.ht-skeleton-media
)::before {
  display: none;
}

:where(.ht-skeleton-scope .ht-skeleton-media img, .ht-skeleton-scope.ht-skeleton-media img) {
  opacity: 1;
  transition: opacity .28s ease, transform .3s ease;
}

:where(
  .ht-skeleton-scope.ht-skeleton-pending .ht-skeleton-media img,
  .ht-skeleton-scope.ht-skeleton-pending.ht-skeleton-media img
) {
  opacity: 0;
}

:where(
  .ht-skeleton-scope.ht-skeleton-loaded .ht-skeleton-media img,
  .ht-skeleton-scope.ht-skeleton-loaded.ht-skeleton-media img
) {
  opacity: 1;
}

:where(.ht-skeleton-scope [data-skeleton-text]) {
  position: relative;
  transition: opacity .24s ease;
}

:where(.ht-skeleton-scope:not(.ht-skeleton-text-loaded) [data-skeleton-text]) {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
}

:where(.ht-skeleton-scope:not(.ht-skeleton-text-loaded) [data-skeleton-text] *) {
  opacity: 1;
}

:where(.ht-skeleton-scope.ht-skeleton-text-loaded [data-skeleton-text]) {
  opacity: 1;
  animation: ht-content-fade .28s ease both;
}

:where(.ht-skeleton-card .ht-skeleton-media) {
  aspect-ratio: 3/2;
}

/* 特異性例外：這條的職責就是壓過 cards.css 的
 * `.project-card-link .project-card-image { height: auto; }`（0,2,0）。若包
 * :where() 只剩 img 的 0,0,1，尚未載入的列表圖片會溢出 3/2 媒體框。 */
.ht-skeleton-card .ht-skeleton-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:where(.ht-skeleton-card:not(.ht-skeleton-text-loaded) [data-skeleton-text])::before {
  background: #f3f4f6;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  :where(img.ht-img-loading),
  :where(.ht-skeleton-scope.ht-skeleton-text-loaded [data-skeleton-text]),
  :where(
    .ht-skeleton-scope .ht-skeleton-media,
    .ht-skeleton-scope.ht-skeleton-media,
    .ht-skeleton-scope:not(.ht-skeleton-text-loaded) [data-skeleton-text]
  )::before {
    animation: none;
  }

  :where(
    .ht-skeleton-scope .ht-skeleton-media,
    .ht-skeleton-scope.ht-skeleton-media,
    .ht-skeleton-scope:not(.ht-skeleton-text-loaded) [data-skeleton-text]
  )::before {
    opacity: 0;
    visibility: hidden;
  }

  :where(
    .ht-skeleton-scope .ht-skeleton-media img,
    .ht-skeleton-scope.ht-skeleton-media img,
    .ht-skeleton-scope [data-skeleton-text]
  ) {
    transition: none;
  }
}

/* ── 建案卡片價格與徽章 ─────────────────────────────── */
:where(.price-number) {
  display: inline;
  vertical-align: baseline;
  margin: 0 0.125rem;
}

:where(.card-badge) {
  font-size: var(--ht-text-sm);
}

:where(.project-card-price-line) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.375rem;
  line-height: 1.35;
}

:where(.project-card-price-label, .project-card-price-unit, .project-card-price-empty) {
  color: #9ca3af;
  font-size: var(--ht-text-base);
  font-weight: 400;
  line-height: 1.35;
}

/* 同為 :where() 的基底規則，刻意放在上方群組之後，維持原本靠來源順序
 * 將價格單位行高由 1.35 覆寫成 1 的關係。 */
:where(.project-card-price-unit) {
  line-height: 1;
}

:where(.project-card-price-value-unit) {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  white-space: nowrap;
}

:where(.project-card-price-value) {
  color: var(--page-brand-color, var(--brand-600, #ff5722));
  font-size: var(--ht-type-price);
  font-weight: 700;
  line-height: 1;
  /* 數字與同一行的標籤／單位是 align-items: baseline 的兄弟，光靠基線對齊時
     視覺上偏高 1px，這裡整體下移 1px。用全站慣例的換算 1px = 0.0625rem；
     注意 root font-size 在 <1280px 是 17px，該斷點實際會是 1.0625px——
     與使用端其他寫成 0.0625rem 的 1px 邊框一致。

     所有數值都用同一個位移，含逗號的不再另外加碼：原本
     .project-card-price-value--grouped 會在有逗號時多推 0.5px，但推的只有數字、
     同一行的標籤與單位不動，所以「2,588」看起來比「22.5」「123～126」低一截。
     逗號是往基線下方長的字形，不影響行盒高度，本來就不需要補償。
     --grouped 這個 class 仍由 project-price.blade.php 輸出，刻意沒有對應規則，
     之後若真要做逗號專屬調整再從這裡接。 */
  transform: translateY(0.0625rem);
}

/* 同為 :where() 的疊加規則，刻意放在 .price-number 之後，維持原本靠來源
 * 順序將卡片價格數字 margin 歸零的關係。 */
:where(.project-card-price-value.price-number) {
  margin: 0;
}

/* ── 內頁免責聲明 ─────────────────────────────────── */
:where(.detail-disclaimer) {
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
}

:where(.detail-disclaimer-inner) {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  text-align: center;
}

/* 頁尾說明區塊統一使用 --ht-text-xs；warning 狀態在使用端雖有較高特異性，
 * 但提供相同字級。實價頁的 --price 間距與行高變體仍由使用端負責。 */
:where(.disclaimer-text) {
  font-size: var(--ht-text-xs, 0.8125rem);
  line-height: 1.7;
  text-align: left;
}

@media (min-width: 40rem) {
  :where(.detail-disclaimer-inner) {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 64rem) {
  :where(.detail-disclaimer-inner) {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ── 無照片建案佔位磚 ─────────────────────────────── */
:where(.ht-ph) {
  position: relative;
  display: block;
  overflow: hidden;
  container-type: inline-size;
  /* 卡片媒體框已有自己的 3/2 高度且會裁切；佔位磚填滿它。aspect-ratio 只在
   包裝層未指定高度時生效，例如最近瀏覽的縮圖。 */
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(155deg, var(--ht-ph-from), var(--ht-ph-to));
}

:where(.ht-ph-stack) {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: min(2.5cqw, 0.75rem);
}

:where(.ht-ph-char) {
  font-weight: 800;
  font-size: 4rem;
  font-size: min(28cqw, 6.5rem);
  line-height: 1;
  color: var(--ht-ph-ink);
  opacity: 0.32;
}

/* 低於約 180px 時不可讀，容器足以容納文字後才顯示。 */
:where(.ht-ph-label) {
  display: none;
  font-size: 0.9rem;
  font-size: min(6.5cqw, 1rem);
  line-height: 1.2;
  letter-spacing: 0.12em;
  padding-left: 0.12em;
  color: var(--ht-ph-ink);
  opacity: 0.46;
}

@container (min-width: 180px) {
  :where(.ht-ph-label) {
    display: block;
  }
}

:where(.ht-ph--t1) { --ht-ph-from: #f5ede3; --ht-ph-to: #eadfd0; --ht-ph-ink: #8a6a45; }
:where(.ht-ph--t2) { --ht-ph-from: #f4e7e1; --ht-ph-to: #ebd6cd; --ht-ph-ink: #9c5f4c; }
:where(.ht-ph--t3) { --ht-ph-from: #e9eee6; --ht-ph-to: #dbe3d6; --ht-ph-ink: #5c7152; }
:where(.ht-ph--t4) { --ht-ph-from: #e6eaef; --ht-ph-to: #d7dee7; --ht-ph-ink: #55657a; }
:where(.ht-ph--t5) { --ht-ph-from: #f5f0de; --ht-ph-to: #ebe3c9; --ht-ph-ink: #877232; }
:where(.ht-ph--t6) { --ht-ph-from: #f3e7ea; --ht-ph-to: #e9d8dd; --ht-ph-ink: #8c5c6b; }

/* ── 共用區塊標題連結與重設圖示 ───────────────────── */
:where(.more-link) {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.25rem;
  min-height: 2.75rem;
  color: #6b7280;
  font-size: var(--ht-type-meta, 0.9375rem);
  text-decoration: none;
  transition: color .15s;
}

:where(.more-link:hover) {
  color: var(--brand-600, #ff5722);
}

:where(.sb-group-clear-icon) {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

/* 特異性例外：套件 ui-reset 輸出的圖示必須壓過使用端
 * `.fi-rr-cross-small { top: 1px; }`（0,1,0）。若包 :where()，清除圖示會上移 1px。 */
.sb-group-clear-icon.fi-rr-cross-small {
  top: 0;
}
