/* 移居入口（spec 2026-10-08-relocation-discovery-seo §3、§5、§9.3）：首頁三步、比較專題、分享面板。
   2026-10-09 範圍縮減：城市頁入門區塊與首頁城市 CTA 拿掉（城市頁回到 production，不載這支 CSS）。
   全部 .relocation-* scoped；顏色只用 cityguide.css 的 token（--paper/--text/--muted/--hair/--rule/--ink），深淺主題跟著走。
   操作目標 ≥44px；320px 不橫溢（長字可斷行）。 */
.relocation-share[hidden], .relocation-share-fallback[hidden], .relocation-share-btn[hidden] { display: none !important; }

/* 墨色文字：淺色主題＝城市墨色；深色主題的墨色（深藍／深紅）壓在近黑底上對比只有 2.3–3.2，文字改用跟白色混半的亮版（AA ≥4.5，QA A01 量） */
.relocation-ref a, .relocation-group-compare a, .relocation-kicker, .relocation-limits a, .relocation-share .st-btn.done .st-lb { --rl-ink: var(--ink); }
[data-theme="dark"] :is(.relocation-ref a, .relocation-group-compare a, .relocation-kicker, .relocation-limits a, .relocation-share .st-btn.done .st-lb) { --rl-ink: color-mix(in srgb, var(--ink) 50%, #fff); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.relocation-ref a, .relocation-group-compare a, .relocation-kicker, .relocation-limits a, .relocation-share .st-btn.done .st-lb) { --rl-ink: color-mix(in srgb, var(--ink) 50%, #fff); } }

.relocation-page a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ── 首頁：三步（沿 .home-steps 版面，這裡只補標題與間距）── */
.relocation-steps { margin-top: 2px; }

/* ── 專題正文（概覽、段落、出處） ── */
.relocation-lede p, .relocation-sec p { font-size: 16px; line-height: 1.8; color: var(--text); }
.relocation-lede p { margin: 14px 0 0; max-width: 40em; }
.relocation-sec { margin-top: 26px; max-width: 44em; }
.relocation-sec p { margin: 8px 0 0; }
.relocation-ref { font-size: .72em; line-height: 0; margin-left: 1px; }
.relocation-ref a { color: var(--rl-ink); text-decoration: none; padding: 0 1px; }
.relocation-group-compare { margin: 12px 0 0; }
.relocation-group-compare a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--rl-ink); text-underline-offset: 3px; overflow-wrap: anywhere; }
.relocation-sources { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--muted); }
.relocation-sources h2, .relocation-sources h3 { font-size: 14px; font-weight: 900; color: var(--text); }
.relocation-sources ol { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 4px; }
.relocation-sources li { line-height: 1.55; overflow-wrap: anywhere; scroll-margin-top: 80px; }
.relocation-sources a { color: var(--text); }
.relocation-src-domain { color: var(--muted); font-size: 12px; }

/* ── 比較專題頁 ── */
.relocation-article { max-width: 720px; margin: 0 auto; padding: 22px 0 10px; }
.relocation-crumb a, .relocation-back a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 800; color: var(--muted); text-decoration: none; }
.relocation-kicker { margin-top: 6px; font-family: var(--display); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--rl-ink); }
.relocation-h1 { margin-top: 8px; font-size: clamp(28px, 5vw, 44px); font-weight: var(--heavy, 900); line-height: 1.18; letter-spacing: -.02em; color: var(--text); overflow-wrap: anywhere; }
.relocation-dates { margin-top: 10px; font-size: 13px; color: var(--muted); }
.relocation-share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; padding: 0 18px; border-radius: 22px;
  border: 1.5px solid var(--hair); background: var(--paper); color: var(--text); font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.relocation-share-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.relocation-share-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.relocation-article .relocation-lede p { font-size: 17px; }
.relocation-article .relocation-sec h2, .relocation-pair h2, .relocation-checklist h2 { font-size: clamp(20px, 2.6vw, 24px); font-weight: 900; line-height: 1.35;
  color: var(--text); padding-bottom: 6px; border-bottom: 3px solid var(--rule); }
.relocation-pair, .relocation-checklist { margin-top: 30px; }
.relocation-pair-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.relocation-pair-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 14px;
  border: 1px solid var(--hair); border-radius: 12px; background: var(--paper); }
.relocation-pair-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 900; color: var(--text); text-underline-offset: 4px; overflow-wrap: anywhere; }
.relocation-checklist ol { margin: 10px 0 0; padding-left: 24px; display: grid; gap: 8px; }
.relocation-check-item { font-size: 16px; line-height: 1.7; color: var(--text); }
.relocation-limits { margin-top: 26px; padding: 12px 14px; border-left: 3px solid var(--ink); background: var(--paper2); font-size: 14px; line-height: 1.7; color: var(--text); }
.relocation-limits a { color: var(--rl-ink); font-weight: 800; }

/* ── 分享面板（視覺同地圖的統一分享面板；這頁不載 style.css，所以 scoped 一份）── */
.relocation-share { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; background: rgba(20, 18, 12, .5); }
.relocation-share-card { position: relative; width: min(92vw, 400px); padding: 22px 22px 18px; border-radius: 18px; background: var(--paper); color: var(--text);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .4); max-height: 90vh; overflow: auto; }
.relocation-share-card h2 { font-size: 18px; font-weight: 900; padding-right: 44px; }
.relocation-share-name { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.relocation-share-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; border-radius: 50%; }
.relocation-share-close:focus-visible { outline: 3px solid var(--ink); outline-offset: -2px; }
.relocation-share-targets { display: flex; justify-content: space-between; gap: 4px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
.relocation-share .st-btn { flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none;
  padding: 0; color: var(--text); font: inherit; font-size: 11.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.relocation-share .st-ic { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.relocation-share .st-btn:focus-visible { outline: none; }
.relocation-share .st-btn:focus-visible .st-ic { outline: 3px solid var(--ink); outline-offset: 2px; }
.relocation-share .st-lb { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.relocation-share .st-copy { background: var(--ink); }
.relocation-share .st-btn.done .st-lb { color: var(--rl-ink); }
.relocation-share .st-line { background: #06C755; }
.relocation-share .st-x, .relocation-share .st-threads { background: #000; }
.relocation-share .st-facebook { background: #0866FF; }
[data-theme="dark"] .relocation-share .st-x, [data-theme="dark"] .relocation-share .st-threads { background: #fff; color: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .relocation-share .st-x, :root:not([data-theme="light"]) .relocation-share .st-threads { background: #fff; color: #000; } }
.relocation-share-fallback { margin-top: 14px; font-size: 14px; line-height: 1.6; }
.relocation-share-fallback label { display: grid; gap: 6px; margin-top: 8px; font-weight: 800; }
.relocation-share-fallback input { width: 100%; min-height: 44px; padding: 8px 10px; border: 1.5px solid var(--hair); border-radius: 10px; background: var(--paper2);
  color: var(--text); font: inherit; font-size: 14px; font-weight: 400; user-select: all; -webkit-user-select: all; }
.relocation-page .sr-only, .relocation-share .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 768px) {
  .relocation-share { align-items: flex-end; }
  .relocation-share-card { width: 100%; border-radius: 18px 18px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .relocation-share-targets { gap: 2px; }
  .relocation-share .st-ic { width: 42px; height: 42px; }
}
