/* ══════════════════════════════════════════════════════════════════
   V3b「唱片封套」皮：2026-09-29 定為正式外觀，全站唯一的樣式表。
   方向合約：.impeccable/surfaces/src-assets-skins-sleeve-css.md
   每個方案是一張唱片：一個飽和平塗底色淹滿整塊區域，白色是唯一的留白，
   正方形照片、圓角流行字標題、四個重點像曲目名排在角落，Day 1–10 是 tracklist。
   不用漸層、陰影、卡片框。
   ══════════════════════════════════════════════════════════════════ */

/* ── 自架字型：woff2 由 scripts/subset-fonts.py 依網站實際用字切出（文案新增字之後要重跑） ── */
@font-face { font-family: "Fredoka"; src: url("/assets/fonts/fredoka.woff2") format("woff2"); font-weight: 400 700; font-stretch: 100% 110%; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Huninn"; src: url("/assets/fonts/huninn.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans TC"; src: url("/assets/fonts/noto-sans-tc.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ── 會轉場的顏色變數（捲動時整頁底色交叉淡換靠這四個） ── */
@property --bg { syntax: "<color>"; inherits: true; initial-value: #ffffff; }
@property --fg { syntax: "<color>"; inherits: true; initial-value: #16244a; }
@property --pop { syntax: "<color>"; inherits: true; initial-value: #16244a; }
@property --on-pop { syntax: "<color>"; inherits: true; initial-value: #ffffff; }

/* ── 色票：每個方案一個底色，墨色是品牌深藍，白色是唯一的留白 ── */
:root {
  --ink: #16244a;
  --white: #ffffff;
  --alert: #b3102f;
  /* 首頁（公司本身）的底色：向日葵黃，跟 logo 的金色同一家族 */
  --ground: #f6c531;
  --on-ground: var(--ink);

  --display: "Fredoka", "Huninn", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --text: "Jost", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --rule: 2px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
/* 中山醫大營：診間的土耳其藍 */
.theme-med,
.programs .program:not(.theme-ca, .theme-kh) { --ground: #1fc2c2; --on-ground: var(--ink); }
/* 加州：橘子汽水 */
.theme-ca { --ground: #ff8a2a; --on-ground: var(--ink); }
/* 柬埔寨：深洋紅，這張封套的字是白的 */
.theme-kh { --ground: #c8174f; --on-ground: var(--white); }

/* ── 三種色調（tone）：ground＝方案底色、white＝留白、ink＝深藍 ──
   靜態版面：每個段落自己上色。捲動交叉淡換（html.sleeve-fade，由 sleeve.js 開）時，
   段落變透明，改由 body 依正中央段落的 tone 換色。 */
html:not(.sleeve-fade) :is(
  .hero, #itinerary, #safety, .trust-compact, .cta-band, #philosophy, #about
),
html:not(.sleeve-fade) body,
html:not(.sleeve-fade) .skin-sleeve:not(:has(.hero-logo)) .site-head {
  --tone: ground; --bg: var(--ground); --fg: var(--on-ground); --pop: var(--white); --on-pop: var(--ink);
}
html:not(.sleeve-fade) :is(
  #pillars, #outcomes, #activities, #highlights, #pricing, #projects, #method,
  #faq, #form, #partners, #trust:not(.trust-compact), #programs, #testimonials
) {
  --tone: white; --bg: var(--white); --fg: var(--ink); --pop: var(--ground); --on-pop: var(--on-ground);
}
html:not(.sleeve-fade) :is(.hero-logo, #review),
html:not(.sleeve-fade) body:has(.hero-logo),
html:not(.sleeve-fade) .skin-sleeve:has(.hero-logo) .site-head,
.site-foot {
  --tone: ink; --bg: var(--ink); --fg: var(--white); --pop: var(--ground); --on-pop: var(--on-ground);
}
/* 交叉淡換模式：body 帶著目前的 tone，段落與頁首跟著 body 走（頁尾維持深藍） */
html.sleeve-fade body[data-tone="ground"] { --bg: var(--ground); --fg: var(--on-ground); --pop: var(--white); --on-pop: var(--ink); }
html.sleeve-fade body[data-tone="white"] { --bg: var(--white); --fg: var(--ink); --pop: var(--ground); --on-pop: var(--on-ground); }
html.sleeve-fade body[data-tone="ink"] { --bg: var(--ink); --fg: var(--white); --pop: var(--ground); --on-pop: var(--on-ground); }
html.sleeve-fade-live body {
  transition: --bg .7s var(--ease), --fg .7s var(--ease), --pop .7s var(--ease), --on-pop .7s var(--ease);
}
/* 靜態版面裡，每個有 tone 的段落自己鋪底色 */
.hero, .hero-logo, main > section, .cta-band, .site-head, .site-foot { background: var(--bg); color: var(--fg); }
html.sleeve-fade :is(.hero, .hero-logo, main > section, .cta-band) { background: transparent; }

/* ── 基礎 ── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scrollbar-color: var(--ink) #ffffff;
}
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--text); font-size: 17px; font-weight: 420; line-height: 1.75;
  -webkit-font-smoothing: antialiased; font-kerning: normal;
  caret-color: currentColor;
}
::selection { background: var(--fg); color: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .22em; }
h1, h2, h3, h4 {
  font-family: var(--display); font-weight: 600; font-variation-settings: "wdth" 108;
  font-synthesis-weight: none; line-height: 1.18; margin: 0; text-wrap: balance;
  letter-spacing: -.005em;
}
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* 副標：模板裡的 .eyebrow 一律排在標題「下面」，像封套上的副標或英文對照，不當標題上方的小字 */
.eyebrow {
  font-family: var(--text); font-size: .9rem; font-weight: 500; letter-spacing: .03em;
  color: color-mix(in oklab, var(--fg) 90%, var(--bg));
}

/* ── 按鈕：圓角膠囊，像封面上貼的價格貼紙 ── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .7em 1.5em; border-radius: 999px; border: var(--rule) solid var(--fg);
  font: 600 1rem/1.2 var(--text); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  background: transparent; color: var(--fg);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn.primary { background: var(--pop); color: var(--on-pop); border-color: var(--pop); }
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn:active { transform: translateY(1px); }

/* ── 頁首 ── */
.site-head { position: sticky; top: 0; z-index: 20; border-bottom: var(--rule) solid var(--fg); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; font-variation-settings: "wdth" 108;
  font-synthesis-weight: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text small {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: color-mix(in oklab, var(--fg) 90%, var(--bg));
}
/* 徽章：地球與莖吃 currentColor，外環與葉片自帶金與綠 */
.brand-emblem, .foot-emblem { display: block; flex: none; color: var(--fg); }
.brand-emblem, .brand-emblem svg { width: 38px; height: 38px; }
.brand-emblem { background: var(--white); border-radius: 50%; padding: 1px; color: var(--ink); }
.foot-emblem, .foot-emblem svg { width: 64px; height: 64px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: .95rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--fg); padding: 4px 0; }
.nav a:not(.cta, .lang-switch):hover { text-decoration: underline; }
.nav .lang-switch { border: var(--rule) solid var(--fg); border-radius: 999px; padding: 3px 14px; font-size: .88rem; }
.nav .lang-switch:hover { background: var(--fg); color: var(--bg); }
.nav .cta {
  background: var(--pop); color: var(--on-pop); border-radius: 999px; padding: 8px 18px; font-weight: 600;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav .cta:hover { background: var(--fg); color: var(--bg); }

/* 漢堡選單：自己畫兩條線（打開變成叉），不用文字符號 */
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--fg); font-size: 0; cursor: pointer; position: relative;
}
.nav-toggle::before {
  content: ""; position: absolute; inset: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8h18M3 16h18' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8h18M3 16h18' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nav-toggle[aria-expanded="true"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    background: var(--bg); border-bottom: var(--rule) solid var(--fg);
  }
  .nav.open { display: flex; }
  .nav a { font-family: var(--display); font-weight: 600; font-size: 1.5rem; font-variation-settings: "wdth" 108; font-synthesis-weight: none; padding: 12px 0; border-top: var(--rule) solid var(--fg); }
  .nav a:first-child { border-top: 0; }
  .nav .lang-switch { border-radius: 0; border: 0; border-top: var(--rule) solid var(--fg); padding: 12px 0; font-size: 1.5rem; }
  .nav .cta { margin-top: 14px; text-align: center; padding: 12px 18px; font-size: 1.1rem; font-family: var(--text); }
}

/* ── 方案頁封面（hero）：底色淹滿第一屏，正方形照片，四個重點排在角落 ── */
.hero { padding: clamp(24px, 4vw, 56px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: stretch; }
.hero-grid > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.hero h1 { order: 1; font-size: clamp(2.2rem, 4.6vw, 4.25rem); line-height: 1.12; }
/* 中文標題只在 <wbr> 或空白處換行，不在詞中間斷開；太長的英文標題縮一級 */
.hero h1 { word-break: keep-all; overflow-wrap: break-word; }
.hero h1.long { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.hero .eyebrow { order: 2; margin-top: 14px; }
/* 標語：跟重點表分開，排在封面下面、資訊列上面，不佔封面左欄的高度 */
.hero .quote {
  margin-top: clamp(28px, 4vw, 48px); max-width: 40rem; font-family: var(--display); font-weight: 500; font-size: 1.3rem;
  font-variation-settings: "wdth" 100; line-height: 1.35; text-wrap: balance;
}
.hero .quote + .facts { margin-top: clamp(20px, 3vw, 32px); }
.hero .lead { order: 4; margin-top: 18px; font-size: 1.05rem; max-width: 36em; }
.hero .btns { order: 5; }
.hero .btns .btn:not(.primary) { border-color: var(--fg); }
/* 四個重點：像封底的曲目表，編號＋小標＋值 */
.key-facts {
  order: 6; margin: 32px 0 0; padding: 0; counter-reset: track;
  display: grid; grid-template-columns: auto auto minmax(0, 1fr); column-gap: 14px;
  border-top: var(--rule) solid var(--fg);
}
.hero-grid > div:first-child .key-facts { margin-top: auto; padding-top: 0; }
.key-facts > div {
  display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 45%, var(--bg));
  counter-increment: track;
}
.key-facts > div::before {
  content: counter(track); font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  font-variant-numeric: tabular-nums; min-width: 1.2em;
}
.key-facts dt { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.key-facts dd { margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.45; }
/* 桌機：重點表沉到文字欄底部；照片至少是正方形，左欄比較高時往下拉長，兩者下緣同一條線 */
@media (min-width: 861px) {
  .hero .btns { margin-bottom: 32px; }
  .hero .hero-grid > .photo { aspect-ratio: auto; align-self: stretch; }
  .hero .hero-grid > .photo::before { content: ""; display: block; padding-top: 100%; }
  .hero .hero-grid > .photo img { position: absolute; inset: 0; }
}

.photo { position: relative; overflow: hidden; background: color-mix(in oklab, var(--fg) 18%, var(--bg)); }
.photo img {
  width: 100%; height: 100%; object-fit: cover;
  /* 印刷感：暖一點、飽和一點，像封套上的彩色印刷照片 */
  filter: saturate(1.12) contrast(1.06) sepia(.1);
}
.photo .credit {
  position: absolute; left: 0; bottom: 0; font-size: .72rem; line-height: 1.4; letter-spacing: .04em;
  color: var(--white); background: var(--ink); padding: 4px 10px;
}
.hero .photo { aspect-ratio: 1 / 1; align-self: start; }
.theme-ca .hero .photo img { object-position: 50% 40%; }
.theme-kh .hero .photo img { object-position: 50% 55%; }
.hero-grid.no-photo { grid-template-columns: 1fr; }

/* 封面下緣的資訊列：日期、地點等，像封套底邊的小字 */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px;
  margin: clamp(32px, 5vw, 56px) 0 0; padding: 16px 0 28px; border-top: var(--rule) solid var(--fg);
}
.fact { padding: 6px 0; min-width: 0; }
.fact dt { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: color-mix(in oklab, var(--fg) 90%, var(--bg)); }
.fact dd { margin: 2px 0 0; font-weight: 600; font-size: 1rem; line-height: 1.45; }

@media (max-width: 860px) {
  .hero { padding-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 22px; }
  /* 手機：封面照改橫幅、按鈕排在說明文字前，方案名、重點與主按鈕都要在第一屏（390×844） */
  .hero-grid > .photo { order: -1; aspect-ratio: 3 / 2; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  /* 手機：重點表緊接在標題下面，第一屏就看得到 */
  .key-facts { order: 3; margin: 20px 0 0; }
  .hero-grid > div:first-child .key-facts { margin-top: 20px; }
  .hero .quote { font-size: 1.15rem; }
  .hero .btns { order: 4; margin-top: 22px; }
  .hero .lead { order: 5; font-size: 1rem; }
  .hero .btns .btn { flex: 1 1 auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}

/* ── 段落 ── */
section.block { padding: clamp(64px, 9vw, 120px) 0; }
.sec-head { display: flex; flex-direction: column; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head h2 { order: 1; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.12; }
.sec-head .mock-badge { order: 3; }
.sec-head p { order: 4; margin-top: 18px; font-size: 1.05rem; max-width: 40em; }
.sec-head p + p { margin-top: 12px; }

/* 項目列：不是卡片，是封底的曲目條目，上面一條粗線 */
.grid-2, .grid-3, .flow { display: grid; gap: clamp(28px, 3.5vw, 44px) clamp(20px, 3vw, 36px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .flow { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; min-width: 0; background: none; color: inherit; }
.card.topline { border-top: var(--rule) solid var(--fg); }
.card-body { padding: 18px 0 0; }
.card .photo { aspect-ratio: 1 / 1; }
.card .num {
  display: inline-grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%;
  background: var(--pop); color: var(--on-pop); margin-bottom: 16px;
  font-family: var(--display); font-weight: 600; font-size: 1.2rem; font-variant-numeric: tabular-nums;
}
.card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card p { font-size: 1rem; }

/* 價格：主推方案是一塊平塗底色的貼紙，其他方案只有上緣粗線 */
.price-card { border-top: var(--rule) solid var(--fg); }
.price-card.featured {
  --bg: var(--ground); --fg: var(--on-ground); --pop: var(--white); --on-pop: var(--ink);
  background: var(--bg); color: var(--fg); border-top: 0;
}
.price-card.featured .card-body { padding: 24px; }
.price-card .label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.price {
  font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 3.6vw, 3rem); line-height: 1.1;
  font-variant-numeric: tabular-nums; margin: 10px 0 16px; font-synthesis-weight: none;
}
.price small { font-family: var(--text); font-size: .95rem; font-weight: 500; }
.price s { display: block; font-size: 1.05rem; font-weight: 500; opacity: .8; }
.price-card.featured.card { max-width: 760px; }
.price-card small.todo { display: inline-block; margin-top: 12px; }
.price-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 16px; }
.price-lists h4 { font-size: 1.1rem; margin-bottom: 10px; }
@media (max-width: 640px) { .price-lists { grid-template-columns: 1fr; } }

/* 勾選清單：自己畫的勾，不用文字符號 */
.checks { list-style: none; padding: 0; margin: 0; font-size: .98rem; }
.checks li { position: relative; padding-left: 28px; margin-top: 6px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 17px; height: 17px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.5l4 4 9-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3.5 10.5l4 4 9-9' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks.excludes li::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h12' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h12' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

.note { margin-top: 22px; padding: 14px 18px; font-size: .95rem; border: var(--rule) solid currentColor; }

/* 缺漏標記：預覽版的「待補」像蓋上去的橡皮章；正式版的「詳情請洽詢」只是淡一點的字 */
.todo:not(em) {
  display: inline-block; padding: 0 .5em; border: var(--rule) dashed currentColor; border-radius: 6px;
  font-weight: 700; letter-spacing: .05em; line-height: 1.6;
}
.price.todo { font-size: 1.3rem; }
[data-missing="detail"]:not(:has(.todo)) { color: color-mix(in oklab, currentColor 80%, transparent); font-style: normal; }

/* 列表 */
.bullets { list-style: none; padding: 0; margin: 0; border-top: var(--rule) solid var(--fg); }
.bullets li { position: relative; padding: 12px 0 12px 26px; font-size: 1rem; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 1.2em; width: 10px; height: 10px; border-radius: 50%; background: var(--fg); }
#safety .grid-2 h3 { font-size: 1.4rem !important; margin-bottom: 16px !important; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 18px; border-radius: 999px; background: var(--pop); color: var(--on-pop); font-weight: 600; font-size: .98rem; }
.method-chips { margin-top: clamp(40px, 5vw, 64px); }
.method-chips h3 { font-size: 1.5rem; margin-bottom: 16px; }
.method-chips p { margin-top: 16px; }

/* ── 加州每晚的 Daily Faculty Review：深藍底（晚上），比例條＋B 面曲目表 ── */
.review-bar { display: flex; gap: 4px; margin-bottom: clamp(24px, 3vw, 40px); }
.review-bar span {
  flex-basis: 0; min-width: 0; height: clamp(44px, 6vw, 64px); background: var(--pop); color: var(--on-pop);
  display: flex; align-items: flex-end; padding: 8px 10px;
}
.review-bar b { font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.review-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule) solid var(--fg); }
.review-list li {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 18px; align-items: baseline;
  padding: 18px 0; border-bottom: var(--rule) solid var(--fg);
}
.review-no, .review-time { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.review-no { font-size: 1.45rem; line-height: 1; }
.review-list h3 { font-size: 1.2rem; }
.review-list p { margin-top: 4px; }
.review-time { white-space: nowrap; color: var(--pop); }
.review-note { margin-top: 20px; max-width: 40em; }
@media (max-width: 720px) {
  .review-list li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .review-time { grid-column: 2; margin-top: -8px; }
}

/* ── 行程：Day 1–10 是一張 tracklist ── */
.day-strip {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0;
  margin: 0 0 clamp(28px, 4vw, 44px); border: var(--rule) solid var(--fg);
}
.day-chip {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 12px 10px 14px; text-decoration: none; color: var(--fg);
  border-left: var(--rule) solid var(--fg);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.day-chip:first-child { border-left: 0; }
.day-chip b { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1; font-variant-numeric: tabular-nums; }
.day-chip small { font-size: .78rem; line-height: 1.3; overflow-wrap: anywhere; font-weight: 500; }
.day-chip:hover { background: color-mix(in oklab, var(--pop) 30%, var(--bg)); }
/* 聽過的曲目留一層淡色，正在播的整格換成白 */
.day-chip.is-visited { background: color-mix(in oklab, var(--pop) 20%, var(--bg)); }
.day-chip.is-visited::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}
.day-chip.is-active { background: var(--pop); color: var(--on-pop); }
@media (max-width: 720px) {
  .day-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .day-chip:nth-child(6) { border-left: 0; }
  .day-chip:nth-child(n + 6) { border-top: var(--rule) solid var(--fg); }
  .day-chip { padding: 10px 8px 12px; }
  .day-chip small { font-size: .76rem; }
}

.days { display: grid; gap: 0; border-top: var(--rule) solid var(--fg); }
details.day { border-bottom: var(--rule) solid var(--fg); transition: background-color .3s var(--ease); }
details.day > summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 8rem minmax(0, 1fr) 32px; gap: 18px;
  align-items: center; padding: 18px 16px;
}
details.day > summary::-webkit-details-marker { display: none; }
.day-no { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.day-no small { display: block; font-family: var(--text); font-weight: 500; font-size: .8rem; letter-spacing: .04em; margin-top: 4px; }
.day-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .04em; line-height: 1.5;
  padding: 1px 10px; border-radius: 999px; border: 1.5px solid currentColor;
}
.day-title { font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.35; font-synthesis-weight: none; }
/* 打開的那一天：整列換成白底，像被選中的曲目 */
details.day[open] { --bg: var(--white); --fg: var(--ink); --pop: var(--ground); --on-pop: var(--on-ground); background: var(--bg); color: var(--fg); }
details.day > summary:hover .day-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
details.day.is-visited:not([open]) > summary .day-no { opacity: .72; }
.day-body { padding: 0 16px 24px calc(8rem + 34px); font-size: 1rem; }
.day-body > * + * { margin-top: 12px; }
@media (max-width: 640px) {
  details.day > summary { grid-template-columns: minmax(0, 1fr) 32px; gap: 8px 12px; padding: 16px 12px; }
  details.day > summary .day-no { grid-column: 1 / -1; display: flex; gap: 10px; align-items: baseline; }
  details.day > summary .day-no small { display: inline; margin: 0; }
  details.day > summary .day-head { grid-row: 2; }
  details.day > summary::after { grid-row: 2; grid-column: 2; }
  .day-body { padding: 0 12px 20px; }
}

/* 收合開關：外圈＋加號；打開時實心圓＋減號（都是自己畫的 SVG 遮罩，吃 currentColor） */
details.day > summary::after, .acc summary::after {
  content: ""; width: 32px; height: 32px; flex: none; background: currentColor; justify-self: end;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14.5' fill='none' stroke='black' stroke-width='2.4'/%3E%3Cpath d='M16 9.5v13M9.5 16h13' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14.5' fill='none' stroke='black' stroke-width='2.4'/%3E%3Cpath d='M16 9.5v13M9.5 16h13' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease);
}
details.day[open] > summary::after, .acc details[open] summary::after {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill-rule='evenodd' d='M16 0a16 16 0 1 1 0 32a16 16 0 1 1 0-32zM9.5 14.8h13v2.4h-13z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill-rule='evenodd' d='M16 0a16 16 0 1 1 0 32a16 16 0 1 1 0-32zM9.5 14.8h13v2.4h-13z'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
summary:focus-visible { outline-offset: -3px; }

/* 責任程度（柬埔寨）：五顆圓點 */
.meter-row { display: flex; align-items: center; gap: 10px; }
.meter { display: inline-flex; gap: 5px; }
.meter i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; }
.meter i.on { background: currentColor; }
.meter-label { font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.missions { display: flex; flex-wrap: wrap; gap: 8px; }
.mission { font-size: .85rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: var(--pop); color: var(--on-pop); }

/* 任務板（加州 Day 7） */
.mission-board { border-top: var(--rule) solid var(--fg); }
.mission-row { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.mission-row code { font-family: var(--text); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 560px) { .mission-row { grid-template-columns: 1fr; gap: 2px; } }

/* ── 常見問題 ── */
.acc { border-top: var(--rule) solid var(--fg); }
.acc details { border-bottom: var(--rule) solid var(--fg); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 4px; font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.4; font-synthesis-weight: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.acc .acc-body { padding: 0 60px 24px 4px; max-width: 48em; }

/* ── 可信度 ── */
.partners-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.partner-badge {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; font-synthesis-weight: none;
  background: var(--pop); color: var(--on-pop); border-radius: 999px; padding: 10px 22px;
}
.partner-badge--logo { padding: 8px 18px; display: flex; align-items: center; }
.partner-badge--logo img { max-height: 32px; width: auto; }

/* 安全承諾：封底曲目表。粗線起頭，一欄，左邊項目名、右邊內容 */
.safety-grid { border-top: 6px solid var(--fg); }
.safety-item {
  display: grid; grid-template-columns: 8rem minmax(0, 1fr); column-gap: clamp(16px, 3vw, 40px);
  align-items: baseline; padding: 16px 0; min-width: 0;
  border-bottom: 1px solid color-mix(in oklab, var(--fg) 45%, var(--bg));
}
.safety-item h4 { font-size: 1.15rem; margin: 0; }
.safety-item p { font-size: 1rem; max-width: 46em; }
/* 方案頁精簡版只有項目名：兩欄曲目，名稱之間用細線隔開 */
.safety-grid--compact { margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 3vw, 40px); }
.safety-grid--compact .safety-item { display: block; padding: 12px 0; }
.safety-grid--compact .safety-item h4 { font-size: 1.05rem; }
@media (max-width: 640px) {
  .safety-item { grid-template-columns: 1fr; row-gap: 4px; }
  .safety-grid--compact { grid-template-columns: 1fr; }
}

.team-contact { margin-top: 36px; }
.team-intro p { font-size: 1.05rem; max-width: 40em; margin-bottom: 20px; }
.contact-channels {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 24px;
  margin: 0; padding: 14px 0 0; border-top: var(--rule) solid var(--fg);
}
.contact-channels dd a { font-weight: 600; }
.trust-more { margin-top: 28px; }
.trust-more a, [data-other-programs] { font-weight: 600; text-decoration: underline; }
.trust-more a:hover, [data-other-programs]:hover { text-decoration-thickness: 3px; }

/* ── 表單（留白段落裡）── */
.mock-badge {
  align-self: flex-start; display: inline-block; margin-top: 14px; padding: 4px 14px; border-radius: 999px;
  background: var(--fg); color: var(--bg); font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  transform: rotate(-2deg);
}
.form { display: grid; gap: clamp(36px, 5vw, 56px); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form legend {
  float: left; width: 100%; padding: 16px 0 0; margin: 0 0 22px; border-top: var(--rule) solid var(--fg);
  font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; font-synthesis-weight: none;
}
.form legend + * { clear: both; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; font-size: .98rem; min-width: 0; }
.field > span { font-weight: 600; }
/* 必填星號跟字同色（捲動淡換時段落底色會變，固定紅色在彩色底上看不清） */
.field > span em, .options em.todo { font-style: normal; color: currentColor; margin-left: 3px; font-weight: 700; }
.field small { font-size: .85rem; }
.form :is(input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea) {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: var(--rule) solid var(--ink); border-radius: 0; padding: 11px 14px; min-height: 50px; width: 100%;
  transition: background-color .2s var(--ease);
}
.form ::placeholder { color: color-mix(in oklab, var(--ink) 70%, var(--white)); opacity: 1; }
.form select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2316244a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
}
.form textarea { min-height: 120px; resize: vertical; }
.form :is(input, select, textarea):focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px;
  background-color: color-mix(in oklab, var(--ground) 16%, var(--white));
}
.form :is(input, select, textarea):user-invalid,
.form :is(input, select, textarea)[aria-invalid=true] { border-color: var(--alert); border-style: dashed; }
.form .field-error, .form-status { color: var(--alert); font-weight: 600; font-size: .92rem; }
.form-status { margin: 0; padding: 12px 0; border-top: var(--rule) solid var(--alert); }
.form[hidden], .form-status[hidden], .result[hidden] { display: none; }
.options { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.options label { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; cursor: pointer; min-height: 32px; }
.options input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0;
  border: var(--rule) solid var(--ink); background: var(--white); cursor: pointer;
}
.options input[type=radio] { border-radius: 50%; }
.options input:checked {
  background: var(--ground) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-8.5' fill='none' stroke='%2316244a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.theme-kh .options input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-8.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.options input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.options input:user-invalid, .options input[aria-invalid=true] { border-color: var(--alert); border-style: dashed; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .btn { min-width: 14rem; }
.result {
  --bg: var(--ground); --fg: var(--on-ground); --pop: var(--white); --on-pop: var(--ink);
  background: var(--bg); color: var(--fg); padding: clamp(24px, 4vw, 44px);
}
.result .mock-badge { margin: 0 0 16px; }
.result h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.result h4 { font-size: 1.2rem; margin: 28px 0 0; }
.result .steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; max-width: 44em; }
.result .steps li { counter-increment: step; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 12px; align-items: baseline; }
.result .steps li::before { content: counter(step); font: 600 1.3rem/1 var(--display); font-variant-numeric: tabular-nums; }
.result .form-actions { margin-top: 24px; }
.result dl { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 0 20px; margin: 22px 0 0; border-top: var(--rule) solid var(--fg); }
.result dt, .result dd { padding: 10px 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.result dt { font-weight: 600; font-size: .9rem; }
.result dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) {
  .result dl { grid-template-columns: 1fr; }
  .result dt { border-bottom: 0; padding-bottom: 0; }
}

/* ── 洽詢橫幅與頁尾 ── */
.cta-band { padding: clamp(72px, 10vw, 136px) 0; }
.cta-band .wrap { display: flex; flex-direction: column; }
.cta-band h2 { order: 1; font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1.1; max-width: 16em; }
.cta-band p { order: 3; margin-top: 18px; max-width: 40em; font-size: 1.05rem; }
.cta-band .btns { order: 4; margin-top: 32px; }
.cta-band .btn.primary { background: var(--pop); color: var(--on-pop); border-color: var(--pop); }
.cta-band .btn.primary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
/* 次要按鈕：只出現在頁尾橫幅，描邊、透明底 */
.btn.secondary { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn.secondary:hover { background: var(--fg); color: var(--bg); }

.site-foot { padding: 48px 0 56px; font-size: .92rem; border-top: 0; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 28px; }
.site-foot a { text-decoration: underline; }
.site-foot b { font-family: var(--display); font-weight: 600; font-size: 1.15rem; font-synthesis-weight: none; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand .en { font-size: .75rem; letter-spacing: .1em; }
.foot-brand-link { text-decoration: none !important; }
.foot-brand-link:hover b { text-decoration: underline; }
.site-foot [data-other-programs] { display: inline-block; margin-top: 8px; }

/* ── 首頁 ── */
#philosophy .sec-head, #about .sec-head { max-width: 58rem; margin-bottom: 0; }
#philosophy .sec-head h2, #about .sec-head h2 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.08; }
#philosophy .sec-head p, #about .sec-head p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 36em; margin-top: 28px; }
.home-about p + p { margin-top: 14px; }

/* 三張封套並排，像唱片架上的一排唱片 */
.programs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px);
  align-items: end; padding-bottom: 18px; border-bottom: 6px solid var(--ink);
}
.program {
  --bg: var(--ground); --fg: var(--on-ground); --pop: var(--white); --on-pop: var(--ink);
  display: flex; flex-direction: column; background: var(--bg); color: var(--fg); text-decoration: none; min-width: 0;
  transition: transform .45s var(--ease);
}
.program:hover { transform: translateY(-12px); }
.program .photo { aspect-ratio: 1 / 1; }
.program .card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.program h3 { order: 1; font-size: clamp(1.35rem, 2vw, 1.7rem); line-height: 1.2; }
.program .card-body .eyebrow { order: 2; margin-top: 10px; font-size: .85rem; }
.program p { order: 3; margin-top: 12px; font-size: .95rem; }
.program .more {
  order: 4; align-self: flex-start; margin-top: 18px; padding: 8px 16px; border-radius: 999px;
  background: var(--pop); color: var(--on-pop); font-weight: 600; font-size: .92rem;
}
.program:hover .more { background: var(--fg); color: var(--bg); }
.programs.single { grid-template-columns: minmax(0, 520px); }
/* 沒有照片的封套（英文首頁）：整張正方形平塗，標題沉到下緣 */
.program:not(:has(.photo)) { aspect-ratio: 1 / 1; }
.program:not(:has(.photo)) .card-body { justify-content: flex-end; padding: clamp(24px, 4vw, 40px); }
.program:not(:has(.photo)) h3 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
@media (max-width: 900px) {
  /* 手機：唱片架改成橫向滑動，下一張露出一截 */
  .programs:not(.single) {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 360px);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(var(--gutter) * -1); padding: 16px var(--gutter) 18px; scroll-padding: 0 var(--gutter);
    border-bottom: 0; scrollbar-color: var(--ink) transparent;
  }
  .programs:not(.single) .program { scroll-snap-align: start; }
  .program:hover { transform: none; }
}

/* ══ 首頁 logo 動畫 hero（品牌承諾，幾何與時間軸照 V2 原樣；只換底色、文案與按鈕的顏色）══ */
.hero-logo { padding: 56px 0 72px; overflow: hidden; }
.hero-logo-grid { display: grid; grid-template-columns: minmax(260px, 460px) 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-logo-grid { grid-template-columns: 1fr; gap: 16px; text-align: center; } }
.hero-logo-emblem { display: flex; flex-direction: column; align-items: center; }
.hero-logo-svg { width: min(90vw, 420px); height: auto; }
.hero-wordmark {
  margin-top: 6px; font-family: var(--display); font-size: 1.5rem; letter-spacing: .12em; color: var(--white);
  opacity: 0; animation: hero-fade .6s ease-out 3s both;
}
.hero-logo-copy { display: flex; flex-direction: column; color: var(--white); opacity: 0; animation: hero-copy-in .7s ease-out 3.1s both; }
.hero-logo-copy h1 { order: 1; color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.9rem); line-height: 1.12; }
.hero-logo-copy .eyebrow { order: 2; margin-top: 14px; color: #f6c531; }
.hero-logo-copy .lead { order: 3; margin-top: 18px; color: color-mix(in oklab, var(--white) 86%, var(--ink)); font-size: 1.05rem; max-width: 34em; }
.hero-logo-copy .btns { order: 4; }
.hero-logo-copy .btn { border-color: var(--white); color: var(--white); }
.hero-logo-copy .btn.primary { background: #f6c531; border-color: #f6c531; color: var(--ink); }
.hero-logo-copy .btn:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
@media (max-width: 900px) { .hero-logo-copy .btns { justify-content: center; } .hero-logo-copy .lead { margin-inline: auto; } }

.globe-fill { fill: #1f3163; }
.continents path { fill: none; stroke: #6c85b8; stroke-width: 1.7; opacity: 0; animation: hero-fade 1s ease-out .5s both; }
.taiwan-dot { fill: #fff; opacity: 0; transform-box: view-box; transform-origin: center; animation: taiwan-flash 1.1s ease-out .7s both; }

/* 雙細環＋兩顆定位點（V2 原樣） */
.ring-thin { fill: none; stroke: #e0b25e; opacity: 0; animation: ring-thin-in .3s ease-out .8s both; }
.ring-thin--outer { stroke-width: 3.5; --ring-thin-opacity: 1; }
.ring-thin--inner { stroke-width: 3; --ring-thin-opacity: 1; }
.ring-dot { fill: #e0b25e; opacity: 0; animation: hero-fade .25s ease-out .85s both; }
.ring-draw {
  stroke: #e8c27a; stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: hero-draw .8s ease-out 0s both, hero-fade-out .25s ease-in .82s both;
}

/* 赤道環與繞行金點（V2 原樣） */
.equator-ring {
  fill: none; stroke: #cfd8ea; stroke-width: 2.6; opacity: .85;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: hero-draw .8s ease-out 1.2s both;
}
.equator-dot {
  fill: #e8c27a; opacity: 0;
  offset-path: ellipse(250px 29px at 320px 340px);
  animation: hero-fade .3s linear 1.2s both, equator-orbit 16s linear 1.2s infinite;
}

/* 幼苗（V2 原樣） */
.seedling-stem {
  fill: #fbf9f6;
  transform-box: view-box; transform-origin: 318px 506px;
  animation: seedling-grow-y .7s ease-out 1.8s both;
}
.seedling-leaf { transform-box: view-box; }
.seedling-leaf--gold {
  fill: #d9aa55; transform-origin: 330px 305px;
  animation: seedling-grow-scale .55s ease-out 2.2s both, leaf-sway 3.8s ease-in-out 3.2s infinite reverse;
}
.seedling-leaf--green {
  fill: #7a9a5a; transform-origin: 318px 352px;
  animation: seedling-grow-scale .55s ease-out 2.55s both, leaf-sway 4.2s ease-in-out 3.4s infinite;
}

.ring-text { fill: #e8c27a; font-family: var(--text); font-size: 21px; font-weight: 600; letter-spacing: .3em; opacity: 0; animation: hero-fade .5s ease-out 2.8s both; }

@media (prefers-reduced-motion: reduce), print {
  .hero-wordmark, .hero-logo-copy, .continents path, .taiwan-dot, .equator-dot,
  .seedling-stem, .seedling-leaf, .ring-text, .ring-dot { animation: none !important; opacity: 1 !important; transform: none !important; }
  .ring-thin { animation: none !important; opacity: var(--ring-thin-opacity) !important; }
  .ring-draw { animation: none !important; opacity: 0 !important; }
  .taiwan-dot { opacity: .9 !important; }
  .equator-ring, .seedling-stem { stroke-dashoffset: 0 !important; }
  .equator-dot { offset-distance: 0% !important; }
}

@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes hero-draw { to { stroke-dashoffset: 0; } }
@keyframes ring-thin-in { from { opacity: 0; } to { opacity: var(--ring-thin-opacity); } }
@keyframes hero-copy-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes taiwan-flash {
  0% { opacity: 0; transform: scale(.3); }
  45% { opacity: 1; transform: scale(2.2); }
  100% { opacity: .9; transform: scale(1); }
}
@keyframes equator-orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes seedling-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes seedling-grow-scale { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes leaf-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }

/* ── 減少動態：拿掉所有位移與轉場 ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .program:hover { transform: none; }
}

/* ── 列印：白底黑字，保留結構；<details> 由 site.js 在 beforeprint 展開 ── */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html { font-size: 14px; }
  body { background: #fff; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* 導覽、表單、互動元件不印 */
  .site-head, .nav, .nav-toggle, .day-strip, form, .form, .form-actions, .result, .mock-badge,
  #form, #inquiry, .cta-band .btns, .hero .btns, .btn, video, iframe, .lang-switch { display: none !important; }
  /* 沒有 JS 時的保底：讓收合的 <details> 內容也看得見 */
  details::details-content { content-visibility: visible; display: block; }
  details > summary::after { display: none !important; }
  details.day > summary, .acc summary { cursor: default; }
  .hero, .hero-logo, main > section, .cta-band, .site-foot, .program, .price-card.featured, .result, details.day, details.day[open] {
    --bg: #fff; --fg: #000; --pop: #fff; --on-pop: #000; background: #fff; color: #000;
  }
  main > section, section.block, .hero, .cta-band { padding-top: 12px; padding-bottom: 12px; }
  .sec-head { margin-bottom: 12px; }
  .grid-2, .grid-3, .flow { gap: 14px 24px; }
  .card-body { padding-top: 10px; }
  .facts, .key-facts { margin-top: 10px; }
  /* 只有螢幕上才有意義的操作提示（點一天看細節等） */
  .tap-hint { display: none !important; }
  .photo img { filter: none; }
  a { color: inherit; text-decoration: none; }
  /* 不要在卡片、行程、問答、表格列中間斷頁；標題不落單 */
  .card, .price-card, .safety-item, .fact, .review-list li, .mission-row, .acc details, details.day, .note, .partner-badge, tr, figure {
    break-inside: avoid; page-break-inside: avoid;
  }
  details.day > summary, h1, h2, h3, .sec-head { break-after: avoid; page-break-after: avoid; }
  .day-body { padding-left: 16px; }
  .acc .acc-body { padding-right: 4px; }
  .site-head { position: static; }
}

/* ── 四步報名頁（/csmu-healthcamp/apply/）：留白段落裡的分步表單，底部固定金額試算 ── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.apply-hero { padding-bottom: clamp(28px, 4vw, 52px); }
.apply-hero h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); word-break: keep-all; overflow-wrap: break-word; }
.apply-hero .eyebrow { margin-top: 14px; }
.apply-hero .lead { margin-top: 18px; font-size: 1.05rem; max-width: 40em; }
.apply-hero .mock-badge { margin-top: 22px; }
.apply-note { max-width: 46rem; font-size: .95rem; margin-bottom: 28px; padding-left: 14px; border-left: var(--rule) solid var(--fg); }
.apply-steps { list-style: none; margin: 0 0 clamp(28px, 4vw, 44px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--rule) solid var(--fg); }
.apply-steps li { border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.apply-steps button {
  all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 6px;
  cursor: pointer; font-weight: 600; border-top: 4px solid transparent; margin-top: -3px;
}
.apply-steps button:disabled { cursor: default; opacity: .55; }
.apply-steps button[aria-current] { border-top-color: var(--fg); }
.apply-steps button:focus-visible { outline: 3px solid var(--fg); outline-offset: -3px; }
.apply-steps .disc {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: var(--rule) solid var(--fg); font-family: var(--display); font-variant-numeric: tabular-nums; line-height: 1;
}
.apply-steps button[aria-current] .disc, .apply-steps li.done .disc { background: var(--fg); color: var(--bg); }
@media (max-width: 560px) {
  .apply-steps button { flex-direction: column; justify-content: center; gap: 4px; text-align: center; font-size: .85rem; padding: 8px 2px; }
}
.apply-form [data-step-panel] > h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; }
.apply-form [data-step-panel] > h2:focus { outline: none; }
.step-intro { margin: 10px 0 22px; max-width: 42rem; }
.sub-head { font-size: 1.35rem; margin: 34px 0 6px; padding-top: 16px; border-top: var(--rule) solid var(--fg); }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card {
  position: relative; display: grid; gap: 6px; align-content: start; padding: 18px 18px 18px 56px; cursor: pointer;
  border: var(--rule) solid var(--ink); background: var(--white); color: var(--ink);
}
.plan-card:has(input:checked) { background: var(--ground); color: var(--on-ground); }
.plan-card:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.plan-card input { position: absolute; left: 18px; top: 20px; width: 22px; height: 22px; accent-color: var(--ink); margin: 0; }
.plan-name { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.plan-price { font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.plan-price s { font-size: 1.1rem; opacity: .7; margin-right: 6px; }
.plan-price small { font-family: var(--text); font-size: .9rem; font-weight: 500; }
.plan-card .checks { margin: 4px 0 0; }
.student { border-top: var(--rule) solid var(--fg) !important; padding: 0 0 8px !important; margin: 0 0 28px !important; }
.student > legend { font-size: 1.3rem !important; margin-bottom: 16px !important; border-top: 0 !important; }
.student .form-actions { margin-top: 16px; }
.student .form-actions .btn, .apply-form [data-add-student] { min-width: 0; min-height: 44px; padding: .4em 1.1em; font-size: .95rem; }
.options.stacked { flex-direction: column; align-items: stretch; gap: 14px; }
.options.stacked label { align-items: flex-start; }
.options.stacked input { flex: none; margin-top: 2px; }
.terms { display: grid; gap: 20px; margin-bottom: 26px; }
.term { padding-top: 12px; border-top: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); }
.term h4 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin: 0 0 6px; }
.term p { margin: 0; max-width: 46rem; }
.consents { border: 0; margin: 0; padding: 0; }
.apply-summary { display: grid; gap: 18px; }
.apply-summary section { background: transparent; padding: 0; }
.apply-summary h4 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin: 0 0 4px; }
.apply-summary dl { display: grid; grid-template-columns: 11rem minmax(0, 1fr); margin: 0; border-top: var(--rule) solid var(--fg); }
.apply-summary dt, .apply-summary dd { padding: 8px 0; margin: 0; border-bottom: 1px solid color-mix(in oklab, var(--fg) 40%, var(--bg)); overflow-wrap: anywhere; }
.apply-summary dt { font-weight: 600; font-size: .9rem; padding-right: 14px; }
@media (max-width: 560px) {
  .apply-summary dl { grid-template-columns: 1fr; }
  .apply-summary dt { border-bottom: 0; padding-bottom: 0; }
}
.link-btn { all: unset; cursor: pointer; font-family: var(--text); font-size: .85rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; margin-left: 8px; }
.link-btn:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
.estimate {
  position: sticky; bottom: 0; z-index: 5; display: grid; gap: 2px; padding: 12px 16px;
  background: var(--ink); color: var(--white); border-top: var(--rule) solid var(--white);
}
.est-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.est-label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.est-total { font-family: var(--display); font-weight: 600; font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.est-break { font-size: .9rem; font-variant-numeric: tabular-nums; }
.est-note { font-size: .78rem; opacity: .8; }
.apply-nav { margin-top: 4px; }
.apply-nav .btn { min-width: 9rem; }
.apply-nav [data-submit]:disabled { opacity: .45; cursor: not-allowed; }
.apply-nav [data-submit]:disabled:hover { background: var(--pop); color: var(--on-pop); border-color: var(--pop); }
@media (max-width: 560px) { .est-note { display: none; } }
.apply [hidden] { display: none !important; }
