/* PetSOS 公開測試頁（首頁＋互動預覽＋候補登記）— mobile-first, no dependencies */
:root {
  /* 2026-11-19 Jenny：「紅配綠太沒有質感」→ 夜藍＋陶土＋燕麥；再來「藍跟橘還是太壓迫」→ 她指定梅紫 #8E4585＋玫瑰 #8F4654，底色燕麥、SOS 磚紅不變。 */
  --bg: #f6f1ea;            /* 燕麥 */
  --surface: #fffdf9;
  --surface-2: #faf5ee;
  --ink: #23252d;
  --muted: #635c57;
  --line: #e5dcd1;
  --primary: #8F4654;       /* 玫瑰（Jenny 指定），白字 6.6:1 */
  --primary-soft: #f6e8eb;
  --teal: #8E4585;          /* 梅紫（Jenny 指定；變數名沿用 teal），白字 6.3:1 */
  --teal-soft: #f5eaf3;
  --sos: #b03a2c;           /* 磚紅，白字 6:1 */
  --sos-soft: #f9e8e4;
  --warn-bg: #fbf1dc;
  --warn-ink: #8E4727;      /* 鏽橘（Jenny 給的色票 coolors 024b3a-8e4585-6f6d98-8e4727）：提醒文字 */
  --ok: #024B3A;
  --ok-soft: #e4efeb;
  --lav: #6F6D98;           /* 薰衣草灰紫（色票）：預覽列、導覽、原則圖示；白字 4.9:1 */
  --lav-soft: #edecf4;
  --lav-ink: #4f4d78;
  --forest: #024B3A;        /* 深林綠（色票）：急診電話、完成；白字 10:1 */
  --forest-soft: #e4efeb;
  --gold: #ffe9b8;          /* 燈的顏色，只用在梅紫底上 */
  --line-green: #06c755;
  --focus: #8E4585;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(35, 37, 45, .05), 0 4px 14px rgba(35, 37, 45, .07);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ebe3d8;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
  line-height: 1.55;
}

