/*
 * 單一元件的樣式：麵包屑、輪播箭頭、底部面板、行動版列表工具列、骨架載入。
 *
 * 為什麼不併進 cards.css 或 layout.css：那兩份各自有明確範圍（卡片、頁首頁尾），
 * 這些是獨立元件。載入順序放在最後，三份都包 :where()（特異性 0）所以彼此不會
 * 互相蓋；真的出現同名選擇器時才需要重新決定順序。
 *
 * 全部包 :where()：套件 CSS 在使用端最後載入，特異性歸零才不會贏過使用端刻意的覆寫。
 * 唯一的例外是檔尾那兩條 .mobile-topbar-btn 狀態規則——它們的職責就是贏過使用端的
 * 按鈕基底（.fb），對手選擇器與要維持的特異性寫在那裡的註解。
 */

/* ── 規格格線 ─────────────────────────────────────────────────────── */
:where(.spec-grid) { display: grid; grid-template-columns: 1fr; gap: 1.5rem 2rem; }
@media (min-width: 40rem) { :where(.spec-grid) { grid-template-columns: 1fr 1fr; } }
:where(.spec-item-label) { font-size: var(--ht-type-label); color: #6b7280; margin-bottom: 0.2rem; line-height: 1.4; }
/* The address link consumer has an equally specific line-height rule; keep this
 * selector specific so the shared value contract remains stable after extraction. */
.spec-item-value { font-size: var(--ht-type-field-value); font-weight: 600; color: #111827; line-height: 1.5; }
:where(.spec-title) { margin: 0 0 1.5rem; color: #111827; font-size: 1.125rem; font-weight: 700; line-height: 1.75rem; letter-spacing: 0; }
/* ── 表單欄位 ─────────────────────────────────────────────────────── */
:where(.ht-field-label) {
  display: block;
  font-size: var(--ht-text-sm);
  font-weight: 500;
  color: #374151;
  margin-bottom: .375rem;
}

:where(.ht-field-input) {
  width: 100%;
  padding: .75rem 1rem;
  border: 0.0938rem solid #e5e7eb;
  border-radius: .5rem;
  font-size: var(--ht-text-base);
  color: #111827;
  background: white;
  outline: none;
  font-family: inherit;
  min-height: 3rem;
  transition: border-color .15s;
}

:where(.ht-field-input)::placeholder { color: #6b7280; font-size: inherit; opacity: 1; transition: opacity .15s ease; }
:where(.ht-field-input):focus::placeholder { opacity: 0; }
:where(select.ht-field-input) {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  padding-right: 2.75rem;
}

:where(.ht-form .ht-field-input[aria-invalid="true"]) { border-color: #dc2626; border-color: #dc2626 !important; box-shadow: none; }
:where(.ht-field-error) {
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  font-size: var(--ht-text-sm);
  font-weight: 600;
  line-height: 1.45;
  color: #b91c1c;
  margin-top: 6px;
  padding: .3rem .45rem;
  border-radius: .35rem;
  background: #fef2f2;
}
:where(.ht-field-error)::before { content: ''; flex: 0 0 auto; color: #dc2626; }

:where(.ht-submit-btn) {
  width: 100%;
  min-height: 52px;
  padding: .875rem 0;
  border: 1px solid transparent;
  border-radius: .5rem;
  font-size: var(--ht-text-base);
  font-weight: 700;
  --tw-font-weight: 700;
  color: #fff;
  background: var(--page-brand-color, var(--brand-600, #ff5722));
  box-shadow: none;
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
  transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  transition-duration: .15s;
}
:where(.ht-submit-btn:hover) { color: #fff; background: var(--page-brand-700, var(--brand-700, #e64a19)); }
:where(.ht-submit-btn:active) { background: var(--page-brand-700, var(--brand-700, #e64a19)); }
:where(.ht-submit-btn:disabled) { color: #fff; background: var(--page-brand-color, var(--brand-600, #ff5722)); opacity: .45; cursor: not-allowed; }

:where(.ht-check-chip) {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  padding: 0 .375rem;
  width: 100%;
  font-size: var(--ht-text-base);
  color: #374151;
  background: transparent;
  border: 0;
  border-radius: .5rem;
  cursor: pointer;
  transition: background .12s;
  user-select: none;
  text-align: left;
}
:where(.ht-check-chip:hover) { background: #f9fafb; }
:where(.ht-check-chip input[type="radio"], .ht-check-chip input[type="checkbox"]) { position: absolute !important; opacity: 0 !important; width: 0 !important; height: 0 !important; pointer-events: none !important; }
:where(.ht-check-chip)::before { content: ''; align-self: center; transform: translateY(1px); width: 1rem; height: 1rem; border-radius: .25rem; border: .0938rem solid #d1d5db; background: #fff; flex-shrink: 0; transition: background .15s, border-color .15s; }
:where(.ht-check-chip:has(input[type="radio"]))::before { border-radius: 50%; transition: border-color .15s, border-width .1s; }
:where(.ht-check-chip:has(input:checked)) { color: var(--state-active-text, var(--brand-600, #ff5722)); }
:where(.ht-check-chip:has(input[type="radio"]:checked))::before { background: #fff; border: .3125rem solid var(--state-active-border, var(--brand-600, #ff5722)); }
:where(.ht-check-chip:has(input[type="checkbox"]:checked))::before { background: var(--state-active-text, var(--brand-600, #ff5722)); border-color: var(--state-active-border, var(--brand-600, #ff5722)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1.5 5l2.5 2.5 4.5-4.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: .625rem; }

/* ── 表單下拉（cf-gd 稱謂、cf-ct 一般選項）─────────────────────────
 *
 * 行為在 js/form-dropdown.js。全部包 :where()，特異性都是 0，所以狀態規則
 * （hover／開啟／已選）的勝負靠排在基底規則之後，順序不要調換。
 */
:where(.cf-gd-wrap) {
  position: relative;
  flex-shrink: 0;
  width: 5.5rem;
}

:where(.cf-gd-btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  width: 100%;
  height: 100%;
  padding: 0 0.625rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: var(--ht-text-sm);
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}

:where(.cf-gd-arrow) {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.18s;
}

:where(.cf-gd-panel) {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  left: auto;
  min-width: 5rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, .12);
  padding: 0.25rem 0;
  z-index: 300;
  transition: opacity 0.15s, transform 0.15s;
}

:where(.cf-gd-opt) {
  display: block;
  width: 100%;
  padding: 0.5rem 1.125rem;
  font-size: var(--ht-text-sm);
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s;
}

:where(.cf-gd-opt:hover) {
  background: var(--page-brand-bg, var(--brand-50, #fef3ee));
  color: var(--page-brand-color, var(--brand-600, #ff5722));
}

:where(.cf-ct-wrap) {
  position: relative;
}

:where(.cf-ct-btn) {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: var(--ht-text-sm);
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  min-height: 2.625rem;
  font-family: inherit;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}

:where(.cf-ct-arrow) {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s;
}

:where(.cf-ct-panel) {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  min-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 0.625rem;
  box-shadow: 0 0.75rem 2.25rem rgba(0, 0, 0, .13);
  padding: 0.375rem 0;
  z-index: 200;
  transition: opacity 0.15s, transform 0.15s;
}

:where(.cf-ct-opt) {
  display: block;
  width: 100%;
  padding: 0.5rem 1.125rem;
  font-size: var(--ht-text-sm);
  font-weight: 500;
  color: #6b7280;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

:where(.cf-ct-opt:hover) {
  background: var(--page-brand-bg, var(--brand-50, #fef3ee));
  color: var(--page-brand-color, var(--brand-600, #ff5722));
}

:where(.cf-gd-btn:hover, .cf-gd-btn.cf-gd-open) {
  color: var(--page-brand-color, var(--brand-600, #ff5722));
  background: var(--page-brand-bg, var(--brand-50, #fef3ee));
  border-color: var(--page-brand-border, var(--brand-600, #ff5722));
}

:where(.cf-gd-btn.cf-gd-open .cf-gd-arrow) {
  transform: rotate(180deg);
}

:where(.cf-gd-opt.cf-gd-opt-on) {
  color: var(--page-brand-color, var(--brand-600, #ff5722));
  font-weight: 600;
}

:where(.cf-ct-btn:hover, .cf-ct-btn.cf-ct-open) {
  color: var(--page-brand-color, var(--brand-600, #ff5722));
  background: var(--page-brand-bg, var(--brand-50, #fef3ee));
  border-color: var(--page-brand-border, var(--brand-600, #ff5722));
}

:where(.cf-ct-btn.cf-ct-open .cf-ct-arrow) {
  transform: rotate(180deg);
}

:where(.cf-ct-closed) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.25rem);
}

:where(.cf-ct-opt.cf-ct-opt-on) {
  color: var(--page-brand-color, var(--brand-600, #ff5722));
  font-weight: 600;
}

/* ── 麵包屑 ──────────────────────────────────────────────────────────
 *
 * 只收外觀。「窄螢幕隱藏」那條留在使用端——房地王六個頁型各自用
 * @media + display:none !important 決定在哪個斷點收起來，那是版面政策不是元件外觀，
 * 而且套件出 !important 會讓使用端沒辦法覆寫，正好違反包 :where() 的用意。
 */

/* ── 列表標題列 ───────────────────────────────────────────────────── */
:where(.list-title-row) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

:where(.list-h1) {
  margin: 0;
  font-size: var(--ht-type-section-title);
  line-height: 1.3;
  font-weight: 700;
  color: #111827;
}

:where(.list-total) {
  font-weight: 500;
  font-size: var(--ht-text-base);
  line-height: 1.4;
  color: #6b7280;
  white-space: nowrap;
}

@media (min-width: 64rem) {
  :where(.list-h1) {
    font-size: var(--ht-text-2xl);
    line-height: 1.28;
  }

  :where(.list-total) {
    font-size: var(--ht-text-base-plus);
  }
}

:where(.ht-load-more-loading) { display: inline-flex; align-items: center; gap: .625rem; min-height: 2.75rem; color: #6b7280; font-size: var(--ht-text-base); font-weight: 500; }
:where(.ht-load-more-loading[hidden]) { display: none; }
:where(.ht-load-more-spinner) { width: 1.5rem; height: 1.5rem; border: 3px solid #e5e7eb; border-top-color: var(--brand-600, #ff5722); border-radius: 50%; animation: ht-load-more-spin .75s linear infinite; }
:where(.ht-load-more-retry) { min-height: 2.75rem; padding: .625rem 1rem; border: 1px solid #e5e7eb; border-radius: .5rem; background: #fff; color: #6b7280; font: inherit; cursor: pointer; }
:where(.ht-load-more-retry:focus-visible) { outline: 3px solid var(--brand-600, #ff5722); outline-offset: 3px; }
:where(.ht-load-more-status) { margin-top: .5rem; color: #6b7280; font-size: var(--ht-type-meta); line-height: 1.5; text-align: center; }
@keyframes ht-load-more-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { :where(.ht-load-more-spinner) { animation-duration: .01ms; } }

/* ── 文章欄 ──────────────────────────────────────────────────────────
 * 文章資料與欄位數量由使用端提供；這裡只出貨現有文章欄的版面外觀。
 */
:where(.home-editorial) {
  margin-top: 2rem;
  margin-bottom: 0;
}

:where(.home-editorial-frame) { max-width: 80rem; margin-right: auto; margin-left: auto; padding-right: 1rem; padding-left: 1rem; }
@media (min-width: 40rem) { :where(.home-editorial-frame) { padding-right: 1.5rem; padding-left: 1.5rem; } }
@media (min-width: 64rem) { :where(.home-editorial-frame) { padding-right: 2rem; padding-left: 2rem; } }

:where(.home-editorial-grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

:where(.home-editorial-column) { min-width: 0; }

:where(.home-editorial-list) {
  margin-top: 0.5rem;
}

:where(.home-editorial-list a) {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.25rem;
  color: #374151;
  text-decoration: none;
  border-bottom: 0.0625rem solid #f3f4f6;
}

:where(.home-editorial-list a span) {
  overflow: hidden;
  flex: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

:where(.home-editorial-list time) {
  color: #9ca3af;
  font-size: var(--ht-type-meta);
  white-space: nowrap;
}

:where(.home-editorial-list a:hover span) { color: var(--brand-600, #e4007f); }

@media (max-width: 63.9375rem) {
  :where(.home-editorial-grid) { grid-template-columns: 1fr; }
}

/* ── 長文內文 ──────────────────────────────────────────────────────── */
:where(.ht-prose) {
  color: #374151;
  font-size: 1rem;
  line-height: 2;
}

:where(.ht-prose h2) {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 2.5rem 0 0.75rem;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.55;
  scroll-margin-top: 6.25rem;
}

:where(.ht-prose h2)::before {
  content: '';
  display: block;
  width: 0.1875rem;
  height: 1em;
  border-radius: 0.125rem;
  background: var(--page-brand-600, var(--brand-600, #e4007f));
  flex-shrink: 0;
}

:where(.ht-prose h3) {
  margin: 1.75rem 0 0.5rem;
  color: #111827;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.55;
}

:where(.ht-prose blockquote) {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 0.25rem solid #4b5563;
  border-radius: 0 0.75rem 0.75rem 0;
  color: #374151;
  background: #f9fafb;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.8;
}

:where(.ht-prose p) { margin: 0.875rem 0; }
:where(.ht-prose p, .ht-prose li) {
  text-align: justify;
  text-justify: inter-character;
}
:where(.ht-prose blockquote p) { margin: 0; text-align: left; }
:where(.ht-prose blockquote p + p) { margin-top: 0.875rem; }
:where(.ht-prose ul, .ht-prose ol) {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.5rem;
}
:where(.ht-prose ul) { list-style: disc; }
:where(.ht-prose ul li)::marker { color: #4b5563; }
:where(.ht-prose ol) { list-style: decimal; }
:where(.ht-prose li) { margin: 0.375rem 0; }
:where(.ht-prose a) {
  color: var(--brand-600, #e4007f);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 47.9375rem) {
  :where(.ht-prose) { font-size: 0.9375rem; line-height: 1.9; }
  :where(.ht-prose h2) { margin-top: 2rem; font-size: 1.125rem; }
  :where(.ht-prose h3) { margin-top: 1.5rem; font-size: 1rem; }
  :where(.ht-prose blockquote) { margin: 1.5rem 0; padding: 1rem; }
}

:where(.proj-breadcrumb) {
  display: flex;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  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;
}

/* Neutral shells: consuming sites keep their state classes and product content. */
:where(.ht-modal-card) { width: 100%; max-width: 26rem; max-height: 90dvh; overflow-y: auto; background: #fff; border-radius: 1rem; box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .26); }
:where(.ht-dialog-overlay) { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(17, 24, 39, .62); backdrop-filter: none; -webkit-backdrop-filter: none; }
:where(.ht-dialog-overlay.open) { display: flex; }
:where(.ht-dialog-overlay .ht-modal-card) { opacity: 0; transform: translateY(.5rem) scale(.98); transition: transform .2s ease, opacity .2s ease; }
:where(.ht-dialog-overlay.open .ht-modal-card) { opacity: 1; transform: translateY(0) scale(1); }
:where(.ht-dialog-head) { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.5rem 1rem; border-bottom: .0625rem solid #f3f4f6; }
:where(.ht-dialog-title) { margin: 0; font-size: var(--ht-text-md); font-weight: 600; line-height: 1.45; color: #111827; }
:where(.ht-dialog-subtitle) { margin: .25rem 0 0; font-size: var(--ht-text-sm); line-height: 1.65; color: #6b7280; }
:where(.ht-dialog-close) { display: inline-flex; flex-shrink: 0; width: 2rem; height: 2rem; align-items: center; justify-content: center; border: 0; border-radius: .375rem; background: transparent; color: #6b7280; cursor: pointer; transition: color .15s, background .15s; }
:where(.ht-dialog-close:hover) { color: #374151; background: #f3f4f6; }
:where(.ht-dialog-body) { padding: 1.25rem 1.5rem; }
:where(.ht-inquiry-card) { overflow: hidden; background: #fff; border: .0625rem solid oklch(.967 .003 264.542); border-radius: 1rem; --tw-inset-shadow: 0 0 #0000; --tw-inset-ring-shadow: 0 0 #0000; --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000; --tw-shadow: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a; box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow); }
:where(.ht-inquiry-card-head) { border-bottom: .0625rem solid oklch(.967 .003 264.542); }
:where(.ht-inquiry-card-body) { padding: 1.25rem 1.5rem; }
:where(.ht-inquiry-privacy) { padding: 0 1.5rem 1.25rem; color: oklch(.551 .027 264.364); text-align: center; font-size: var(--ht-type-label); line-height: 1.75; }
:where(.ht-inquiry-privacy a) { text-decoration: underline; color: inherit; }
:where(.ht-inquiry-privacy a:hover) { color: #374151; }
@media (max-width: 47.9375rem) { :where(.ht-dialog-overlay) { padding: 1rem; } :where(.ht-dialog-overlay .ht-modal-card) { border-radius: .875rem; } :where(.ht-dialog-head) { padding: 1.25rem 1.25rem .875rem; } :where(.ht-dialog-body) { padding: 1rem 1.25rem 1.25rem; } }

/* ── 影音預覽與燈箱 ──────────────────────────────────────────────── */
:where(.ht-media-preview) { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 12rem; max-height: 28rem; padding: 0; border: 0; color: inherit; font: inherit; text-align: inherit; }
:where(.ht-media-preview-image) { display: block; width: 100%; height: 100%; object-fit: cover; }
:where(.ht-media-preview-overlay) { position: absolute; inset: 0; background: oklab(0 0 0 / 30%); transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
:where(.ht-media-preview.group:hover .ht-media-preview-overlay) { background: oklab(0 0 0 / 15%); }
:where(.ht-media-preview-play) { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
:where(.ht-media-preview-label) { position: absolute; right: 0; bottom: 1rem; left: 0; padding-right: 1rem; padding-left: 1rem; color: #fff; font-size: var(--ht-type-body, 0.875rem); font-weight: 500; --tw-font-weight: 500; line-height: 1.4285714286; text-align: center; }

:where(.media-play-btn) {
  width: 4rem; height: 4rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.68);
  background: linear-gradient(145deg, rgba(255,255,255,.34), rgba(255,255,255,.12));
  -webkit-backdrop-filter: blur(14px) saturate(145%); backdrop-filter: blur(14px) saturate(145%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58), inset 0 -1px 0 rgba(255,255,255,.12), 0 8px 24px rgba(0,0,0,.24);
  color: #fff; display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
:where(.group:hover .media-play-btn) { transform: scale(1.06); background: linear-gradient(145deg, rgba(255,255,255,.46), rgba(255,255,255,.18)); border-color: rgba(255,255,255,.88); box-shadow: inset 0 1px 0 rgba(255,255,255,.72), inset 0 -1px 0 rgba(255,255,255,.16), 0 10px 28px rgba(0,0,0,.28); }
:where([data-media-open]:focus-visible .media-play-btn) { border-color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 0 0 3px rgba(255,255,255,.34), 0 10px 28px rgba(0,0,0,.28); }
:where([data-media-open]:active .media-play-btn) { transform: scale(.98); }
:where(.media-play-btn svg) { width: 1.75rem; height: 1.75rem; }

: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;
}

@media (max-width: 79.9375rem) {
  :where(.ht-breadcrumb--collapse-wide) { display: none; }
}

@media (max-width: 47.9375rem) {
  :where(.ht-breadcrumb--collapse-mobile) { display: none; }
}

: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;
  }
}

@media (min-width: 80rem) {
  :where(.proj-breadcrumb, .proj-breadcrumb > a) { min-height: 0; }
}

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

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

/* ── 行動版列表工具列 ────────────────────────────────────────────────
 *
 * 2026-09-14：外殼（.list-filter-bar）、按鈕最小寬度與文字截斷（.filter-btn-text）
 * 的通用外觀改由本檔出貨；在那之前它們只住在房地王的 list.css，海外裝上套件會拿到
 * 沒有背板、不會截字的工具列。
 *
 * 仍由使用端提供：`.fb`／`.fg` 這兩個兩字母通用類名，以及頁型覆寫——房地王的
 * 使用端列表頁 body 標記（浮起、內距與斷點）、body.page-index（首頁的 .mob-area-btn）與
 * .page-info（max-width: 6em）那幾組本來就該贏過套件預設。
 */
:where(.list-filter-bar) {
  position: sticky;
  top: 4rem;
  z-index: 470;
  overflow: hidden;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.75rem 1rem;
  margin: 0 -1rem 1rem;
}

:where(.list-filter-bar)::before,
:where(.list-filter-bar)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

:where(.list-filter-bar)::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--page-brand-color, var(--brand-600, #ff5722)) 7%, transparent) 0%, color-mix(in srgb, var(--page-brand-color, var(--brand-600, #ff5722)) 3%, transparent) 68%, transparent 100%);
  opacity: 1;
}

/* 帶封面圖時換掉上面那層底色。兩條都是 (0,0,1)，同分靠順序決勝——與搬移前在
   list.css 的相對順序一致，對調就會看不到封面。 */
:where(.list-filter-bar--has-bg)::before {
  background-image: var(--list-filter-bg);
  background-size: cover;
  background-position: center;
  filter: blur(4rem);
  opacity: 0.8;
  transform: scale(1.12);
}

:where(.list-filter-bar)::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.8) 72%, rgba(255,255,255,0.96) 100%);
}

@media (min-width: 40rem) {
  :where(.list-filter-bar) {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 64rem) {
  :where(.ht-desktop-sidebar-sticky) {
    position: sticky;
    top: 7.5rem;
  }
}

@media (min-width: 80rem) {
  :where(.ht-desktop-sidebar-sticky) {
    top: 6rem;
  }
}

@media (min-width: 64rem) {
  :where(.list-filter-bar) {
    margin-left: -2rem;
    margin-right: -2rem;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Mobile inquiry CTA bar shared by property detail consumers. */
:where(.ht-mobile-cta-bar) {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  background: #fff;
  border-color: oklch(0.967 0.003 264.542);
  border-top: 1px solid oklch(0.967 0.003 264.542);
}

:where(.ht-mobile-cta-row) {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
}

:where(.ht-mobile-cta-btn) {
  display: flex;
  min-height: 3.25rem;
  flex: 1 1 0%;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.75rem 1rem;
  border: 1px solid currentColor;
  border-radius: 0.5rem;
  font-size: var(--ht-type-body, 1rem);
  font-family: inherit;
  --tw-font-weight: 600;
  font-weight: 600;
  line-height: 1.4285714286;
  text-decoration: none;
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
  transition-duration: 0.15s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

:where(.ht-mobile-cta-btn--primary) {
  gap: 0.5rem;
  padding: 0;
  border-color: transparent;
  background: var(--page-brand-color, var(--brand-600));
  color: #fff;
  font-size: var(--ht-text-base);
  line-height: 1.5;
}

:where(.ht-mobile-cta-btn--primary:hover) {
  background: var(--page-brand-700, var(--brand-700));
}

:where(.ht-mobile-cta-note) {
  display: flex;
  min-width: 0;
  min-height: 3.25rem;
  flex: 1 1 0%;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  color: #6b7280;
  font-size: var(--ht-type-body, 1rem);
  line-height: 1.4285714286;
  text-align: center;
}

@media (min-width: 64rem) {
  :where(.ht-mobile-cta-bar) { display: none; }
}

@media (max-width: 63.9375rem) {
  :where(body.ht-has-mobile-cta) { padding-bottom: 4.5rem; }
}

/* 這支工具列是窄螢幕專用的；寬螢幕由使用端的側欄接手。 */
@media (min-width: 80rem) {
  :where(.list-filter-bar) {
    display: none;
  }
}

@media (max-width: 79.9375rem) {
  :where(body.has-floating-list-topbar .list-filter-bar) {
    position: relative;
    top: auto;
    transition: top 0.25s ease, padding 0.25s ease;
  }

  :where(body.has-floating-list-topbar .list-filter-bar.is-floating) {
    position: fixed;
    top: var(--mob-header-h, 4rem);
    left: 0;
    right: 0;
    z-index: 470;
    margin: 0;
    will-change: transform, opacity;
    animation: list-filter-float-in 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  :where(body.has-floating-list-topbar .list-filter-bar-placeholder) {
    display: block;
    width: 100%;
    height: 0;
  }

  :where(body.has-floating-list-topbar.mob-header-hidden .list-filter-bar.is-floating) {
    top: 0;
  }
}

@media (min-width: 64rem) and (max-width: 79.9375rem) {
  :where(body.has-floating-list-topbar .list-filter-bar.is-floating) {
    top: 5rem;
    padding: 1rem 2rem;
  }

  :where(body.has-floating-list-topbar.mob-header-hidden .list-filter-bar.is-floating) {
    top: 0;
  }
}

@media (max-width: 51.25rem) {
  :where(body.has-floating-list-topbar .list-filter-bar),
  :where(body.has-floating-list-topbar .list-filter-bar.is-floating) {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

@media (min-width: 45rem) and (max-width: 63.9375rem) {
  :where(body.has-floating-list-topbar .list-filter-bar) {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  :where(body.has-floating-list-topbar .list-filter-bar.is-floating) {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

@keyframes list-filter-float-in {
  from { opacity: 0; transform: translate3d(0, -0.5rem, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  :where(body.has-floating-list-topbar .list-filter-bar.is-floating) {
    animation: none;
  }
}

@media (max-width: 39.9375rem) {
  :where(html.ht-modal-open body.ht-modal-open.has-floating-list-topbar .list-filter-bar) {
    position: fixed;
    top: var(--mob-header-h, 4rem);
    left: 0;
    right: 0;
    z-index: 470;
    margin: 0;
  }

  :where(html.ht-modal-open body.ht-modal-open.has-floating-list-topbar.mob-header-hidden .list-filter-bar) {
    top: 0;
  }
}

/* 搬移前是 `.list-filter-bar .fb`，但 `.fb` 由使用端持有，所以改掛在元件自己輸出的
   類名上。元件的三顆按鈕都同時帶 fb 與 mobile-topbar-btn，選到的是同一組元素。

   2026-09-15：3A 只搬了 min-width 與檔尾那兩條狀態規則，按鈕的**基底外觀**還留在
   房地王 list.css 的 `.fb`。實測第二個使用端拿到什麼：overseas-test 與 taichung-test
   同一顆 `.fb.mobile-topbar-btn`，21 個屬性差 19 個——海外那顆是 46×28 的裸按鈕
   （沒有內距、沒有背景、沒有圓角、cursor: default，28px 遠低於 44px 觸控目標），
   房地王是 102×47。元件輸出一顆需要外觀的按鈕，卻只透過使用端持有的 `.fb` 提供，
   等於沒出貨。

   下面這組是那份基底，值逐項照房地王實測的結果搬，掛在元件自己的類名上（不去佔用
   兩字母的 `.fb`）。包 `:where()`：房地王的 `.fb` 是 (0,1,0)，每一個屬性都贏得過
   (0,0,0)，所以房地王逐位元組不變；沒有那份 CSS 的使用端才會拿到這組預設。

   範圍刻意寫成 `.list-filter-bar` 底下：房地王首頁有一顆
   `mob-area-btn mobile-topbar-btn` 長在工具列之外（home/partials/hero.blade.php），
   寫成裸選擇器會連它一起改。 */
:where(.list-filter-bar .mobile-topbar-btn) {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  padding: 0.375rem 0.875rem;
  min-height: 2.75rem;
  font-size: var(--ht-text-base, 1rem);
  font-weight: 500;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.7);
  /* 邊框色沿用檔尾那條非作用中規則的同一個變數與同一個回落值：同一個屬性在同一份
     檔案裡有兩個答案，下一個人一定會挑錯。可見狀態下都是那條贏（工具列在 ≥80rem
     本來就 display:none），這裡只是讓沒有那條的情況也有個合理值。 */
  border: 0.0625rem solid var(--mobile-control-border, #eef0f3);
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, color .18s, box-shadow .18s;
  user-select: none;
}

/* 顏色寫死而不是開成變數：目前只有一個使用端會覆寫它（房地王用 .fb 整組蓋掉），
   沒有第二個真實使用端之前不先造一組沒人用的變數 API。 */
:where(.list-filter-bar .mobile-topbar-btn:hover) {
  background: #e5e7eb;
  color: #111827;
}

/* 2026-10-07：元件的 actions 插槽讓使用端在工具列放直接連結，預期標記是
   `<a class="fb mobile-topbar-btn" href="…">`。上面那組基底掛在類名上，<a> 一樣吃得到；
   這裡只補 <button> 由瀏覽器預設給、<a> 沒有的三項，連結才會跟按鈕一樣大、一樣排字。
   限定 a：現有的按鈕一顆都選不到，使用端的按鈕計算樣式不變。 */
:where(.list-filter-bar a.mobile-topbar-btn) {
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}

/* 目前所在的那顆連結（aria-current="page"）。字色與底色取檔尾 .mobile-topbar-btn.active
   同一組變數與回落值，作用中的連結跟作用中的按鈕才會同色；放在 :hover 之後，同為
   :where() 靠順序贏，滑過時維持作用中外觀。
   邊框刻意不在這裡設：工具列可見的寬度（<80rem）由檔尾非作用中那條 (0,3,0) 決定，
   :where() 贏不了它，寫了也不會生效。 */
:where(.list-filter-bar .mobile-topbar-btn[aria-current="page"]) {
  color: var(--state-active-text, var(--brand-600, #ff5722));
  background: var(--state-active-bg, var(--brand-50, #fef3ee));
}

:where(.list-filter-bar .filter-btn-text) {
  display: inline-block;
  max-width: 5em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

: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) {
  width: 100%;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
}

:where(.detail-disclaimer-heading) { margin-bottom: 0.25rem; color: oklch(0.551 0.027 264.364); font-weight: 600; --tw-font-weight: 600; text-align: left; }

: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) {
  color: oklch(0.551 0.027 264.364);
  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; }

/*
 * 區塊標題（section-header 元件）。
 *
 * 元件早就在套件裡，`.more-link` 的樣式也在（就在下面），但標題本身
 * ——`.sec-header` 的水平排列與 `.section-title` 的字級字重——留在房地王的
 * custom.css 與 index.css，而且 index.css 那兩條還限定 body.page-index。
 * 海外接上元件之後標題跟內文一樣大、「查看更多」還掉到下一行。
 *
 * 值取自主站實測，解除 body.page-index 限定（那是主站自己的頁型標記，
 * 不是這個元件的前提）。包 :where() 特異性 0，主站自己的規則照樣勝出。
 */
:where(.sec-header) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  margin-bottom: 1.25rem;
}

:where(.sec-header-right) {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

:where(.section-title) {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
  color: #111827;
  font-size: var(--ht-type-section-title);
  font-weight: 700;
}

/* 2026-09-16：上面那條的 `gap: 0.625rem` 唯一的用途就是隔開色條與文字，但**色條本身
   一直沒出貨**——規則只在使用端的 custom.css。也就是說套件出了一個元素的間距，
   卻沒出那個元素；第二個使用端拿到的是「有 10px 空隙、但空隙左邊什麼都沒有」。
   跟 .mobile-topbar-btn 的基底那次同一個形狀：搬移做了一半。

   `background` 刻意維持 `var(--page-brand-600, fallback)`：變數由使用端逐站設定
   （房地王在 layouts/app.blade.php 依頁型給，海外在 app.blade.php 指向自己的品牌紫），
   回落值只在沒有人定義時生效。套件不該知道任何一站的品牌色。

   特異性：`:where(.section-title)::before` 是 (0,0,1)——`:where()` 歸零，偽元素算一個
   元素選擇器。使用端的 `.section-title::before` 是 (0,1,1)，每個屬性都贏得過，
   所以使用端逐位元組不變。下面八個屬性與使用端那條完全對應，沒有多出任何一個
   ——多一個就會從套件漏進使用端。 */
:where(.section-title)::before {
  content: '';
  display: block;
  transform: translateY(1px);
  width: 0.1875rem;
  height: 1em;
  background: var(--page-brand-600, #ff5722);
  border-radius: 0.125rem;
  flex-shrink: 0;
}

:where(.sec-header .section-title) {
  margin-bottom: 0;
  line-height: 1.2;
}

/* ── 共用區塊標題連結與重設圖示 ───────────────────── */
: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;
}

/* ── 行動版列表工具列的按鈕狀態（刻意不包 :where()）──────────────────
 *
 * 這兩條的職責就是贏過使用端的按鈕基底，所以是規則三的例外。對手與要維持的
 * 特異性：
 *
 *   1. 作用中狀態 (0,2,0) 對上房地王的 `.fb.active` (0,2,0)：同分，靠套件 CSS 在
 *      使用端最後載入取勝。包成 :where() 會降到 (0,1,0)，實測 border-color 會由
 *      品牌色變成 transparent。
 *   2. 非作用中邊框 (0,3,0) 對上房地王的 `.fb` (0,1,0)：靠特異性取勝。包成 :where()
 *      會連 :not() 一起歸零成 (0,0,0)，實測四個頁型共 20 處按鈕邊框會由 #eef0f3
 *      變成 #e5e7eb。
 *
 * 色票沒定義時回落到品牌色階與 #eef0f3，讓沒有這組變數的使用端也拿得到合理預設；
 * 房地王一律有定義，回落不會生效。
 */
.mobile-topbar-btn.active,
.mobile-topbar-btn[aria-expanded="true"] {
  color: var(--state-active-text, var(--brand-600, #ff5722));
  background: var(--state-active-bg, var(--brand-50, #fef3ee));
  border-color: var(--state-active-border, var(--brand-600, #ff5722));
}

@media (max-width: 79.9375rem) {
.mobile-topbar-btn:not(.active):not([aria-expanded="true"]) {
    border-color: var(--mobile-control-border, #eef0f3);
  }
}

/* Toast surface shared by all Site Kit consumers. */
:where(.ht-toast) {
  position: fixed;
  left: 50%;
  bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 0.75rem);
  z-index: 10050;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0.875rem;
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.16);
  color: rgba(255, 255, 255, 0.96);
  font-size: var(--ht-text-sm);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  -webkit-backdrop-filter: blur(1rem) saturate(140%);
  backdrop-filter: blur(1rem) saturate(140%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

:where(.ht-toast-icon) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

:where(.ht-toast-icon svg) {
  width: 0.875rem;
  height: 0.875rem;
}

:where(.ht-toast-icon .fi) {
  font-size: 0.875rem;
}

:where(.ht-toast-message) {
  min-width: 0;
}

:where(.ht-toast.is-visible) {
  opacity: 1;
  transform: translate(-50%, 0);
}

:where(.ht-toast--success) {
  background: rgba(22, 101, 52, 0.72);
}

:where(.ht-toast--error) {
  background: rgba(127, 29, 29, 0.76);
}

:where(.ht-toast--info) {
  background: rgba(31, 41, 55, 0.72);
}

@media (min-width: 64rem) {
  :where(.ht-toast) {
    top: calc(1.75rem + env(safe-area-inset-top, 0px));
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -0.75rem);
  }

  :where(.ht-toast.is-visible) {
    transform: translate(-50%, 0);
  }
}
