/* ══ 基礎 ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; } /* 篩選用 hidden 屬性，不能被 display:grid 之類蓋掉 */
a { color: var(--brand-purple); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand-purple); outline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 100;
  padding: 0.5rem 1rem; background: var(--ink); color: #fff; border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ══ 頁首 ═══════════════════════════════════════════════ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.75rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.75rem);
}
.site-header__brand { display: block; position: relative; }
.site-header__brand img { width: clamp(220px, 56vw, 440px); height: auto; }

/* 首頁：固定浮於 hero 之上；捲離 hero 後變成緊湊實色列（logo 換紫版） */
.site-header--float {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 10;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
/* 登入時 WP admin bar 佔頂端 32px（<783px 為 46px） */
.admin-bar .site-header--float { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header--float { top: 46px; } }
.site-header__logo--dark { display: none; }
.site-header--static .site-header__logo--dark { display: block; }
/* 白 logo 疊淺藍天空對比偏弱 → 淡白柔光底 */
.site-header--float .site-header__brand::before {
  content: '';
  position: absolute;
  inset: -18% -6%;
  background: radial-gradient(closest-side, rgba(244, 246, 247, 0.9), rgba(244, 246, 247, 0) 75%);
  filter: blur(6px);
  z-index: -1;
}
/* 緊湊列：薄透毛玻璃——底色只留六成，靠 blur 讓插畫在後面透出來，文字仍可讀 */
.site-header--float.is-compact {
  padding-block: 0.5rem;
  background: rgba(244, 246, 247, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 30px rgba(74, 74, 82, 0.08);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header--float.is-compact {
    background: rgba(244, 246, 247, 0.58);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
  }
}
.site-header--float.is-compact .site-header__brand::before { display: none; }
.site-header--float.is-compact .site-header__logo--light { display: none; }
.site-header--float.is-compact .site-header__logo--dark { display: block; width: clamp(180px, 30vw, 260px); }
/* 內頁：一般靜態頁首 */
.site-header--static {
  position: relative;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header--static .site-header__brand img { width: clamp(200px, 40vw, 320px); }

/* 主選單 */
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  display: block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--brand-purple); background: rgba(152, 122, 160, 0.1); }
.site-nav .current-menu-item > a, .site-nav .current_page_parent > a { color: var(--brand-purple); background: rgba(152, 122, 160, 0.14); }
/* 浮在 hero 上時，選單放進紙白膠囊裡 */
.site-header--float:not(.is-compact) .site-nav__list {
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(244, 246, 247, 0.86);
  box-shadow: 0 4px 18px rgba(74, 74, 82, 0.12);
}
.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%;
  background: rgba(244, 246, 247, 0.9);
  cursor: pointer;
  position: relative;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ''; position: absolute; left: 50%; width: 1.25rem; height: 2px; margin-left: -0.625rem;
  background: var(--ink); transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle__bar { top: 50%; margin-top: -1px; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.is-open .nav-toggle__bar { background: transparent; }
.is-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.is-open .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  /* 手機選單：從頁首往下展開的整面毛玻璃，項目大、好按、有 icon */
  .site-nav {
    position: fixed;
    inset: calc(var(--sticky-top, 0px) + var(--header-h, 64px)) 0 0 0;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: clamp(2.25rem, 8vw, 3.5rem) clamp(1.1rem, 5vw, 2rem) calc(env(safe-area-inset-bottom, 0px) + 1.75rem);
    background: rgba(244, 246, 247, 0.93);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    backdrop-filter: blur(20px) saturate(1.3);
    border-bottom: 0;
    box-shadow: none;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 0.85, 0.28, 1), visibility 0.28s;
    overflow-y: auto; overscroll-behavior: contain;
  }
  .is-open .site-nav { display: flex; opacity: 1; visibility: visible; transform: none; }
  .site-nav__list,
  .site-header--float:not(.is-compact) .site-nav__list {
    flex-direction: column; gap: 0.35rem; padding: 0;
    background: none; border: unset; box-shadow: unset; border-radius: 0;
  }
  /* 依序淡入用 transition，不要用 animation。
     animation 版本的「可見」是動畫的終點，動畫一旦沒跑完（iOS 通話中／低耗電模式會暫停動畫），
     項目就永遠停在 opacity: 0，而 body.nav-open 又鎖住捲動 → 使用者被關在死路裡。
     transition 版本的終點狀態就是元素本來的計算值，動畫被系統擋掉時只是「直接出現」，不會消失。 */
  .site-nav__list li {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.34s ease, transform 0.34s cubic-bezier(0.22, 0.85, 0.28, 1);
  }
  .is-open .site-nav__list li { opacity: 1; transform: none; }
  .is-open .site-nav__list li:nth-child(1) { transition-delay: 0.04s; }
  .is-open .site-nav__list li:nth-child(2) { transition-delay: 0.09s; }
  .is-open .site-nav__list li:nth-child(3) { transition-delay: 0.14s; }
  .is-open .site-nav__list li:nth-child(4) { transition-delay: 0.19s; }
  .is-open .site-nav__list li:nth-child(5) { transition-delay: 0.24s; }
  .site-nav__list { gap: 0.5rem; }
  .site-nav a {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 1.15rem 1.15rem; border-radius: 16px;
    font-size: 1.32rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px rgba(152, 122, 160, 0.14);
  }
  .site-nav a .ico { width: 1.4rem; height: 1.4rem; margin: 0; color: var(--accent); flex: none; }
  .site-nav a::after { content: '›'; margin-left: auto; color: var(--accent); opacity: 0.5; font-size: 1.5rem; line-height: 1; }
  .site-nav .current-menu-item > a, .site-nav .current_page_parent > a {
    background: rgba(222, 206, 236, 0.55); color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(152, 122, 160, 0.3);
  }
  .site-nav__foot { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
  .site-nav__dates { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--accent); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
  .site-nav__venue { margin: 0.2rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
  /* 選單開著時鎖住背景捲動 */
  body.nav-open { overflow: hidden; }
  /* 注意：頁首不能加 backdrop-filter——有它的祖先會變成 fixed 定位基準，
     選單面板就會被關進頁首那一條的框裡。模糊交給 .site-nav 自己做。
     **compact 狀態也一樣**：捲過 hero 後 .is-compact 會補上 backdrop-filter，
     所以「在頂端開選單正常、捲一下再開就被截斷」（量到 nav 只剩 84px）。
     選單開著時一律拿掉頁首的 backdrop-filter，改用不透明底。 */
  .site-header--float:not(.is-compact).is-open { background: rgba(244, 246, 247, 0.93); }
  .site-header--float.is-compact.is-open {
    background: rgba(244, 246, 247, 0.96);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .site-header--float:not(.is-compact).is-open .site-header__logo--light { display: none; }
  .site-header--float:not(.is-compact).is-open .site-header__logo--dark { display: block; }
  .site-header--float:not(.is-compact).is-open .site-header__brand::before { display: none; }
  @media (prefers-reduced-motion: reduce) {
    .site-nav { transition: none; }
    .site-nav__list li { transition: none; }
    .is-open .site-nav__list li { opacity: 1; transform: none; }
  }
}

/* ══ Hero：260vh 捲動跑道 + 固定在最底層的 100svh 舞台 ═══════
   舞台 position:fixed 當全站背景：走完視差後不放掉，下方內容以毛玻璃卡片浮在插畫上，
   舞台再隨捲動極慢地往下漂（hero.js）。 */
.hero {
  position: relative;
  height: 260vh;
  height: 260svh;
}
.hero__stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--sky-blue);
}
.hero--night .hero__stage { background: #3b4a86; }
/* 捲離 hero 後收掉捲動提示（日夜切換鈕已移到頁首常駐） */
/* 七層同畫布 2560×1808，貼 0,0 同尺寸即自動對齊。
   高度 125% 預留 overscan，視差往上位移（最大 20%）不露底。 */
.layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 125%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 62%;
  will-change: transform;
}
.layer--sparkles { will-change: opacity; }
/* 夜版光照層在 PSD 裡是「濾色」混合，用瀏覽器原生 screen 疊才會亮；stage 隔離避免跟頁面底色混 */
.hero__stage { isolation: isolate; }
.hero--night .layer--sparkles { mix-blend-mode: screen; }

/* 夜版 */
/* 夜版構圖上下都有重點（月亮在頂、吹笛女孩在底），16:9 會裁掉約 24% 高度：
   整層上提 6% 讓月亮完整、女孩隨捲動走進畫面；橫向偏右 65% 讓手機直式也看得到牛背女孩 */
.hero--night .layer { top: -6%; object-position: 65% 50%; }
/* 霧帶不飄：霧的輪廓是照物件邊緣拼接的，一動就對不上 */
/* 穿越兩個世界的鏡片：鏡片本身只動 transform，柔邊遮罩固定，裡面的世界反向位移對齊舞台 */
.lens {
  --lens: 250px; /* 對方回饋：透視鏡小一點（原 340） */
  position: absolute;
  top: 0; left: 0;
  width: var(--lens); height: var(--lens);
  margin: calc(var(--lens) / -2) 0 0 calc(var(--lens) / -2);
  transform: translate(var(--lx, -9999px), var(--ly, -9999px));
  will-change: transform;
  overflow: hidden;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
  -webkit-mask-image: radial-gradient(circle, #000 52%, rgba(0, 0, 0, 0.6) 66%, transparent 74%);
  mask-image: radial-gradient(circle, #000 52%, rgba(0, 0, 0, 0.6) 66%, transparent 74%);
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .lens { display: block; }
}
.lens.is-on { opacity: 1; }
.lens__world { position: absolute; inset: 0; }
/* 幾何跟 .layer 一樣（舞台寬、125% 高、同 object-position），再以 (R - lx, R - ly) 反向位移 */
.lens__img {
  position: absolute; top: 0; left: 0;
  width: var(--sw, 100vw); height: var(--sh, 125svh);
  max-width: none;
  object-fit: cover; object-position: 50% 62%;
  transform: translate(calc(var(--lens) / 2 - var(--lx, 0px)), calc(var(--lens) / 2 - var(--ly, 0px)));
  will-change: transform;
}
.lens--night .lens__img { object-position: 65% 50%; top: -6%; } /* 夜版 layer 的偏移 */

/* 日／夜切換鈕 */
.hero__toggle {
  position: absolute;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 4vh, 2.5rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(244, 246, 247, 0.88);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  text-decoration: none;
}
.hero__toggle:hover, .hero__toggle:focus-visible { background: var(--paper); color: var(--brand-purple); }

  50%      { translate: 0 8px; }
}

/* ══ 首頁區塊：毛玻璃卡片浮在固定的 hero 上 ════════════════ */
.below-hero {
  position: relative;
  z-index: 1;
  padding: 2vh 0 clamp(2rem, 5vw, 4rem);
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.below-hero .section { padding-block: 0; }
.below-hero .section > .wrap {
  /* 卡片外緣對齊 /programs/ 的內容邊界：--wrap 1440 扣掉 .pg__wrap 的左右內距，
     兩頁的左右邊在任何寬度都切齊（卡片有底色，對齊外框會比 pg 寬一截） */
  --card-gutter: clamp(1rem, 3vw, 2.5rem);
  box-sizing: border-box;
  width: calc(100% - 2 * var(--card-gutter));
  max-width: calc(var(--wrap) - 2 * var(--card-gutter));
  margin-inline: auto;
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: 22px;
  background: rgba(244, 246, 247, 0.93);
  box-shadow: 0 12px 40px rgba(74, 74, 82, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
/* 毛玻璃模糊只給桌機：手機上 backdrop-filter 疊在十層固定圖上很吃 GPU，改用較實的底就好 */
@media (min-width: 1024px) {
  .below-hero .section > .wrap {
    background: rgba(244, 246, 247, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}
/* 讓非首頁的 .section 仍有原本間距 */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--tint { background: rgba(222, 206, 236, 0.22); }
.section--sky  { background: rgba(182, 216, 239, 0.22); }
.below-hero .section--tint, .below-hero .section--sky { background: none; }

.section__head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section__eyebrow {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--olive-shadow);
  letter-spacing: 0.02em;
}
.section__title {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: 0.06em;
  color: var(--brand-purple);
}
.section__lead { max-width: 40em; font-size: 1.05rem; }
.section__lead p:last-child { margin-bottom: 0; }
.section__more { margin-top: 1.5rem; font-size: 0.95rem; }

/* 策展概念 */
.concept { max-width: 42em; }
.concept p { font-size: 1.08rem; line-height: 2; }
.concept p:first-of-type::first-letter { font-size: 1.6em; color: var(--hibiscus); font-weight: 700; }

/* 三條路線 */
.routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .routes { grid-template-columns: repeat(3, 1fr); } }
.route-card {
  position: relative;
  padding: 1.5rem 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.route-card__date {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--hibiscus);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.route-card__title { margin: 0.4rem 0 0; font-size: 1.3rem; }
.route-card__title a { color: var(--ink); text-decoration: none; }
.route-card__title a::after { content: ''; position: absolute; inset: 0; }
.route-card:hover { border-color: var(--brand-purple); }
.route-card__time { margin: 0; font-size: 0.92rem; color: var(--olive-shadow); }
.route-card__excerpt { margin: 0.4rem 0 0; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.8; }

/* 節目一覽 */
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 1.25rem; }
@media (min-width: 600px)  { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .works { grid-template-columns: repeat(3, 1fr); } }
.work-card { position: relative; display: flex; flex-direction: column; }
.work-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(182, 216, 239, 0.35);
}
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.work-card:hover .work-card__media img { transform: scale(1.03); }
.work-card__body { padding: 0.9rem 0.25rem 0; }
.work-card__genre {
  display: inline-block;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--hibiscus);
  font-weight: 500;
}
.work-card__title { margin: 0; font-size: 1.15rem; }
.work-card__title a { color: var(--ink); text-decoration: none; }
.work-card__title a::after { content: ''; position: absolute; inset: 0; }
.work-card__team { margin: 0.1rem 0 0.5rem; font-size: 0.92rem; color: var(--brand-purple); }
.work-card__meta { margin: 0; padding: 0; list-style: none; font-size: 0.85rem; color: var(--olive-shadow); line-height: 1.7; }
.work-card__excerpt {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-card__excerpt p { margin: 0; }

/* 日期地點 */
.info { display: grid; gap: 2rem; }
@media (min-width: 768px) { .info { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.info__date {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.1;
  color: var(--brand-purple);
  letter-spacing: 0.02em;
}
.info__date small { display: block; font-family: var(--font-body); font-size: 1rem; color: var(--ink-soft); letter-spacing: 0.1em; margin-top: 0.4rem; }
.info__venue { margin: 1rem 0 0; font-size: 1.25rem; font-weight: 500; }
.info__note { margin: 0.5rem 0 0; color: var(--ink-soft); }
.info__block h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--olive-shadow); letter-spacing: 0.06em; }
.info__block p { margin: 0 0 1rem; white-space: pre-line; }

/* ══ 頁尾 ═══════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(222, 206, 236, 0.28);
  padding: 2.5rem 0 3rem;
  font-size: 0.88rem;
  line-height: 2;
}
.home .site-footer { background: rgba(244, 246, 247, 0.96); }
.site-footer p { margin: 0.1rem 0; }
.site-footer__org { white-space: pre-line; }
/* 單位名單 */
.credits { margin: 0 0 1.5rem; display: grid; gap: 0.55rem; }
.credits__row { display: grid; grid-template-columns: 5em 1fr; gap: 0.25rem 1rem; align-items: center; min-height: 1.6rem; }
.credits__role { margin: 0; font-size: 0.68rem; letter-spacing: 0.18em; color: var(--ink-soft); opacity: 0.8; }
.credits__items { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1.35rem; }
.credits__item { color: var(--ink-soft); text-decoration: none; font-size: 0.82rem; line-height: 1.5; transition: color 0.2s ease; }
a.credits__item:hover { color: var(--brand-purple); }
/* logo：小、單色、低調；hover 才回到墨色 */
.credits__item--logo { display: inline-flex; align-items: center; }
/* logo 用遮罩上色：底色吃 currentColor，就跟同一列的文字（--ink-soft）同色；
   之前是 grayscale + opacity 0.42，圖裡的字會比旁邊的文字淡一截 */
.credits__logo {
  display: block; height: 1.35rem; width: auto;
  background-color: currentColor;
  -webkit-mask: var(--logo) no-repeat center / contain;
          mask: var(--logo) no-repeat center / contain;
  transition: background-color 0.2s ease;
}
a.credits__item--logo:hover .credits__logo { background-color: var(--brand-purple); }
@media (max-width: 599px) {
  .credits__row { grid-template-columns: 1fr; gap: 0.15rem; min-height: 0; }
  .credits__items { gap: 0.3rem 1rem; }
  .credits__logo { height: 1.15rem; }
}
.site-footer__bottom { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.site-footer__links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.75rem; }
.site-footer__copy { margin-top: 1.25rem; color: var(--ink-soft); font-size: 0.8rem; }

/* ══ 內頁（第一輪：只求可讀，第二輪再精修） ═══════════════ */
.entry-hero { max-height: 62vh; overflow: hidden; background: rgba(182, 216, 239, 0.35); }
.entry-hero img { width: 100%; height: 100%; max-height: 62vh; object-fit: cover; }
.entry { max-width: 42em; padding-block: clamp(2.5rem, 6vw, 4rem); }
.entry__genre { font-size: 0.85rem; letter-spacing: 0.08em; color: var(--hibiscus); font-weight: 500; }
.entry__title { margin: 0.2rem 0 0.2rem; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.entry__title-en { margin: 0 0 1rem; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; color: var(--olive-shadow); }
.entry__meta { list-style: none; margin: 0 0 1.5rem; padding: 1rem 0; border-block: 1px solid var(--line); font-size: 0.95rem; }
.entry__meta li { display: flex; gap: 0.75rem; }
.entry__meta li span:first-child { flex: 0 0 5em; color: var(--ink-soft); }
.entry__lead { font-size: 1.08rem; font-weight: 500; line-height: 1.9; }
.entry__content { font-size: 1rem; }
.entry__content h3 { margin: 1.6em 0 0.4em; font-size: 1.1rem; color: var(--brand-purple); }
.entry__credits { margin-top: 2rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.9rem; white-space: pre-line; }
.entry__links { margin-top: 1.5rem; font-size: 0.92rem; }
.entry__links a { margin-right: 1rem; }
.entry__back { display: inline-block; margin-top: 2.5rem; font-size: 0.9rem; }

.archive-list { padding-block: clamp(2.5rem, 6vw, 4rem); }

/* 內頁補充 */
.entry--wide { max-width: 52em; }
.entry__sub { margin: 2.2rem 0 0.8rem; font-size: 1.25rem; color: var(--brand-purple); letter-spacing: 0.04em; }
.entry--wide .routes { margin-top: 1rem; }

/* ══ 最新消息 ═══════════════════════════════════════════ */
.news__list { list-style: none; margin: 0; padding: 0; }
.news__item { display: grid; grid-template-columns: 6.5em 1fr; gap: 0.5rem 1.25rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.news__item:last-child { border-bottom: 1px solid var(--line); }
.news__date { font-family: var(--font-display); color: var(--olive-shadow); font-size: 1.05rem; padding-top: 0.15rem; }
.news__title { margin: 0; font-size: 1.15rem; }
.news__title a { color: var(--ink); text-decoration: none; }
.news__title a:hover { color: var(--brand-purple); }
.news__excerpt { margin: 0.3rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.news__thumb { grid-column: 2; max-width: 320px; border-radius: 10px; overflow: hidden; }
@media (min-width: 720px) {
  .news__item { grid-template-columns: 6.5em 1fr 200px; align-items: start; }
  .news__thumb { grid-column: 3; grid-row: 1; }
}
.pagination { margin-top: 1.5rem; }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 0.9rem; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ══ 展演節目與活動地圖（工具頁：篩選列 sticky、左列表右 sticky 地圖） ══ */
.pg { --pg-wrap: 1440px; --bar-h: 64px; --sticky-top: 0px; padding-bottom: clamp(3rem, 8vw, 5rem); }
.admin-bar .pg { --sticky-top: 32px; }
@media (max-width: 782px) { .admin-bar .pg { --sticky-top: 46px; } }
.pg__wrap { max-width: var(--pg-wrap); margin-inline: auto; padding-inline: clamp(1rem, 3vw, 2.5rem); }
.pg__head { padding-block: clamp(1.75rem, 4vw, 2.75rem) 1rem; }
.pg__head .section__title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.pg__head .section__lead { font-size: 0.98rem; max-width: 46em; }

.pg-bar {
  position: sticky; top: var(--sticky-top); z-index: 5;
  background: rgba(244, 246, 247, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.pg-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; padding-block: 0.55rem; }
.pg-bar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; }
.pg-bar__group + .pg-bar__group::before { content: ''; width: 1px; height: 1.4rem; background: var(--line); margin-inline: 0.2rem 0.4rem; }
.pg-bar .chip { padding: 0.3rem 0.7rem; font-size: 0.84rem; }
.pg-bar__select select {
  padding: 0.32rem 1.9rem 0.32rem 0.75rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%234A4A52' stroke-width='1.5'/></svg>") no-repeat right 0.7rem center;
  font: inherit; font-size: 0.84rem; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.pg-bar__status { margin-left: auto; font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; }
.pg-view { display: none; }

.pg-body { display: grid; gap: 1.5rem; padding-top: 1.25rem; align-items: start; }
@media (min-width: 1024px) {
  .pg-body { grid-template-columns: minmax(0, 1fr) minmax(420px, 46%); gap: clamp(1.5rem, 3vw, 2.5rem); }
  .pg-map { position: sticky; top: calc(var(--sticky-top) + var(--bar-h) + 1rem); }
  .pg-map .map { width: min(100%, calc(100svh - var(--sticky-top) - var(--bar-h) - 4.5rem)); aspect-ratio: 1; margin-inline: auto; }
}
.map--tool { max-width: none; border-radius: 12px; box-shadow: none; border: 1px solid var(--line); }
.map--tool .map__img { width: 100%; height: 100%; object-fit: cover; }
.pg-map .map__hint { text-align: left; margin-top: 0.5rem; max-width: none; }

/* 手機：列表／地圖切換 */
@media (max-width: 1023px) {
  .pg-view { display: inline-flex; margin-left: auto; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
  .pg-view__btn { border: 0; background: none; padding: 0.35rem 0.9rem; font: inherit; font-size: 0.84rem; color: var(--ink); cursor: pointer; }
  .pg-view__btn.is-active { background: var(--ink); color: #fff; }
  .pg-bar__status { display: none; }
  .pg[data-view="list"] .pg-map { display: none; }
  .pg[data-view="map"] .pg-list { display: none; }
  .pg-bar__group--routes { order: 3; width: 100%; }
  .pg-bar__group + .pg-bar__group::before { display: none; }
}

/* 列表：緊湊、可掃描 */
.pg-list .tt-group + .tt-group { margin-top: 1.75rem; }
.pg-list .tt-group__head { margin-bottom: 0.4rem; }
.pg-list .tt-group__title { font-size: 1.15rem; }
.pg-list .tt-group__meta { font-size: 0.85rem; }
.pg-list .tt-list { border: 0; border-radius: 0; background: none; overflow: visible; }
.pg-list .tt-row {
  grid-template-columns: 3.4em auto 1fr auto;
  grid-template-areas: "time n body genre";
  gap: 0.2rem 0.7rem;
  padding: 0.6rem 0.6rem 0.6rem 0.2rem;
  border: 0; border-radius: 10px; border-left: 0;
  transition: background 0.15s ease;
}
.pg-list .tt-row + .tt-row { border-top: 0; }
.pg-list .tt-row:hover, .pg-list .tt-row.is-active { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pg-list .tt-row.is-active { box-shadow: inset 0 0 0 2px var(--route-color, var(--brand-purple)); }
.pg-list .tt-row__time { line-height: 1.15; }
.pg-list .tt-row__start { font-size: 0.95rem; }
.pg-list .tt-row__end { font-size: 0.72rem; }
.pg-list .tt-row__n { grid-area: n; width: 1.5rem; height: 1.5rem; margin: 0; font-size: 0.78rem; box-shadow: 0 0 0 2px #fff; align-self: start; margin-top: 0.1rem; }
.pg-list .tt-row__media { display: none; }
.pg-list .tt-row__title { font-size: 0.98rem; }
.pg-list .tt-row__meta { font-size: 0.8rem; gap: 0.15rem 0.7rem; }
.pg-list .tt-row__loc::before { content: '📍'; margin-right: 0.15rem; font-size: 0.75em; }
.pg-list .tt-row__genre { grid-area: genre; align-self: start; margin-top: 0.15rem; }
.pg-list .tt-row__locate { display: none; }
@media (min-width: 640px) {
  .pg-list .tt-row { grid-template-columns: 3.6em auto 88px 1fr auto auto; grid-template-areas: "time n media body genre locate"; align-items: center; }
  .pg-list .tt-row__media { display: block; grid-area: media; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: rgba(182, 216, 239, 0.3); }
  .pg-list .tt-row__media img { width: 100%; height: 100%; object-fit: cover; }
  .pg-list .tt-row__n { align-self: center; margin-top: 0; }
  .pg-list .tt-row__genre { align-self: center; margin-top: 0; }
  .pg-list .tt-row__locate {
    display: grid; place-items: center; grid-area: locate;
    width: 1.9rem; height: 1.9rem; border: 1px solid var(--line); border-radius: 50%;
    background: var(--paper); color: var(--brand-purple); font: inherit; font-size: 0.95rem; cursor: pointer;
    opacity: 0; transition: opacity 0.15s ease;
  }
  .pg-list .tt-row:hover .tt-row__locate, .pg-list .tt-row__locate:focus-visible { opacity: 1; }
}
@media (max-width: 1023px) { .pg-list .tt-row__locate { opacity: 1; } }

/* 步行段：縮成連接線 */
.tt-walk { position: relative; display: flex; align-items: center; gap: 0.6rem; padding: 0.15rem 0 0.15rem calc(3.4em + 0.7rem + 0.75rem - 1px); min-height: 1.6rem; }
@media (min-width: 640px) { .tt-walk { padding-left: calc(3.6em + 0.7rem + 0.75rem - 1px); } }
.tt-walk__line { width: 2px; height: 1.6rem; background: repeating-linear-gradient(to bottom, var(--route-color, var(--line)) 0 4px, transparent 4px 7px); opacity: 0.8; margin-left: -0.35rem; }
.tt-walk__text { font-size: 0.78rem; color: var(--ink-soft); }
.tt-walk__text b { font-weight: 500; color: var(--olive-shadow); margin-right: 0.4rem; font-variant-numeric: tabular-nums; }

/* 標記連動狀態 */
.spot.is-hot .spot__dot, .spot.is-flash .spot__dot { transform: scale(1.35); background: #fff; box-shadow: 0 0 0 3px var(--route-color), 0 4px 14px rgba(74, 74, 82, 0.35); }
.spot.is-hot, .spot.is-flash { z-index: 2; }

/* ══ 展演節目：長條式時間表 ═══════════════════════════════ */
.programs-page { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem); }
.programs-page .section__title { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.tt-filters { display: grid; gap: 0.6rem; margin: 0 0 1.75rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tt-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.tt-filter__label { flex: 0 0 3em; font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.06em; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: 0.88rem; cursor: pointer;
}
.chip:hover { border-color: var(--brand-purple); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tt-status { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.programs-page__sub { margin: clamp(2rem, 5vw, 3rem) 0 0.9rem; font-size: 1.45rem; color: var(--brand-purple); letter-spacing: 0.05em; scroll-margin-top: 5rem; }
.programs-page__sub .section__eyebrow { font-size: 0.95rem; margin-bottom: 0.1rem; }
.programs-page .map { margin-inline: auto; }
.tt-row__n { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-right: 0.35rem; border-radius: 50%; background: var(--route-color, var(--hibiscus)); color: var(--ink); font-size: 0.72rem; font-weight: 700; vertical-align: 0.1em; }
.tt { display: grid; gap: clamp(1.75rem, 4vw, 2.75rem); }
.tt-group__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; margin-bottom: 0.6rem; }
.tt-group__title { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 1.3rem; color: var(--brand-purple); }
.tt-group__meta { margin: 0; font-size: 0.9rem; color: var(--ink-soft); display: flex; gap: 0.9rem; flex-wrap: wrap; }
.tt-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.tt-row {
  position: relative;
  display: grid;
  grid-template-columns: 5.2em 1fr auto;
  grid-template-areas: "time body genre" "time media media";
  gap: 0.35rem 0.9rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--route-color, var(--line));
}
.tt-row + .tt-row { border-top: 1px solid var(--line); }
.tt-row--walk { background: rgba(222, 206, 236, 0.16); }
.tt-row__time { grid-area: time; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; line-height: 1.3; }
.tt-row__start { font-weight: 700; font-size: 1.05rem; }
.tt-row__start--open { font-size: 0.9rem; } /* 顏色跟一般時間一致（原本橄欖綠，對方要求統一） */
.tt-row__end { font-size: 0.82rem; color: var(--ink-soft); }
.tt-row__media { grid-area: media; display: none; }
.tt-row__body { grid-area: body; min-width: 0; }
.tt-row__title { margin: 0; font-size: 1.02rem; }
.tt-row__title a { color: var(--ink); text-decoration: none; }
.tt-row__title a::after { content: ''; position: absolute; inset: 0; }
.tt-row:hover { background: rgba(182, 216, 239, 0.18); }
.tt-row__meta { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; }
.tt-row__genre { grid-area: genre; align-self: start; font-size: 0.75rem; letter-spacing: 0.06em; padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(250, 137, 108, 0.14); color: var(--hibiscus); white-space: nowrap; }
.tt-row--walk .tt-row__genre { background: rgba(120, 147, 121, 0.14); color: var(--olive-shadow); }
.tt-row__arrow { display: none; }
@media (min-width: 720px) {
  .tt-row { grid-template-columns: 6em 120px 1fr auto 1.5rem; grid-template-areas: "time media body genre arrow"; padding: 0.8rem 1.1rem; }
  .tt-row__media { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: rgba(182, 216, 239, 0.3); }
  .tt-row__media img { width: 100%; height: 100%; object-fit: cover; }
  .tt-row--walk .tt-row__media { background: none; }
  .tt-row__arrow { display: block; grid-area: arrow; color: var(--ink-soft); font-size: 1.4rem; text-align: right; }
  .tt-row__genre { align-self: center; }
}
.tt-empty { margin: 0; padding: 2rem; text-align: center; color: var(--ink-soft); }

/* ══ 活動地圖 ═══════════════════════════════════════════ */
.map-page { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem); }
.map-page__head { margin-bottom: 1.25rem; }
.map-page__head .section__title { font-size: clamp(1.7rem, 4vw, 2.4rem); }

.map-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.map-filter__btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink);
  font: inherit; font-size: 0.9rem; cursor: pointer;
}
.map-filter__btn small { color: var(--ink-soft); font-size: 0.78rem; }
.map-filter__btn.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.map-filter__btn.is-active small { color: rgba(255,255,255,0.7); }
.map-filter__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--route-color, var(--brand-purple)); box-shadow: 0 0 0 2px #fff, inset 0 0 0 1px rgba(74, 74, 82, 0.28); flex: none; }

.map {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #b9b0da;
  box-shadow: 0 10px 40px rgba(74, 74, 82, 0.12);
  max-width: 900px;
  margin-inline: auto;
}
.map__img { width: 100%; height: auto; display: block; }
.map__hint { max-width: 900px; margin: 0.75rem auto 0; font-size: 0.85rem; color: var(--ink-soft); text-align: center; }

/* 站點標記：百分比定位，隨地圖縮放 */
.spot {
  position: absolute;
  width: 2.6rem; height: 2.6rem;
  margin: -1.3rem 0 0 -1.3rem; /* 以中心對齊座標 */
  padding: 0; border: 0; background: none;
  cursor: pointer;
  display: grid; place-items: center;
}
.spot__dot {
  position: relative; z-index: 1;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--route-color, var(--hibiscus));
  color: var(--ink);
  font-weight: 700; font-size: 0.85rem; line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2.5px rgba(244, 246, 247, 0.95), 0 2px 8px rgba(74, 74, 82, 0.35);
  transition: transform 0.2s ease;
}
.spot__pulse {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--route-color, var(--hibiscus));
  opacity: 0.35;
  animation: spot-pulse 2.8s ease-out infinite;
}
@keyframes spot-pulse {
  0%   { transform: scale(0.6); opacity: 0.45; }
  100% { transform: scale(1.5); opacity: 0; }
}
.spot:hover .spot__dot, .spot:focus-visible .spot__dot, .spot.is-open .spot__dot { transform: scale(1.18); }
.spot:focus-visible { outline: none; }
.spot:focus-visible .spot__dot { box-shadow: 0 0 0 3px var(--brand-purple), 0 2px 8px rgba(74, 74, 82, 0.35); }
.spot.is-open .spot__dot { background: #fff; box-shadow: 0 0 0 3px var(--route-color), 0 2px 8px rgba(74, 74, 82, 0.35); }
@media (max-width: 600px) {
  .spot { width: 2.2rem; height: 2.2rem; margin: -1.1rem 0 0 -1.1rem; }
  .spot__dot { width: 1.5rem; height: 1.5rem; font-size: 0.78rem; }
}

/* 站點時間表 */
.map-page__routes { margin-top: clamp(2.5rem, 6vw, 4rem); display: grid; gap: clamp(2rem, 5vw, 3rem); }
.route-block__head { margin-bottom: 0.75rem; }
.route-block__title { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-size: 1.35rem; color: var(--brand-purple); }
.route-block__meta { margin: 0.2rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.stops { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--route-color, var(--line)); }
.stop { position: relative; display: flex; gap: 0.9rem; padding: 0.7rem 0 0.9rem 1rem; }
.stop + .stop { border-top: 1px dashed var(--line); }
.stop--walk .stop__n { background: var(--paper); border: 2px solid var(--route-color, var(--line)); width: 1.1rem; height: 1.1rem; margin-left: -1.6rem; margin-top: 0.4rem; font-size: 0; }
.stop__n {
  flex: none;
  width: 1.6rem; height: 1.6rem; margin-left: -1.85rem; margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--route-color, var(--hibiscus)); color: var(--ink);
  font-size: 0.78rem; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--paper);
}
.stop__body { flex: 1; min-width: 0; }
.stop__time { margin: 0; font-size: 0.85rem; color: var(--olive-shadow); font-variant-numeric: tabular-nums; }
.stop__title { margin: 0.1rem 0 0.1rem; font-size: 1.05rem; }
.stop__title a { color: var(--ink); text-decoration: none; }
.stop__title a:hover { color: var(--brand-purple); }
.stop__loc { margin: 0; font-size: 0.9rem; color: var(--brand-purple); }
.stop__desc { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.75; max-width: 42em; }

/* 站點卡片：手機底部抽屜 / 桌機置中 */
.sheet {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%; max-width: none;
  max-height: 82svh;
  margin: 0; padding: 0.6rem 1.25rem 1.25rem;
  border: 0; border-radius: 18px 18px 0 0;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 -10px 40px rgba(74, 74, 82, 0.2);
  overflow: auto;
}
.sheet::backdrop { background: rgba(74, 74, 82, 0.35); }
.sheet__handle { width: 2.5rem; height: 4px; margin: 0 auto 0.75rem; border-radius: 2px; background: rgba(74, 74, 82, 0.25); }
.sheet__close {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%;
  background: rgba(74, 74, 82, 0.08); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.sheet__media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; margin-bottom: 0.9rem; background: rgba(182, 216, 239, 0.35); }
.sheet__media img { width: 100%; height: 100%; object-fit: cover; }
.sheet__route { margin: 0; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; }
.sheet__title { margin: 0.15rem 0 0.2rem; font-size: 1.25rem; line-height: 1.35; }
.sheet__meta { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--olive-shadow); }
.sheet__desc { margin: 0; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.8; }
.sheet__actions { margin: 0.9rem 0 0; }
.sheet__more { font-weight: 500; }
.sheet__nav { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.sheet__nav-btn { border: 0; background: none; color: var(--brand-purple); font: inherit; font-size: 0.9rem; cursor: pointer; padding: 0.3rem 0.2rem; }
.sheet__nav-btn:disabled { color: var(--ink-soft); opacity: 0.45; cursor: default; }
.sheet__count { font-size: 0.82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .sheet {
    inset: 0; margin: auto;
    width: min(460px, calc(100vw - 4rem));
    height: fit-content; /* inset:0 + auto 會被上下撐滿 */
    max-height: min(82vh, 680px);
    border-radius: 18px; padding: 1.5rem 1.6rem 1.4rem;
  }
  .sheet__handle { display: none; }
  .sheet__close { top: 0.9rem; right: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .spot__pulse { animation: none; opacity: 0.25; }
  .spot__dot { transition: none; }
}

/* ══ prefers-reduced-motion：關視差與動畫，顯示靜態合成 ══ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: 100vh; height: 100svh; }
  .layer { height: 100%; will-change: auto; }
  .hero__stage { transform: none !important; }
  .work-card__media img { transition: none; }
}

/* ══ 全站「框框」緊實化：按鈕／膠囊／卡片 padding 收緊、弧度飽滿、一條細實邊＋頂部一線高光 ══
   原則：pill 一律 999px；padding 上下 0.28rem、左右 0.7rem；卡片 padding 縮 30%；邊框 1px 墨色 18% */
:root {
  --edge: rgba(74, 74, 82, 0.18);
  --sheen: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --pill-pad: 0.28rem 0.72rem;
}
.chip, .map-filter__btn, .pg-view__btn, .pg-bar__select select, .sheet__nav-btn, .site-nav a, .pagination a, .pagination span {
  padding: var(--pill-pad);
  font-size: 0.82rem;
  line-height: 1.45;
  border-radius: 999px;
}
.chip, .map-filter__btn, .pg-bar__select select, .pagination a, .pagination span, .tt-row__locate {
  border: 1px solid var(--edge);
  background: var(--paper);
  box-shadow: var(--sheen);
}
.chip.is-active, .map-filter__btn.is-active, .pg-view__btn.is-active, .pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.pg-view { border-color: var(--edge); box-shadow: var(--sheen); }
.pg-view__btn { padding: 0.24rem 0.7rem; }
.pg-bar .chip { padding: var(--pill-pad); }
.pg-bar__select select { padding-right: 1.8rem; }
.hero__toggle { width: 2.1rem; height: 2.1rem; font-size: 1rem; border: 1px solid var(--edge); box-shadow: var(--sheen); }
.site-nav a { padding: 0.32rem 0.75rem; font-size: 0.9rem; }
@media (min-width: 900px) { /* 膠囊框線與陰影只給桌機；手機是整面選單，不要框 */
  .site-header--float:not(.is-compact) .site-nav__list { padding: 0.22rem; border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 3px 14px rgba(74, 74, 82, 0.12), var(--sheen); }
}
.nav-toggle { width: 2.4rem; height: 2.4rem; border: 1px solid var(--edge); box-shadow: var(--sheen); }
.sheet__close { width: 1.9rem; height: 1.9rem; font-size: 1.1rem; }
.sheet__nav-btn { border: 1px solid transparent; }
.sheet__nav-btn:not(:disabled):hover { border-color: var(--edge); background: #fff; }

/* 卡片 */
.route-card { padding: 1.05rem 1.1rem 1.15rem; border-radius: 14px; border-color: var(--edge); box-shadow: var(--sheen); gap: 0.3rem; }
.route-card__date { padding: 0.16rem 0.6rem; font-size: 0.78rem; }
.route-card__title { font-size: 1.18rem; margin-top: 0.3rem; }
.work-card__media { border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(74, 74, 82, 0.08); }
.work-card__body { padding: 0.7rem 0.15rem 0; }
.work-card__title { font-size: 1.08rem; }
.work-card__genre { font-size: 0.74rem; margin-bottom: 0.2rem; }
.below-hero .section > .wrap { padding: clamp(1.4rem, 3.5vw, 2.4rem) clamp(1rem, 3vw, 2.1rem); border-radius: 20px; box-shadow: 0 10px 34px rgba(74, 74, 82, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.6), var(--sheen); }
.below-hero { gap: clamp(1rem, 2.4vw, 1.6rem); }
.section__head { margin-bottom: clamp(1rem, 2.5vw, 1.6rem); }
.section__title { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
.tt-filters { padding: 0.75rem 0.9rem; border-color: var(--edge); box-shadow: var(--sheen); }
.tt-list { border-color: var(--edge); }
.map--tool { border-color: var(--edge); }
.pg-list .tt-row { padding: 0.5rem 0.5rem 0.5rem 0.2rem; border-radius: 10px; }
.tt-row__genre { padding: 0.15rem 0.55rem; font-size: 0.72rem; }
.sheet { border-radius: 16px 16px 0 0; padding: 0.5rem 1.1rem 1.1rem; }
@media (min-width: 768px) { .sheet { border-radius: 16px; padding: 1.25rem 1.35rem 1.15rem; } }
.sheet__media { border-radius: 10px; }
.entry__credits { padding: 0.8rem 1rem; border-radius: 12px; border-color: var(--edge); box-shadow: var(--sheen); }
.credits__logo { height: 1.3rem; }

/* ══ 首頁「參與藝術家」 ═══════════════════════════════════ */
.artists { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem 0.9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px)  { .artists { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .artists { grid-template-columns: repeat(6, 1fr); } }
.artist__link { display: block; text-decoration: none; color: var(--ink); }
.artist__media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: rgba(182, 216, 239, 0.35); box-shadow: inset 0 0 0 1px rgba(74, 74, 82, 0.1), var(--sheen); width: min(100%, 150px); margin-inline: auto; }
.artist__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.artist__link:hover .artist__media img { transform: scale(1.06); }
.artist__name { display: block; margin-top: 0.6rem; text-align: center; font-weight: 700; font-size: 0.92rem; line-height: 1.35; }
.artist__en { display: block; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 0.78rem; color: var(--olive-shadow); }
@media (prefers-reduced-motion: reduce) { .artist__media img { transition: none; } }

/* 展演節目：路線群組的介紹（可展開） */
.tt-group__intro { width: 100%; margin: 0.15rem 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.tt-group__intro summary { cursor: pointer; list-style: none; line-height: 1.7; }
.tt-group__intro summary::-webkit-details-marker { display: none; }
.tt-group__more { margin-left: 0.4rem; color: var(--brand-purple); white-space: nowrap; }
.tt-group__more::after { content: ' ▾'; font-size: 0.8em; }
.tt-group__intro[open] summary { display: none; }
.tt-group__body { max-width: 44em; line-height: 1.8; }
.tt-group__body p { margin: 0 0 0.6em; }

/* ══ 內頁統一：1440 寬、左主欄右側欄（與展演節目工具頁同尺度） ══ */
.wrap { padding-inline: clamp(1rem, 3vw, 2.5rem); }
.page-grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(3rem, 8vw, 5rem); align-items: start; }
@media (min-width: 1024px) { .page-grid { grid-template-columns: minmax(0, 1fr) 340px; } .side { position: sticky; top: calc(var(--sticky-top, 0px) + 1rem); } }
.admin-bar .side { --sticky-top: 32px; }
.page-grid__main { min-width: 0; }
.page-grid .entry { padding-block: 0; max-width: 52em; }
.page-grid .archive-list { padding-block: 0; }
.page-grid .works { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1280px) { .page-grid .works { grid-template-columns: repeat(3, 1fr); } }
.entry__figure { margin: 0 0 1.5rem; border-radius: 12px; overflow: hidden; }
.entry__by { margin: 0 0 1rem; font-size: 0.95rem; }
.entry__by a { color: var(--brand-purple); text-decoration: none; }

/* 側欄方塊 */
.side { display: grid; gap: 1rem; }
.side__box { padding: 1rem 1.1rem 1.1rem; background: #fff; border: 1px solid var(--edge); border-radius: 14px; box-shadow: var(--sheen); }
.side__eyebrow { display: block; font-family: var(--font-display); font-style: italic; font-size: 0.85rem; color: var(--olive-shadow); }
.side__title { margin: 0 0 0.6rem; font-size: 1.02rem; letter-spacing: 0.05em; color: var(--brand-purple); }
.side__sub { margin: 0.8rem 0 0.2rem; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--olive-shadow); }
.side__date { margin: 0; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; color: var(--brand-purple); }
.side__line { margin: 0.1rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.side__line--strong { margin-top: 0.4rem; font-weight: 700; color: var(--ink); font-size: 0.98rem; }
.side__note { margin: 0.4rem 0 0; font-size: 0.83rem; line-height: 1.7; color: var(--ink-soft); }
.side__pre { white-space: pre-line; }
.side__cta { display: inline-block; margin-top: 0.8rem; padding: var(--pill-pad); border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-size: 0.82rem; }
.side__cta:hover { background: var(--brand-purple); }
.side__more { display: inline-block; margin-top: 0.5rem; font-size: 0.82rem; }
.side__routes, .side__news, .side__works, .side__links, .side__artists { list-style: none; margin: 0; padding: 0; }
.side__route + .side__route { border-top: 1px dashed var(--line); }
.side__route a { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.5rem; padding: 0.5rem 0; text-decoration: none; color: var(--ink); align-items: center; }
.side__route .map-filter__dot { grid-row: span 2; }
.side__route-name { font-weight: 700; font-size: 0.92rem; }
.side__route-meta { font-size: 0.76rem; color: var(--ink-soft); }
.side__route.is-current .side__route-name { color: var(--brand-purple); }
.side__route a:hover .side__route-name { color: var(--brand-purple); }
.side__news li { display: grid; grid-template-columns: 2.6em 1fr; gap: 0.5rem; padding: 0.35rem 0; font-size: 0.86rem; border-top: 1px dashed var(--line); }
.side__news li:first-child { border-top: 0; }
.side__news time { color: var(--olive-shadow); font-variant-numeric: tabular-nums; }
.side__news a { color: var(--ink); text-decoration: none; }
.side__news a:hover { color: var(--brand-purple); }
.side__dl { margin: 0; display: grid; grid-template-columns: 3em 1fr; gap: 0.3rem 0.6rem; font-size: 0.88rem; }
.side__dl dt { color: var(--ink-soft); }
.side__dl dd { margin: 0; }
.side__team { display: block; text-decoration: none; color: var(--ink); }
.side__team-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; margin-bottom: 0.5rem; }
.side__team-media img { width: 100%; height: 100%; object-fit: cover; }
.side__team-name { display: block; font-weight: 700; }
.side__team-en { display: block; font-family: var(--font-display); font-style: italic; font-size: 0.82rem; color: var(--olive-shadow); }
.side__works li + li { border-top: 1px dashed var(--line); }
.side__works a { display: grid; grid-template-columns: 76px 1fr; gap: 0.6rem; padding: 0.5rem 0; text-decoration: none; color: var(--ink); align-items: center; }
.side__work-media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: rgba(182, 216, 239, 0.3); }
.side__work-media img { width: 100%; height: 100%; object-fit: cover; }
.side__work-title { display: block; font-size: 0.88rem; font-weight: 700; line-height: 1.35; }
.side__work-meta { display: block; font-size: 0.74rem; color: var(--ink-soft); margin-top: 0.1rem; }
.side__works a:hover .side__work-title { color: var(--brand-purple); }
.side__artists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem 0.4rem; }
.side__artists a { display: block; text-decoration: none; color: var(--ink); text-align: center; font-size: 0.72rem; line-height: 1.3; }
.side__artists img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; margin: 0 auto 0.3rem; box-shadow: inset 0 0 0 1px rgba(74, 74, 82, 0.1); }
.side__artists span { display: block; }
.side__links li { padding: 0.25rem 0; font-size: 0.88rem; }

/* ══ 全站單一字體：原本用 Playfair 斜體的英文小標改成 Noto Sans 小字寬字距 ══ */
.section__eyebrow, .side__eyebrow, .entry__title-en, .artist__en, .side__team-en {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section__eyebrow { font-size: 0.72rem; color: var(--olive-shadow); margin-bottom: 0.45rem; }
.side__eyebrow { font-size: 0.66rem; }
.entry__title-en, .artist__en, .side__team-en { text-transform: none; letter-spacing: 0.04em; font-weight: 400; }
.news__date, .side__date, .info__date { font-family: var(--font-body); font-weight: 500; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.side__date { font-size: 1.35rem; font-weight: 700; }

/* ══ 配色統一為海報系統：紫字／白底／紫框，橘色只留給插畫 ══════════════
   --hibiscus 不再當 UI 強調色；所有強調、啟用態、標籤一律 brand-purple。 */
:root { --accent: var(--brand-purple); --accent-soft: rgba(152, 122, 160, 0.14); --accent-line: rgba(152, 122, 160, 0.45); }
.work-card__genre, .entry__genre, .tt-row__genre, .side__cta, .route-card__date { color: var(--accent); }
.tt-row__genre, .work-card__genre { background: var(--accent-soft); }
.tt-row--walk .tt-row__genre { background: rgba(120, 147, 121, 0.14); color: var(--olive-shadow); }
.entry__genre { font-size: 0.78rem; letter-spacing: 0.14em; }
.concept p:first-of-type::first-letter { color: var(--accent); }
.route-card__date { background: #fff; color: var(--accent); border: 1px solid var(--accent-line); box-shadow: var(--sheen); }
.route-card:hover { border-color: var(--accent-line); }
/* 啟用態：紫底白字（海報的節目名膠囊） */
.chip.is-active, .map-filter__btn.is-active, .pg-view__btn.is-active, .pagination .current, .side__cta { background: var(--accent); color: #fff; border-color: var(--accent); }
.side__cta:hover { background: #7f6588; }
.chip:hover, .map-filter__btn:hover { border-color: var(--accent-line); color: var(--accent); }
.pg-bar__select select:focus { border-color: var(--accent-line); outline: none; }
/* 白底紫字：提示、選單、切換鈕 */
.hero__toggle, .site-nav a, .sheet__nav-btn, .tt-row__locate { color: var(--accent); }
.site-nav a { color: var(--ink); }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_parent > a { color: var(--accent); background: var(--accent-soft); }
/* 地圖標記：白底圓點、紫數字、外圈路線色 */
.spot__dot { background: #fff; color: var(--accent); box-shadow: 0 0 0 2.5px var(--route-color, var(--accent)), 0 2px 8px rgba(74, 74, 82, 0.3); }
.spot.is-open .spot__dot, .spot.is-hot .spot__dot, .spot.is-flash .spot__dot { background: var(--accent); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--route-color, var(--accent)), 0 4px 14px rgba(74, 74, 82, 0.35); }
.spot:focus-visible .spot__dot { box-shadow: 0 0 0 3px var(--accent), 0 2px 8px rgba(74, 74, 82, 0.35); }
.pg-list .tt-row__n, .tt-row__n, .stop__n { background: #fff; color: var(--accent); box-shadow: 0 0 0 2px var(--route-color, var(--accent)); }
.pg-list .tt-row.is-active { box-shadow: inset 0 0 0 2px var(--accent-line); }
.sheet__route { color: var(--accent); }
.sheet__route::before {
  content: '';
  display: inline-block;
  width: 0.6em; height: 0.6em;
  margin-right: 0.4em;
  vertical-align: 0.06em;
  border-radius: 50%;
  background: var(--route-color, var(--brand-purple));
  /* 亮色點（水青、黃）壓在白卡上要一圈淡框才看得出邊 */
  box-shadow: inset 0 0 0 1px rgba(74, 74, 82, 0.28);
}
/* 側欄、頁尾的細節 */
.side__title, .section__title, .route-block__title, .tt-group__title { color: var(--accent); }
.entry__credits, .side__box, .tt-filters { border-color: rgba(152, 122, 160, 0.28); }
.below-hero .section > .wrap { box-shadow: 0 10px 34px rgba(74, 74, 82, 0.1), inset 0 0 0 1px rgba(152, 122, 160, 0.22), var(--sheen); }

/* ══ 首頁 hero 露白修正 ══════════════════════════════════
   1) 舞台捲離後會往下漂 8%，上緣先預留 8% 才不會露出底色；
   2) macOS 觸控板在頁首回彈時 fixed 元素會跟著位移，html/body 底色要跟 hero 同色，並關掉垂直回彈。 */
.home .hero__stage { top: -8svh; height: 108vh; height: 108svh; }
/* 舞台上移了 8svh，各層往下補回 8svh，構圖跟原本一樣（夜版另有 -6% 的偏移） */
.home .layer, .home .lens__img { top: 8svh; }
.home .hero--night .layer, .home .lens--night .lens__img { top: calc(8svh - 6%); }
.home .lens--day .lens__img { top: 8svh; }
html.home-html, .home { background: var(--sky-blue); }
html.home-html--night, .home.hero-night { background: #3b4a86; }
.home { overscroll-behavior-y: none; }

/* ══ 內頁背景：同一張世界插畫固定在底層、慢漂；內容以三級透明度的毛玻璃浮在上面 ══ */
.bg-world { position: fixed; inset: -6svh 0 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg-world img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; max-width: none; transform: translateY(0); will-change: transform; animation: world-drift 60s ease-in-out infinite alternate; }
.bg-world--night img { object-position: 65% 40%; }
@keyframes world-drift { from { transform: translateY(0); } to { transform: translateY(4svh); } }
@media (prefers-reduced-motion: reduce) { .bg-world img { animation: none; } }
.has-world { background: transparent; }
.has-world #main { position: relative; z-index: 1; }
.has-world .site-header--static { position: sticky; top: var(--sticky-top, 0px); z-index: 10; background: rgba(244, 246, 247, 0.9); border-bottom-color: rgba(255, 255, 255, 0.55); }
.admin-bar.has-world .site-header--static { --sticky-top: 32px; }
@media (max-width: 782px) { .admin-bar.has-world .site-header--static { --sticky-top: 46px; } }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .has-world .site-header--static { background: rgba(244, 246, 247, 0.6); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); }
}
/* 主欄 94%、側欄 86%、頁尾 96% */
.has-world .page-grid__main, .has-world .pg-list, .has-world .pg__head, .has-world .pg-map {
  background: rgba(244, 246, 247, 0.94);
  border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 10px 34px rgba(74, 74, 82, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.6), var(--sheen);
}
.has-world .pg__head { margin-bottom: 0.9rem; }
.has-world .pg-map { padding: 0.75rem; }
.has-world .side__box { background: rgba(244, 246, 247, 0.86); }
.has-world .pg-bar { background: rgba(244, 246, 247, 0.6); }
@media (min-width: 1024px) {
  .has-world .page-grid__main, .has-world .pg-list, .has-world .pg__head, .has-world .side__box { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .has-world .page-grid__main, .has-world .pg-list, .has-world .pg__head { background: rgba(244, 246, 247, 0.9); }
  .has-world .side__box { background: rgba(244, 246, 247, 0.78); }
}
.has-world .site-footer { position: relative; z-index: 1; background: rgba(244, 246, 247, 0.96); }
.has-world .tt-list, .has-world .tt-filters { background: transparent; }
.has-world .pg-list .tt-row:hover, .has-world .pg-list .tt-row.is-active { background: rgba(255, 255, 255, 0.7); }
.has-world .entry-hero { position: relative; z-index: 1; }
/* 內頁 grid 與工具頁在背景上再收一點邊距 */
.has-world .pg-body { padding-top: 1rem; }

/* 首頁：路線與藝術家合為一張卡，藝術家用淡紫子區區分 */
.subpanel { margin-top: clamp(1.5rem, 3vw, 2.25rem); padding: clamp(1.1rem, 2.5vw, 1.75rem) clamp(1rem, 2.5vw, 1.75rem); border-radius: 16px; background: rgba(222, 206, 236, 0.38); box-shadow: inset 0 0 0 1px rgba(152, 122, 160, 0.16); }
.section__head--sub { margin-bottom: 1rem; }
.section__title--sub { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
.subpanel .section__more { margin-top: 1.1rem; margin-bottom: 0; }
.subpanel .artist__media { box-shadow: inset 0 0 0 1px rgba(74, 74, 82, 0.08), 0 0 0 3px #fff; }

/* ══ 標題系統（全站統一） ═══════════════════════════════════
   h1 頁面標題 → h2 區塊標題 → h3 小節／側欄方塊 → h4 側欄小標；
   卡片與列表的標題另有元件尺寸（不跟著元素層級），但字重、顏色、行距一致。 */
:root {
  --h1: clamp(1.75rem, 3.2vw, 2.25rem);
  --h2: clamp(1.3rem, 2.4vw, 1.6rem);
  --h3: 1.12rem;
  --h4: 0.8rem;
  --card-title: 1.06rem;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; color: var(--brand-purple); }
h1 { font-size: var(--h1); letter-spacing: 0.04em; }
h2 { font-size: var(--h2); letter-spacing: 0.05em; }
h3 { font-size: var(--h3); letter-spacing: 0.02em; }
h4 { font-size: var(--h4); letter-spacing: 0.1em; color: var(--olive-shadow); }
/* 頁面標題（不論用哪個 class） */
h1.section__title, h1.entry__title, .pg__head h1.section__title, .programs-page h1.section__title, .map-page__head h1.section__title { font-size: var(--h1); margin: 0.15rem 0 0.3rem; letter-spacing: 0.04em; }
.entry__title { margin-bottom: 0.3rem; }
/* 區塊標題 */
h2.section__title, .entry__sub, .tt-group__title, .route-block__title { font-size: var(--h2); color: var(--brand-purple); }
.entry__sub { margin: 2.2rem 0 0.8rem; }
.tt-group__title { font-size: 1.25rem; } /* 列表內的群組標題略小一級，但仍是 h2 */
/* 小節／側欄方塊 */
h3.section__title--sub, .entry__content h3, .side__title, .sheet__title { font-size: var(--h3); color: var(--brand-purple); }
.entry__content h3 { margin: 1.6em 0 0.4em; }
.side__title { margin: 0 0 0.6rem; }
.side__sub { font-size: var(--h4); margin: 0.8rem 0 0.2rem; color: var(--olive-shadow); }
/* 卡片與列表標題：墨色、同一尺寸 */
.route-card__title, .work-card__title, .tt-row__title, .news__title, .stop__title, .side__work-title, .side__team-name { color: var(--ink); font-size: var(--card-title); letter-spacing: 0; }
.route-card__title a, .work-card__title a, .tt-row__title a, .news__title a { color: inherit; }
.route-card__title { font-size: 1.12rem; }
.sheet__title { color: var(--ink); font-size: 1.2rem; }
/* 內文區的 h2（後台編輯器打的） */
.entry__content h2 { font-size: var(--h2); margin: 1.8em 0 0.5em; }

/* ══ 全站同一套浮動頁首 ═══════════════════════════════════
   內頁：頁首浮在世界插畫上，內容從一段「天空」之下開始；捲動 40px 後變緊湊毛玻璃列（nav.js）。 */
.has-world .site-header--static { position: fixed; } /* 舊規則保險 */
.has-world #main { padding-top: calc(var(--sticky-top, 0px) + clamp(6.5rem, 12vh, 9rem)); }
.has-world .page-grid, .has-world .pg__head { padding-top: 0; }
.has-world .pg { padding-top: 0.5rem; }
.has-world .entry-hero { margin-top: 0; }
/* 緊湊列高度給 sticky 元件讓位（頁首 fixed 在上面） */
.has-world .pg-bar { top: calc(var(--sticky-top, 0px) + var(--header-h, 56px)); }
@media (min-width: 1024px) {
  .has-world .pg-map { top: calc(var(--sticky-top, 0px) + var(--header-h, 56px) + var(--bar-h, 64px) + 1rem); }
  .has-world .pg-map .map { width: min(100%, calc(100svh - var(--sticky-top, 0px) - var(--header-h, 56px) - var(--bar-h, 64px) - 4.5rem)); }
  .has-world .side { top: calc(var(--sticky-top, 0px) + var(--header-h, 56px) + 1rem); }
}
.admin-bar.has-world .site-header--float { top: 32px; }
@media (max-width: 782px) { .admin-bar.has-world .site-header--float { top: 46px; } }

/* ══ 背景插畫隨捲動退場 ═══════════════════════════════════
   固定一層「面紗」蓋在插畫上（不蓋內容），透明度＝捲動進度，顏色＝頁尾底色，捲到底就無縫接頁尾。 */
:root { --footer-bg: #EEEBF4; }
.veil { position: fixed; inset: 0; z-index: 1; background: var(--footer-bg); opacity: var(--veil, 0); pointer-events: none; }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .veil.is-hazy { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } /* 捲過四分之一後再加一點霧，桌機才開 */
}
/* 內容要在面紗之上 */
.has-world #main, .below-hero, .site-footer { position: relative; z-index: 2; }
.site-header--float { z-index: 10; }
.site-footer, .home .site-footer, .has-world .site-footer { background: var(--footer-bg); }

/* 內頁：內容離浮動頁首遠一點，天空帶更明顯 */
.has-world #main { padding-top: calc(var(--sticky-top, 0px) + clamp(9.5rem, 20vh, 14rem)); }
@media (max-width: 899px) { .has-world #main { padding-top: calc(var(--sticky-top, 0px) + clamp(7.5rem, 16vh, 10rem)); } }

/* 面紗最多 82%：頁尾自己維持實色，接縫用頁尾上緣一段漸層柔化 */
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 6rem; background: linear-gradient(to bottom, rgba(238, 235, 244, 0), var(--footer-bg)); pointer-events: none; }

/* 展演節目：標題、篩選列、列表、地圖合在同一個毛玻璃面板裡，篩選列在面板內 sticky */
.pg-panel { border-radius: 20px; overflow: clip; }
.has-world .pg-panel { background: rgba(244, 246, 247, 0.9); box-shadow: 0 10px 34px rgba(74, 74, 82, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.6), var(--sheen); }
@media (min-width: 1024px) { .has-world .pg-panel { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); } }
.has-world .pg__head, .has-world .pg-list, .has-world .pg-map { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; }
.pg-panel .pg__head { padding: clamp(1.4rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 1rem; margin: 0; }
.pg-panel .pg-bar { border-block: 1px solid var(--edge); background: rgba(244, 246, 247, 0.72); }
.pg-panel .pg-bar__inner { padding-inline: clamp(1.25rem, 3vw, 2rem); }
.pg-panel .pg-body { padding: 1.25rem clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem); }
.has-world .pg-map { padding: 0; }
.has-world .pg-panel .pg-list { padding: 0; }
@media (max-width: 1023px) { .pg-panel { overflow: visible; } } /* 手機 sticky 篩選列不被 clip 擋住 */

/* ══ 大區塊／小區塊：小區塊一律用首頁 .subpanel 的淡紫底來區分 ══ */
.tt-group, .has-world .pg-map, .has-world .side__box, .entry__credits, .tt-group__intro[open] {
  background: rgba(222, 206, 236, 0.38);
  box-shadow: inset 0 0 0 1px rgba(152, 122, 160, 0.16);
  border: 0;
  border-radius: 16px;
}
.tt-group { padding: 1rem 1.1rem 0.75rem; }
.pg-list .tt-group + .tt-group { margin-top: 1rem; }
.has-world .pg-map { padding: 0.75rem 0.75rem 0.6rem; }
.has-world .pg-map .map__hint { padding-inline: 0.25rem; }
.has-world .side__box { -webkit-backdrop-filter: none; backdrop-filter: none; }
.pg-list .tt-row:hover, .pg-list .tt-row.is-active { background: rgba(255, 255, 255, 0.75); }
.tt-group__intro[open] { padding: 0.6rem 0.8rem; margin-top: 0.3rem; }
.map--tool { border: 0; box-shadow: inset 0 0 0 1px rgba(152, 122, 160, 0.16); }

/* ══ 內頁：主欄＋側欄合成同一個大面板（同展演節目頁），側欄方塊是淡紫小區塊 ══ */
.has-world .page-grid {
  background: rgba(244, 246, 247, 0.9);
  border-radius: 20px;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 10px 34px rgba(74, 74, 82, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.6), var(--sheen);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 1024px) { .has-world .page-grid { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); } }
.has-world .page-grid__main { background: none; box-shadow: none; padding: 0; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.has-world .page-grid .side { top: calc(var(--sticky-top, 0px) + var(--header-h, 56px) + 1rem); }
.has-world .page-grid .entry-hero { border-radius: 14px; overflow: hidden; }

/* 內頁面板：跟 .pg-panel 一樣，在容器留白內側（不貼視窗邊） */
:root { --gutter: clamp(1rem, 3vw, 2.5rem); }
.has-world .page-grid { width: min(calc(100% - 2 * var(--gutter)), calc(var(--wrap) - 2 * var(--gutter))); margin-inline: auto; box-sizing: border-box; }

/* 作品／團隊內頁：劇照放進面板主欄最上方 */
.entry__figure--hero { margin: 0 0 1.5rem; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; }
.entry__figure--hero img { width: 100%; height: 100%; object-fit: cover; }

/* ══ 鏡片有機化：外層只負責位移；.lens__shape 負責變形的輪廓、柔邊、呼吸 ══ */
.lens { overflow: visible; border-radius: 0; -webkit-mask-image: none; mask-image: none; transition: opacity 0.5s ease; }
.lens__shape {
  position: absolute; inset: 0;
  overflow: hidden;
  border-radius: 58% 42% 46% 54% / 52% 48% 52% 48%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, rgba(0, 0, 0, 0.7) 78%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, rgba(0, 0, 0, 0.7) 78%, transparent 100%);
  animation: lens-blob 11s ease-in-out infinite alternate, lens-breathe 6.5s ease-in-out infinite alternate;
  will-change: border-radius, transform;
}
@keyframes lens-blob {
  0%   { border-radius: 58% 42% 46% 54% / 52% 48% 52% 48%; }
  25%  { border-radius: 46% 54% 58% 42% / 44% 56% 44% 56%; }
  50%  { border-radius: 52% 48% 40% 60% / 58% 42% 58% 42%; }
  75%  { border-radius: 42% 58% 52% 48% / 48% 52% 46% 54%; }
  100% { border-radius: 55% 45% 48% 52% / 45% 55% 50% 50%; }
}
@keyframes lens-breathe { from { transform: scale(0.97); } to { transform: scale(1.05); } }
/* 一圈很淡的高光，像水面的邊 */
.lens__shape::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), inset 0 0 20px rgba(255, 255, 255, 0.25); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .lens__shape { animation: none; } }

/* 小標 icon */
.ico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; margin-right: 0.4em; flex: none; }
.section__eyebrow, .side__eyebrow { display: inline-flex; align-items: center; }
.section__eyebrow .ico, .side__eyebrow .ico { vertical-align: 0; }

/* ══ 劇照牆＋燈箱 ═══════════════════════════════════════ */
.gallery { margin-top: 2rem; }
.gallery__count { margin-left: 0.6rem; font-size: 0.78rem; font-weight: 400; color: var(--ink-soft); letter-spacing: 0.06em; }
.gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 0.5rem; }
@media (min-width: 640px)  { .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; } }
@media (min-width: 1280px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.gallery__item--tall { grid-row: span 2; }
.gallery__link { display: block; height: 100%; border-radius: 10px; overflow: hidden; background: rgba(222, 206, 236, 0.3); box-shadow: inset 0 0 0 1px rgba(152, 122, 160, 0.14); }
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery__link:hover img { transform: scale(1.04); }
.gallery__link:focus-visible { outline: 3px solid var(--brand-purple); outline-offset: 2px; }
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(30, 28, 40, 0.92); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox__figure { position: absolute; inset: 3.5rem 4rem; margin: 0; display: grid; place-items: center; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; cursor: pointer; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; }
.lightbox__close { top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; }
.lightbox__nav { top: 50%; width: 2.8rem; height: 2.8rem; margin-top: -1.4rem; font-size: 2rem; }
.lightbox__nav--prev { left: 0.75rem; } .lightbox__nav--next { right: 0.75rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 1rem; margin: 0; text-align: center; font-size: 0.82rem; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
@media (max-width: 639px) { .lightbox__figure { inset: 3rem 0.5rem 2.5rem; } .lightbox__nav { width: 2.3rem; height: 2.3rem; margin-top: -1.15rem; font-size: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .gallery__link img { transition: none; } }

/* 燈箱：直式圖不可超出視窗——高度用視窗高明確限制，不靠 grid 的百分比 */
.lightbox__figure { display: flex; align-items: center; justify-content: center; }
.lightbox__img { width: auto; height: auto; max-width: calc(100vw - 8rem); max-height: calc(100vh - 7rem); max-height: calc(100svh - 7rem); }
@media (max-width: 639px) { .lightbox__img { max-width: calc(100vw - 1rem); max-height: calc(100vh - 5.5rem); max-height: calc(100svh - 5.5rem); } }

/* 內頁：內容再離頁首遠一點 */
.has-world #main { padding-top: calc(var(--sticky-top, 0px) + clamp(11.5rem, 24vh, 17rem)); }
@media (max-width: 899px) { .has-world #main { padding-top: calc(var(--sticky-top, 0px) + clamp(9rem, 19vh, 12rem)); } }

/* ══ 內頁鏡片：兩層 ══════════════════════════════════════
   .lens-under 在面紗之上、內容之下（不然一捲動就被越來越濃的面紗洗掉）；.lens-over 在內容之上，很淡。
   幾何跟 .bg-world img 一樣，連慢漂動畫都同步，兩個世界才對得起來。 */
.lens-under .lens, .lens-over .lens { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .lens-under .lens, .lens-over .lens { display: block; }
}
.lens-under, .lens-over { position: fixed; inset: -6svh 0 0; overflow: hidden; pointer-events: none; }
.lens-under { z-index: 2; }
.lens-over  { z-index: 4; }
.lens-under .lens__img, .lens-over .lens__img { top: 0; width: var(--sw, 100vw); height: var(--sh, 100vh); object-position: 50% 40%; }
/* 慢漂要掛在外層：.lens__img 的 transform 是用來反向位移對齊游標的，動畫加上去會蓋掉它，鏡片就不會跟著滑鼠變 */
.lens-under .lens__world, .lens-over .lens__world { animation: world-drift 60s ease-in-out infinite alternate; }
.lens-under .lens--night .lens__img, .lens-over .lens--night .lens__img { object-position: 65% 40%; }
/* 註：.lens-over 是 fixed（自成堆疊脈絡＝隔離組），mix-blend-mode 沒有底層可混合，所以用單純的低不透明度 */
.lens-over .lens.is-on { opacity: 0.42; }
.lens-over .lens__shape::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45), inset 0 0 46px rgba(255, 255, 255, 0.5); }
/* 內容在鏡片本體之上 */
.has-world #main, .has-world .site-footer { z-index: 3; }


/* ══ 首頁：載入時下方內容先露出 15svh ══════════════════════
   舞台本來就是 fixed 的背景，.hero 只是「捲動跑道」，所以把跑道縮到 85svh，
   下一塊內容就會從底部探出 15svh；視差改成在最初的 100svh 捲動內走完（見 hero.js）。 */
.hero { height: 85svh; }
.home .below-hero { padding-top: 0; }
/* 捲動提示與日夜鈕往上讓開探出來的卡片 */
.hero__toggle { bottom: calc(15svh + clamp(0.75rem, 2.5vh, 1.5rem)); }
@media (prefers-reduced-motion: reduce) { .hero { height: 85svh; } }

/* 啟用中的 chip 被 hover 時，別讓 hover 的紫字蓋掉白字（紫底紫字會看不見） */
.chip.is-active:hover, .map-filter__btn.is-active:hover,
.chip.is-active:focus-visible, .map-filter__btn.is-active:focus-visible {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}


/* 觸控裝置：鏡片小一點（手指不會整顆蓋住），淡出慢一點 */
@media (pointer: coarse) {
  .lens { --lens: 185px; transition: opacity 0.6s ease; } /* 手機同步縮小（原 240） */
  .lens-over .lens.is-on { opacity: 0.36; }
}

/* ══ 首頁預覽彈窗（路線卡／藝術家點了先看摘要） ══════════════ */
.peek {
  width: min(560px, calc(100vw - 2rem));
  max-height: min(86svh, 760px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(74, 74, 82, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  overflow: hidden;
}
.peek::backdrop { background: rgba(74, 74, 82, 0.4); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.peek__slot { max-height: inherit; overflow: auto; overscroll-behavior: contain; }
.peek__body { padding: clamp(1.25rem, 3vw, 1.9rem); }
.peek__close {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2;
  width: 2rem; height: 2rem; border: 1px solid var(--edge); border-radius: 50%;
  background: rgba(244, 246, 247, 0.92); color: var(--ink);
  font-size: 1.15rem; line-height: 1; cursor: pointer; box-shadow: var(--sheen);
}
.peek__close:hover { background: #fff; color: var(--accent); }
.peek__figure { margin: calc(-1 * clamp(1.25rem, 3vw, 1.9rem)) calc(-1 * clamp(1.25rem, 3vw, 1.9rem)) 1.1rem; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(222, 206, 236, 0.3); }
.peek__figure img { width: 100%; height: 100%; object-fit: cover; }
.peek__badge {
  display: inline-block; padding: 0.16rem 0.65rem; border-radius: 999px;
  background: #fff; color: var(--accent); border: 1px solid var(--route-color, var(--accent-line));
  font-size: 0.78rem; font-weight: 500;
}
.peek__title { margin: 0.5rem 0 0.15rem; font-size: 1.45rem; color: var(--accent); }
.peek__en { margin: 0 0 0.4rem; font-size: 0.88rem; color: var(--olive-shadow); letter-spacing: 0.03em; }
.peek__meta { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--olive-shadow); }
.peek__lead { margin: 0; font-size: 0.95rem; line-height: 1.85; color: var(--ink-soft); }
.peek__sub { margin: 1.3rem 0 0.5rem; font-size: 0.78rem; letter-spacing: 0.14em; color: var(--olive-shadow); text-transform: uppercase; }
.peek__works { list-style: none; margin: 0; padding: 0; }
.peek__works li + li { border-top: 1px dashed var(--line); }
.peek__works a { display: grid; grid-template-columns: 84px 1fr; gap: 0.7rem; padding: 0.5rem 0; text-decoration: none; color: var(--ink); align-items: center; }
.peek__work-media { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 7px; background: rgba(222, 206, 236, 0.3); }
.peek__work-media img { width: 100%; height: 100%; object-fit: cover; }
.peek__work-title { display: block; font-weight: 700; font-size: 0.92rem; line-height: 1.4; }
.peek__work-meta { display: block; font-size: 0.76rem; color: var(--ink-soft); margin-top: 0.1rem; }
.peek__works a:hover .peek__work-title { color: var(--accent); }
.peek__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 0; }
.peek__btn {
  display: inline-block; padding: 0.42rem 1rem; border-radius: 999px;
  border: 1px solid var(--edge); background: var(--paper); color: var(--accent);
  text-decoration: none; font-size: 0.88rem; font-weight: 500; box-shadow: var(--sheen);
}
.peek__btn:hover { border-color: var(--accent-line); }
.peek__btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.peek__btn--primary:hover { background: #7f6588; color: #fff; }
/* 點得到的提示 */
.route-card__title a[data-peek], .artist__link[data-peek] { cursor: pointer; }
@media (max-width: 599px) {
  .peek { width: 100vw; max-width: none; max-height: 88svh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
}

/* 時間表的節目列可點開卡片 */
.pg-list .tt-row[data-stop] { cursor: pointer; }

/* ══ 地圖縮放／平移 ═════════════════════════════════════ */
.map--tool { aspect-ratio: 1 / 1; touch-action: pan-y; } /* 未放大時單指仍可捲動頁面 */
.map--tool.is-zoomed { touch-action: none; cursor: grab; }
.map--tool.is-panning { cursor: grabbing; }
.map__canvas {
  position: absolute; inset: 0;
  transform-origin: 0 0;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(var(--z, 1));
  will-change: transform;
}
.map__canvas .map__img { width: 100%; height: 100%; object-fit: cover; }
/* 放大時標記反向縮放，圓點維持原本大小好點擊 */
.map__canvas .spot { transform: scale(calc(1 / var(--z, 1))); transform-origin: center; }
.map-zoom {
  position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 3;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.map-zoom__btn {
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  border: 1px solid var(--edge); border-radius: 50%;
  background: rgba(244, 246, 247, 0.94); color: var(--accent);
  font-size: 1rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(74, 74, 82, 0.18), var(--sheen);
}
.map-zoom__btn:hover { background: #fff; }
.map-zoom__btn--reset { font-size: 0.95rem; }
@media (prefers-reduced-motion: no-preference) { .map__canvas { transition: transform 0.18s ease-out; } .map--tool.is-panning .map__canvas { transition: none; } }

/* ══ 彈窗進出場：淡入淡出＋輕微位移 ═══════════════════════
   原生 <dialog> 從 display:none 進出頂層，要靠 @starting-style 起始值加上
   display / overlay 的 allow-discrete，關閉時動畫才不會被瞬間切掉。 */
.peek, .sheet, .lightbox {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.26s ease,
    transform 0.32s cubic-bezier(0.22, 0.85, 0.28, 1),
    overlay 0.32s allow-discrete,
    display 0.32s allow-discrete;
}
.peek[open], .sheet[open], .lightbox[open] { opacity: 1; transform: none; }
@starting-style {
  .peek[open], .sheet[open], .lightbox[open] { opacity: 0; transform: translateY(14px) scale(0.985); }
}
.peek::backdrop, .sheet::backdrop, .lightbox::backdrop {
  opacity: 0;
  transition: opacity 0.3s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}
.peek[open]::backdrop, .sheet[open]::backdrop, .lightbox[open]::backdrop { opacity: 1; }
@starting-style {
  .peek[open]::backdrop, .sheet[open]::backdrop, .lightbox[open]::backdrop { opacity: 0; }
}
/* 手機的底部抽屜：從下方滑上來 */
@media (max-width: 767px) {
  .sheet { transform: translateY(100%); }
  @starting-style { .sheet[open] { transform: translateY(100%); } }
}
@media (max-width: 599px) {
  .peek { transform: translateY(100%); }
  @starting-style { .peek[open] { transform: translateY(100%); } }
}
/* 燈箱：圖片本身也輕輕放大進場 */
.lightbox { transform: none; }
.lightbox__img { transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 0.85, 0.28, 1); }
@starting-style { .lightbox[open] .lightbox__img { opacity: 0; transform: scale(0.97); } }
/* 卡片內容換頁（上一站／下一站、燈箱換圖）不要跟著整體動畫跳 */
.sheet__media img, .sheet__title, .sheet__desc { transition: opacity 0.18s ease; }
@media (prefers-reduced-motion: reduce) {
  .peek, .sheet, .lightbox, .peek::backdrop, .sheet::backdrop, .lightbox::backdrop, .lightbox__img {
    transition: none; transform: none;
  }
}

/* 地圖：擋掉原生圖片拖曳，桌機才拖得動（手機沒這問題） */
.map__canvas img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.map--tool.is-panning, .map--tool.is-panning * { user-select: none; }

/* ══ 日／夜切換鈕：從無字小圓改成有標籤的膠囊（跟捲動提示同一組語言） ══ */
.hero__toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  width: auto; height: auto;
  right: clamp(1rem, 4vw, 2.25rem);
  padding: 0.42rem 0.95rem 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(244, 246, 247, 0.92);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  box-shadow: 0 6px 22px rgba(74, 74, 82, 0.22), var(--sheen);
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; line-height: 1;
  text-decoration: none;
  animation: toggle-hint 2.2s ease-in-out 3; /* 載入時呼吸三下就停 */
}
.hero__toggle:hover, .hero__toggle:focus-visible {
  background: var(--accent); color: #fff; border-color: var(--accent);
  animation: none;
}
.hero__toggle-icon { font-size: 1.05em; line-height: 1; }
@keyframes toggle-hint {
  0%, 100% { box-shadow: 0 6px 22px rgba(74, 74, 82, 0.22), 0 0 0 0 rgba(152, 122, 160, 0); }
  50%      { box-shadow: 0 6px 22px rgba(74, 74, 82, 0.22), 0 0 0 7px rgba(152, 122, 160, 0.16); }
}
@media (prefers-reduced-motion: reduce) { .hero__toggle { animation: none; } }
@media (max-width: 479px) {
  .hero__toggle { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
}

/* ══ 日／夜切換：頁首常駐的 icon 鈕（全站背景都會跟著換） ══ */
.site-header { gap: 0.5rem; }
.mode-toggle {
  display: grid; place-items: center;
  width: 2.35rem; height: 2.35rem;
  margin-left: auto; /* 推到右側，選單接在它後面 */
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: rgba(244, 246, 247, 0.9);
  color: var(--accent);
  text-decoration: none;
  box-shadow: 0 3px 14px rgba(74, 74, 82, 0.14), var(--sheen);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mode-toggle .ico { width: 1.05rem; height: 1.05rem; margin: 0; }
.mode-toggle:hover, .mode-toggle:focus-visible { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-12deg); }
.site-nav { margin-left: 0; }
/* 首頁載入時輕輕提示兩下（其他頁不打擾） */
.home .mode-toggle { animation: toggle-hint 2.4s ease-in-out 2; }
.home .mode-toggle:hover { animation: none; }
@media (prefers-reduced-motion: reduce) { .home .mode-toggle { animation: none; } .mode-toggle:hover { transform: none; } }
@media (max-width: 899px) { .nav-toggle { margin-left: 0.1rem; } }

/* 桌機選單維持乾淨：不顯示 icon 與手機選單底部的活動資訊 */
@media (min-width: 900px) {
  .site-nav__foot { display: none; }
  .site-nav a .ico { display: none; }
}

/* 手機選單清單：整面選單裡不要膠囊框（來源規則已限定 min-width:900px，這裡是保險） */
@media (max-width: 899px) {
  .site-nav__list,
  .site-header--float .site-nav__list,
  .site-header--float:not(.is-compact) .site-nav__list {
    border-color: transparent;
    box-shadow: none;
    background: none;
    padding: 0;
    border-radius: 0;
  }
}

/* 策展人的話文末署名 */
.entry__byline {
  margin: 1.6rem 0 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.7rem;
  color: var(--brand-purple);
}
.entry__byline-role { font-size: 0.82rem; letter-spacing: 0.14em; color: var(--ink-soft); }
.entry__byline-name { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.08em; }

/* ══ 展演節目時間表：手機版型 ═══════════════════════════════
   桌機是「時間｜編號｜劇照｜內容｜種類｜定位」六欄；直接縮到 390px 時內容欄只剩 89px，
   標題硬折行、meta 折三行。手機收成兩欄：左邊時間欄（編號疊在時間下方），右邊內容欄吃滿，
   種類標籤退到內容下方自己一行。 */
@media (max-width: 639px) {
  .pg-list { --tt-time: 3.5em; }
  .pg-list .tt-row {
    grid-template-columns: var(--tt-time) 1fr;
    grid-template-areas:
      "time  body"
      "n     genre";
    align-items: start;
    gap: 0.3rem 0.7rem;
    padding: 0.7rem 0.6rem 0.75rem 0.15rem;
  }
  .pg-list .tt-row__time { align-items: flex-start; }
  .pg-list .tt-row__start { font-size: 1rem; }
  .pg-list .tt-row__n { justify-self: center; align-self: start; margin: 0.1rem 0 0; }
  .pg-list .tt-row__title { font-size: 1rem; line-height: 1.45; }
  .pg-list .tt-row__meta { margin-top: 0.25rem; gap: 0.1rem 0.6rem; }
  .pg-list .tt-row__genre { justify-self: start; align-self: center; margin: 0; }
  /* 常設節目沒有起訖時間，「展期中」佔滿時間欄會被切字 */
  .pg-list .tt-row__start--open { font-size: 0.8rem; line-height: 1.25; }

  /* 步行段的虛線要對齊編號欄中心 */
  .tt-walk { padding-left: calc(0.15rem + var(--tt-time, 3.5em) / 2 - 1px); gap: 0.55rem; }
  .tt-walk__line { margin-left: 0; }
  .tt-walk__text { font-size: 0.76rem; line-height: 1.4; }

  /* 手機上三層內距（pg__wrap 16 + pg-body 20 + tt-group 17.6）會吃掉每邊 53px，
     390 螢幕先少 107px，列自然擠成一團。收掉外面兩層、群組卡只留一點內距。 */
  .pg-panel .pg-body { padding-inline: 0.5rem; }
  .tt-group { padding: 0.85rem 0.7rem 0.6rem; border-radius: 14px; }

  /* 群組標題：日期時間換行不要跟標題擠在同一行 */
  .pg-list .tt-group__head { display: block; }
  .pg-list .tt-group__title { font-size: 1.2rem; }
  .pg-list .tt-group__meta { margin-top: 0.15rem; font-size: 0.82rem; }
  .pg-list .tt-group__intro { margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.65; }
}

/* ══ 頁尾製作團隊 ═══════════════════════════════════════════
   分量必須低於上面的指導／主辦／承辦／執行單位名單——公部門頁尾的階序不能翻過去。
   所以：字更小、上方一條細線隔開、不放 logo、不加連結樣式。 */
.staff {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.6rem;
}
.staff__row { display: flex; align-items: baseline; gap: 0.5rem; }
.staff__role {
  margin: 0; font-size: 0.66rem; letter-spacing: 0.16em;
  color: var(--ink-soft); opacity: 0.75; white-space: nowrap;
}
.staff__name { margin: 0; font-size: 0.78rem; color: var(--ink-soft); }
@media (max-width: 639px) { .staff { gap: 0.25rem 1.1rem; } }

/* 燈箱裡的 photo credit */
.lightbox__credit {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}
.lightbox__credit[hidden] { display: none; }

/* ══ 報名區塊 ═══════════════════════════════════════════════
   放在展演節目頁的路線標題下方。報名是這個頁面最重要的行動，
   但份量不能壓過時間表本身——所以用路線色描邊，不是實心大按鈕。 */
.signup {
  margin: 0.85rem 0 0.25rem;
  padding: 0.8rem 0.9rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(152, 122, 160, 0.2);
}
.signup__head { margin: 0 0 0.55rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.7rem; }
.signup__label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  padding: 0.18rem 0.55rem; border-radius: 999px;
  background: var(--route-color, var(--brand-purple)); color: #fff;
}
.signup__note { font-size: 0.83rem; color: var(--ink); }
.signup__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.signup__btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.34rem 0.8rem; border-radius: 999px;
  font-size: 0.88rem; font-weight: 700; text-decoration: none;
  color: var(--brand-purple); background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--route-color, var(--brand-purple));
  transition: background 0.16s ease, color 0.16s ease;
}
.signup__btn:hover, .signup__btn:focus-visible { background: var(--route-color, var(--brand-purple)); color: #fff; }
.signup__arrow { font-size: 0.8em; opacity: 0.7; }
.signup__meta { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.18rem; font-size: 0.78rem; color: var(--ink-soft); line-height: 1.55; }
.signup__meta b { font-weight: 700; color: var(--ink); margin-right: 0.45rem; }
.signup__caveat { color: var(--olive-shadow); }
@media (max-width: 639px) {
  .signup { padding: 0.7rem 0.7rem 0.65rem; }
  .signup__btn { font-size: 0.85rem; padding: 0.36rem 0.75rem; }
}

/* ══ 首頁主視覺：地點・一句話・報名 ═══════════════════════════
   手機首屏原本只有 logo 與捲動提示。這一區把「在哪裡、是什麼、可以做什麼」補齊，
   但份量要壓得住——主角是插畫，字只是讓人站得住腳。 */
.hero__foot {
  position: absolute;
  z-index: 2;
  left: 50%;
  /* .hero 跑道是 85svh，載入時 .below-hero 就露出 15svh —— foot 要讓開這段，
     不然捲動提示會被下面那張卡片蓋住 */
  /* 往上抬一些，跟下面露出的卡片之間留口氣（對方 2026-09-17 要求） */
  bottom: calc(15svh + clamp(2rem, 7vh, 4.5rem));
  translate: -50% 0;
  width: min(100% - 2rem, 40rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
/* 捲離 hero 就整組收掉（原本只收捲動提示） */
.hero__stage.is-passed .hero__foot { opacity: 0; pointer-events: none; }
.hero__foot { transition: opacity 0.3s ease; }
/* 捲動提示改由 .hero__foot 排版 */

/* 不用毛玻璃卡片——那跟下面 .below-hero 的卡是同一套語彙，會讓 hero 看起來像
   下面的內容漏上來。改成文字直接落在插畫上，靠一層柔光撐可讀性（跟 logo 同一個作法），
   logo 與文字就連成一個「海報區塊」，而不是「logo ＋一張卡」。 */
.hero__lines {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.9rem;
}
.hero__lines::before {
  content: '';
  position: absolute;
  inset: -45% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(244, 246, 247, 0.95), rgba(244, 246, 247, 0) 72%);
  filter: blur(10px);
}
.hero--night .hero__lines::before {
  background: radial-gradient(closest-side, rgba(24, 28, 58, 0.82), rgba(24, 28, 58, 0) 76%);
  filter: blur(12px);
}
/* 白天版：插畫細節多、明度又高，光靠柔光底不夠銳利。
   給字本身一圈白色光暈把背後的筆觸推開——比加深底色更不破壞插畫。 */
.hero--day .hero__lines { text-shadow: 0 0 6px #fff, 0 0 14px rgba(255, 255, 255, 0.95), 0 1px 2px rgba(255, 255, 255, 0.9); }
.hero__venue {
  margin: 0;
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--brand-purple);
}
.hero__venue .ico { width: 1em; height: 1em; margin: 0; }
/* 一排關鍵字，不是句子：hero 要一眼掃完，長句留給下面的段落 */
.hero__tagline {
  margin: 0;
  font-size: clamp(1.02rem, 3.8vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--ink);
}
.hero--night .hero__venue { color: #d9c9f2; }
.hero--night .hero__tagline { color: #fff; text-shadow: 0 2px 10px rgba(12, 16, 40, 0.6); }
.hero__actions { margin: 0; }
.hero__btn {
  display: inline-flex; align-items: center;
  padding: 0.42rem 1.05rem;
  border-radius: 999px;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff; background: var(--brand-purple);
  box-shadow: 0 6px 18px rgba(152, 122, 160, 0.4);
  transition: background 0.18s ease, transform 0.18s ease;
}
.hero__btn:hover, .hero__btn:focus-visible { background: var(--ink); transform: translateY(-1px); }
/* 夜版底色深，膠囊要更亮才站得出來 */

@media (max-width: 639px) {
  .hero__foot { gap: 0.5rem; width: calc(100% - 1.6rem); }
}
@media (prefers-reduced-motion: reduce) { .hero__btn { transition: none; } }

.hero__btn-arrow { margin-left: 0.4em; }

/* 桌機：置中（對方 2026-09-17 要求；原本靠左是為了避開兩個女孩，改置中後會壓到她們一些） */
@media (min-width: 900px) {
  .hero__foot { gap: 0.75rem; width: min(100% - 4rem, 40rem); }
  .hero__lines { padding: 0.4rem 0.9rem; }
  .hero__tagline { font-size: 1.05rem; }
}

/* ══ 首頁開場：logo 從 hero 左側中央回到頁首 ═══════════════
   --brand-p 由 nav.js 寫入：0＝停在舞台上放大、1＝頁首原位。
   預設 1，所以 JS 沒跑（或 reduced-motion）就是現在的樣子，不會壞。 */
.home .site-header__brand {
  transform-origin: 0 50%;
  transform:
    translate(
      calc(var(--brand-dx, 0px) * (1 - var(--brand-p, 1))),
      calc(var(--brand-dy, 0px) * (1 - var(--brand-p, 1)))
    )
    scale(calc(1 + var(--brand-grow, 0) * (1 - var(--brand-p, 1))));
  will-change: transform;
}
/* 放大時會伸出頁首那一條，不能被裁掉 */
.home .site-header--float { overflow: visible; }
/* 停在舞台上時，柔光要更足一點才壓得住插畫 */
.home .site-header--float .site-header__brand::before {
  opacity: calc(0.55 + 0.45 * (1 - var(--brand-p, 1)));
}
@media (prefers-reduced-motion: reduce) {
  .home .site-header__brand { transform: none; }
}

/* 白 logo 停在舞台上時，白天版底下是淺色插畫——白柔光是給夜版深底用的，
   淺底要靠反過來的一層淡墨影才分得開。頁首浮在插畫上時也受用，所以不隨捲動變化。 */
.home .site-header__logo--light {
  filter: drop-shadow(0 2px 9px rgba(74, 74, 82, 0.38));
}
.home .hero--night ~ * .site-header__logo--light,
.home.hero-night .site-header__logo--light {
  filter: drop-shadow(0 2px 12px rgba(20, 24, 52, 0.5));
}

/* 關鍵字排：只在項目之間換行，不把詞拆開 */
.hero__tagline { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 0; row-gap: 0.1rem; }
.hero__kw { white-space: nowrap; }
.hero__kw-sep { padding: 0 0.32em; opacity: 0.55; }