.shell {
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) {
  .shell { box-shadow: 0 0 0 1px var(--line), 0 10px 40px rgba(35, 37, 45, .12); }
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 50;
  background: var(--surface); padding: 12px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
main:focus, h1:focus, h2:focus { outline: none; }
main:focus-visible, h1:focus-visible { outline: 3px solid var(--focus); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
/* 識別 v1.0（2026-11-26）：頂端用主標（字標＋中文，向量 logo.svg），管理頁用字標 logo-word.svg */
.brand-logo { display: block; height: 50px; width: auto; flex: none; }
.brand-logo.word { height: 22px; }
.brand-sub { color: var(--muted); font-size: .875rem; }
.drill-badge {
  font-size: .875rem; font-weight: 700;
  background: var(--warn-bg); color: var(--warn-ink);
  border: 1px dashed #c99a3b; border-radius: 999px; padding: 2px 8px;
  white-space: nowrap;
}
.line-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: .875rem; cursor: pointer;
}
.line-btn .count {
  position: absolute; top: -6px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 999px; background: var(--sos); color: #fff;
  font-size: .875rem; font-weight: 700; line-height: 22px; text-align: center;
}

.intro {
  margin: 0; padding: 14px 16px;
  background: var(--warn-bg); color: var(--warn-ink);
  font-size: .9rem; border-bottom: 1px solid #f0dcaa;
}
.intro.compact { padding: 8px 16px 10px; font-size: .875rem; }
.intro h2 { font-size: 1.15rem; margin: 0 0 6px; }
.intro p { margin: 0 0 8px; }
.intro ul { margin: 0 0 12px; padding-left: 1.2em; }
.intro li + li { margin-top: 10px; }
.intro li .intro-link { display: flex; margin-top: 6px; }
.intro-links { display: flex; flex-wrap: wrap; gap: 8px; }
.intro-link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 6px 12px;
  border: 1px solid #d9b866; border-radius: 12px;
  background: #fffdf6; color: var(--warn-ink);
  font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.intro-link.plain { background: transparent; border-color: transparent; text-decoration: underline; font-weight: 600; }
.intro-link:active { background: #fbe6b0; }
.roles-cap { margin: 12px 16px 0; font-size: .875rem; color: var(--muted); }

/* ---------- Role switch ---------- */
.roles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin: 6px 16px 0; padding: 4px;
  background: #efe7dc; border-radius: 14px;
}
.roles button {
  min-height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.roles button[aria-pressed="true"] {
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow);
}

/* ---------- Guide ---------- */
.guide {
  margin: 12px 16px 0; padding: 10px 12px;
  background: var(--lav-soft); color: var(--lav-ink);
  border-radius: 12px; font-size: .875rem;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.guide:empty { display: none; }
/* 真的頁面：預覽用的東西收起來；預覽裡：網站用的東西收起來（2026-11-18 改版） */
body.on-site .roles, body.on-site .roles-cap, body.on-site .line-btn, body.on-site .debug, body.on-site .guide { display: none; }
body.in-preview .top-link, body.on-landing .drill-badge { display: none; }
/* 預覽裡頂端固定列標「預覽」：捲到哪裡都看得到（走查 #10） */
body.in-preview .drill-badge { background: var(--lav); color: #fff; border-color: var(--lav); }
body.embed .foot, body.embed .debug { display: none; }
body:not(.show-debug) .debug { display: none; } /* 測試用，網址加 ?debug 才出現 */
.guide .step { font-weight: 700; }
.guide p { margin: 0; flex: 1 1 200px; }
.guide .btn { min-height: 44px; padding: 6px 12px; font-size: .875rem; }

/* ---------- Main ---------- */
main { padding: 12px 16px 24px; flex: 1; }
h1 { font-size: 1.35rem; margin: 6px 0 4px; line-height: 1.3; }
h2 { font-size: 1.05rem; margin: 0 0 8px; }
h3 { font-size: .95rem; margin: 0 0 6px; }
p { margin: 0 0 10px; }
.lead { color: var(--muted); margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin: 0 0 12px;
  box-shadow: var(--shadow);
}
.card.soft { background: var(--surface-2); box-shadow: none; }
.card.warn { background: var(--warn-bg); border-color: #f0d49a; color: var(--warn-ink); box-shadow: none; }
.card.danger { background: var(--sos-soft); border-color: #efc6bd; color: #6e1d14; box-shadow: none; }
.card.ok { background: var(--ok-soft); border-color: #c9ddd5; box-shadow: none; }
.card.teal { background: var(--teal-soft); border-color: #e6d0e2; box-shadow: none; }
.card.dashed { border-style: dashed; box-shadow: none; background: transparent; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 8px; }
.grow { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 10px 16px;
  border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem;
  cursor: pointer; text-decoration: none; text-align: center;
}
.btn.block { display: flex; width: 100%; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.teal { background: var(--teal); color: #fff; }
.btn.danger { background: var(--sos); color: #fff; }
.btn.outline { background: var(--surface); color: var(--ink); border-color: #d6cabb; }
.btn.ghost { background: transparent; color: var(--primary); border-color: transparent; }
.btn.small { min-height: 44px; padding: 6px 12px; font-size: .875rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-row.three { grid-template-columns: 1fr 1fr 1fr; }

.sos-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; min-height: 150px; margin: 4px 0 12px;
  border: 0; border-radius: 24px;
  background: radial-gradient(circle at 30% 20%, #c24a39, var(--sos) 70%);
  color: #fff; font: inherit; cursor: pointer;
  box-shadow: 0 8px 22px rgba(176, 58, 44, .26);
}
.sos-btn strong { font-size: 2rem; letter-spacing: .06em; }
.sos-btn span { font-size: .9rem; opacity: .95; }
/* Jenny 11-21：SOS 要有閃動感。紅圈往外擴散＋按鈕邊緣亮一下，約 1.8 秒一次
 * （遠低於每秒 3 次閃爍的安全上限）。亮光只在邊緣，中間白字的對比不受影響。
 * 手機開「減少動態效果」時會停（見 prefers-reduced-motion）。 */
.sos-btn { animation: sos-pulse 1.8s ease-out infinite; }
@keyframes sos-pulse {
  0%   { box-shadow: 0 8px 22px rgba(176, 58, 44, .26), 0 0 0 0 rgba(176, 58, 44, .5),   inset 0 0 0 0 rgba(255, 214, 204, 0); }
  30%  { box-shadow: 0 8px 22px rgba(176, 58, 44, .26), 0 0 0 6px rgba(176, 58, 44, .3),  inset 0 0 22px 2px rgba(255, 214, 204, .45); }
  75%  { box-shadow: 0 8px 22px rgba(176, 58, 44, .26), 0 0 0 12px rgba(176, 58, 44, 0),  inset 0 0 22px 0 rgba(255, 214, 204, 0); }
  100% { box-shadow: 0 8px 22px rgba(176, 58, 44, .26), 0 0 0 0 rgba(176, 58, 44, 0),     inset 0 0 0 0 rgba(255, 214, 204, 0); }
}

.back {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 4px 8px 4px 0;
  border: 0; background: none; color: var(--primary);
  font: inherit; font-weight: 600; cursor: pointer;
}

/* ---------- Forms ---------- */
.field { margin: 0 0 14px; }
.field > label, .field > .label, fieldset legend {
  display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px;
}
/* 勾選列放在 .field 裡時，不要被上面那條改成 block（走查 #7：勾勾跑到字的左上角，看起來像壞掉） */
.field > label.check { display: flex; font-weight: 400; font-size: 1rem; margin-bottom: 0; }
.req { color: var(--sos); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: .875rem; }
.hint { font-size: .875rem; color: var(--muted); margin-top: 4px; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid #d8cdbf; border-radius: 12px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem;
}
textarea { min-height: 76px; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--sos); background: #fffafa;
}
.error { color: var(--sos); font-size: .875rem; font-weight: 600; margin-top: 4px; }
.error:empty { display: none; }
/* 候補登記：防機器人的隱藏欄位（真人看不到）、長網址換行 */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.break { overflow-wrap: anywhere; }
/* Turnstile：平常是空的，需要人動手時才出現在畫面下方 */
.ts-box { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; }

/* 管理頁（admin/）：數字方塊只用文字色，不靠顏色分辨；表格數字對齊 */
.kpi { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat .label { margin: 0; font-size: .875rem; color: var(--muted); }
.stat .value { margin: 2px 0 0; font-size: 1.75rem; font-weight: 650; line-height: 1.2; }
.stat .note { margin: 2px 0 0; font-size: .875rem; color: var(--muted); }
.hero-fig { margin: 2px 0 6px; font-size: 3.5rem; font-weight: 650; line-height: 1.05; }
.data { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: .9rem; }
.data caption { text-align: left; font-weight: 700; padding: 4px 0; }
.data th, .data td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data thead th { color: var(--muted); font-weight: 600; }
.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data tbody th { font-weight: 500; overflow-wrap: anywhere; }
select:disabled { background: #f3eee7; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset[aria-invalid="true"] .choices { outline: 2px solid var(--sos); outline-offset: 3px; border-radius: 12px; }

.choices { display: grid; gap: 8px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choices.three { grid-template-columns: 1fr 1fr 1fr; }
.choices.four { grid-template-columns: repeat(4, 1fr); }
.choice {
  position: relative; display: flex; align-items: flex-start; gap: 8px;
  min-height: 46px; padding: 10px 12px;
  border: 1px solid #d8cdbf; border-radius: 12px; background: #fff;
  cursor: pointer; font-size: .92rem;
}
.choice input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; background: #f3eee7; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice.center { justify-content: center; align-items: center; text-align: center; }
.choice.center input { position: absolute; opacity: 0; pointer-events: none; }
.choice .emoji { font-size: 1.5rem; }

.check {
  display: flex; gap: 10px; align-items: center; /* 走查 #6：勾勾對齊文字 */
  padding: 10px 12px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer;
}
.check input { width: 24px; height: 24px; margin-top: 0; flex: none; accent-color: var(--primary); } /* 走查 #5：勾勾太小，手指不好點 */

/* ---------- Content bits ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  font-size: .875rem; font-weight: 700;
  background: #efe7dc; color: var(--ink);
}
.pill.sos { background: var(--sos-soft); color: #7a2117; }
.pill.teal { background: var(--teal-soft); color: #5c2a56; }
.pill.ok { background: var(--ok-soft); color: var(--forest); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.drill { background: var(--warn-bg); color: var(--warn-ink); border: 1px dashed #c99a3b; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.pet-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.avatar {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 16px; background: var(--primary-soft); font-size: 1.8rem;
}
.avatar.sm { width: 40px; height: 40px; font-size: 1.3rem; border-radius: 12px; }

ul.clean { list-style: none; padding: 0; margin: 0; }
ul.dots { padding-left: 1.2em; margin: 0 0 8px; }
ul.dots li { margin: 2px 0; }

.vis-grid { display: grid; gap: 10px; }
.vis-col h3 { display: flex; align-items: center; gap: 6px; }

.countdown { font-variant-numeric: tabular-nums; font-weight: 700; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 8px 0 4px; list-style: none; padding: 0; }
.stepper li {
  text-align: center; font-size: .875rem; color: var(--muted);
  padding-top: 10px; border-top: 4px solid #e5dbcf;
}
.stepper li.done { color: var(--teal); border-top-color: var(--teal); font-weight: 700; }
.stepper li.current { color: var(--ink); border-top-color: var(--primary); font-weight: 700; }

.offer { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; margin-bottom: 10px; }
.offer.superseded, .offer.withdrawn, .offer.expired { opacity: .6; }
.offer.accepted { border-color: var(--teal); background: var(--teal-soft); }

.batch { font-size: .875rem; }
.batch-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 6px 0; }
.batch-stats div { background: var(--surface-2); border-radius: 10px; padding: 6px 4px; text-align: center; }
.batch-stats b { display: block; font-size: 1.05rem; }

.chat { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; padding: 4px 0; }
.msg { max-width: 82%; padding: 8px 10px; border-radius: 14px; font-size: .9rem; }
.msg .meta { display: block; font-size: .875rem; color: var(--muted); }
.msg.me { align-self: flex-end; background: var(--primary-soft); border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: #efebe6; border-bottom-left-radius: 4px; }
.msg.sys { align-self: center; background: transparent; color: var(--muted); font-size: .875rem; text-align: center; max-width: 100%; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; }
.quick button {
  flex: none; min-height: 44px; padding: 4px 10px;
  border: 1px solid #d8cdbf; border-radius: 999px; background: #fff;
  font: inherit; font-size: .875rem; cursor: pointer;
}
.chat-form { display: flex; gap: 6px; }
.chat-form input { flex: 1; }

/* ---------- Mock LINE ---------- */
.line-mock {
  background: #8cabd9; border-radius: var(--radius); padding: 12px;
  margin-bottom: 12px; border: 3px dashed #4a6fa5;
}
.line-mock-head {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 10px; padding: 6px 10px; margin-bottom: 10px;
  font-size: .875rem; font-weight: 700;
}
.line-mock-head .oa { width: 28px; height: 28px; border-radius: 50%; background: var(--line-green); display: grid; place-items: center; color: #fff; }
.bubble {
  background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.bubble.unread { box-shadow: 0 0 0 3px #ffd54a; }
.bubble .tag { display: inline-block; margin-bottom: 4px; }
.bubble h3 { margin-bottom: 4px; }
.bubble time { font-size: .875rem; color: var(--muted); }

/* ---------- Debug ---------- */
.debug { margin: 0 16px 12px; background: #fff; border: 1px dashed #cfc3b5; border-radius: 12px; font-size: .875rem; }
.debug summary { padding: 10px 12px; cursor: pointer; font-weight: 700; color: var(--muted); min-height: 44px; display: flex; align-items: center; }
.debug > div { padding: 0 12px 12px; }
.debug code { background: #f1ece5; padding: 1px 5px; border-radius: 4px; font-size: .875rem; }
.debug ol { padding-left: 1.2em; margin: 4px 0; max-height: 200px; overflow: auto; }
.debug table { width: 100%; border-collapse: collapse; }
.debug td, .debug th { text-align: left; padding: 2px 4px; border-bottom: 1px solid #ede6dd; vertical-align: top; }

.foot { padding: 8px 16px 28px; font-size: .875rem; color: var(--muted); text-align: center; }

/* ---------- Toast / dialog ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(20px);
  width: min(408px, calc(100% - 32px));
  padding: 12px 14px; border-radius: 14px;
  background: #5a2b55; color: #fff; font-size: .9rem;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 40;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

dialog {
  width: min(400px, calc(100% - 32px)); max-height: calc(100vh - 40px);
  border: 0; border-radius: 18px; padding: 18px;
  color: var(--ink); background: var(--surface);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
dialog::backdrop { background: rgba(90, 43, 85, .45); }
dialog h2 { font-size: 1.1rem; }
.dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.dlg-actions > :only-child { grid-column: 1 / -1; } /* 只有一顆鍵（例如「關閉」）就滿版，不要擠在左半邊 */
.dlg-done { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 360px) {
  .line-btn-text { display: none; }
  .choices.four { grid-template-columns: 1fr 1fr; }
}

/* ---------- v2.2 additions ---------- */
.btn.onway { background: #f6e3c4; color: #5a3500; border-color: #e2c08a; margin-top: 8px; }
.pill.onway { background: #f6e3c4; color: #5a3500; }
.pill.urgent { background: var(--sos); color: #fff; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.attrib { margin: 8px 0 0; }
.vet-choice .row { gap: 4px; }
.vet-choice strong { font-size: .9rem; }
.guide .taps { margin-left: auto; font-size: .875rem; color: #6b3463; background: rgba(255,255,255,.6); border-radius: 999px; padding: 2px 8px; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: .875rem; max-height: 220px; overflow-y: auto; }
.timeline li { padding: 6px 0 6px 14px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.timeline time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 4px; }
.team li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.call {
  text-align: center; background: linear-gradient(180deg, #8E4585, #5c2a56); color: #fff;
  border-radius: 24px; padding: 24px 16px 20px; margin-top: 4px;
}
.call h1 { color: #fff; font-size: 1.6rem; }
.call-avatar { width: 96px; height: 96px; margin: 12px auto 6px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; font-size: 3rem; }
.call-status { font-size: 1rem; margin-bottom: 12px; }
.call-note { color: #ead7e6; }
.call-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.call-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 72px; border: 0; border-radius: 18px; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font: inherit; font-size: .875rem;
}
.call-btn span { font-size: 1.5rem; }
.call-btn[aria-pressed="true"] { background: #fff; color: #5c2a56; }
.call-btn.end { background: var(--sos); }
.call :focus-visible { outline-color: #ffd54a; }

/* ---------- v2.3 additions ---------- */
.pill.tag { background: #f0ebe4; color: #45423f; font-weight: 600; }
.pill.lead { background: #fff1b8; color: #5c4400; border: 1px solid #e8c95a; }
.offer.is-lead { box-shadow: 0 0 0 2px #e8c95a inset; }
.lead-note { margin: 0 0 8px; padding: 8px 10px; background: #fff7d6; border-radius: 10px; font-size: .875rem; color: #4d3a00; }
.pending-note { margin: 6px 0 0; padding: 8px 10px; background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; font-weight: 600; }
.group-label { margin: 6px 0 0; font-weight: 700; color: var(--muted); }
.vet-unknown { margin-top: 8px; border: 1px dashed #d8cdbf; border-radius: 12px; padding: 8px 10px; background: #fff; }
.vet-unknown summary { cursor: pointer; min-height: 44px; }
/* 可點的 <summary> 在手機上至少 44px 高 */
summary { padding-block: 10px; }
.vet-card p { margin-bottom: 4px; }
.link-preview { word-break: break-all; font-family: ui-monospace, Menlo, monospace; font-size: .875rem; }
.line-inapp { margin-bottom: 10px; }
.undo {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(408px, calc(100% - 32px)); z-index: 45;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px;
  background: #5a2b55; color: #fff; font-size: .9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.undo[hidden] { display: none; }
.undo span { flex: 1; }
.undo .countdown { font-size: 1.1rem; color: #ffd54a; }
.undo-btn { background: #ffd54a; color: #5a2b55; min-height: 44px; }
.undo-btn:focus-visible { outline-color: #fff; }
body:has(#undo:not([hidden])) .toast { bottom: 96px; }
body:has(#undo:not([hidden])) main { padding-bottom: 104px; } /* 復原列不要蓋住最下面的卡片 */
.vet-choice .grow > span { display: block; margin-top: 2px; }
.area-head { font-size: .875rem; margin: 10px 0 6px; color: var(--muted); }

/* ---------- Hover / touch ----------
   Hover only where a real pointer can hover. On a touch screen a tap sets
   :hover and it sticks until the next tap somewhere else, so every :hover rule
   lives in this block and touch gets a brief :active press instead.
   Keep new :hover rules in here (pet-platform/tests/hover.test.mjs fails otherwise). */
/* 2026-11-18：急診電話、勘誤、登入 */
.btn.line { background: var(--line-green); color: #fff; }
.link-btn {
  background: none; border: 0; padding: 0 2px; min-height: 44px;
  font: inherit; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-btn.small { font-size: .875rem; }
/* 內文裡的一般連結（個資告知、官網）跟 link-btn 同色，不要瀏覽器預設藍 */
#app a:not(.btn), dialog a:not(.btn), body.on-doc .card a:not(.btn) { color: var(--teal); text-underline-offset: 3px; }
#app a:not(.btn):active, dialog a:not(.btn):active { opacity: .6; }
.link-btn:active { opacity: .6; }
.tel-row { display: grid; gap: 8px; margin: 0 0 8px; }
.tel-row .tel { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.vet-card .hours { margin: 2px 0 4px; font-size: .95rem; }
.vet-more { margin: 0 0 8px; font-size: .875rem; }
.vet-more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--teal); font-weight: 700; }
/* 每間急診的來源（2026-12-02）。字小，但手指按得到：上下各留 12px 的按區，不推開版面 */
.vet-src { margin: 0 0 8px; line-height: 1.6; }
.vet-src a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.src-date { white-space: nowrap; }
/* 用我的位置（2026-12-02）：定位不了才展開選大概的地方 */
.loc-fallback { margin-top: 4px; }
.loc-fallback summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--teal); font-weight: 700; }
.near-link { margin: 0 0 12px; }
.stack-tight { display: grid; gap: 8px; }
.foot .link-btn { font-size: .875rem; }
#report-dlg textarea { min-height: 84px; }
#feedback-dlg textarea { min-height: 120px; }
/* 急診電話圖卡：頁面上只露出上半部，點開看整張 */
.er-card-thumb { display: block; max-height: 260px; overflow: hidden; border-radius: 14px; border: 1px solid #e6d0e2; }
.er-card-thumb img { display: block; width: 100%; height: auto; }
#feedback-dlg .choices { margin-bottom: 4px; }
#report-dlg .choices { margin-bottom: 4px; }

@media (hover: hover) {
  .btn.line:hover { filter: brightness(.95); }
  .link-btn:hover { color: #5c2a56; }
  #app a:not(.btn):hover, dialog a:not(.btn):hover { color: #5c2a56; }
  .btn.primary:hover { background: #7a3a47; }
  .btn.teal:hover { background: #7a3a72; }
  .btn.outline:hover { background: var(--surface-2); }
  .btn.ghost:hover { background: var(--primary-soft); }
  .btn.onway:hover { background: #f0d6ab; }
  .sos-btn:hover { filter: brightness(1.05); }
  .intro-link:hover { background: #fff6da; }
}
.btn, .sos-btn, .intro-link, .line-btn, .back, .roles button, .quick button, .call-btn,
.choice, .check, summary {
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not([disabled]), .sos-btn:active, .line-btn:active, .back:active,
.roles button:active, .quick button:active, .call-btn:active,
.choice:active, .check:active, summary:active {
  filter: brightness(.92);
}

/* =====================================================================
 * 2026-11-18 改版：首頁、預覽列、急診入口、圖示
 * Jenny：「頁面裡寫一堆模擬、假資料，感覺鳥鳥的，不要有廉價感。」
 * 做法：少框線、多留白、大標題、一套線條圖示；「虛構」只在預覽列說一次。
 * ===================================================================== */
.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.2em;
}
.btn .ico { width: 1.15em; height: 1.15em; }
.ico.step-ico { width: 26px; height: 26px; }

/* topbar */
.brand {
  background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left;
  cursor: pointer; min-height: 44px;
}
.drill-badge { border-style: solid; border-color: #ead7a4; font-weight: 600; }
.top-link {
  min-height: 44px; padding: 6px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.top-link:active { background: var(--surface-2); }
.line-btn .ico { color: var(--line-green); width: 20px; height: 20px; }

/* 頂端一條：預覽說明 / 急診入口 */
.intro:empty { display: none; }
.intro { padding: 0; background: none; border: 0; }
.pv-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 16px; background: var(--lav); color: #fff;
}
.pv-bar p { margin: 0; flex: 1; font-size: .85rem; line-height: 1.35; display: flex; flex-direction: column; }
.pv-bar p strong { font-size: .9rem; letter-spacing: .04em; }
.pv-bar p span { color: #f3f2fa; }
.pv-exit {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: transparent; color: #fff;
  font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.pv-exit:active { background: rgba(255,255,255,.12); }
.er-strip {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 48px; padding: 10px 16px; border: 0; border-bottom: 1px solid #cfe0d9;
  background: var(--forest-soft); color: var(--forest); font: inherit; font-size: .9rem; text-align: left; cursor: pointer;
}
.er-strip > span { flex: 1; }
.er-strip strong { margin-left: 4px; text-decoration: underline; text-underline-offset: 3px; }
.er-strip:active { background: #d5e7df; }

/* 首頁 */
.hero { padding: 18px 0 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: .85rem; font-weight: 700; color: var(--teal); letter-spacing: .03em;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.hero h1 { font-size: 1.95rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 800; margin: 0 0 14px; word-break: keep-all; text-wrap: balance; } /* 只在 <wbr> 和標點斷行，不會把「時間」拆開 */
.hero-lead { font-size: 1.05rem; color: #45423f; margin: 0 0 20px; }
.hero-cta { display: grid; gap: 10px; }
.hero-note { margin: 12px 0 0; text-align: center; }
/* 2026-11-28 首頁的故事入口（Fighting） */
.story-link {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
}
.story-link img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.story-link-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.story-link-kicker { font-size: .78rem; font-weight: 700; color: var(--teal); letter-spacing: .06em; }
.story-link strong { font-size: 1.02rem; line-height: 1.35; }
.story-link-sub { font-size: .9rem; color: var(--primary); }
.story-link:active { background: var(--surface-2); }
@media (hover: hover) { .story-link:hover { border-color: var(--teal); } }
.band {
  margin: 22px -16px; padding: 26px 22px;
  background: #8E4585; color: #fdf6fb;
}
.big-fig { font-size: 3.4rem; font-weight: 800; line-height: 1; margin: 0 0 12px; letter-spacing: -.02em; color: #fff; }
.big-fig span { font-size: 1.4rem; font-weight: 700; margin-left: 2px; color: var(--gold); }
.band-text { margin: 0; font-size: 1rem; line-height: 1.7; }
.band-say { margin: 0; font-size: 1.35rem; font-weight: 800; line-height: 1.6; color: #fff; word-break: keep-all; text-wrap: balance; }
/* 2026-12-03 Jenny：「這字體改成Quote那種」→ 跟故事頁的筆記一樣：系統內建明體、前面一個大引號 */
.band-say { font-family: "Songti TC", "Noto Serif TC", "Noto Serif CJK TC", "Source Han Serif TC", "PMingLiU", "MingLiU", serif; font-weight: 600; letter-spacing: .03em; color: rgba(255, 255, 255, .96); }
.band-say::before { content: "“"; display: block; height: .5em; font-size: 2.8em; line-height: 1; color: rgba(255, 255, 255, .38); }
/* 首頁的段落。只套在 section：按鈕也叫 .btn.block（滿版），之前一起吃到這個 padding，字偏下 5px（2026-11-28 Jenny 發現） */
:where(section).block { padding: 18px 0 8px; } /* :where 讓權重跟原本一樣，.preview-card、.er-card 的 padding 照樣蓋得過 */
:where(section).block > h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.steps li > .ico {
  width: 52px; height: 52px; padding: 13px; border-radius: 16px;
  background: var(--primary-soft); color: var(--primary); stroke-width: 1.7;
}
.steps h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.steps p { margin: 0; color: var(--muted); }
.preview-card {
  margin: 14px 0 6px; padding: 20px 18px; border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow);
}
.preview-card > h2 { margin-bottom: 8px; }
.chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
/* 只是說明，不是按鈕：不要做成膠囊（走查 #10 點了以為壞掉） */
.chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 0;
  font-size: .9rem; font-weight: 600;
}
.chips .ico { color: var(--lav); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.principles li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.principles li > .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--lav-soft); color: var(--lav); }
.principles strong { display: block; font-size: 1rem; }
.principles span { color: var(--muted); font-size: .925rem; }
.er-card {
  margin: 18px 0 4px; padding: 18px 16px 10px; border-radius: 20px;
  background: var(--surface); border: 1px solid #d3e3dc;
}
.er-card > h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin-bottom: 6px; }
.er-card > h2 .ico { color: var(--forest); }
/* 打給醫院的按鈕一律深林綠：一看就知道是電話 */
.tel-row .btn.teal, .btn.teal.er-call { background: var(--forest); }
.tel-row .btn.outline { color: var(--forest); border-color: #b9d3c9; }
.er-list { list-style: none; margin: 10px 0 4px; padding: 0; }
.er-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
/* 大概位置的圓圈地圖（area-map.js） */
.area-map { display: block; width: 100%; height: auto; margin: 8px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: #f3ecdf; }
.area-map .land { fill: #f3ecdf; }
.area-map .river { fill: none; stroke: #cfe0e3; stroke-linecap: round; stroke-linejoin: round; }
.area-map .mrt { fill: none; stroke: #dca25f; stroke-width: 2.5; stroke-linejoin: round; }
.area-map .station { fill: #fffdf9; stroke: #a9702c; stroke-width: 1.5; }
.area-map text { paint-order: stroke; stroke: #f3ecdf; stroke-width: 3px; stroke-linejoin: round; }
.area-map .station-name { font-size: 10.5px; fill: #6b4a1f; }
.area-map .place { font-size: 11px; fill: #7a7067; letter-spacing: .08em; }
.area-map .zone { fill-opacity: .2; stroke-width: 2; stroke-dasharray: 5 3; }
.area-map .zone.owner { fill: var(--sos); stroke: var(--sos); }
.area-map .zone.helper { fill: var(--teal); stroke: var(--teal); }
.area-map .zone.you { fill: var(--forest); stroke: var(--forest); }
.area-map .zone-name { font-size: 12.5px; font-weight: 700; fill: var(--ink); }
.area-map .pin { fill: var(--forest); }
.area-map .scale { fill: none; stroke: #5d554e; stroke-width: 1.3; }
.area-map .scale-text { font-size: 9.5px; fill: #5d554e; }
.area-map-note { margin: 0 0 8px; font-size: .8rem; color: var(--muted); }
.er-list-plain { margin: 0; }
.er-list-plain .er-row:first-child { border-top: 0; padding-top: 0; }
.er-list-plain .er-row:last-child { padding-bottom: 0; }
.er-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.er-call { flex: none; }
/* 首頁急診的醫院卡（erTile，2026-12-03） */
.er-tiles { list-style: none; margin: 12px 0 6px; padding: 0; display: grid; gap: 10px; }
.er-tile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head call" "meta call" "alt call";
  column-gap: 12px; align-items: center; padding: 14px; border: 1px solid #d3e3dc; border-radius: 16px; background: #fff;
}
.er-tile-head { grid-area: head; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.er-tile-head strong { font-size: 1.1rem; }
.er-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fff1cc; color: #6b4a00; font-size: .78rem; font-weight: 700; line-height: 1.5; }
.er-tag.night { background: #ece8f6; color: #4a3f7a; }
.er-tile-meta { grid-area: meta; margin: 4px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.er-tile-meta span::before { content: "・"; }
.er-tile-num { display: none; }
.er-tile-alt { grid-area: alt; margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.er-tile-alt a { color: var(--forest); font-weight: 600; }
.er-tile-alt.none { display: none; }
.er-tile-call { grid-area: call; gap: 6px; min-height: 44px; padding: 8px 16px; background: var(--forest); color: #fff; border-color: transparent; }
.er-checked { margin: 2px 0 8px; color: var(--muted); font-size: .8rem; }
.er-foot .er-areas { margin: 4px 0 8px; font-size: .9rem; line-height: 1.4; }
.er-areas-label { margin: 0 0 6px; color: var(--muted); }
.er-areas-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.er-areas-row span { width: 100%; color: var(--muted); font-size: .85rem; font-weight: 700; }
.er-foot .er-areas a { margin: 0; padding: 10px 16px; border: 1px solid #b9d3c9; border-radius: 999px; color: var(--forest); font-weight: 600; line-height: 20px; text-decoration: none; }
.er-links { display: flex; flex-direction: column; }
.er-links .btn.ghost { justify-content: flex-start; padding-left: 0; }
.foot p { margin: 0 0 6px; }
.foot-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2px 6px; }
.foot-links a { color: var(--muted); display: inline-block; padding: 10px 4px; margin: -4px -4px; line-height: 22px; } /* 手指好按：可以按的高度 42px（2026-12-03） */
#foot-me-wrap { display: contents; }
body.no-login #top-me, body.no-login #foot-me-wrap { display: none; }

.call-tip { margin: 0 0 12px; font-size: .95rem; }
.er-areas { margin: 4px 0 0; line-height: 2.2; }
/* 手機好按：文字樣子不變，可按的高度到 44px */
.er-areas a, .er-more a { display: inline-block; padding: 12px 6px; margin: 0 -6px; line-height: 20px; }
.er-city { display: inline-block; margin-right: 10px; color: var(--muted); font-size: .9em; font-weight: 700; } /* 其他地區：台北市、新北市各一行（2026-12-03） */
.on-doc .vet-card h2 { font-size: 1.1rem; margin: 0; }
.on-doc .vet-card .row.between { flex-wrap: nowrap; align-items: baseline; }
.on-doc .vet-card .row.between .small { flex: none; }
.on-doc .brand a { display: block; }
.on-doc a.top-link { display: inline-flex; align-items: center; text-decoration: none; }
#call-form input, #call-form select { width: 100%; }
.area-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin: 0; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two-up > div { min-width: 0; }
.call-out-label { display: block; margin: 14px 0 6px; font-weight: 700; }
#c-out { width: 100%; background: var(--teal-soft); margin-bottom: 10px; }
.wl-why > p { margin: 0 0 14px; }
.who-two { margin: 0 0 14px; }
.who-two li > .ico { background: var(--surface); color: var(--teal); }
.wl-why .principles li > .ico { background: var(--teal-soft); color: var(--teal); }
/* ---------- 桌機（2026-11-30 Jenny：「電腦版排版不該是那樣」）----------
   整頁重排，不是把手機版拉寬：色塊都拉滿視窗，內容最寬 1800px，字級跟著視窗長大。手機版（<960px）完全不受影響。
   手機框不放進 #app（不然每次重畫 iframe 都會重新載入）：app.js 的 syncPhone() 把它疊在 .phone-slot 上。 */
.phone-aside, .phone-slot, .story-feature, .er-num, .page-extra { display: none; }
@media (min-width: 960px) {
  body.on-site, body.on-doc {
    --edge: max(clamp(40px, 5vw, 120px), calc((100vw - 1800px) / 2));
    --h2: clamp(1.9rem, 2.7vw, 3.5rem);
    --body: clamp(1.05rem, 1.15vw, 1.45rem);
  }
  body.on-site .shell, body.on-doc .shell { max-width: none; box-shadow: none; }
  body.on-site .topbar, body.on-doc .topbar { padding: 12px var(--edge); }
  body.on-site .brand-logo, body.on-doc .brand-logo { height: 58px; }
  body.on-site .er-strip { min-height: 52px; padding: 10px var(--edge); font-size: 1rem; }
  body.on-site .er-strip > span { flex: none; }
  body.on-site .foot, body.on-doc .foot { width: 100%; padding: 32px var(--edge) 48px; border-top: 1px solid var(--line); }
  /* 其他分頁（登記、急診名單、登入、我的資料、邀請、個資告知、刪除登記）：左邊標題停住，右邊內容 */
  body.on-site:not(.on-landing) #app, body.on-doc #main {
    width: 100%; max-width: none; margin: 0; padding: clamp(48px, 4.6vw, 100px) var(--edge) clamp(72px, 6vw, 130px);
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(40px, 5vw, 130px); align-items: start; align-content: start;
  }
  body.on-site:not(.on-landing) #app > *, body.on-doc #main > * { grid-column: 2; min-width: 0; }
  body.on-site:not(.on-landing) #app > .page-head, body.on-doc #main > .page-head { grid-column: 1; grid-row: 1 / span 60; position: sticky; top: 112px; }
  .page-head h1 { font-size: clamp(2rem, 2.6vw, 3.4rem); line-height: 1.25; letter-spacing: -.015em; margin: 0 0 clamp(12px, 1.1vw, 22px); text-wrap: balance; }
  .page-head .lead { font-size: clamp(1.02rem, 1.1vw, 1.4rem); line-height: 1.75; max-width: 26em; text-wrap: pretty; }
  body.on-site .page-head:has(.page-extra) { position: static !important; } /* 左邊比較高的時候不要停住，不然下面看不到 */
  body.on-site .page-extra { display: block; margin-top: 28px; }
  body.on-site #app > .vet-pic { display: none; }
  body.on-site .er-card-thumb { max-height: 420px; }
  body.on-site .vet-grid, body.on-doc .vet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
  body.on-site .vet-grid .vet-card, body.on-doc .vet-grid .vet-card { margin: 0; }
  body.on-site:not(.on-landing) #app > .card, body.on-doc #main > .card, body.on-site:not(.on-landing) #app form > .card { padding: clamp(20px, 1.7vw, 34px); border-radius: 20px; margin-bottom: 16px; }
  body.on-site:not(.on-landing) #app > .btn.block, body.on-doc #main > .btn.block { width: auto; justify-self: start; min-width: 240px; }
  @media (min-width: 1900px) { body.on-site:not(.on-landing) #app > *, body.on-doc #main > * { zoom: 1.14; } } /* 大螢幕：字和表單一起放大 */

  /* 管理頁（只有 Jenny） */
  body.on-admin { --edge: max(clamp(32px, 4vw, 100px), calc((100vw - 1800px) / 2)); }
  body.on-admin .shell { max-width: none; box-shadow: none; }
  body.on-admin .topbar { padding: 14px var(--edge); }
  body.on-admin #main { padding: 32px var(--edge) 80px; }
  body.on-admin #root { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
  body.on-admin #root > section:not(.card) { grid-column: 1 / -1; }
  body.on-admin #root ul.stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; align-items: start; }
  body.on-admin #root ul.stack > li { margin: 0; }
  body.on-landing #app { max-width: none; padding: 0; }
  body.on-landing .foot { display: flex; align-items: center; justify-content: space-between; gap: 32px; text-align: left; border-top: 0; }
  body.on-landing .foot p { margin: 0; }
  body.on-landing :where(section).block { padding: clamp(72px, 6.5vw, 140px) var(--edge); }
  body.on-landing :where(section).block > h2 { font-size: var(--h2); line-height: 1.25; letter-spacing: -.015em; margin: 0; text-wrap: balance; }

  /* 第一屏：左邊標題，右邊手機，後面不放底色；3.4 km 是唯一一塊梅紫（2026-11-30 Jenny：「手機底色拿掉，3.4放回底色」） */
  .hero-wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(32px, 4.5vw, 120px); align-items: center;
    min-height: max(700px, calc(100vh - 136px)); padding: clamp(24px, 2.2vw, 44px) var(--edge);
  }
  .hero-main { grid-column: 1; grid-row: 1; }
  body.on-landing .hero { padding: 0; }
  body.on-landing .eyebrow { font-size: clamp(.95rem, 1vw, 1.2rem); margin-bottom: clamp(18px, 1.8vw, 36px); }
  body.on-landing .hero h1 { font-size: clamp(2.45rem, 4.1vw, 5.7rem); line-height: 1.2; margin-bottom: clamp(20px, 2vw, 40px); }
  body.on-landing .hero-lead { font-size: clamp(1.08rem, 1.3vw, 1.7rem); line-height: 1.8; max-width: 31em; margin-bottom: clamp(26px, 2.4vw, 48px); text-wrap: pretty; }
  body.on-landing .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
  body.on-landing .hero-cta .btn.block, body.on-landing .who-cta .btn.block {
    width: auto; min-width: clamp(180px, 12.5vw, 280px); min-height: clamp(54px, 3.6vw, 76px); padding: 10px clamp(20px, 2vw, 44px);
    font-size: clamp(1rem, 1.1vw, 1.35rem); border-radius: 16px; margin-top: 0 !important; /* 蓋掉「傳給朋友」行內的 margin-top */
  }
  body.on-landing .hero-note { text-align: left; font-size: clamp(.9rem, .9vw, 1.1rem); margin-top: 18px; }
  body.on-landing .story-link { display: none; }
  .phone-slot {
    display: block; grid-column: 2; grid-row: 1; justify-self: end; margin: 8px 0;
    /* 手機框維持真的手機比例（高約是寬的 1.9～2.15 倍）。2026-12-02 Jenny 問「這個手機預覽的框框變長正常嗎」：
       視窗很高、又不夠寬的時候，原本寬卡在 320px、高拉到 900px，變成細長條。 */
    --pw: clamp(320px, 17.5vw, 440px);
    --ph: min(900px, max(650px, calc(100vh - 220px)));
    width: min(var(--pw), calc(var(--ph) / 1.9));
    height: min(var(--ph), calc(var(--pw) * 2.15));
  }
  body.on-landing .phone-aside:not([hidden]) { display: flex; flex-direction: column; position: absolute; z-index: 5; text-align: center; }
  .phone-frame {
    flex: 1; min-height: 0; padding: 12px; border-radius: 50px;
    background: #5a2b55; box-shadow: 0 30px 60px rgba(90, 43, 85, .28);
  }
  .phone-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 38px; background: var(--bg); display: block; }
  @media (max-height: 1000px) { .phone-frame iframe { width: 125%; height: 125%; transform: scale(.8); transform-origin: 0 0; border-radius: 47px; } } /* 筆電螢幕比較矮：縮一點，SOS 鍵才看得到 */
  .phone-aside p.small { margin: 16px 0 0; }
  .phone-aside.lit .phone-frame { animation: phone-lit 1.6s ease-out; }
  @keyframes phone-lit { 0%, 100% { box-shadow: 0 30px 60px rgba(90, 43, 85, .28); } 25% { box-shadow: 0 0 0 10px #e9b9e2, 0 30px 60px rgba(90, 43, 85, .28); } }

  /* 3.4 km */
  body.on-landing .band { margin: 0; padding: clamp(72px, 7vw, 150px) var(--edge); }
  body.on-landing .band-say { font-size: clamp(2rem, 3.5vw, 4.6rem); line-height: 1.45; letter-spacing: .02em; }
  body.on-landing .band-say::before { font-size: 2.2em; height: .45em; }
  body.on-landing .big-fig { font-size: clamp(8rem, 17vw, 24rem); line-height: .78; letter-spacing: -.05em; margin: 0 0 0 -.04em; }
  body.on-landing .big-fig span { font-size: .24em; letter-spacing: 0; margin-left: .18em; }
  body.on-landing .band-text { font-size: clamp(1.15rem, 1.65vw, 2.1rem); line-height: 1.75; max-width: 25em; text-wrap: pretty; }

  /* 故事：整片照片 */
  #app a.story-feature {
    display: block; position: relative; overflow: hidden; color: #fff; text-decoration: none;
    height: clamp(460px, 40vw, 900px); background: #1d1720;
  }
  .story-feature img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 28%; display: block; }
  .story-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 14, 24, .86) 0, rgba(24, 14, 24, .62) 26%, rgba(24, 14, 24, 0) 56%); }
  .story-feature-text { position: absolute; z-index: 1; left: var(--edge); bottom: clamp(48px, 5vw, 110px); display: grid; gap: clamp(10px, 1vw, 20px); max-width: 36%; }
  .story-feature .story-link-kicker { color: var(--gold); font-size: clamp(.95rem, 1vw, 1.2rem); }
  .story-feature strong { font-size: clamp(2rem, 3.2vw, 4.3rem); line-height: 1.22; letter-spacing: -.015em; text-wrap: balance; }
  .story-feature .story-link-sub { color: #fff; font-size: clamp(1.1rem, 1.35vw, 1.7rem); }

  /* 怎麼運作：一條線串三步 */
  .sec-how > h2 { margin-bottom: clamp(40px, 4vw, 84px) !important; }
  body.on-landing .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  body.on-landing .steps li { position: relative; grid-template-columns: 1fr; align-content: start; gap: clamp(18px, 1.8vw, 34px); padding-right: clamp(28px, 4vw, 90px); }
  body.on-landing .steps li:not(:last-child)::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--dot) / 2 - 1px); height: 2px; background: #d9c3d5; }
  body.on-landing .steps { --dot: clamp(64px, 5vw, 104px); }
  body.on-landing .steps li > .ico { position: relative; width: var(--dot); height: var(--dot); padding: calc(var(--dot) * .27); border-radius: 50%; background: var(--teal); color: #fff; box-shadow: 0 0 0 14px var(--bg); }
  body.on-landing .steps h3 { font-size: clamp(1.3rem, 1.6vw, 2.1rem); margin: 0 0 8px; }
  body.on-landing .steps p { font-size: var(--body); line-height: 1.75; max-width: 22em; }

  /* 點一遍看看：一條橫的，按了就捲到上面那支手機 */
  body.on-landing .preview-card {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 60px; align-items: center;
    margin: 0 var(--edge); padding: clamp(32px, 3vw, 60px) 0 clamp(72px, 6.5vw, 140px); border-radius: 0; background: none; box-shadow: none; border-top: 2px solid var(--line);
  }
  body.on-landing .preview-card > h2 { font-size: clamp(1.5rem, 1.9vw, 2.5rem); margin-bottom: 10px; }
  body.on-landing .preview-card > p { font-size: var(--body); margin: 0; max-width: 40em; }
  body.on-landing .preview-card > p.small { font-size: clamp(.92rem, .9vw, 1.1rem); }
  body.on-landing .preview-card > .btn { grid-column: 2; grid-row: 1 / span 3; width: auto; min-height: clamp(56px, 3.6vw, 76px); padding: 10px clamp(28px, 2.4vw, 52px); border-radius: 16px; font-size: clamp(1rem, 1.1vw, 1.35rem); }

  /* 找鄰居、原則：左邊大標題，右邊內容 */
  body.on-landing .sec-who, body.on-landing .sec-pr { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(48px, 6vw, 150px); align-items: start; }
  body.on-landing .sec-who > *, body.on-landing .sec-pr > * { grid-column: 2; }
  body.on-landing .sec-who > h2, body.on-landing .sec-pr > h2 { grid-column: 1; grid-row: 1 / span 9; }
  body.on-landing .sec-who { background: var(--lav-soft); }
  body.on-landing .sec-who > p { font-size: clamp(1.15rem, 1.5vw, 1.95rem); line-height: 1.75; margin: 0 0 clamp(20px, 1.8vw, 36px); text-wrap: pretty; }
  body.on-landing .sec-who > p.small { font-size: var(--body); }
  body.on-landing .chips { gap: 12px 36px; margin-bottom: clamp(20px, 1.8vw, 36px); }
  body.on-landing .chips li { font-size: clamp(1.05rem, 1.2vw, 1.5rem); gap: 10px; padding: 0; }
  body.on-landing .who-cta { display: flex; flex-wrap: wrap; gap: 14px; }
  body.on-landing .principles { gap: 0; }
  body.on-landing .principles li { grid-template-columns: auto 1fr; gap: clamp(18px, 1.8vw, 36px); align-items: center; padding: clamp(20px, 1.9vw, 40px) 0; border-top: 2px solid var(--line); }
  body.on-landing .principles li:first-child { border-top: 0; padding-top: 0; }
  body.on-landing .principles li > .ico { width: clamp(52px, 3.8vw, 76px); height: clamp(52px, 3.8vw, 76px); padding: clamp(12px, .95vw, 18px); border-radius: 50%; }
  body.on-landing .principles li > div { display: grid; grid-template-columns: clamp(165px, 14.5vw, 300px) minmax(0, 1fr); column-gap: 28px; align-items: center; }
  body.on-landing .principles strong { font-size: clamp(1.15rem, 1.4vw, 1.8rem); }
  body.on-landing .principles span { font-size: var(--body); line-height: 1.7; }

  /* 急診：深林綠整片，電腦上直接看得到號碼 */
  body.on-landing .er-card { margin: 0; padding: clamp(64px, 5.5vw, 120px) var(--edge); border: 0; border-radius: 0; background: var(--forest); color: #fff; }
  body.on-landing .er-card > h2 { font-size: var(--h2); gap: 16px; margin-bottom: 10px; }
  body.on-landing .er-card > h2 .ico { color: var(--gold); width: 1em; height: 1em; }
  body.on-landing .er-card > p.small { font-size: var(--body); margin: 0; color: #d7e8e1; }
  /* 三張醫院卡（2026-12-03 Jenny：「這個還很簡陋？」）：號碼對齊在同一條線、撥打按鈕整條 */
  body.on-landing .er-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 32px); margin: clamp(32px, 3.2vw, 64px) 0 14px; }
  body.on-landing .er-tile { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 2.2vw, 44px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; background: rgba(255, 255, 255, .06); }
  body.on-landing .er-tile-head { gap: 12px; }
  body.on-landing .er-tile-head strong { font-size: clamp(1.4rem, 1.7vw, 2.2rem); }
  body.on-landing .er-tag { background: var(--gold); color: #3d2c00; font-size: clamp(.8rem, .8vw, 1rem); padding: 3px 12px; }
  body.on-landing .er-tag.night { background: rgba(255, 255, 255, .16); color: #fff; }
  body.on-landing .er-tile-meta { display: flex; flex-direction: column; margin-top: 10px; color: #cfe3da; font-size: clamp(.95rem, 1vw, 1.2rem); line-height: 1.6; }
  body.on-landing .er-tile-meta span::before { content: none; }
  body.on-landing .er-tile-num { display: block; margin: auto 0 0; padding-top: 24px; font-size: clamp(1.6rem, 2.1vw, 2.9rem); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
  body.on-landing .er-tile-alt { margin-top: 4px; color: #cfe3da; font-size: clamp(.9rem, .95vw, 1.1rem); }
  body.on-landing #app .er-tile-alt a { color: #fff; text-underline-offset: 3px; }
  body.on-landing .er-tile-alt.none { display: block; min-height: 1.6em; } /* 沒有急診專線的卡也留一行，三張的號碼才會對齊 */
  body.on-landing .er-tile-call { margin-top: 20px; width: 100%; background: #fff; color: var(--forest); min-height: 52px; font-size: 1.05rem; }
  body.on-landing .er-checked { margin: 0 0 clamp(28px, 2.6vw, 52px); color: #a9c9bc; font-size: clamp(.85rem, .9vw, 1rem); }
  body.on-landing .er-foot { padding-top: clamp(20px, 2vw, 36px); border-top: 1px solid rgba(255, 255, 255, .18); }
  body.on-landing .er-foot .er-areas { margin: 0 0 clamp(12px, 1.2vw, 24px); font-size: var(--body); }
  body.on-landing .er-areas-label { color: #cfe3da; margin-bottom: 12px; }
  body.on-landing .er-areas-row span { width: 4.2em; margin-right: 4px; color: #cfe3da; font-size: inherit; font-weight: 600; }
  body.on-landing #app .er-foot .er-areas a { color: #fff; border-color: rgba(255, 255, 255, .35); }
  body.on-landing .er-links { flex-direction: row; gap: 32px; }
  body.on-landing .er-card .er-links .btn.ghost { color: #fff; font-size: var(--body); padding: 0; }
}
body.embed .shell { box-shadow: none; }

@media (hover: hover) {
  .top-link:hover, .pv-exit:hover { filter: brightness(.96); }
  .er-strip:hover { background: #dbebe4; }
  .tel-row .btn.teal:hover, .btn.teal.er-call:hover { background: #013a2d; }
  body.on-landing .er-card .btn.er-call:hover { filter: brightness(.94); }
  .er-tile-call:hover { filter: brightness(1.12); }
  .story p a:hover { text-decoration-color: var(--primary); } /* 故事頁文章裡的連結 */
  body.on-landing .er-tile-call:hover { filter: brightness(.94); }
  .er-foot .er-areas a:hover { background: #e6f1ec; }
  body.on-landing #app .er-foot .er-areas a:hover { background: rgba(255, 255, 255, .12); }
  .er-links .btn.ghost:hover { text-decoration: underline; text-underline-offset: 5px; }
  .story-feature:hover .story-link-sub { text-decoration: underline; text-underline-offset: 6px; }
  .foot-links a:hover { color: var(--ink); }
}

/* 小工具列：每一頁頂端列下面那排（data/site_nav.py 產生；class 名稱沿用 stickers）。
   2026-12-02 Jenny 選「A 極簡圖示列」：細線條圖示＋小字，沒有框，留白多。所在的那一頁用玫瑰色＋底下一條短線標出來。 */
.stickers {
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 12px 6px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.stickers a {
  display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 44px; padding: 4px 0 2px;
  color: var(--ink); font-size: .78rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.stickers a svg { display: block; color: var(--teal); }
.stickers a span { position: relative; }
.stickers a[aria-current="page"] { color: var(--primary); font-weight: 800; }
.stickers a[aria-current="page"] svg { color: var(--primary); }
.stickers a[aria-current="page"] span::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 16px; height: 3px; margin-left: -8px;
  border-radius: 2px; background: var(--primary);
}
.stickers a:active { opacity: .6; }
.stickers a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
@media (hover: hover) {
  .stickers a:hover { color: var(--primary); }
  .stickers a:hover svg { color: var(--primary); }
}
body.embed .stickers, body.in-preview .stickers { display: none; }
/* 電腦版：小工具放進 logo 那一排（2026-12-02 Jenny：「電腦板的小工具欄位位置可以放跟logo那排」）。
   不搬 HTML：這排疊在頂端列正中間，一樣黏在最上面；logo 和右邊的按鈕照樣點得到。頂端列高度固定 83px。 */
@media (min-width: 960px) {
  .topbar { min-height: 83px; }
  .stickers {
    position: sticky; top: 0; z-index: 11;
    display: flex; justify-content: center; align-items: center; gap: 4px;
    width: fit-content; height: 83px; margin: -83px auto 0; padding: 0;
    background: none; border: 0; pointer-events: none;
  }
  .stickers a {
    flex-direction: row; gap: 8px; padding: 8px 14px; border-radius: 12px;
    font-size: .95rem; pointer-events: auto;
  }
  .stickers a svg { width: 22px; height: 22px; }
  .stickers a[aria-current="page"] { background: var(--primary-soft); }
  .stickers a[aria-current="page"] span::after { display: none; }
}
@media (min-width: 960px) and (max-width: 1180px) { /* 比較窄的電腦：縮小一點，才不會碰到 logo */
  .stickers { gap: 0; }
  .stickers a { gap: 6px; padding: 8px 8px; font-size: .85rem; }
  .stickers a svg { width: 18px; height: 18px; }
}
@media (min-width: 960px) and (hover: hover) {
  .stickers a:hover { background: var(--surface-2); }
  .stickers a[aria-current="page"]:hover { background: var(--primary-soft); }
}

/* 換頁淡入（2026-12-02 Jenny：「點小工具切換的時候也要漸變～」）。
   新的一頁打開時，內容 0.35 秒慢慢淡入；頂端列和小工具列不動。每個瀏覽器都看得到（不靠 View Transitions）。 */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } } /* 只動透明度：transform 會讓裡面 position: fixed 的東西跑掉 */
body.on-doc #main, body.on-site #app, main.story { animation: page-in .35s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  body.on-doc #main, body.on-site #app, main.story { animation-duration: .2s; }
}

/* 收起來的資料來源（2026-12-02 Jenny：「資料來源太多了版面很亂，有什麼辦法可以收起來嗎？」）。點來源編號 [1] 會自動打開（site-nav.js）。 */
.src-more > summary {
  display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; list-style: none;
  color: var(--primary); font-weight: 700; font-size: .95rem;
}
.src-more > summary::-webkit-details-marker { display: none; }
.src-more > summary::after { content: "›"; display: inline-block; font-size: 1.2em; line-height: 1; transition: transform .2s ease; }
.src-more[open] > summary::after { transform: rotate(90deg); }

/* 手機往下滑時，右邊細長的小工具列（site-nav.js 從頂端那排複製過來）。電腦版不用。
   2026-12-02 Jenny：「不夠窄 會遮擋到字」「還是需要小字在圖示下面」→ 寬 34px、貼齊螢幕右邊，圖示下面兩行小字（急診／速查），落在頁面留白裡，不蓋到字。 */
.tools-rail {
  position: fixed; right: 0; top: 50%; z-index: 20;
  display: flex; flex-direction: column; gap: 2px; padding: 6px 0;
  border-radius: 16px 0 0 16px; border: 1px solid var(--line); border-right: 0;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(35, 37, 45, .12);
  opacity: 0; transform: translate(10px, -50%); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.tools-rail.show { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.tools-rail a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 34px; min-height: 52px; padding: 4px 0; border-radius: 10px 0 0 10px; color: var(--teal); text-decoration: none;
}
.tools-rail a svg { width: 18px; height: 18px; }
.tools-rail a span { font-size: 10px; line-height: 1.15; font-weight: 700; color: var(--muted); text-align: center; }
.tools-rail a[aria-current="page"] span { color: var(--primary); }
.tools-rail a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.tools-rail a:active { opacity: .6; }
.tools-rail a:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
@media (hover: hover) { .tools-rail a:hover { color: var(--primary); } }
@media (min-width: 960px) { .tools-rail { display: none; } }
body.embed .tools-rail, body.in-preview .tools-rail { display: none; }
@media (prefers-reduced-motion: reduce) { .tools-rail, .src-more > summary::after { transition: none; } }

/* ---------- 收容所在等家的毛孩（2026-12-03；/adopt.js 填進來，拿不到就整塊 hidden）---------- */
.adopt .adopt-how { margin: -4px 0 12px; }
.adopt-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .adopt-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adopt-card { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.adopt-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-2); }
.adopt-body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.adopt-body p { margin: 0; font-size: .875rem; line-height: 1.45; }
.adopt-what { font-weight: 700; }
.adopt-where, .adopt-id { color: var(--muted); }
.adopt-id { font-size: .8rem !important; font-variant-numeric: tabular-nums; word-break: break-all; }
.adopt-call { margin-top: auto; min-height: 44px; }
.adopt-body .adopt-call { margin-top: 8px; }

/* ---------- 天氣特報提醒（2026-12-03；/weather.js，有特報才出現）---------- */
.weather-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-size: .9rem; line-height: 1.5; }
.weather-note p { margin: 0; }
.weather-note .weather-src { color: inherit; font-size: .8rem; text-decoration-color: rgba(142, 71, 39, .4); }

/* ---------- 叫寵物友善的車（2026-12-03；四家並排、寫法一樣，不推薦任何一家）---------- */
.vet-ride { margin: 8px 0 0; font-size: .9rem; }
.vet-ride summary { min-height: 44px; display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--teal); font-weight: 700; }
.ride-list { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 6px; }
.ride-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.ride-list a { font-weight: 700; min-height: 28px; display: inline-flex; align-items: center; }
.ride-list span { color: var(--muted); font-size: .85rem; }
.ride-note { margin: 0; }
