:root {
  --bg: #f7f1e8;
  --card: #fffdf9;
  --ink: #2b2118;
  --muted: #7a6a5a;
  --line: #e8dccb;
  --brand: #14463c;
  --brand-soft: #e2ece5;
  --accent: #b4532a;
  --sand-2: #efe4d4;
  --deep: #14463c;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #92400e;
  --warn-soft: #fef3c7;
  --focus: #fef9c3;

  --s-jigger: #b45309;
  --s-camp: #15803d;
  --s-street: #1d4ed8;
  --s-school: #7c3aed;
  --s-inst: #be185d;

  --r-amani: #c2410c;
  --r-neema: #be185d;
  --r-jigger: #78350f;
  --r-hw: #0f766e;
  --r-kid: #4338ca;
  --r-crowd: #57534e;

  --radius: 12px;
  --radius-sm: 10px;
  color-scheme: light;
}

/* 深色：跟著系統（沒按過切換時），或右上角手動選深色（theme.js 設 data-theme） */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16110c;
    --card: #211a13;
    --ink: #f1e9de;
    --muted: #b3a593;
    --line: #3a2f24;
    --brand: #7fc4b0;
    --brand-soft: #1f3a33;
    --accent: #e0864f;
    --sand-2: #1d1610;
    --deep: #0f3530;
    --ok: #4ade80;
    --ok-soft: #14532d;
    --warn: #fcd34d;
    --warn-soft: #422006;
    --focus: #3f3a12;

    --s-jigger: #f59e0b;
    --s-camp: #4ade80;
    --s-street: #60a5fa;
    --s-school: #a78bfa;
    --s-inst: #f472b6;

    --r-amani: #fb923c;
    --r-neema: #f472b6;
    --r-jigger: #d6a266;
    --r-hw: #2dd4bf;
    --r-kid: #a5b4fc;
    --r-crowd: #a8a29e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16110c;
  --card: #211a13;
  --ink: #f1e9de;
  --muted: #b3a593;
  --line: #3a2f24;
  --brand: #7fc4b0;
  --brand-soft: #1f3a33;
  --accent: #e0864f;
  --sand-2: #1d1610;
  --deep: #0f3530;
  --ok: #4ade80;
  --ok-soft: #14532d;
  --warn: #fcd34d;
  --warn-soft: #422006;
  --focus: #3f3a12;

  --s-jigger: #f59e0b;
  --s-camp: #4ade80;
  --s-street: #60a5fa;
  --s-school: #a78bfa;
  --s-inst: #f472b6;

  --r-amani: #fb923c;
  --r-neema: #f472b6;
  --r-jigger: #d6a266;
  --r-hw: #2dd4bf;
  --r-kid: #a5b4fc;
  --r-crowd: #a8a29e;
  color-scheme: dark;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brand); }

.page-title { font-size: clamp(26px, 5vw, 34px); line-height: 1.25; margin: 8px 0 16px; }
.muted { color: var(--muted); font-weight: 400; font-size: .85em; }
.meta { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.back { display: inline-block; font-size: 14px; margin-bottom: 4px; padding: 8px 12px 8px 0; text-decoration: none; }
.sec { font-size: 20px; margin: 34px 0 12px; scroll-margin-top: 80px; }

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  color: inherit; text-decoration: none;
}


/* 總覽的場合卡 */
.scenes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.scene { margin: 0; border-left: 5px solid var(--sc); }
.scene-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.scene h2 { margin: 0; font-size: 19px; }
.is-jigger { --sc: var(--s-jigger); }
.is-camp { --sc: var(--s-camp); }
.is-street { --sc: var(--s-street); }
.is-school { --sc: var(--s-school); }
.is-inst { --sc: var(--s-inst); }

/* 場合頁 */
.scene-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-left: 5px solid var(--sc); padding-left: 12px;
}
.scene-head h1 { margin: 0; font-size: 24px; }

.facts { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 15px; }
.facts th { width: 4.5em; text-align: left; color: var(--muted); font-weight: 500; padding: 6px 0; vertical-align: top; }
.facts td { padding: 6px 0; }
.facts tr + tr { border-top: 1px solid var(--line); }

.notes { margin: 10px 0; padding-left: 20px; }
.notes li { margin: 3px 0; }


/* 衛教教案 */
.goal { margin: 0 0 10px; }
.edu .rules li { margin: 8px 0; }
.sub { font-size: 15px; margin: 16px 0 8px; color: var(--muted); }
.roles td.wrap { white-space: normal; min-width: 11em; }
.edu-lists { margin-top: 12px; }
.edu-lists h4 { margin: 8px 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; }
.edu-lists h4:first-child { margin-top: 0; }
.edu-lists ul { margin: 0; padding-left: 20px; }

/* 遊戲卡 */
.game header { margin-bottom: 8px; }
.game h3 { margin: 0; font-size: 18px; }
.game h4 { margin: 12px 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; }
.game ul, .game ol { margin: 0; padding-left: 20px; }
.game li { margin: 3px 0; }
.rules li::marker { color: var(--brand); font-weight: 700; }
.chant {
  margin: 10px 0 0; padding: 8px 12px;
  background: var(--brand-soft); border-radius: var(--radius-sm);
}

/* 英文＋中文 */
.en { font-size: 16px; }
.zh { color: var(--muted); font-size: 14px; }

.spk {
  border: 0; background: none; padding: 0 2px; margin: 0;
  font-size: 15px; line-height: 1; cursor: pointer; opacity: .6;
  vertical-align: baseline;
}
.spk:active { opacity: 1; }
/* 看起來小，手指可點的範圍放大，版面不變 */
.spk { position: relative; }
.spk::after { content: ""; position: absolute; inset: -12px -6px; }

/* 話劇 */
/* 段落按鈕黏在選單下面（手機一行可左右滑）；角色篩選列再黏在它下面 */
.jump { position: sticky; top: var(--navh, 60px); z-index: 6; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 14px -20px 0; padding: 8px 20px; background: var(--bg); }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; }
.page .sec[id] { scroll-margin-top: calc(var(--navh, 60px) + 56px); }
.jump a {
  font-size: 14px; text-decoration: none;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}

