:root { --accent: #192620; --accent-ink: #FAF5F2; --background: #FAF5F2; --surface: #FFFFFF; --text: #192620; --muted: #58605A; --border: #EADFD8; --link: #27455C; --brand: #D88471; --knob: #192620; --blush: #F6DDD5; --flag: #B32D2E; --chart: #27455C; --chart-soft: #6F879B; --good: #2E7D5B; --warn: #9A5B00; --placeholder: #FFF1C2; --ink: #BBA899; --pupil: #192620; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --accent: #F1E8E2; --accent-ink: #192620; --background: #121A16; --surface: #1B2520; --text: #FAF5F2; --muted: #B0B8B2; --border: #2E3A34; --link: #8FB0C9; --brand: #E8A08F; --knob: #192620; --blush: #3A2823; --flag: #EE7A80; --chart: #8FB0C9; --chart-soft: #5F7F99; --good: #6FCFA0; --warn: #F2B45A; --placeholder: #4A3F14; --ink: #5A6B62; --pupil: #192620; } }
:root { --sq-1: #DDE6EC; --sq-2: #B4C7D4; --sq-3: #86A3B8; --sq-4: #4D738E; --sq-5: #27455C; --dv-1: #27455C; --dv-2: #6F8DA6; --dv-3: #B9C9D6; --dv-4: #E9E2DC; --dv-5: #E3C690; --dv-6: #BF8A2E; --dv-7: #8A5200; --scale-line: #6F879B; }
.sq-1 { --fill: var(--sq-1); --ink: #192620; }
.sq-2 { --fill: var(--sq-2); --ink: #192620; }
.sq-3 { --fill: var(--sq-3); --ink: #192620; }
.sq-4 { --fill: var(--sq-4); --ink: #FAF5F2; }
.sq-5 { --fill: var(--sq-5); --ink: #FAF5F2; }
.dv-1 { --fill: var(--dv-1); --ink: #FAF5F2; }
.dv-2 { --fill: var(--dv-2); --ink: #192620; }
.dv-3 { --fill: var(--dv-3); --ink: #192620; }
.dv-4 { --fill: var(--dv-4); --ink: #192620; }
.dv-5 { --fill: var(--dv-5); --ink: #192620; }
.dv-6 { --fill: var(--dv-6); --ink: #192620; }
.dv-7 { --fill: var(--dv-7); --ink: #FAF5F2; }
@media (prefers-color-scheme: dark) { :root { --sq-1: #22384A; --sq-2: #35566F; --sq-3: #46708E; --sq-4: #77A0BD; --sq-5: #B5D0E3; --dv-1: #B5D0E3; --dv-2: #77A0BD; --dv-3: #3F627D; --dv-4: #34403A; --dv-5: #7A5A1E; --dv-6: #C08F36; --dv-7: #F2C777; --scale-line: #5F7F99; } .sq-1 { --ink: #FAF5F2; } .sq-2 { --ink: #FAF5F2; } .sq-3 { --ink: #FAF5F2; } .sq-4 { --ink: #192620; } .sq-5 { --ink: #192620; } .dv-1 { --ink: #192620; } .dv-2 { --ink: #192620; } .dv-3 { --ink: #FAF5F2; } .dv-4 { --ink: #FAF5F2; } .dv-5 { --ink: #FAF5F2; } .dv-6 { --ink: #192620; } .dv-7 { --ink: #192620; } }
/* 顏色變數在建置時從 site.config.json 產生（亮色、暗色），放在這個檔案最上面。
   方向 C（docs/UIUX審查-龍蝦粉-2026-11-04.md）：森林綠當家（主按鈕、字）、奶油底、鮭魚只在字標的門與小點綴（不當字、不放白字）、
   海軍藍連結與圖表、紅只給紅旗。字：ui-serif（Apple 上是 New York，跟 App 同一個）當標題，系統 sans 當內文；沒有第三方字型 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--background); color: var(--text);
  /* 1.0625rem = 17 px 預設；用 rem，瀏覽器的「字體大小」設定才放得大（網站 v4） */
  font: 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* 2026-11-24：內容短的頁（404、分享已撤下）頁尾貼在視窗底，不留一截空白在頁尾下面 */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body > main { flex: 1 0 auto; width: 100%; }
:root { --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid var(--link); outline-offset: 2px;
}
::selection { background: var(--blush); color: var(--text); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

.site-header { border-bottom: 1px solid var(--border); background: var(--background); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
/* 字標：襯線 D + 兩扇拱門（門高等於大寫高、門底坐在基線上）+ resi；跟 App 的 BrandWordmark 同一組比例 */
.brand { color: var(--text); text-decoration: none; display: inline-flex; padding: 4px 0; }
.wordmark { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.wordmark-doors { display: inline-block; height: 0.70em; width: calc(0.70em * 86 / 56); margin: 0 0.05em 0 0.07em; vertical-align: baseline; overflow: visible; }
.door { fill: var(--brand); }
.knob { fill: var(--knob); }
.mark-bg { fill: var(--brand); }
.mark-door { fill: #FAF5F2; }
.site-header nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-header nav a:not(.button) { color: var(--text); text-decoration: none; }
.site-header nav a:not(.button):hover { text-decoration: underline; }

/* 主按鈕：淺色森林綠底奶油字、深色奶油底森林字（App 的 DS.Color.primary、onPrimary） */
.button {
  display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600;
  padding: 12px 20px; border-radius: 12px; border: 0; font-size: 1rem; cursor: pointer; line-height: 1.2;
}
.button:hover { opacity: 0.9; }
.button-small { padding: 8px 14px; font-size: 0.95rem; }
.button-secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.button-disabled { background: var(--surface); color: var(--muted); border: 1px dashed var(--border); cursor: default; }

main.wrap { padding-top: 32px; padding-bottom: 64px; }
/* 窄螢幕：字標與按鈕同一列；Support 在頁尾 */
@media (max-width: 480px) { .header-row { flex-wrap: nowrap; } .site-header nav { gap: 14px; flex-wrap: nowrap; } .site-header nav a[href$="support/"] { display: none; } .wordmark { font-size: 1.55rem; } }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
/* 大標與段落標用襯線 Regular（方向 C：粗的襯線像報紙頭條），小標用 sans Semibold */
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); margin: 0.2em 0 0.4em; line-height: 1.1; }
h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 1.8em 0 0.5em; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 1.4em 0 0.4em; letter-spacing: -0.005em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.small { font-size: 0.9rem; color: var(--muted); }

/* 文件（Help、Privacy、Terms） */
.doc { max-width: 46em; }
.doc h2 { position: relative; scroll-margin-top: 16px; }
.doc h2 .anchor { position: absolute; left: -1em; color: var(--muted); text-decoration: none; opacity: 0; }
.doc h2:hover .anchor, .doc h2 .anchor:focus { opacity: 1; }
.doc :target { background: var(--blush); border-radius: 6px; }
.crumb { margin: 0; font-size: 0.95rem; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; margin: 16px 0 8px; }
.toc ul { margin: 0; padding-left: 1.1em; columns: 2 16em; }
.topics { columns: 2 16em; padding-left: 1.1em; }
.topics li { margin: 0.3em 0; break-inside: avoid; }
mark.placeholder { background: var(--placeholder); color: inherit; padding: 0 3px; border-radius: 4px; }

/* 表單 */
form.waitlist { max-width: 32em; display: grid; gap: 18px; margin-top: 16px; }
label { font-weight: 600; display: block; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
input[type=email], input[type=text], select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 12px;
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; font-weight: 600; }
.status.error { color: var(--flag); }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.footer-mark .mark { width: 28px; height: 28px; display: block; }
.footer-row nav { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0; }
.footer-row p { margin: 6px 0; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* 公開 postcode 頁（/area/） */
.glance { list-style: none; padding: 0; margin: 8px 0; max-width: 40em; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.glance-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--border); }
.glance-row:first-child { border-top: 0; }
.glance-name { font-weight: 600; }
.glance-detail { display: block; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.glance-word { text-align: right; white-space: nowrap; }
.dot { display: inline-block; margin-right: 8px; font-size: 0.8em; }
.dot-good { color: var(--good); } .dot-warn { color: var(--warn); } .dot-bad { color: var(--flag); } .dot-neutral { color: var(--muted); }
table.sales { border-collapse: collapse; width: 100%; max-width: 40em; font-variant-numeric: tabular-nums; }
table.sales th, table.sales td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.sales th { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
table.sales .num { text-align: right; }
.sources li { margin: 0.25em 0; }
.lookup { max-width: 32em; margin-top: 16px; }
.lookup-row { display: flex; gap: 10px; }
.lookup-row input { flex: 1; }
@media (max-width: 480px) { .glance-row { flex-wrap: wrap; } .glance-word { text-align: left; } table.sales th:nth-child(3), table.sales td:nth-child(3) { display: none; } }

/* 公開街道頁（/street/） */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
table.sales caption { caption-side: top; text-align: left; padding: 0 0 6px; }
table.years td, table.years th { padding-top: 4px; padding-bottom: 4px; }
table.years .bar-cell { width: 45%; }
/* 圖表：海軍藍（App 的 DS.Color.link 與 pinNeutral），軌道是 hairline */
table.years .bar-cell { background-image: linear-gradient(var(--border), var(--border)); background-size: 100% 1px; background-repeat: no-repeat; background-position: center; }
.bar { display: block; height: 0.8em; border-radius: 3px; background: var(--chart); }
.choices { list-style: none; padding: 0; max-width: 40em; }
.choices li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.choices li .small { display: block; }
@media (max-width: 480px) { table.years .bar-cell { width: 30%; } table.sales.keep th:nth-child(3), table.sales.keep td:nth-child(3) { display: table-cell; } }

/* ================= 網站 v2（2026-11-04，docs/網站設計研究-2026-11-04.md） =================
   一句標題加一張畫面；圖示是 24 格線條（currentColor）；動畫只在 prefers-reduced-motion: no-preference 時，只動 dashoffset、opacity、transform */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.22em; }
.center { text-align: center; }
.kicker { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: var(--muted); margin: 0 0 4px; }
.kicker .icon { color: var(--link); }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blush); color: var(--text); font-family: var(--serif); font-size: 1rem; }

/* 首頁：首屏 */
.hero { display: grid; gap: 8px; padding: 8px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); max-width: 14em; margin: 0.25em auto 0.25em; }
.hero .lede { margin: 0 auto; font-size: clamp(1.1rem, 2.2vw, 1.3rem); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
/* 房子的大小（2026-11-24，創辦人：太大、超出版面）：以前固定 720 寬（469 高），桌面首屏裝不下、門在折線下面；手機還比內文欄寬 24 px。
   現在：永遠不比內文欄寬、最寬 560；高度不超過視窗的六成；820 以上跟下面三段一樣分兩欄（字在左、房子在右，最寬 480），整棟在首屏裡。
   test.mjs 的「房子的尺寸上限」守這幾條 */
.hero-art { margin: 8px auto 0; width: 100%; max-width: 560px; }
@media (max-width: 560px) { .promise-list li { font-size: 0.95rem; } }
.house { display: block; width: 100%; height: auto; max-height: 60vh; max-height: 60svh; overflow: visible; }
@media (min-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; text-align: left; padding: 40px 0 48px; }
  .hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.5rem); margin-left: 0; margin-right: 0; }
  .hero .lede { margin-left: 0; margin-right: 0; }
  .hero .actions { justify-content: flex-start; }
  .hero .hero-lookup { margin-left: 0; margin-right: 0; }
  .hero-art { margin: 0; max-width: 480px; justify-self: end; }
}
.house .ink path { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: var(--o); }
.house .ink .fine { stroke-width: 1.1; }
.house .door, .face .door { fill: var(--brand); }
.house .pupil, .face .pupil { fill: var(--pupil); }
/* 房子的眼珠：小一點、用跟鋼筆線同一家族的深暖棕（創辦人 2026-11-04：眼珠太大太突兀）；在鮭魚門上 3:1 */
.house .pupil, .house .shut { fill: var(--house-pupil, #5A4A40); }
.house .shut { opacity: 0; }
.face .shut-eye { fill: var(--pupil); }
.face .lid { fill: none; stroke: var(--pupil); stroke-width: 3; stroke-linecap: round; }
.face .lid.thin { stroke-width: 2.4; }
.face .door-gap { fill: var(--pupil); opacity: 0.32; }
.house .pupil, .face .pupil { transform-box: fill-box; transform-origin: center; }

@keyframes ink { 0% { stroke-dashoffset: 1; opacity: 0; } 3% { opacity: var(--o); } 100% { stroke-dashoffset: 0; opacity: var(--o); } }
@keyframes look { 0% { transform: none; } 25% { transform: translate(-7px, -3px); } 55% { transform: translate(-7px, -3px); } 75% { transform: translate(-2px, -6px); } 100% { transform: none; } }
/* 眨眼跟 App、影片同一個畫法：圓點縮到 0.75（正圓，不壓扁），直接換成弧，再換回來 */
@keyframes blink { 0%, 100% { transform: none; opacity: 1; } 22% { transform: scale(0.75); opacity: 1; } 23%, 77% { transform: scale(0.75); opacity: 0; } 78% { transform: scale(0.75); opacity: 1; } }
@keyframes shut { 0%, 22% { opacity: 0; } 23%, 77% { opacity: 1; } 78%, 100% { opacity: 0; } }
@keyframes drift { 0%, 100% { transform: none; } 30% { transform: translateX(-3px); } 70% { transform: translateX(3px); } }
@keyframes swing { from { transform: scaleX(0.6); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes tap { 0%, 60%, 100% { transform: none; background: var(--key); } 70% { transform: scale(0.9); background: var(--key-on); color: #192620; } 85% { transform: none; background: var(--key-on); color: #192620; } }

@media (prefers-reduced-motion: no-preference) {
  .house .ink path { stroke-dasharray: 1 1; animation: ink var(--t) cubic-bezier(.45, 0, .55, 1) var(--d) both; }
  .house .eyes { animation: look 2.2s ease-in-out 0.9s both; }
  .house .pupil { animation: blink 0.45s linear 4.3s both; }
  .house .shut { animation: shut 0.45s linear 4.3s both; }
  .face-looking .eyes { animation: drift 1.2s ease-in-out 0.6s 2 both; }
  .face-welcome .open { transform-box: fill-box; transform-origin: left center; animation: swing 0.7s cubic-bezier(.3, 1.4, .5, 1) both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
  .phone-lock .tap { animation: tap 2.4s ease-in-out 1s 1 both; animation-timeline: view(); animation-range: entry 60% cover 55%; }
  /* 捲動淡入：支援 scroll-driven animation 的瀏覽器才做，不支援就直接顯示（沒有 JS） */
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}

/* 首頁：三段，每段一句加一張畫面 */
.feature, .try { display: grid; gap: 24px; align-items: center; padding: 48px 0; border-top: 1px solid var(--border); }
.feature h2, .try h2 { margin: 0.2em 0 0.3em; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.feature-text p:not(.kicker), .try-text > p { font-size: 1.15rem; color: var(--muted); max-width: 24em; margin: 0; }
.feature-art { display: flex; justify-content: center; position: relative; isolation: isolate; }
.feature-art::before { content: ""; position: absolute; z-index: -1; width: min(420px, 88vw, 100%); aspect-ratio: 1; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--blush); opacity: 0.7; }
@media (min-width: 820px) {
  .feature, .try { grid-template-columns: 1fr 1fr; gap: 56px; padding: 64px 0; }
  .feature-flip .feature-text { order: 2; }
}
.phone {
  position: relative; width: min(270px, 60vw); aspect-ratio: 1206 / 2300; border-radius: 44px; padding: 9px;
  background: #0F1512; box-shadow: 0 1px 0 1px #2C3631 inset, 0 30px 60px -24px rgba(25, 38, 32, 0.45);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; background: var(--surface); }
.phone picture { display: contents; }
.phone-short { aspect-ratio: 1206 / 1900; }
.phone-lock { aspect-ratio: 1206 / 2050; }
/* 鎖定畫面（畫的，不是截圖）：時間、Live Activity、1 到 10 的中性鍵 */
.phone-lock { --key: rgba(250, 245, 242, 0.14); --key-on: #F6DDD5; display: flex; flex-direction: column; align-items: center; color: #FAF5F2;
  background: radial-gradient(120% 70% at 30% 10%, #2F4A3E 0%, #192620 55%, #0F1512 100%); padding: 40px 16px 24px; }
.lock-date { font-size: 0.95rem; opacity: 0.85; order: -1; }
.lock-time { font-family: var(--serif); font-size: 4.4rem; line-height: 1; margin: 4px 0 auto; letter-spacing: -0.02em; }
.live { width: 100%; background: rgba(15, 21, 18, 0.72); border: 1px solid rgba(250, 245, 242, 0.12); border-radius: 22px; padding: 14px 12px 12px; margin-bottom: 18%; }
.live-head { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; margin-bottom: 10px; }
.live-head span:first-child { font-weight: 600; }
.live-head span:last-child { opacity: 0.75; }
.keys { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.keys span { display: grid; place-items: center; aspect-ratio: 1.15; border-radius: 10px; background: var(--key); font-weight: 600; font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .phone-lock .tap { background: var(--key-on); color: #192620; } }

/* 首頁：postcode 查詢 */
.try .lookup { margin-top: 20px; }
/* 2026-11-24：這一段以前只有標題，沒有欄位也沒有連結，要捲回最上面才查得到 */
.try-go { margin: 20px 0 0; }
.mini-icons { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mini-icons li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 0.95rem; }
.mini-icons .icon { color: var(--link); }

/* 首頁：四個承諾 */
.promises { padding: 40px 0 8px; border-top: 1px solid var(--border); }
.promise-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.promise-list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-weight: 600; padding: 12px; }
.promise-list .icon { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--blush); color: var(--text); stroke-width: 1.6; box-sizing: border-box; }

/* 首頁：免費與付費 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 760px; margin: 16px auto 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.card h3 { margin-top: 0; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.plan-paid { border-color: var(--brand); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--good); margin-top: 0.1em; }

/* 首頁：最後的 CTA，門的表情 */
.closer { text-align: center; padding: 48px 0 16px; }
.closer h2 { margin: 0.3em 0 0.2em; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.closer p { color: var(--muted); }
.closer-face .face, .face-hero .face { width: 120px; height: auto; display: block; margin: 0 auto; }
.form-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.form-head .face-hero .face { width: 96px; margin: 0; }
.form-head h1 { margin: 0; }
.form-head .lede { margin: 4px 0 0; }
.center-doc { text-align: center; margin: 40px auto; }

/* 公開頁：頭、大數字、四格 */
.page-head h1 { font-size: clamp(2.6rem, 8vw, 4.4rem); margin-bottom: 0.05em; }
.page-head .lede { margin-top: 0; }
.summary { font-size: 1.15rem; max-width: 36em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.stat dt { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.stat dd { margin: 2px 0 0; font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat dd.stat-sub { font-family: inherit; font-size: 0.88rem; color: var(--muted); margin-top: 2px; }
.tiles { list-style: none; padding: 0; margin: 12px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.tile-icon .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--blush); color: var(--text); box-sizing: border-box; }
.tile-name { font-size: 0.9rem; font-weight: 600; color: var(--muted); margin-top: 8px; }
.tile-word { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }
.tile-word .dot { font-size: 0.55em; vertical-align: 0.25em; }
.tile-price .tile-word .dot { display: none; }
.tile-detail { font-size: 0.95rem; }
.tile-src { font-size: 0.8rem; color: var(--muted); margin-top: auto; padding-top: 8px; }

/* 公開頁：圖。海軍藍一種顏色，類型靠形狀；格線是 hairline */
.chart { margin: 16px 0 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 18px 14px; }
.chart figcaption { font-size: 1.02rem; margin-top: 12px; }
.chart-src { font-size: 0.8rem; color: var(--muted); margin: 4px 0 0; }
.plot, .cols-wrap { position: relative; height: 200px; margin: 6px 0 0 44px; border-bottom: 1px solid var(--muted); }
.gl { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--border); }
.gl em { position: absolute; right: 100%; transform: translateY(-50%); padding-right: 8px; font-style: normal; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.gl-0 { border: 0; }
.xaxis { display: flex; justify-content: space-between; margin-left: 44px; font-size: 0.78rem; color: var(--muted); padding-top: 4px; }
.mk { display: inline-block; width: 12px; height: 12px; background: var(--chart); flex: none; }
.mk-circle { border-radius: 50%; }
.mk-square { border-radius: 2px; transform: scale(0.88); }
.mk-triangle { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.mk-diamond { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.mk-ring { border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2.5px var(--chart); }
.pt { position: absolute; width: 13px; height: 13px; margin: 0 0 -6.5px -6.5px; opacity: 0.9; }
.plot .pt { box-shadow: 0 0 0 2px var(--surface); }
.plot .pt.mk-triangle, .plot .pt.mk-diamond { box-shadow: none; }
.legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.85rem; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .mk { width: 10px; height: 10px; }
.strip { position: relative; height: calc(40px + 2 * var(--deep, 0px)); margin: 8px 6px 0; }
.strip-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--muted); }
.strip .pt { top: 50%; margin: calc(-6.5px + var(--dy, 0px)) 0 0 -6.5px; opacity: 0.85; }
.chart-strip .xaxis { margin: 0 6px; }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hbar { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 12px; align-items: center; }
.hbar-label { display: flex; align-items: center; gap: 8px; font-weight: 600; flex-wrap: wrap; }
.hbar-label .mk { width: 10px; height: 10px; }
.hbar-count { font-weight: 400; color: var(--muted); font-size: 0.85rem; width: 100%; padding-left: 18px; margin-top: -4px; }
.hbar-track { height: 14px; border-radius: 7px; background: linear-gradient(var(--border), var(--border)) center / 100% 1px no-repeat; }
.hbar-fill { display: block; height: 100%; border-radius: 7px; background: var(--chart); }
.hbar-value { font-variant-numeric: tabular-nums; text-align: right; min-width: 6.5em; }
@media (max-width: 560px) { .hbar { grid-template-columns: 1fr auto; } .hbar-track { grid-column: 1 / -1; order: 3; } }
.cols { list-style: none; padding: 0; margin: 0; position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; align-items: end; }
.col { position: relative; height: 100%; display: flex; align-items: flex-end; }
.col-bar { display: block; width: 100%; background: var(--chart); border-radius: 2px 2px 0 0; }
.col-none .col-bar { height: 5px; width: 5px; margin: 0 auto -2.5px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.col-year { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.chart-cols figcaption { margin-top: 30px; }
@media (max-width: 560px) { .col:not(:first-child):not(:last-child) .col-year { display: none; } .plot, .cols-wrap { height: 170px; } }
details.numbers { margin: 4px 0 12px; }
details.numbers summary { cursor: pointer; color: var(--link); font-weight: 600; padding: 6px 0; }
details.numbers table { margin-top: 6px; }
.chips, .street-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 600; }
.chip .icon { color: var(--link); }
.chip:hover { border-color: var(--link); }
.cta-app { display: flex; gap: 18px; align-items: flex-start; }
.cta-app h2 { margin-top: 0.1em; }
.cta-icon .icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--blush); color: var(--text); box-sizing: border-box; }
@media (max-width: 480px) { .cta-app { flex-direction: column; gap: 6px; } }

/* Help：圖示、卡片、目錄變標籤 */
.help-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 8px; }
.help-head h1 { margin: 0; }
.help-head .lede { margin: 4px 0 0; }
.help-icon .icon { width: 56px; height: 56px; padding: 13px; border-radius: 18px; background: var(--blush); color: var(--text); box-sizing: border-box; stroke-width: 1.6; }
.help-icon.small-icon .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; }
.topic-cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.topic-cards a { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; height: 100%; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; text-decoration: none; color: var(--text); }
.topic-cards a:hover { border-color: var(--link); }
.topic-cards .help-icon { grid-row: span 2; }
.topic-title { font-weight: 600; color: var(--link); }
.topic-sum { font-size: 0.92rem; color: var(--muted); }
.help-doc .toc { background: none; border: 0; padding: 0; }
.help-doc .toc ul { columns: auto; list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.help-doc .toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-size: 0.92rem; }
.help-doc .toc + p, .help-head + p { font-size: 1.15rem; }
.honest { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px 22px; margin: 32px 0; }
.support h2 { display: flex; align-items: center; gap: 10px; }
.support h2 .icon { color: var(--link); }

/* ---------- 網站 v3：postcode 頁的深度（2026-11-04） ---------- */
.jump ul { list-style: none; padding: 0; margin: 18px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.jump a:hover { border-color: var(--link); }
h3 { margin: 28px 0 6px; font-size: 1.12rem; }
.lede-small { color: var(--muted); margin-top: -4px; }
.controls { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.controls-sub { margin-bottom: 12px; }
.seg { font: inherit; font-size: 0.9rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; min-height: 36px; }
.seg-small { font-size: 0.82rem; padding: 4px 10px; min-height: 32px; }
.seg[aria-pressed="true"] { background: var(--chart); border-color: var(--chart); color: var(--surface); font-weight: 600; }
.seg:focus-visible, .lc-dot:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.lc { display: block; width: 100%; height: auto; overflow: visible; }
.lc-grid { stroke: var(--border); stroke-width: 1; }
.lc-tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.lc-line { fill: none; stroke: var(--chart); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.lc-dot { fill: var(--surface); stroke: var(--chart); stroke-width: 2; cursor: pointer; }
.lc-dot:hover, .lc-dot.on { fill: var(--chart); r: 6.5px; }
.readout { min-height: 1.4em; margin: 6px 0 0; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.95rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 8px 0; }
.filters label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; font-weight: 600; }
.filters select { font: inherit; font-size: 0.92rem; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); min-height: 36px; }
.filters .check { font-weight: 400; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.sales-all { min-width: 520px; }
table.sales-all td, table.sales-all th { white-space: nowrap; }
table.sales-all td:nth-child(2) { white-space: normal; }
.tag { display: inline-block; font-size: 0.75rem; padding: 1px 7px; border-radius: 999px; background: var(--blush); color: var(--text); font-weight: 600; vertical-align: 1px; }
.tag-quiet { background: transparent; border: 1px solid var(--border); font-weight: 400; }
.button-quiet { background: transparent; color: var(--text); border: 1px solid var(--border); margin-top: 8px; cursor: pointer; font: inherit; }
.hbar-here .hbar-label { color: var(--text); }
.hbar-here .hbar-fill { background: var(--chart); }
.chart-compare .hbar:not(.hbar-here) .hbar-fill { background: var(--chart-soft); }
.hbar-label .icon { width: 18px; height: 18px; color: var(--link); }
.rank-track { position: relative; height: 14px; border-radius: 7px; background: var(--border); margin: 8px 6px 6px; }
.rank-fill { position: absolute; inset: 0 auto 0 0; border-radius: 7px; background: var(--chart-soft); }
.rank-dot { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--chart); border: 3px solid var(--surface); transform: translate(-50%, -50%); box-shadow: 0 0 0 1px var(--chart); }
.chart .xaxis { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.deciles { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 6px 0; }
.dec { text-align: center; padding: 8px 0; border-radius: 6px; background: var(--border); color: var(--muted); font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.dec-on { background: var(--chart); color: var(--surface); font-weight: 700; }
.domains { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.domains li { display: grid; grid-template-columns: minmax(9em, 14em) 1fr 1.5em; gap: 10px; align-items: center; font-size: 0.92rem; }
.dec-mini { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; }
.dec-mini i { height: 8px; border-radius: 2px; background: var(--border); }
.dec-mini i.on { background: var(--chart); }
.places { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 8px; }
.places li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.place-name { font-weight: 600; }
.place-dist { font-variant-numeric: tabular-nums; color: var(--muted); }
.place-meta { grid-column: 1 / -1; font-size: 0.88rem; color: var(--muted); }
.figline { font-size: 1.02rem; margin: 10px 0 4px; }
.nbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.nbar { display: grid; grid-template-columns: 11em 1fr 7.5em; gap: 12px; align-items: center; }
.nbar-track { position: relative; height: 14px; border-radius: 7px; background: var(--border); }
.nbar-fill { position: absolute; top: 0; bottom: 0; border-radius: 7px; background: var(--chart); }
.nbar-who, .nbar-who-key { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--text); }
.nbar-who-key { position: relative; display: inline-block; height: 1em; top: 2px; margin-right: 6px; }
.nbar-value { text-align: right; font-variant-numeric: tabular-nums; }
.legend-line { font-size: 0.82rem; color: var(--muted); margin: 10px 0 0; }
.step-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.step-rows li { display: grid; grid-template-columns: 15em 1fr 6.5em; gap: 12px; align-items: center; }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.steps i { height: 12px; border-radius: 3px; background: var(--border); }
.steps i.on { background: var(--chart); }
.step-rows li > span:last-child { text-align: right; }
.asks-box { margin: 36px 0; padding: 20px 22px; border-radius: 18px; background: var(--surface); border: 2px solid var(--chart); }
.asks-box h2 { margin-top: 0; }
.asks { padding-left: 1.2em; margin: 0; display: grid; gap: 14px; }
.ask-q { font-weight: 600; margin: 0 0 4px; }
.ask-meta { margin: 0 0 2px; }
.chip-sub { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.lookup-pair { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; margin-bottom: 10px; max-width: 520px; }
.lookup-pair input { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
@media (max-width: 560px) {
  .nbar, .step-rows li { grid-template-columns: 1fr auto; }
  .nbar-track, .step-rows .steps { grid-column: 1 / -1; order: 3; }
  .domains li { grid-template-columns: 1fr 5em 1.5em; }
  .lookup-pair { grid-template-columns: 1fr; }
  .asks-box { padding: 16px; }
}
.hbars-wide .hbar { grid-template-columns: minmax(10em, 15em) 1fr auto; }
.hbars-wide .hbar-count { padding-left: 0; }
.hbars-wide .hbar-label .mk + * { margin-left: 0; }
@media (max-width: 560px) { .hbars-wide .hbar { grid-template-columns: 1fr auto; } }
@media (max-width: 560px) { table.sales-all:not(.sales-street) { min-width: 0; } table.sales-all:not(.sales-street) th:nth-child(4), table.sales-all:not(.sales-street) td:nth-child(4), table.sales-all:not(.sales-street) th:nth-child(6), table.sales-all:not(.sales-street) td:nth-child(6) { display: none; } }

/* ================= 網站 v4：UI/UX 審查（2026-11-04，docs/UIUX總審查-2026-11-04.md「網站 UI/UX 審查」） =================
   字級與間距對到 App 的 DS.Font、DS.Space（4 的倍數加 20）；觸控目標至少 44 px；長頁面先給五件事，其餘可跳、可收 */
:root {
  --space-xxs: 2px; --space-xs: 4px; --space-s: 8px; --space-m: 12px; --space-l: 16px; --space-group: 20px; --space-xl: 24px; --space-xxl: 32px;
  --tap: 44px;
  /* App 的字級（17 pt = 1.0625rem）：sectionTitle 22、value 17 Semibold、rowTitle 15 Semibold、support 15、rowLabel 13 Semibold 灰、caption 12、micro 11 */
  --fs-section: 1.375rem; --fs-value: 1.0625rem; --fs-support: 0.9375rem; --fs-label: 0.8125rem; --fs-caption: 0.75rem; --fs-micro: 0.6875rem;
}
/* 焦點：所有可操作的東西同一個樣子（含 summary 與 SVG 的點） */
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
summary:focus-visible, .lc-pt:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.lc-pt:focus-visible .lc-dot { fill: var(--chart); }

/* 頁首與頁尾的連結：44 px 高的點擊範圍，看起來不變 */
.site-header nav a:not(.button), .site-footer nav a { display: inline-flex; align-items: center; min-height: var(--tap); }
@media (max-width: 480px) { .site-header nav a[href$="support/"] { display: none; } .site-header nav .button-small { white-space: nowrap; } }
.site-header nav .button-small { min-height: 40px; display: inline-flex; align-items: center; }
.footer-row nav { gap: 4px 20px; }
.brand { min-height: var(--tap); align-items: center; }

/* 沒上架前的那句（appStoreLabel）不像按鈕（灰掉的按鈕看起來可以按，按了又沒反應） */
.button-disabled { background: none; border: 0; color: var(--muted); font-weight: 400; padding: 12px 4px; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-l); margin: var(--space-m) 0 0; }
/* 首頁的「Crime、Flood…」只是說明，不是按鈕：拿掉膠囊框 */
.mini-icons li { background: none; border: 0; padding: 4px 8px 4px 0; }

/* 圖表的按鈕、篩選、chip、跳轉列：44 px */
.seg, .seg-small { min-height: var(--tap); padding: 8px 14px; }
.seg-small { font-size: var(--fs-support); }
.filters select { min-height: var(--tap); }
.filters .check { min-height: var(--tap); }
.filters .check input { width: 20px; height: 20px; }
.chip { min-height: var(--tap); }
details.numbers summary { min-height: var(--tap); display: flex; align-items: center; gap: 8px; list-style: none; }
details.numbers summary::-webkit-details-marker { display: none; }
details.numbers summary::before { content: ""; width: 0.5em; height: 0.5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); flex: none; margin-right: 2px; }
details.numbers[open] > summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { details.numbers summary::before { transition: transform 0.15s ease; } }
.numbers-big > summary { font-size: var(--fs-value); }
.more-rows { margin-top: var(--space-m); }
.more-rows summary { cursor: pointer; color: var(--link); font-weight: 600; min-height: var(--tap); display: flex; align-items: center; }
.more-rows .hbars { margin-top: var(--space-s); }

/* 折線的點：看得到的 4.5，手指的範圍 14（SVG 單位） */
.lc-hit { fill: transparent; stroke: none; cursor: pointer; }
.lc-pt { cursor: pointer; outline: none; }
.lc-pt:hover .lc-dot, .lc-pt.on .lc-dot { fill: var(--chart); r: 6.5px; }
.lc-tick { font-size: 13px; }

/* 跳轉列：頂端黏著；手機上一列橫捲，不換成四列 */
.jump { position: sticky; top: 0; z-index: 5; background: var(--background); margin: var(--space-l) calc(-1 * var(--space-l)) 0; padding: var(--space-s) var(--space-l); border-bottom: 1px solid transparent; }
.jump ul { margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jump ul::-webkit-scrollbar { display: none; }
.jump li { flex: none; }
.jump a { min-height: 40px; display: inline-flex; align-items: center; font-size: var(--fs-support); padding: 6px 14px; color: var(--text); }
@supports (animation-timeline: scroll()) { .jump { border-bottom-color: var(--border); } }
main [id] { scroll-margin-top: 72px; }
@media (min-width: 820px) { .jump ul { flex-wrap: wrap; overflow: visible; } }

/* 首屏：五件事。桌面一排五格，手機每件一列（圖示在左），一個畫面看得完 */
.page-head h1 { margin-top: var(--space-xs); }
.summary { margin: var(--space-s) 0 var(--space-l); }
.tiles { gap: var(--space-s); margin: var(--space-l) 0 var(--space-s); }
@media (min-width: 820px) { .tiles-5 { grid-template-columns: repeat(5, 1fr); } .tiles-4 { grid-template-columns: repeat(4, 1fr); } .tiles-5 .tile-word { font-size: 1.4rem; } }
.tile { padding: var(--space-l); gap: var(--space-xxs); border-radius: 16px; }
.tile-name { font-size: var(--fs-label); margin-top: var(--space-s); }
.tile-detail { font-size: var(--fs-support); }
.tile-src { font-size: var(--fs-caption); padding-top: var(--space-s); }
@media (max-width: 819px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--space-m); row-gap: 0; padding: var(--space-m) var(--space-l); }
  .tile > :not(.tile-icon) { grid-column: 2; }
  .tile-icon { grid-row: 1 / span 4; }
  .tile-name { margin-top: 0; }
  .tile-word { font-size: 1.35rem; }
  .tile-src { padding-top: var(--space-xs); }
}

/* 段落節奏：h2 前 32、h3 前 24、圖之間 16（DS.Space.xxl、xl、l） */
main h2 { margin: var(--space-xxl) 0 var(--space-s); }
main h3 { margin: var(--space-xl) 0 var(--space-xs); font-size: var(--fs-value); }
main .doc h2 { margin-top: 1.6em; }
.lede-small { margin: 0 0 var(--space-s); font-size: var(--fs-support); }
.chart { padding: var(--space-l); margin: var(--space-m) 0 var(--space-s); border-radius: 16px; }
.chart figcaption { font-size: var(--fs-value); }
.chart-src, .tile-src { font-size: var(--fs-caption); line-height: 1.45; }
.small { font-size: var(--fs-support); }

/* 付費深度的那一行：一句、來源、一個安靜的連結（不是按鈕、不催） */
.in-app { padding: var(--space-m) var(--space-l); border-left: 3px solid var(--border); margin: var(--space-s) 0; }
.in-app .figline { margin: 0; }
.in-app .chart-src { margin-top: var(--space-xs); }
.in-app-link { margin: var(--space-s) 0 0; font-size: var(--fs-support); }
.in-app-link a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }

/* 成交表：手機上留 When、Street（類型在下面一行）、Price */
.cell-sub { display: none; font-size: var(--fs-label); color: var(--muted); }
@media (max-width: 560px) {
  table.sales-all:not(.sales-street) th:nth-child(3), table.sales-all:not(.sales-street) td:nth-child(3) { display: none; }
  table.sales-all:not(.sales-street) .cell-sub { display: block; }
  /* 街道頁：When、Postcode（類型在下面一行）、Price；價格一定看得到 */
  table.sales-street { min-width: 0; }
  /* 2026-11-24：要寫 table.sales.sales-street，才壓得過上面 table.sales.keep 那條（以前手機上類型出現兩次、價格被切掉） */
  table.sales.sales-street th:nth-child(3), table.sales.sales-street td:nth-child(3) { display: none; }
  table.sales-street .cell-sub { display: block; }
  table.sales-all td, table.sales-all th { padding-left: 6px; padding-right: 6px; }
  table.sales-all td:first-child { white-space: normal; }
  .hbar { gap: var(--space-xs) var(--space-m); }
}

/* 「Where this comes from」收起來（每張圖下面已經有自己的來源與日期） */
.sources-box { margin-top: 0; }

/* 載入中（area-page 第一次算十幾秒）：一條慢慢走的線，減少動態時是靜止的 */
.page-loading { padding: var(--space-xl) 0 var(--space-xxl); }
.page-loading h1 { margin-top: var(--space-l); }
.loading-bar { display: block; height: 3px; border-radius: 2px; background: var(--border); position: relative; overflow: hidden; max-width: 320px; }
.loading-bar::after { content: ""; position: absolute; inset: 0 60% 0 0; background: var(--chart); border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .loading-bar::after { animation: loading 1.6s ease-in-out infinite; }
  @keyframes loading { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
}

/* 放大到 200%（或很大的字）時：固定寬度的標籤欄改成上下排 */
@media (max-width: 720px) {
  .hbars-wide .hbar, .hbar { grid-template-columns: 1fr auto; }
  .hbar-track { grid-column: 1 / -1; order: 3; }
  .nbar, .step-rows li { grid-template-columns: 1fr auto; }
  .nbar-track, .step-rows .steps { grid-column: 1 / -1; order: 3; }
}

/* 稽核 2026-11-06（W10）：手機首屏的格子一行一件：圖示、名稱、答案同一列，說明與來源在第二行小字 */
@media (max-width: 819px) {
  .tiles { gap: var(--space-xs); }
  .tile { grid-template-columns: 28px 1fr auto; column-gap: var(--space-m); align-items: baseline; padding: var(--space-s) var(--space-m); border-radius: 12px; }
  .tile-icon { grid-row: 1; grid-column: 1; align-self: center; }
  .tile-icon .icon { width: 28px; height: 28px; padding: 5px; border-radius: 8px; }
  .tile > .tile-name { grid-column: 2; grid-row: 1; font-size: var(--fs-support); color: var(--text); }
  .tile > .tile-word { grid-column: 3; grid-row: 1; font-size: 1.05rem; text-align: right; }
  .tile > .tile-detail, .tile > .tile-src { grid-column: 2 / -1; }
  .tile-detail { font-size: var(--fs-label); color: var(--muted); }
  .tile-src { padding-top: 0; }
}

/* W18：手機上的跳轉列右邊淡出，看得出還可以捲 */
@media (max-width: 819px) {
  .jump ul { padding-right: 40px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
}

/* W1、W22：拿不到資料時的一題、問題框底下的一個動作 */
.ask-inline { margin: var(--space-s) 0; }
.asks-cta { margin: var(--space-l) 0 0; font-weight: 600; }

/* W8：首屏的 postcode 欄 */
.hero-lookup { margin: var(--space-xl) auto 0; text-align: left; }
.hero-lookup .lookup-row input { min-width: 0; }
/* 2026-11-24：還沒有訊息時那一行不佔位置（以前在欄位與房子之間空 40 px，手機上把房子再往下推） */
.hero-lookup .status:empty { min-height: 0; margin: 0; }
/* SEO 階段 0 順手修（2026-11-24）手機首屏：390×664 時房子的門整個在第一屏（以前差 25 px）。只縮空白：頁首到標題、按鈕上方、postcode 欄上方；字級與觸控目標不動 */
@media (max-width: 560px) {
  main.wrap:has(> .hero) { padding-top: var(--space-m); }
  .hero .actions { margin-top: var(--space-l); }
  .hero-lookup { margin-top: var(--space-m); }
}

/* W4：法律頁的草稿說明 */
.draft-note { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: var(--space-m) var(--space-l); font-weight: 600; }

/* W6、W11：找不到的頁與 England and Wales 以外：查詢框 */
.not-found .lookup { margin-top: var(--space-l); }

/* 分享一間房 /h/<id>/（2026-11-09）：開價一行跟 lede 同一個節奏，回 portal 是主按鈕 */
/* 分享一間房（/h/）：一張房子卡，地區小字在街名上面，開價是主角 */
.share-home { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 22px 18px; margin: 20px 0 0; }
.share-home h1 { margin: 0 0 0.35em; font-size: clamp(2rem, 7vw, 3rem); }
.share-where { margin: 0 0 6px; color: var(--muted); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em; }
.share-price { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.share-kind { margin: 6px 0 18px; color: var(--muted); font-size: 1.05rem; }
.share-home .cta-actions { margin: 0; }
.share-home .cta-actions .button { display: block; width: 100%; text-align: center; }
.share-source { margin: 12px 0 0; color: var(--muted); }
.share-area { margin-top: 2em; }

/* 全系統大檢查 2026-11-24（創辦人照建議） */
/* D2：還沒上架的那句是按鈕下面的小字，不佔一整行 */
.hero-note { margin: var(--space-s) 0 0; color: var(--muted); }
/* 項目 9：暗色下 Questions 與 Decide 的截圖還是亮色（repo 裡沒有同版面的暗色截圖）。壓暗一點，不在暗底上刺眼；有暗色截圖後改用 <picture>，拿掉 phone-light */
@media (prefers-color-scheme: dark) { .phone-light img { filter: brightness(0.72) saturate(0.92); } }
/* 項目 10：手機上 Streets nearby 先列 5 條，第 6 條起在「Show all」裡；桌面照舊 6 條 */
.hbar-narrow, .more-rows-narrow { display: none; }
@media (max-width: 560px) {
  .hbars-first > .hbar:nth-child(n+6) { display: none; }
  .more-rows .hbar-narrow { display: grid; }
  .more-rows-narrow { display: block; }
}
/* 項目 20：postcode 欄打小寫也顯示成大寫（送出時 area-lookup.js 本來就轉大寫）；placeholder 不受影響 */
#pc { text-transform: uppercase; }
#pc::placeholder { text-transform: none; }
/* 項目 20：分享頁在桌面收窄成一欄（以前房子卡與按鈕拉到 1,000 px 寬） */
.share-page { max-width: 36rem; margin: 0 auto; }
/* 項目 20：成交表裡的街名連結至少 44 px 高；負邊距吃掉格子的上下留白，列高不變太多 */
table.sales td a { display: inline-block; padding: 10px 0; margin: -8px 0; min-height: var(--tap); box-sizing: border-box; }

/* ================= SEO 階段 0（2026-11-24，docs/SEO階段0-實作.md） ================= */
/* 第一句就是答案（geo-copy.mjs）：標題下面一句，比內文大一級；「In short」是每個事實一句的清單 */
.answer { margin: var(--space-m) 0 0; font-size: var(--fs-value); line-height: 1.5; max-width: 44em; }
.facts-box { margin: var(--space-xl) 0 0; }
.facts-box h2 { margin: 0 0 var(--space-s); font-size: var(--fs-section); }
.facts { margin: 0; padding-left: 1.2em; max-width: 46em; }
.facts li { margin: 0 0 var(--space-s); font-size: var(--fs-support); line-height: 1.5; }
table.by-type th[scope="row"] { text-align: left; font-weight: 400; }


/* postcode 頁手機上次要的段落預設收起來（area-render.mjs 的 fold；沒有 JS）：標題就是 summary，右邊一個箭頭，整列 44 px 以上可點。
   561 px 以上不變：內容一律攤開（::details-content），summary 只剩標題的樣子、不能點也不進 Tab 順序（visibility: hidden，標題自己 visible）。
   不認得 ::details-content 的舊瀏覽器在桌面也是可收合的段落（看得到箭頭、點得開），內容不會不見 */
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-m);
  min-height: var(--tap); margin-top: var(--space-l); border-top: 1px solid var(--border); padding: var(--space-s) 0; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary > h2 { margin: 0; }
details.fold > summary::after { content: ""; width: 0.6em; height: 0.6em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); flex: none; margin: 0 6px 4px 0; }
details.fold[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
details.fold > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
@media (min-width: 561px) {
  @supports selector(::details-content) {
    details.fold::details-content { content-visibility: visible; display: block; }
    details.fold > summary { display: block; visibility: hidden; pointer-events: none; min-height: 0; margin: 0; border: 0; padding: 0; }
    details.fold > summary > h2 { visibility: visible; margin: var(--space-xxl) 0 var(--space-s); }
    details.fold > summary::after { display: none; }
  }
}

/* ================= 地圖與顏色刻度（2026-11-25，創辦人「需要圖像跟不同顏色的熱力圖」） =================
   刻度的顏色變數（--sq-1…5 順序色、--dv-1…7 發散色、--scale-line 外框）與 class（.sq-n、.dv-n 設 --fill 與 --ink）由 src/scale.mjs 在建置時寫在這個檔最上面，亮暗各一組。
   這裡只用 var(--fill)、var(--ink)：SVG 與 HTML 都不寫死顏色，暗色模式不用 JS。圖：src/map.mjs（伺服器端畫的 inline SVG） */
.first { margin: var(--space-l) 0 0; }
.first .chart-map { margin-top: 0; }
@media (min-width: 820px) {
  .first-with-map { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: var(--space-l); align-items: start; }
  .first-with-map .tiles { margin-top: 0; }
}
.map-title { font-family: inherit; font-weight: 600; letter-spacing: -0.005em; font-size: var(--fs-value); margin: 0 0 var(--space-s) !important; }
.map { display: block; width: 100%; height: auto; }
.map-wide { display: none; }
@media (min-width: 560px) { .map-narrow { display: none; } .map-wide { display: block; } }
.map-bg { fill: var(--background); }
/* 每個有顏色的格子或點都有 1 px 外框（--scale-line），格子裡有數字（--ink）：最淺兩級對底色的對比不到 3 */
.map-cell { fill: var(--fill); stroke: var(--scale-line); stroke-width: 1; }
.map-cell-number { fill: var(--surface); }
.map-cell-few { fill: var(--background); stroke-dasharray: 3 3; }
.map-dash { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.map-n { fill: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.map-n-grey { fill: var(--muted); }
.map-dot { fill: var(--surface); stroke: var(--scale-line); stroke-width: 1; }
.map-road { fill: none; stroke: var(--text); stroke-opacity: 0.55; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; }
.map-ring { fill: none; stroke: var(--muted); stroke-opacity: 0.55; stroke-width: 1; stroke-dasharray: 2 5; }
.map-ring-label { font-size: 10.5px; fill: var(--muted); paint-order: stroke; stroke: var(--background); stroke-width: 3px; stroke-linejoin: round; font-variant-numeric: tabular-nums; }
.map-label { font-size: 12px; font-weight: 600; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; }
.map-wide .map-label { font-size: 13px; }
.map a .map-label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; cursor: pointer; }
.map-north path { fill: var(--muted); }
.map-north text { font-size: 10px; font-weight: 700; fill: var(--muted); }
/* 這個 postcode：森林綠的圈（暗色是奶油色的圈）。鮭魚粉對奶油底只有 2.6，不當標記 */
.map-here-halo { fill: var(--surface); }
.map-here-ring { fill: var(--surface); stroke: var(--text); stroke-width: 3; }
.map-here-dot { fill: var(--text); }
.map-here-label { font-size: 13px; font-weight: 700; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.map-wide .map-here-label { font-size: 14px; }
.map-square { fill: var(--surface); stroke: var(--muted); stroke-opacity: 0.6; stroke-width: 1; stroke-dasharray: 3 4; }
.map-spot { fill: var(--fill); stroke: var(--scale-line); stroke-width: 1; }
.map-spot-n { fill: var(--ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; }
.map-hint { margin: var(--space-xs) 0 0; font-size: var(--fs-label); color: var(--muted); display: flex; align-items: center; gap: 6px; }
span.sw.sw-here { background: var(--surface); border: 3px solid var(--text); border-radius: 50%; width: 13px; height: 13px; }
/* 手機第一屏：標題與那一句答案縮一級，390×664 時地圖至少露出一半 */
@media (max-width: 559px) { .page-head h1 { font-size: 2.3rem; } .page-head .lede { font-size: 1.05rem; margin-bottom: 0; } .page-head .answer { font-size: var(--fs-support); margin-top: var(--space-s); } .first { margin-top: var(--space-m); } }
table.map-table th[scope="row"] { font-weight: 400; color: var(--text); font-size: inherit; }

/* 圖例：色塊加範圍，標題寫單位與期間 */
.scale-legend { margin: var(--space-s) 0 0; }
.scale-title { margin: 0; font-size: var(--fs-label); font-weight: 600; color: var(--muted); }
.scale-legend ul { list-style: none; padding: 0; margin: var(--space-xs) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-m); font-size: var(--fs-label); font-variant-numeric: tabular-nums; }
.scale-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--fill); border: 1px solid var(--scale-line); flex: none; }
.sw-few { background: var(--background); border-style: dashed; }
.sw-number { background: var(--surface); }
.sw-dot { background: var(--surface); border-radius: 50%; }
.sw-square { background: none; border-radius: 2px; }

/* 摘要卡與圖裡的刻度條：這裡那一段有框（不只靠顏色），兩端有字 */
.tile-strip { display: block; margin-top: var(--space-xs); }
.strip-scale { display: block; }
.strip-segs { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; padding: 3px 0; }
.strip-segs i { height: 10px; border-radius: 2px; background: var(--fill); border: 1px solid var(--scale-line); }
.strip-segs i.on { height: 16px; margin: -3px 0; outline: 2.5px solid var(--text); outline-offset: 1px; }
.strip-ends { display: flex; justify-content: space-between; gap: var(--space-s); font-size: var(--fs-micro); color: var(--muted); line-height: 1.4; margin-top: 2px; }
.strip-range { display: block; position: relative; height: 10px; margin: 3px 0; border-radius: 5px; background: var(--fill); border: 1px solid var(--scale-line); }
.strip-range i { position: absolute; top: -4px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 2px var(--surface); }
.strip-dots { display: block; position: relative; height: 14px; margin: 0 5px; background: linear-gradient(var(--muted), var(--muted)) center / 100% 1px no-repeat; }
.strip-dots i { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--chart); }
.strip-dots i.on { background: var(--chart); }
/* 桌面：地圖旁邊的五格用手機那種一列一件的排法（圖示、名稱、答案同一列），一欄排下來跟地圖差不多高 */
@media (min-width: 820px) {
  .first-with-map .tiles { grid-template-columns: 1fr; gap: var(--space-xs); }
  .first-with-map .tile { display: grid; grid-template-columns: 28px 1fr auto; column-gap: var(--space-m); row-gap: 0; align-items: baseline; padding: var(--space-s) var(--space-m); border-radius: 12px; }
  .first-with-map .tile-icon { grid-row: 1; grid-column: 1; align-self: center; }
  .first-with-map .tile-icon .icon { width: 28px; height: 28px; padding: 5px; border-radius: 8px; }
  .first-with-map .tile > .tile-name { grid-column: 2; grid-row: 1; margin-top: 0; font-size: var(--fs-support); color: var(--text); }
  .first-with-map .tile > .tile-word { grid-column: 3; grid-row: 1; font-size: 1.15rem; text-align: right; }
  .first-with-map .tile > .tile-detail, .first-with-map .tile > .tile-src, .first-with-map .tile > .tile-strip { grid-column: 2 / -1; }
  .first-with-map .tile-detail { font-size: var(--fs-label); color: var(--muted); }
  .first-with-map .tile-src { padding-top: 0; }
}
@media (max-width: 819px) { .tile > .tile-strip { grid-column: 2 / -1; } }
.glance-note { margin: var(--space-s) 0 0; font-size: var(--fs-label); }

/* 既有的圖換成刻度的顏色：只有「越多越深」有意思的才換（剝奪程度、淹水、radon、分貝）；折線、類型、街、車站照舊一個顏色 */
.dec { background: var(--fill, var(--border)); color: var(--ink, var(--muted)); border: 1px solid var(--scale-line); }
.dec-on { background: var(--fill, var(--chart)); color: var(--ink, var(--surface)); outline: 3px solid var(--text); outline-offset: 2px; position: relative; z-index: 1; }
.steps-scale i { background: var(--fill); border: 1px solid var(--scale-line); }
.steps-scale i.on { background: var(--fill); outline: 2.5px solid var(--text); outline-offset: 2px; }
.nbar-fill { background: var(--fill, var(--chart)); border: 1px solid var(--scale-line); }

/* 圖下面那一句之外的說明：收起來（字還在 HTML 裡） */
details.note { margin: 0 0 var(--space-s); }
details.note > summary { cursor: pointer; color: var(--muted); font-size: var(--fs-support); min-height: var(--tap); display: inline-flex; align-items: center; gap: 8px; list-style: none; }
details.note > summary::-webkit-details-marker { display: none; }
details.note > summary::before { content: ""; width: 0.45em; height: 0.45em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); flex: none; }
details.note[open] > summary::before { transform: rotate(45deg); }
details.note > p { margin: 0 0 var(--space-s); max-width: 46em; }
/* 犯罪地圖：桌面不拉到整欄寬（一格 400 m 的圖放到 1,000 px 寬太空），圖在左、圖例與那一句在右 */
.chart-map-crime .map { max-width: 520px; }
@media (min-width: 820px) {
  .chart-map-crime { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); column-gap: var(--space-xl); align-items: start; }
  .chart-map-crime > .map { grid-row: 1 / span 5; }
  .chart-map-crime > :not(.map) { grid-column: 2; }
  .chart-map-crime .scale-legend { margin-top: 0; }
}

/* ================= 街道頁第一屏（2026-11-25）：1995 年以來每一筆的散布圖、房型 × 年份的熱力表（src/street-charts.mjs） =================
   房型用顏色加形狀（發散色兩端各取深淺一級：海軍藍深、淺，赭色深、淺）；熱力表用順序色，5 筆以上才上色、3 到 4 筆灰色數字、不到 3 筆留白 */
.first-street .chart { margin-top: 0; }
.first-street > .chart + .chart { margin-top: var(--space-m); }
@media (min-width: 820px) {
  .first-with-heat { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: var(--space-l); align-items: start; }
  .first-with-heat > .chart + .chart { margin-top: 0; }
}
.sc { display: block; width: 100%; height: auto; overflow: visible; }
.sc-wide { display: none; }
@media (min-width: 560px) { .sc-narrow { display: none; } .sc-wide { display: block; } }
.sc-grid { stroke: var(--border); stroke-width: 1; }
.sc-base, .sc-xtick { stroke: var(--muted); stroke-width: 1; }
.sc-tick { fill: var(--muted); font-variant-numeric: tabular-nums; }
.sc-cap { font-style: italic; }
.sc-line { fill: none; stroke: none; }
.sc-pt { fill: var(--fill); stroke: var(--surface); stroke-width: 0.9; fill-opacity: 0.92; }
.sc-ring { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.sc-legend { margin-top: var(--space-xs); }
.sc-legend .muted { font-variant-numeric: tabular-nums; }
/* 類型的記號（圖例、價格點列、類型橫條）：有刻度 class 的換成那一格的顏色，加外框 */
.mk.dv-1, .mk.dv-2, .mk.dv-6, .mk.dv-7 { background: var(--fill); }
.mk-circle.dv-1, .mk-circle.dv-2, .mk-circle.dv-6, .mk-circle.dv-7, .mk-square.dv-1, .mk-square.dv-2, .mk-square.dv-6, .mk-square.dv-7 { box-shadow: 0 0 0 1px var(--scale-line); }
.hbar-fill.dv-1, .hbar-fill.dv-2, .hbar-fill.dv-6, .hbar-fill.dv-7 { background: var(--fill); border: 1px solid var(--scale-line); }
.chart-heat .scale-legend { margin-top: var(--space-s); }
table.heat { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-variant-numeric: tabular-nums; margin: 0 -3px; width: calc(100% + 6px); }
table.heat th { font-size: var(--fs-label); font-weight: 600; color: var(--muted); text-align: center; padding: 2px 0 4px; line-height: 1.2; }
table.heat th[scope="row"] { text-align: left; white-space: nowrap; padding: 0 4px 0 0; width: 4.9em; }
table.heat thead th:first-child { text-align: left; width: 4.9em; }
td.hc { background: var(--fill); color: var(--ink); border: 1px solid var(--scale-line); border-radius: 6px; text-align: center; padding: 5px 2px 4px; line-height: 1.15; }
.hc-v { display: block; font-weight: 650; font-size: var(--fs-support); white-space: nowrap; }
.hc-n { display: block; font-size: var(--fs-micro); opacity: 0.85; }
td.hc-number { background: var(--surface); color: var(--muted); }
td.hc-few { background: var(--background); border-style: dashed; color: var(--muted); }
@media (max-width: 479px) { .wide-only { display: none; } .hc-v { font-size: var(--fs-label); } }

/* ================= 首頁的範例小地圖（2026-11-25）：AL3 4QT 的成交地圖，點了到那一頁。放在房子後面：手機在房子下面、820 以上是首屏第二列，房子不動 ================= */
.hero-example { display: grid; gap: var(--space-m); text-align: left; margin-top: var(--space-xl); padding: var(--space-l); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.example-map { display: block; max-width: 380px; width: 100%; margin: 0 auto; border-radius: 12px; }
.example-map .map { display: block; width: 100%; height: auto; }
.example-map:hover .map-cell { stroke: var(--text); }
.hero-example h2 { margin: 0 0 var(--space-xs); font-size: clamp(1.45rem, 3vw, 1.85rem); }
.hero-example .kicker { margin: 0; }
.example-line { margin: 0; font-size: var(--fs-value); }
.example-go { margin: var(--space-m) 0 0; }
.hero-example .chart-src { margin-top: var(--space-s); }
@media (min-width: 820px) {
  .hero-example { grid-column: 1 / -1; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: var(--space-xxl); align-items: center; margin-top: 0; padding: var(--space-l) var(--space-xl); }
  .example-map { margin: 0; }
  .example-text { max-width: 34em; }
}
/* 沒有熱力表（成交太少）：散布圖不拉到整欄寬（字跟著放大太多） */
.first-street:not(.first-with-heat) .chart-sc { max-width: 720px; }
/* 平板：熱力表在散布圖下面一整欄寬時不拉太寬（格子太扁） */
@media (min-width: 560px) and (max-width: 819px) { .chart-heat table.heat { max-width: 560px; } }