.tbl-wrap { overflow-x: auto; }
.roles { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; }
.roles th, .roles td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.roles th { font-size: 13px; color: var(--muted); font-weight: 500; }
.roles tr:last-child td { border-bottom: 0; }
.roles .num { text-align: right; }
/* 手機：說明欄自動換行，表格不超出畫面 */
@media (max-width: 520px) {
  .roles th, .roles td { padding: 8px 7px; }
  .roles td { white-space: normal; }
  .roles td:first-child { white-space: nowrap; }
  .roles td.wrap { min-width: 0; }
}

.who {
  display: inline-block;
  font-size: 12px; font-weight: 700; line-height: 1.5;
  padding: 1px 8px; border-radius: 6px;
  color: #fff; background: var(--rc, var(--r-crowd));
  white-space: nowrap;
}
.r-amani { --rc: var(--r-amani); }
.r-neema { --rc: var(--r-neema); }
.r-jigger { --rc: var(--r-jigger); }
.r-hw { --rc: var(--r-hw); }
.r-c1, .r-c2, .r-c3, .r-c4 { --rc: var(--r-kid); }
.r-aud, .r-all { --rc: var(--r-crowd); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .who { color: #121110; } }
:root[data-theme="dark"] .who { color: #121110; }

.rolebar {
  position: sticky; top: calc(var(--navh, 60px) + 50px); z-index: 5;
  display: flex; gap: 6px; overflow-x: auto;
  padding: 8px 0; margin: 0 0 4px;
  background: var(--bg);
  scrollbar-width: none;
}
.rolebar::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  font: inherit; font-size: 14px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  cursor: pointer;
}
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip.is-on { color: #121110; } }
:root[data-theme="dark"] .chip.is-on { color: #121110; }

.scene-block { margin-bottom: 8px; }
.scene-title {
  font-size: 17px; margin: 22px 0 8px;
  padding-bottom: 4px; border-bottom: 2px solid var(--line);
}
.scene-title .zh, .tip .zh { display: block; font-weight: 500; }

.tip { font-size: 15px; margin: 18px 0 6px; color: var(--brand); }

.dir {
  margin: 8px 0; padding: 2px 0 2px 12px;
  border-left: 3px solid var(--line);
  font-style: italic;
}
.dir .en { display: block; font-size: 14px; color: var(--muted); }
.dir .zh { display: block; font-style: normal; }

.ln {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start;
  padding: 7px 8px; margin: 0 -8px; border-radius: var(--radius-sm);
  transition: opacity .15s;
}
.ln .who { margin-top: 3px; }
.act { color: var(--muted); font-size: 13px; }
.sw {
  font-size: 12px; font-weight: 700; color: var(--brand);
  border: 1px solid currentColor; border-radius: 4px;
  padding: 0 4px; margin-right: 5px; vertical-align: 2px;
}
.pron { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .5px; }
.swl { padding: 6px 0; border-bottom: 1px solid var(--line); }
.sw-g { margin: 16px 0 4px; font-size: 14px; color: var(--accent); letter-spacing: 1px; }
.tool .sw-g:first-of-type { margin-top: 4px; }
.swl .en { font-weight: 700; font-size: 17px; }
.sw-words { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; font-size: 13.5px; color: var(--muted); }
.sw-words b { color: var(--ink); }
.script.has-focus .ln { opacity: .4; }
.script.has-focus .ln.is-mine { opacity: 1; background: var(--focus); }

.song {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 16px; margin: 10px 0;
}
.song-name { font-weight: 700; margin-bottom: 6px; }
.song-audio { display: block; width: 100%; margin: 4px 0 10px; }

/* 圖卡 */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.thumb {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; font-size: 13px; font-weight: 600;
}
.thumb img { display: block; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.thumb span { display: block; padding: 5px 8px 6px; }

.card-title { font-size: 20px; margin: 4px 0 12px; }
.card-title .zh { display: block; font-size: 15px; font-weight: 500; }
.card-img {
  display: block; width: 100%; max-width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 12px;
}
.card-text { padding: 10px 16px; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; }
.pager a { text-decoration: none; }

.sl { padding: 3px 0; }

.foot-note { color: var(--muted); font-size: 13px; margin-top: 16px; }

.empty { text-align: center; color: var(--muted); padding: 20px; }

.update {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30;
  font: inherit; font-size: 14px; font-weight: 700;
  padding: 10px 18px; border: 0; border-radius: 999px;
  background: var(--brand); color: #fff; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}

/* 行程表 */
.today-tag{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:99px;
  background:var(--brand);color:#fff;font-size:12px;font-weight:700;vertical-align:middle}

/* 小工具 */
.tool{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:12px 14px;margin-bottom:12px}
.tool-h{margin:0 0 4px;font-size:13px;color:var(--muted);font-weight:700}
summary.tool-h{display:flex;align-items:center;justify-content:space-between;margin:-12px -14px;padding:12px 14px;cursor:pointer;list-style:none}
summary.tool-h::-webkit-details-marker{display:none}
summary.tool-h::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s}
details.tool:not([open]) summary.tool-h::after{transform:rotate(-45deg)}
details.tool[open] summary.tool-h{margin-bottom:0}
details.tool[open] > summary + *{margin-top:12px}
#tool-sw{scroll-margin-top:calc(var(--navh, 60px) + 12px)}
.clk-r,.fx-r{display:flex;align-items:center;gap:10px;padding:5px 0}
.clk-l{flex:none;width:2.6em;font-size:15px;font-weight:700}
.clk-t{flex:1;font-size:28px;font-weight:800;letter-spacing:-.5px;font-variant-numeric:tabular-nums;line-height:1.15}
.clk-d{flex:none;font-size:13px;color:var(--muted)}
.fx-in{flex:1;min-width:0;font:inherit;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;
  padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:inherit}
.fx-in::placeholder{color:var(--muted);font-weight:500;opacity:.6}
.fx-c{flex:none;width:2.8em;font-size:13px;color:var(--muted)}
.tool-n{margin:8px 0 0;padding-top:8px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted)}

/* 團員介紹 */
.mbs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mb{padding:16px 12px;text-align:center;display:flex;flex-direction:column;align-items:center}
.mb>.mb-ph,.mb>.mb-zoom{margin-bottom:8px}
.mb .mb-role{margin:4px 0 0}
.mb .mb-f{align-self:stretch;text-align:left;margin-top:12px}
.mb .mb-f+.mb-f{margin-top:8px}
.mb .mb-t{font-size:14.5px}
.mb .mb-links{justify-content:center}
.mb-top{display:flex;align-items:center;gap:14px;margin-bottom:10px}
.mb-ph{flex:none;width:72px;height:72px;border-radius:50%;object-fit:cover;background:var(--brand-soft)}
.mb-ph.is-empty{display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:800;color:var(--brand);
  border:2px dashed var(--line);background:var(--bg)}
.mb-n{margin:0;font-size:17px}
.mb-f+.mb-f{margin-top:10px}
.mb-l{margin:0 0 4px;font-size:13px;color:var(--muted);font-weight:700}
.mb-t{margin:0;line-height:1.6;white-space:pre-line}
.mb-q{padding-left:10px;border-left:3px solid var(--brand)}
.mb-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.mb-sns{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--line);color:var(--brand);background:var(--card);transition:background .2s,color .2s}
.mb-sns:hover{background:var(--brand);color:#fff}
/* 滑鼠移上去馬上浮出名稱（瀏覽器內建 title 要等很久又很小） */
.mb-sns{position:relative}
.mb-sns[data-tip]::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translate(-50%,4px);padding:5px 9px;border-radius:7px;
  background:var(--ink);color:var(--bg);font-size:12.5px;font-weight:600;line-height:1.3;white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .15s,transform .15s;z-index:5}
.mb-sns[data-tip]:hover::after,.mb-sns[data-tip]:focus-visible::after{opacity:1;transform:translate(-50%,0)}
@media (hover:none){.mb-sns[data-tip]::after{display:none}}
.mb-sns svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mb-sns svg .fill{fill:currentColor;stroke:none}
.mb-sns svg:has(.fill){width:18px;height:18px}
/* 手機兩欄卡片：四個連結排一行 */
@media (max-width:640px){.mb .mb-links{gap:4px}.mb .mb-sns{width:28px;height:28px}.mb .mb-sns svg{width:16px;height:16px}.mb .mb-sns svg:has(.fill){width:15px;height:15px}}
/* 文章分享 */
.share{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:28px 0 6px;padding-top:18px;border-top:1px solid var(--line)}
.share-h{font-size:14px;font-weight:700;color:var(--muted);margin-right:4px}
button.mb-sns{padding:0;font:inherit;cursor:pointer}
.share-ok{font-size:13px;color:var(--brand);font-weight:700;word-break:break-all}
/* 專欄：卡片有配圖時照片在上；文章頁配圖照原比例 */
.col-card.has-ph{padding:0;overflow:hidden}
/* 卡片預覽用裁切的縮圖；點進文章頁才放整張 */
.col-ph{aspect-ratio:16/10;overflow:hidden;background:var(--brand-soft)}
.col-ph img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.col-card:hover .col-ph img{transform:scale(1.03)}
.col-card.has-ph .col-in{padding:14px}
/* 首頁小卡：左圖右文、內文兩行 */
.col-card.is-compact{display:flex;align-items:stretch;gap:0;padding:0;overflow:hidden}
.col-card.is-compact .col-ph{flex:none;width:104px;aspect-ratio:auto}
.col-card.is-compact .col-in{flex:1;min-width:0;padding:12px 14px}
.col-card.is-compact:not(.has-ph) .col-in{padding:12px 14px}
.col-card.is-compact .col-t{font-size:16px;margin-bottom:2px}
.col-card.is-compact .col-ex{-webkit-line-clamp:2;font-size:13.5px;margin-bottom:6px}
/* 加上 .ph 提高優先順序：.ph 的正方形裁切寫在後面，不加會被蓋掉 */
.ph.col-photo{width:100%;max-width:560px;aspect-ratio:auto;margin:0 0 18px;border-radius:var(--radius)}
.ph.col-photo img{height:auto}
.pts{display:flex;flex-wrap:wrap;gap:14px 18px}
.pt{margin:0;width:80px;text-align:center}
.pt .mb-ph{margin:0 auto}
.ph.mb-zoom{flex:none;width:72px;height:72px;aspect-ratio:auto;border-radius:50%;cursor:zoom-in;background:none}
.pt .mb-zoom{margin:0 auto}
.mb-zoom img{transition:transform .3s ease}.mb-zoom:hover img{transform:scale(1.06)}
.pt figcaption{margin-top:6px;font-size:13.5px;font-weight:600;line-height:1.3}

.recap{display:block;width:100%;border-radius:var(--radius);background:#000}
.recap.is-tall{max-width:400px;margin:0 auto}
.ph.recap-yt{aspect-ratio:16/9;padding:0;border:0;overflow:hidden;cursor:pointer}
.recap-yt img{width:100%;height:100%;object-fit:cover}
.sec .more{float:right;font-size:14px;font-weight:500;text-decoration:none}
.sec a{color:inherit;text-decoration:none}

/* 相簿 */
.gal.gal-fold > .ph:nth-child(n+7){display:none}
.gal-more .n-wide{display:none}
@media (min-width:640px){.gal.gal-fold > .ph:nth-child(-n+8){display:block}.gal-more .n-wide{display:inline}.gal-more .n-narrow{display:none}.gal-more.is-narrow{display:none}}
.gal-more{display:block;margin:12px auto 0;padding:9px 22px;border-radius:999px;border:1px solid var(--line);background:transparent;color:inherit;font:inherit;cursor:pointer}
.gal{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}
@media (min-width:640px){.gal{grid-template-columns:repeat(4,1fr)}}
.ph{position:relative;display:block;aspect-ratio:1;padding:0;border:0;border-radius:6px;overflow:hidden;
  background:var(--line);cursor:zoom-in;color:inherit;text-decoration:none}
.ph img{width:100%;height:100%;object-fit:cover;display:block}
/* 整張照片照原比例放，不裁切，人才拍得完整 */
/* 活動頁頁首照片：整張（全身照不裁）但縮小，不要佔滿一整個螢幕（2026-10-13 L：話劇頁照片太大不好閱讀） */
.scene-ph{display:block;width:auto;max-width:100%;aspect-ratio:auto;margin:14px 0 6px;border-radius:var(--radius)}
.scene-ph img{display:block;width:auto;max-width:100%;height:auto;max-height:300px}
@media (min-width:760px){.scene-ph img{max-height:340px}}
.ph-play{position:absolute;inset:auto auto 6px 6px;width:26px;height:26px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:12px;color:#fff;background:rgba(0,0,0,.55)}
.gal .ph-play{inset:50% auto auto 50%;width:48px;height:48px;margin:-24px 0 0 -24px;font-size:20px;padding-left:3px;
  background:rgba(0,0,0,.6);border:2px solid rgba(255,255,255,.9);box-shadow:0 2px 10px rgba(0,0,0,.35)}
.ph-lock{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer;
  background:var(--card);border:1.5px dashed var(--line)}
.ph-lock span{font-size:20px}.ph-lock b{font-size:18px}.ph-lock small{font-size:12px;color:var(--muted)}

/* 看圖視窗 */
body.lb-on{overflow:hidden}
.lb{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.92)}
.lb[hidden]{display:none}
.lb-fig{margin:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:100%;height:100%;padding:56px 0 calc(16px + env(safe-area-inset-bottom))}
.lb-media{flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center}
.lb-media img,.lb-media video{max-width:100%;max-height:100%;object-fit:contain}
.lb-yt{width:min(100%,calc((100vh - 140px) * 16 / 9));aspect-ratio:16/9;border:0;background:#000}
.lb-yt.is-tall{width:min(100%,calc((100vh - 140px) * 9 / 16));aspect-ratio:9/16}
.lb-fig figcaption{flex:none;padding:10px 16px 0;color:#eee;font-size:14px;text-align:center}
.lb-fig figcaption:empty{display:none}
.lb button{position:absolute;border:0;background:rgba(255,255,255,.12);color:#fff;cursor:pointer;
  width:44px;height:44px;border-radius:50%;font-size:22px;line-height:1}
.lb-x{top:calc(8px + env(safe-area-inset-top));right:8px}
.lb-nav{top:50%;transform:translateY(-50%);font-size:30px}
.lb-nav[hidden]{display:none}
.lb-prev{left:8px}.lb-next{right:8px}

/* 活動總覽 */

/* 文章專欄 */
.cols{display:grid;gap:10px}
@media (min-width:640px){.cols{grid-template-columns:1fr 1fr}}
.col-card{display:block;padding:14px;color:inherit;text-decoration:none}
.col-empty{color:var(--muted);text-align:center}
.col-t{margin:0 0 4px;font-size:17px;line-height:1.4}
.col-ex{margin:0 0 8px;font-size:14px;color:var(--muted);line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.col-by{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0;font-size:14px}
.col-by a{color:var(--brand);text-decoration:none}
.col-date{margin-left:auto;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}
.col-av{flex:none;width:26px;height:26px;border-radius:50%;object-fit:cover;background:var(--brand-soft);
  display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:var(--brand)}
.col .col-by{margin:-6px 0 16px}
.col-body{white-space:pre-line;line-height:1.85;font-size:16.5px}
.futures{display:grid;gap:10px}
.future{margin:16px 0 0;padding:14px 16px;background:var(--brand-soft);border-radius:var(--radius)}
.futures .future{margin:0}
.future blockquote{margin:0;font-size:16px;line-height:1.7;white-space:pre-line}
.future figcaption{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:13.5px;color:var(--muted)}
.future .future-h{margin:0 0 6px;font-weight:700;color:var(--brand)}
.col-lock{display:block;margin-top:14px;padding:10px 0;text-align:center;font-size:14px;color:var(--muted);text-decoration:none}
.mb-col{display:inline-block;margin-top:6px;padding:8px 0;font-size:14px;font-weight:600;color:var(--brand);text-decoration:none}

/* ── 網站外框 ── */
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
main{min-height:60vh}
.page{max-width:760px;margin:0 auto;padding:20px 20px 64px}
.nav{position:sticky;top:0;z-index:20;background:var(--deep);color:#fff;padding-top:env(safe-area-inset-top)}
.nav .wrap{display:flex;align-items:center;gap:24px;min-height:60px}
.logo{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800;font-size:17px;letter-spacing:.5px}
.logo img{width:30px;height:30px;border-radius:8px}
.nav-links{display:flex;gap:22px;margin-left:auto;font-size:15px}
.nav-links a{color:#fff;opacity:.82;text-decoration:none;padding:10px 0;border-bottom:2px solid transparent}
.nav-links a.is-on{opacity:1;border-bottom-color:#fff;font-weight:700}
body.is-home .nav{position:fixed;left:0;right:0;background:transparent;transition:background-color .2s}
body.is-home.scrolled .nav{background:var(--deep);box-shadow:0 2px 12px rgba(0,0,0,.18)}
@media (max-width:640px){
  .nav .wrap{flex-wrap:wrap;gap:4px 18px;padding-top:10px;padding-bottom:8px;min-height:0}
  .nav-links{margin-left:0;width:100%;gap:16px;font-size:14.5px;overflow-x:auto;scrollbar-width:none;white-space:nowrap}
  .nav-links::-webkit-scrollbar{display:none}
  html[lang="en"] .nav-links{gap:10px;font-size:13.5px}
}

/* 首頁封面 */
.hero{position:relative;min-height:clamp(520px,88vh,760px);display:flex;align-items:flex-end;color:#fff;overflow:hidden;
  background:linear-gradient(160deg,#c06a3a 0%,#8b3f1f 45%,#3b2a1c 100%)}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease}
.hero-img.is-on{opacity:1}
@media (prefers-reduced-motion: reduce){.hero-img{transition:none}}
.hero.has-photo::after{content:"";position:absolute;inset:0;background:
  linear-gradient(to top,rgba(20,12,6,.82) 0%,rgba(20,12,6,.38) 45%,rgba(20,12,6,.1) 72%,rgba(20,12,6,.4) 100%),
  linear-gradient(90deg,rgba(20,12,6,.5) 0%,rgba(20,12,6,0) 62%)}
.hero.has-photo .kicker,.hero.has-photo h1,.hero.has-photo .facts{text-shadow:0 2px 18px rgba(0,0,0,.5)}
.hero-t{position:relative;z-index:1;width:100%;padding-bottom:56px}
.kicker{font-size:14px;letter-spacing:3px;opacity:.88;margin:0 0 10px}
.hero-tag{margin:14px 0 0;font-size:clamp(18px,2.6vw,24px);font-weight:500;letter-spacing:2px;opacity:.92}
.hero h1{margin:0;font-size:clamp(42px,8.5vw,86px);line-height:1.08;font-weight:900;letter-spacing:-1px}
.facts{display:flex;gap:30px;margin-top:28px;font-size:14px;opacity:.92}
.facts b{display:block;font-size:28px;line-height:1.2}

/* 首頁區塊 */
.band{padding:72px 0}
.band.alt{background:var(--card)}
.sec-k{margin:0;font-size:13px;letter-spacing:3px;font-weight:700;color:var(--accent)}
.sec-h{margin:6px 0 28px;font-size:clamp(28px,4.5vw,40px);line-height:1.25}
.sec-h .more,.sec .more{float:right;margin-top:.15em;padding:8px 0 8px 14px;font-size:15px;font-weight:600;color:var(--brand);text-decoration:none}

/* 旅程 */
.journey{list-style:none;margin:0 0 0 18px;padding:0;border-left:2px solid var(--line)}
.j-day{position:relative;padding:0 0 30px 24px}
.j-day::before{content:"";position:absolute;left:-8px;top:10px;width:14px;height:14px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px var(--bg)}
.band.alt .j-day::before{box-shadow:0 0 0 4px var(--card)}
.j-link{display:grid;grid-template-columns:64px 1fr;gap:6px 16px;color:inherit;text-decoration:none}
a.j-link:hover h3{color:var(--accent)}
.j-num{font-size:30px;font-weight:900;line-height:1;color:var(--brand)}
.j-num span{display:block;font-size:12px;letter-spacing:2px;color:var(--muted);font-weight:700}
.j-date{margin:0;font-size:13.5px;color:var(--muted)}
.j-body h3{margin:2px 0 0;font-size:19px;line-height:1.45}
.j-x{margin:2px 0 0;color:var(--muted);font-size:14.5px}
.j-n{margin:6px 0 0;font-size:14px;font-weight:700;color:var(--accent)}
.j-ph{grid-column:2;width:100%;height:210px;object-fit:cover;border-radius:14px;margin-top:8px}
.is-today .j-num{color:var(--accent)}
/* 首頁旅程小卡（左右滑） */
.jstrip{display:grid;grid-auto-flow:column;grid-auto-columns:clamp(150px,42vw,220px);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 20px;
  margin:0 -20px;padding:2px 20px 10px;scrollbar-width:none}
.jstrip::-webkit-scrollbar{display:none}
.js-day{scroll-snap-align:start;color:inherit;text-decoration:none;min-width:0}
.js-ph{position:relative;aspect-ratio:4/5;border-radius:14px;overflow:hidden;background:linear-gradient(160deg,var(--brand) 0%,var(--deep) 100%)}
.js-ph img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
a.js-day:hover .js-ph img{transform:scale(1.05)}
.js-n{position:absolute;left:10px;bottom:8px;color:#fff;font-size:26px;font-weight:900;line-height:1;text-shadow:0 1px 6px rgba(0,0,0,.45)}
.js-n small{display:block;font-size:12px;letter-spacing:2px;font-weight:700}
.js-day .j-date{margin:8px 0 0}
.js-day h3{margin:2px 0 0;font-size:15.5px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
a.js-day:hover h3{color:var(--accent)}
.js-day.is-today .js-ph{outline:3px solid var(--accent);outline-offset:2px}
/* 電腦：12 天剛好 6×2 排滿，不用橫滑 */
@media (min-width:900px){.jstrip{grid-auto-flow:row;grid-template-columns:repeat(6,1fr);grid-auto-columns:auto;gap:22px 14px;overflow:visible;margin:0;padding:2px 0 0}}
@media (min-width:760px){
  .j-link{grid-template-columns:72px 1fr 380px;align-items:start}
  .j-ph{height:220px}
  .j-ph{grid-column:3;grid-row:1/3;margin:0}
}

.recap{max-height:70vh}

/* 引言帶 */
.quote{background:var(--deep);color:#f4efe6;text-align:center;padding:80px 0}
.quote blockquote{margin:0 auto;max-width:760px;font-size:clamp(22px,3.6vw,32px);line-height:1.6;font-weight:600;white-space:pre-line}
.quote cite{display:block;margin-top:18px;font-style:normal;opacity:.75;font-size:15px}

/* 團員格 */
.team-photo{display:block;width:100%;aspect-ratio:16/9;border-radius:18px;overflow:hidden}
.team-photo img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.team-photo:hover img{transform:scale(1.03)}
@media (max-width:640px){.team-photo{aspect-ratio:4/3;border-radius:14px}}

/* 頁尾 */
/* 頁尾：兩行就好——站名＋站內連結／友站膠囊＋版號（2026-10-06 L：太佔位置） */
.foot{background:#231a12;color:#d9cdbd;padding:18px 0 calc(14px + env(safe-area-inset-bottom));font-size:14px}
.foot .wrap{display:grid;gap:10px}
.foot a{color:#d9cdbd;text-decoration:none;transition:color .2s,border-color .2s}
.foot a:hover{color:#fff}
.foot-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 20px}
.foot-brand{display:flex;align-items:center;gap:8px;color:#fff!important;font-weight:800;letter-spacing:.5px}
.foot-brand img{width:24px;height:24px;border-radius:6px}
.foot-more{display:flex;gap:18px}
.foot-more a{padding:4px 0}
.foot-yt{display:inline-flex;align-items:center;gap:6px}
.foot-yt svg{width:18px;height:18px;fill:currentColor}
.foot-friends{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.foot-friends span{margin-right:4px;font-size:12px;letter-spacing:1px;color:#a3927f}
.foot-friends a{padding:3px 10px;border:1px solid rgba(255,255,255,.18);border-radius:99px;font-size:13px}
.foot-friends a:hover{border-color:rgba(255,255,255,.5)}
.foot-bar{margin:0;font-size:12px;opacity:.5;font-variant-numeric:tabular-nums}
/* 手機頁尾：每一行都不換行——站名＋版號／三個站內連結／友站膠囊一排左右滑（2026-10-09 L：手機會換行） */
@media (max-width:640px){
  .foot{font-size:13.5px}
  .foot .wrap{grid-template-columns:1fr auto;grid-template-areas:"brand bar" "more more" "friends friends";align-items:center;gap:10px 12px}
  .foot-row{display:contents}
  .foot-brand{grid-area:brand}
  .foot-bar{grid-area:bar;text-align:right}
  .foot-more{grid-area:more;gap:20px}
  .foot-friends{grid-area:friends;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -20px;padding:0 20px 2px}
  .foot-friends::-webkit-scrollbar{display:none}
  .foot-friends a,.foot-friends span{flex:none;white-space:nowrap}
}

/* 手機：封面縮短一點，讓下一段露出來；iOS 網址列用 svh 算 */
@media (max-width:640px){
  .hero{min-height:clamp(440px,78vh,700px);min-height:clamp(440px,78svh,700px)}
  .hero-t{padding-bottom:40px}
  .band{padding:56px 0}
  .quote{padding:60px 0}
  .facts{gap:24px}
}

/* 首頁拼貼照片牆 */
.mosaic{display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:140px;grid-auto-flow:dense;gap:8px}
/* 精選照片輪播：手機一次一張多露一點下一張，寬螢幕一次三張 */
.car{position:relative}
.car-track{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.car-track::-webkit-scrollbar{display:none}
.car-s{flex:0 0 84%;aspect-ratio:4/5;border-radius:14px;scroll-snap-align:start}
.car-s img{transition:transform .5s ease}.car-s:hover img{transform:scale(1.03)}
.car-play{inset:50% auto auto 50%;width:56px;height:56px;margin:-28px 0 0 -28px;font-size:22px}
@media (min-width:760px){.car-s{flex-basis:calc((100% - 20px)/3)}}
.car-nav{position:absolute;top:calc(50% - 30px);z-index:2;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:#222;font-size:26px;line-height:1;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.18);display:flex;align-items:center;justify-content:center;padding:0 0 3px}
.car-nav.is-prev{left:8px}.car-nav.is-next{right:8px}
@media (hover:none){.car-nav{display:none}}
.mo{border-radius:12px;aspect-ratio:auto}
.mo img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.mo:hover img{transform:scale(1.04)}
.mo.is-big{grid-column:span 2;grid-row:span 2}
.mo.is-tall{grid-row:span 2}
@media (min-width:760px){
  .mosaic{grid-template-columns:repeat(4,1fr);grid-auto-rows:190px;gap:10px}
}

/* 服務現場 */
/* 服務現場：小卡片，手機兩欄、寬螢幕四欄；超過 4 個先收起來，按「看更多」展開 */
.field{display:grid;gap:10px;grid-template-columns:repeat(2,1fr)}
@media (min-width:760px){.field{grid-template-columns:repeat(4,1fr)}}
.field.is-folded:not(.is-open) .is-more{display:none}
.field-toggle{display:block;margin:14px auto 0;padding:10px 20px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--brand);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.field-i{position:relative;display:block;height:130px;border-radius:14px;overflow:hidden;color:#fff;text-decoration:none;background:var(--sand-2)}
@media (min-width:760px){.field-i{height:160px}}
.field-i img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.field-i:hover img{transform:scale(1.05)}
.field-i span{position:absolute;left:0;right:0;bottom:0;padding:28px 12px 10px;background:linear-gradient(to top,rgba(20,12,6,.75),rgba(20,12,6,0))}
.field-i b{display:block;font-size:16px}
.field-i small{font-size:12px;opacity:.85}

/* ── 動畫 ── */
@keyframes kb{from{transform:scale(1.02)}to{transform:scale(1.12)}}
@keyframes rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes drift{0%{transform:translate3d(0,0,0);opacity:0}15%{opacity:.75}100%{transform:translate3d(18px,-62vh,0);opacity:0}}
@keyframes cue{0%,100%{transform:translateY(0);opacity:.6}50%{transform:translateY(8px);opacity:1}}
@keyframes wave{0%,100%{opacity:1}50%{opacity:.35}}
.hero-img.is-on{animation:kb 14s ease-out both}
.hero-t>*{animation:rise .9s cubic-bezier(.2,.7,.2,1) both}
.hero-t>.kicker{animation-delay:.15s}.hero-t>h1{animation-delay:.3s}.hero-t>.hero-tag{animation-delay:.42s}.hero-t>.facts{animation-delay:.55s}
.motes{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.motes i{position:absolute;left:var(--x);bottom:-10px;width:var(--z);height:var(--z);border-radius:50%;
  background:radial-gradient(circle,rgba(255,214,170,.95),rgba(255,180,120,0) 70%);animation:drift var(--s) linear var(--d) infinite}
.cue{position:absolute;z-index:2;left:50%;bottom:16px;transform:translateX(-50%);width:44px;height:44px;border:0;background:none;cursor:pointer}
.cue span{display:block;width:14px;height:14px;margin:0 auto;border-right:2px solid #fff;border-bottom:2px solid #fff;rotate:45deg;animation:cue 1.8s ease-in-out infinite}
.rv{opacity:0;transform:translateY(26px);transition:opacity .7s ease var(--rd,0ms),transform .7s cubic-bezier(.2,.7,.2,1) var(--rd,0ms)}
.rv.in{opacity:1;transform:none}
.j-day.rv::before{transform:scale(0);transition:transform .5s cubic-bezier(.3,1.6,.5,1) calc(var(--rd,0ms) + 200ms)}
.j-day.rv.in::before{transform:scale(1)}

/* 主題曲開關（參考星期七部落格：左下角、預設不播） */
.bgm{position:fixed;left:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:40;display:inline-flex;align-items:center;gap:8px;
  height:40px;width:40px;padding:0;justify-content:center;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(20,70,60,.88);color:#fff;
  font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;backdrop-filter:blur(6px);box-shadow:0 6px 20px rgba(0,0,0,.2);transition:opacity .2s ease}
.bgm:hover{opacity:1}
.bgm-ic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bgm-ic .spk-body{fill:currentColor;stroke:none}
.bgm-ic .spk-on{display:none}
.bgm-ic .spk-on path{animation:wave 1.6s ease-in-out infinite}
.bgm-ic .spk-on path:nth-child(2){animation-delay:.3s}
.bgm{opacity:.6}
.bgm.is-on{background:var(--accent);opacity:.85}
.bgm.is-on .spk-on{display:inline}
.bgm.is-on .spk-off{display:none}

body.lb-on .bgm{display:none}

@media (prefers-reduced-motion: reduce){
  .hero-img.is-on,.hero-t>*,.motes i,.cue span,.bgm-ic .spk-on path{animation:none}
  .motes{display:none}
  .rv{opacity:1;transform:none;transition:none}
}
.mb-role{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:99px;background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:700;vertical-align:middle}

/* 旅程頁地圖：一天一格 */
.tmap{margin:6px 0 30px}
.rmap-stage{position:relative;aspect-ratio:1000/640;border-radius:16px;overflow:hidden;background:#dbe7e3;border:1px solid var(--line)}
.rmap-v{position:absolute;inset:0;opacity:0;transition:opacity .9s ease}
.rmap-v.is-on{opacity:1}
.map-svg{display:block;width:100%;height:100%}
.m-sea{fill:#dbe7e3}
.m-land{fill:#f5f0e6;stroke:#d6cbb8;stroke-width:.8}
.m-hl{fill:#f7e3c9;stroke:#c98a52;stroke-width:1.2}
.rmap-v.is-kenya .m-hl{fill:#f9ecda}
.m-route{fill:none;stroke:#b4532a;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;transition:stroke-dashoffset 1.6s ease}
.m-route.is-back{stroke:#14463c}
.m-pt{opacity:0;transition:opacity .6s ease}
.m-dot{fill:#b4532a;stroke:#fff;stroke-width:3;transition:r .3s}
.m-ring{fill:#b4532a;opacity:0;transform-box:fill-box;transform-origin:center}
.m-pt.is-pulse .m-ring{animation:mring 1.8s ease-out infinite}
.m-pt.is-pulse .m-dot{r:7}
@keyframes mring{0%{transform:scale(1);opacity:.4}100%{transform:scale(3.4);opacity:0}}
.m-pt text{font-size:26px;font-weight:800;fill:#2b2118;paint-order:stroke;stroke:#fff;stroke-width:6px;stroke-linejoin:round}
.m-eq{stroke:#c98a52;stroke-width:2;stroke-dasharray:8 8}
.m-eq-t{font-size:22px;font-weight:700;fill:#a0683a}
.m-town circle{fill:rgba(180,83,42,.07);stroke:rgba(180,83,42,.4);stroke-width:2;stroke-dasharray:6 6}
.m-town text{font-size:24px;font-weight:700;fill:#8a6a4a}
.m-note{font-size:18px;fill:#8a7a66}
.m-grid{stroke:#e6dccb;stroke-width:1.5}
.rmap-v.is-kitale .m-pt:not(.is-pulse) .m-dot{fill:#d9a58a}
.m-lab{display:none;font-size:30px;font-weight:800;fill:#b4532a;paint-order:stroke;stroke:#fff;stroke-width:7px;stroke-linejoin:round}
.m-pt.is-pulse .m-lab{display:inline}
@media (max-width:640px){
  .m-pt text{font-size:40px;stroke-width:8px}
  .m-route{stroke-width:7}
  .m-dot{r:8}.m-pt.is-pulse .m-dot{r:11}
  .m-ring{r:14}
  .m-eq-t,.m-town text{font-size:34px}
  .m-note{font-size:28px}
  .m-lab{font-size:44px;stroke-width:9px}
}
.tmap-ctl{display:flex;align-items:center;gap:10px;margin-top:12px}
.tmap-play{flex:none;width:40px;height:40px;border:0;border-radius:50%;background:var(--brand);color:#fff;font-size:15px;cursor:pointer}
.tmap-days{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.tmap-days::-webkit-scrollbar{display:none}
.tmap-d{flex:none;padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer;font-variant-numeric:tabular-nums}
.tmap-d.is-past{color:var(--ink)}
.tmap-d.is-on{background:var(--accent);border-color:var(--accent);color:#fff}
.tmap-info{min-height:150px;margin-top:14px}
.tmap-info .j-date{margin:0}
.tmap-t{margin:4px 0 2px;font-size:20px;line-height:1.4}
.tmap-ph{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-top:10px}
.tmap-ph::-webkit-scrollbar{display:none}
.tmap-ph .ph{flex:0 0 96px;width:96px;border-radius:10px}
.tmap-more{display:inline-block;margin-top:10px;font-size:14px;font-weight:700;color:var(--brand);text-decoration:none}

/* 旅程地圖：地圖上的拍立得、依時間的據點 */
.tmap-pola{position:absolute;z-index:3;margin:0;width:30%;max-width:210px;padding:6px 6px 0;background:#fff;border-radius:4px;box-shadow:0 10px 26px rgba(0,0,0,.28);
  opacity:0;transform:rotate(var(--rot,-3deg)) scale(.86);transition:opacity .35s ease,transform .45s cubic-bezier(.2,.9,.3,1.3);pointer-events:none}
.tmap-pola.is-on{opacity:1;transform:rotate(var(--rot,-3deg)) scale(1)}
.tmap-pola img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:2px;background:#eee}
.tmap-pola figcaption{padding:5px 2px 7px;font-size:14px;font-weight:800;color:#2b2118;text-align:center;font-variant-numeric:tabular-nums}
@media (max-width:640px){.tmap-pola{width:30%;padding:4px 4px 0}.tmap-pola figcaption{font-size:12px;padding:3px 2px 5px}}
.tmap-stops{list-style:none;margin:12px 0 0;padding:0 0 0 14px;border-left:2px solid var(--line)}
.tmap-stop{position:relative;padding:0 0 12px}
.tmap-stop::before{content:"";position:absolute;left:-20px;top:5px;width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--bg)}
.tmap-when{display:flex;align-items:baseline;gap:8px;margin:0 0 6px;font-size:14px}
.tmap-when time{font-weight:800;color:var(--accent);font-variant-numeric:tabular-nums}
.tmap-when span{font-weight:700;color:var(--ink)}
.tmap-stop .tmap-ph{margin-top:0}
/* 團康遊戲：玩的時候拍的照片 */
.game-ph{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:8px 0 10px}
.game-ph::-webkit-scrollbar{display:none}
.game-ph .ph{flex:0 0 110px;width:110px;border-radius:10px}

/* 中英切換鈕 */
.lang{flex:none;margin-left:10px;min-width:40px;height:32px;padding:0 10px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:transparent;color:#fff;font:inherit;font-size:13px;font-weight:800;letter-spacing:.5px;cursor:pointer}
.lang:hover{background:rgba(255,255,255,.12)}
/* 右上角工具：深淺色切換＋語言 */
.nav-tools{flex:none;display:flex;align-items:center;gap:8px;margin-left:10px}
.nav-tools .lang{margin-left:0}
.theme-btn{display:inline-flex;align-items:center;justify-content:center;min-width:32px;width:32px;padding:0}
.theme-btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.theme-btn .ic-moon path{fill:currentColor;stroke:none}
.theme-btn .ic-sun{display:none}
:root[data-theme="dark"] .theme-btn .ic-sun{display:block}
:root[data-theme="dark"] .theme-btn .ic-moon{display:none}
/* 英文模式：劇本、圖卡、歌詞本來就有英文，藏起中文翻譯那行；中文諧音也藏起來 */
html[lang="en"] .script .zh,html[lang="en"] .dir .zh,html[lang="en"] .tip .zh,html[lang="en"] .scene-title .zh,
html[lang="en"] .card-title .zh,html[lang="en"] .card-text .zh,html[lang="en"] .song .sl .zh,html[lang="en"] .chant .zh,
html[lang="en"] .pron{display:none}
@media (max-width:640px){.nav-tools{order:1;margin-left:auto}.lang{height:30px}.theme-btn{width:30px;min-width:30px}.nav-links{order:2}}

/* 旅程地圖轉場：換畫面縮放、鏡頭移到那天的點、移動中的點 */
.map-svg{transform-origin:0 0;transition:transform 1.4s cubic-bezier(.45,0,.2,1)}
.rmap-v.z-in-leave{animation:zInLeave .9s ease forwards}
.rmap-v.z-in-enter{animation:zInEnter .9s ease}
.rmap-v.z-out-leave{animation:zOutLeave .9s ease forwards}
.rmap-v.z-out-enter{animation:zOutEnter .9s ease}
@keyframes zInLeave{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.9)}}
@keyframes zInEnter{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
@keyframes zOutLeave{from{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.6)}}
@keyframes zOutEnter{from{opacity:0;transform:scale(1.9)}to{opacity:1;transform:scale(1)}}
.m-trav{fill:#fff;stroke:#b4532a;stroke-width:4;transition:transform 1.4s cubic-bezier(.45,0,.2,1)}
.m-trav.is-new{transition:none}
@media (max-width:640px){.m-trav{r:16;stroke-width:6}}
.tmap-stop{transition:opacity .3s}
.tmap-stops:has(.is-now) .tmap-stop:not(.is-now){opacity:.55}
.tmap-stop.is-now .tmap-when time{text-decoration:underline;text-underline-offset:4px}
@media (prefers-reduced-motion:reduce){.map-svg,.m-trav{transition:none}.rmap-v{animation:none!important}}

/* Kitale 點旁邊的日期＋服務場所名稱 */
.m-lab .m-lab-p{font-size:24px;font-weight:700;fill:#2b2118}
@media (max-width:640px){.m-lab .m-lab-p{font-size:34px}}

.tmap-play{display:inline-flex;align-items:center;justify-content:center;padding:0}
.tmap-play svg{width:20px;height:20px;display:block}
.tmap-place{font-weight:600!important;color:var(--muted)!important;font-size:13px}

/* 旅程地圖左下角：這天的服務場所 */
.tmap-chip{position:absolute;left:10px;bottom:10px;z-index:4;max-width:calc(100% - 20px);margin:0;padding:6px 11px;border-radius:999px;background:rgba(255,255,255,.92);color:#2b2118;font-size:13px;font-weight:800;line-height:1.35;box-shadow:0 4px 12px rgba(0,0,0,.12);opacity:0;transform:translateY(6px);transition:opacity .35s ease,transform .35s ease;pointer-events:none}
.tmap-chip.is-on{opacity:1;transform:none}
@media (max-width:640px){.tmap-chip{font-size:12px;padding:5px 9px;left:8px;bottom:8px}}

/* 精選時刻：進度條＋張數（取代圓點） */
.car-bar{display:flex;align-items:center;gap:12px;margin-top:12px}
.car-prog{flex:1;height:3px;border-radius:2px;background:var(--line);overflow:hidden}
.car-prog i{display:block;height:100%;background:var(--brand);border-radius:2px;transition:width .4s ease}
.car-count{flex:none;font-size:12.5px;font-weight:700;color:var(--muted);font-variant-numeric:tabular-nums}

