/* ============================================================
   關於山嶼（page-about.hbs）——只有這一頁載。
   整頁是一趟玉山主峰的上坡：hero 是雲海上的島，header 下方一條剖面跟著捲動標出走到哪個航點，
   最後一節是山頂（深色，接進頁尾）。
   只用 tokens-v2.css 的 --sy-* 變數；字級寫 px／clamp（本站 1rem = 10px）。
   .sy-js 由版型 <head> 的內聯腳本加上：沒有 JS 時，問答全展開、數字出處全顯示、測驗換成清單。
   ============================================================ */

.sy-about {
  --sy-about-gap: clamp(72px, 9vw, 136px);
  overflow-x: clip;
}

.sy-about__wrap {
  width: 100%;
  max-width: var(--sy-page-max);
  margin-inline: auto;
  padding-inline: var(--sy-gutter);
}

/* ── 登山口：hero ── */
.sy-about__hero {
  padding-top: clamp(16px, 2.5vw, 40px);
}

.sy-about__hero-in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: start;
  gap: 24px 64px;
}

.sy-about__title {
  margin: 0;
  color: var(--sy-ink);
  font-size: var(--sy-text-4xl);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.sy-about__hero-side {
  align-self: end;
}

.sy-about__intro {
  max-width: 30em;
  margin: 0;
  color: var(--sy-ink-2);
  font-size: var(--sy-text-md);
  line-height: 1.8;
}

.sy-about__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 6px;
  color: var(--sy-terracotta-text);
  font-size: 15px;
  font-weight: 700;
}

.sy-about__hint-narrow {
  display: none;
}

@media (max-width: 639.98px) {
  .sy-about__hint-wide {
    display: none;
  }

  .sy-about__hint-narrow {
    display: inline;
  }
}

.sy-about__hint::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.sy-about__stage {
  margin-top: clamp(8px, 2vw, 24px);
}

.sy-about__note {
  max-width: 44em;
  margin: 14px 0 0;
  color: var(--sy-muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ── 雲海上的島 ── */
.sy-isles__plot {
  position: relative;
  height: clamp(260px, 40vh, 460px);
  margin-top: 40px;
  touch-action: manipulation;
  cursor: ns-resize;
  user-select: none;
  -webkit-user-select: none;
}

.sy-isles__field {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 150px;
}

.sy-isles__field--labels {
  z-index: 2;
}

.sy-isles__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sy-isles__area {
  fill: url(#sy-isle-fade);
}

.sy-isles__line {
  fill: none;
  stroke: var(--sy-terracotta);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: stroke-width var(--sy-dur-2) var(--sy-ease-out);
}

.sy-isles__isle.is-hot .sy-isles__line {
  stroke-width: 3.5;
}

/* 標高格線：1,000／2,000／3,000 m */
.sy-isles__grid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--gy);
  border-top: 1px dashed var(--sy-line-strong);
}

.sy-isles__grid > span {
  position: absolute;
  left: 0;
  bottom: 4px;
  color: var(--sy-ink-3);
  font-size: 13px;
  text-shadow: 0 0 3px var(--sy-paper), 0 0 3px var(--sy-paper);
}

.sy-isles__grid {
  z-index: 2;
  transition: opacity var(--sy-dur-1) ease;
}

.sy-isles__grid.is-near {
  opacity: 0;
}

.sy-isles__grid > span::after {
  content: " m";
}

/* 海平面 */
.sy-isles__plot::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--sy-ink);
}

/* 雲海：從海平面長到 --cloud（0–1）的高度，上緣是兩層慢慢漂的波浪 */
/* 圖層：跟圖一樣高，往下平移 (1 − 雲海高度)——上緣就是雲面。只動 transform，不算版面位移 */
.sy-isles__sea {
  position: absolute;
  top: -48px;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  overflow: hidden;
  pointer-events: none;
}

.sy-isles__lift {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  height: calc(100% - 48px);
  transform: translateY(calc((1 - var(--cloud)) * 100%));
  will-change: transform;
}

.sy-isles__lift--ui {
  z-index: 3;
  top: 0;
  height: 100%;
  pointer-events: none;
}

.sy-isles__cloud {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(242, 237, 230, 0.72), rgba(242, 237, 230, 0.86) 26px, rgba(242, 237, 230, 0.8));
  pointer-events: none;
}

/* 雲面：一排很淡的白色雲團，慢慢往左漂（只是質感，不帶資訊） */
.sy-isles__cloud::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 64px;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 100%) 0 6px / 180px 40px repeat-x,
    radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 100%) 90px 22px / 260px 46px repeat-x;
  filter: blur(2px);
  animation: sy-drift 60s linear infinite;
}

@keyframes sy-drift {
  to {
    background-position: -720px 6px, -950px 22px;
  }
}

/* 雲海高度的刻度線：跟標高格線同一種虛線，但是墨色、只畫在圖的寬度內 */
.sy-isles__level {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-top: 1px dashed rgba(28, 25, 23, 0.45);
  pointer-events: none;
}

.sy-isles__wave {
  position: absolute;
  left: 0;
  bottom: calc(100% - 6px);
  width: 200%;
  height: 26px;
  fill: rgba(242, 237, 230, 0.8);
  filter: blur(3px);
  animation: sy-wave 26s linear infinite;
}

.sy-isles__wave--2 {
  height: 18px;
  fill: rgba(255, 255, 255, 0.55);
  animation-duration: 17s;
  animation-direction: reverse;
}

@keyframes sy-wave {
  to {
    transform: translateX(-50%);
  }
}

/* 島的名字：坐在最高點上方；沉到雲裡就收起來 */
.sy-isles__label {
  position: absolute;
  z-index: 2;
  left: var(--lx);
  bottom: var(--ly);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  color: var(--sy-ink);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transform: translate(-50%, -4px);
  transition: opacity var(--sy-dur-2) ease, transform var(--sy-dur-3) var(--sy-ease-out);
}

.sy-isles__label .sy-spot {
  font-size: 19px;
}

/* 紙色描邊：雲面的虛線、格線劃過字的時候，字還是讀得出來 */
.sy-isles__label .sy-spot,
.sy-isles__name {
  text-shadow: 0 0 3px var(--sy-paper), 0 0 3px var(--sy-paper), 0 0 6px var(--sy-paper);
}

.sy-isles__name {
  color: var(--sy-ink-2);
  font-size: 14px;
  font-weight: 700;
}

.sy-isles__label:hover .sy-isles__name,
.sy-isles__label:focus-visible .sy-isles__name {
  color: var(--sy-terracotta-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sy-isles__label:focus-visible {
  outline: 2px solid var(--sy-terracotta-text);
  outline-offset: 2px;
  border-radius: var(--sy-radius-sm);
}

.sy-isles__label--end {
  align-items: flex-end;
  transform: translate(calc(-100% + 14px), -4px);
}

.sy-isles__label--start {
  align-items: flex-start;
  transform: translate(-14px, -4px);
}

/* 沉到雲裡的山：名字還在，但退成雲下的淡字，像隔著雲看 */
.sy-isles__label.is-under {
  color: var(--sy-muted);
  transform: translate(-50%, calc(100% + 10px));
}

.sy-isles__label--end.is-under {
  transform: translate(calc(-100% + 14px), calc(100% + 10px));
}

.sy-isles__label--start.is-under {
  transform: translate(-14px, calc(100% + 10px));
}

.sy-isles__label--low.is-under {
  transform: translate(-50%, -4px);
}

.sy-isles__label--low.sy-isles__label--end.is-under {
  transform: translate(calc(-100% + 14px), -4px);
}

.sy-isles__label.is-under .sy-isles__name {
  color: var(--sy-muted);
  font-weight: 400;
}

.sy-isles__label.is-under .sy-spot__mark {
  color: var(--sy-muted);
}

/* 拖曳把手：坐在雲海的上緣、靠右 */
.sy-isles__handle {
  position: absolute;
  right: 0;
  top: 0;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px 0 12px;
  border-radius: var(--sy-radius-pill);
  background: var(--sy-ink);
  color: var(--sy-paper);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transform: translateY(-50%);
  cursor: ns-resize;
  touch-action: none;
}

.sy-isles__handle .sy-data {
  font-size: 16px;
}

.sy-isles__handle:focus-visible {
  outline: 2px solid var(--sy-terracotta-text);
  outline-offset: 3px;
}

.sy-isles__handle.is-hint {
  animation: sy-nudge 1.6s var(--sy-ease-out) 2;
}

@keyframes sy-nudge {
  0%, 100% { transform: translateY(-50%); }
  40% { transform: translateY(calc(-50% - 8px)); }
}

/* 雲海高度（0–1）：沒有 JS 就停在預設高度；有 JS 從 0 開始漲（進場動畫），之後由腳本寫在元素上 */
.sy-isles {
  --cloud: var(--cloud-at, 0.65);
  position: relative;
}

.sy-js .sy-isles {
  --cloud: 0;
}

/* 讀數：寬螢幕坐在圖的左上角（那裡只有天空），窄螢幕排在圖下面 */
.sy-isles__range {
  display: none;
}

.sy-isles__cap {
  max-width: 34em;
  min-height: 3.4em;
  margin: 28px 0 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
  color: var(--sy-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
}

.sy-isles__cap .sy-data {
  font-size: 19px;
}

/* ── 跟著捲動的上坡（header 下方） ── */
.sy-strip {
  position: fixed;
  z-index: calc(var(--sy-z-header) - 1);
  top: var(--header-h);
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--sy-line);
  background: var(--sy-paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--sy-dur-2) ease, transform var(--sy-dur-2) var(--sy-ease-out), visibility 0s linear var(--sy-dur-2);
}

.sy-strip.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.sy-strip__in {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 210px;
  align-items: center;
  gap: 28px;
  max-width: var(--sy-page-max);
  height: 56px;
  margin-inline: auto;
  padding-inline: var(--sy-gutter);
}

.sy-strip__alt {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  color: var(--sy-ink);
}

.sy-strip__alt .sy-spot {
  font-size: 22px;
}

.sy-strip__name {
  overflow: hidden;
  color: var(--sy-ink-2);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sy-strip__plot {
  position: relative;
  height: 38px;
}

.sy-strip__alt.is-swap {
  animation: sy-swap var(--sy-dur-3) var(--sy-ease-out);
}

@keyframes sy-swap {
  from { opacity: 0.2; transform: translateY(6px); }
}

.sy-strip__plot > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sy-strip__area {
  fill: var(--sy-terracotta);
  opacity: 0.14;
}

.sy-strip__rest,
.sy-strip__done {
  fill: none;
  stroke-linejoin: round;
}

.sy-strip__rest {
  stroke: var(--sy-line-strong);
  stroke-width: 1.5;
}

.sy-strip__done {
  stroke: var(--sy-terracotta);
  stroke-width: 2.25;
}

.sy-strip__wp,
.sy-strip__me {
  position: absolute;
  left: var(--wx);
  top: var(--wy);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.sy-strip__wp {
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--sy-line-strong);
  background: var(--sy-paper);
}

.sy-strip__wp.is-passed {
  border-color: var(--sy-terracotta);
  background: var(--sy-terracotta);
}

.sy-strip__me {
  left: var(--mx, 0%);
  top: var(--my, 94%);
  width: 13px;
  height: 13px;
  border: 3px solid var(--sy-paper);
  background: var(--sy-terracotta-text);
  box-shadow: 0 0 0 1px var(--sy-terracotta-text);
}

.sy-strip__next {
  overflow: hidden;
  color: var(--sy-ink-2);
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sy-strip__next .sy-data {
  color: var(--sy-ink);
  font-size: 15px;
  font-weight: 600;
}

.sy-strip.is-top .sy-strip__alt .sy-spot__mark {
  animation: sy-flag 0.9s var(--sy-ease-out);
}

@keyframes sy-flag {
  0% { transform: scale(1); }
  40% { transform: scale(1.6) translateY(-2px); }
  100% { transform: scale(1); }
}

/* ── 一般的節 ── */
.sy-about__sec {
  padding-top: var(--sy-about-gap);
}

.sy-about__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 20px;
  border-top: 1px solid var(--sy-ink);
}

.sy-about__h2 {
  margin: 0;
  color: var(--sy-ink);
  font-size: var(--sy-text-3xl);
  line-height: 1.22;
}

/* 航點註記：地圖的圖廓外註記，寫在標題同一列的右端 */
.sy-about__wp {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--sy-ink);
  font-size: 15px;
}

.sy-about__wp .sy-spot {
  font-size: 19px;
}

.sy-about__wp-name {
  color: var(--sy-ink-2);
  font-weight: 700;
}

.sy-about__sub {
  max-width: 40em;
  margin: 20px 0 0;
  color: var(--sy-ink-2);
  font-size: var(--sy-text-base);
  line-height: 1.8;
}

/* 這個名字 */
.sy-about__cols {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 32px 64px;
  margin-top: clamp(32px, 4vw, 56px);
}

.sy-about__lede {
  margin: 0;
  color: var(--sy-ink);
  font-size: clamp(24px, 1.6vw + 14px, 36px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.sy-about__body p {
  margin: 0 0 1em;
  color: var(--sy-ink-2);
  font-size: var(--sy-text-base);
  line-height: 1.85;
}

.sy-about__go {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--sy-line);
  border-bottom: 1px solid var(--sy-line);
  color: var(--sy-ink);
  font-size: 17px;
  font-weight: 700;
}

.sy-about__go .sy-icon {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--sy-terracotta-text);
  animation: sy-down 1.8s ease-in-out infinite;
}

@keyframes sy-down {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(4px); }
}

/* ── 你搜過的問題 ── */
.sy-ask {
  margin-top: clamp(32px, 4vw, 48px);
}

.sy-ask__box {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 72px;
  padding: 0 0 12px;
  color: var(--sy-ink);
  font-size: clamp(24px, 1.6vw + 14px, 38px);
  line-height: 1.35;
}

.sy-ask__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  background: var(--sy-terracotta-text);
  color: var(--sy-paper);
  font-size: 0.5em;
  transform: translateY(-0.15em);
}

.sy-ask__caret {
  display: none;
  align-self: center;
  width: 2px;
  height: 1.1em;
  margin-left: -8px;
  background: var(--sy-terracotta);
  animation: sy-caret 1.1s steps(1) infinite;
}

.sy-ask.is-typing .sy-ask__caret {
  display: block;
}

@keyframes sy-caret {
  50% { opacity: 0; }
}

.sy-ask__q {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--sy-line);
  background: none;
  color: var(--sy-ink);
  font: 700 17px / 1.5 var(--sy-font-text);
  text-align: left;
  cursor: pointer;
}

.sy-ask__q::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--sy-line-strong);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transition: background var(--sy-dur-1) ease, transform var(--sy-dur-2) var(--sy-ease-out);
}

@media (hover: hover) {
  .sy-ask__q:hover {
    color: var(--sy-terracotta-text);
  }
}

.sy-ask__q[aria-expanded="true"] {
  color: var(--sy-terracotta-text);
}

.sy-ask__q[aria-expanded="true"]::before {
  background: var(--sy-terracotta);
  transform: scale(1.3);
}

.sy-ask__q:focus-visible {
  outline: 2px solid var(--sy-terracotta-text);
  outline-offset: 2px;
}

.sy-ask__a {
  padding: 4px 0 24px 22px;
}

/* 窄螢幕：清單本身就會展開答案，不再放一次大字 */
@media (max-width: 899.98px) {
  .sy-js .sy-ask__box {
    display: none;
  }
}

.sy-ask__a p {
  max-width: 34em;
  margin: 0 0 12px;
  color: var(--sy-ink-2);
  font-size: var(--sy-text-base);
  line-height: 1.8;
}

.sy-ask__a .sy-arrow-link {
  font-size: 16px;
}

/* 有 JS：一次只開一題 */
.sy-js .sy-ask__a {
  display: none;
}

.sy-js .sy-ask__a.is-open {
  display: block;
}

.sy-ask__typed {
  min-width: 0;
}

/* 寬螢幕：左邊是搜尋框＋答案，右邊是問題清單 */
@media (min-width: 900px) {
  .sy-js .sy-ask {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    grid-auto-rows: auto;
    column-gap: clamp(40px, 5vw, 80px);
    align-items: start;
  }

  .sy-js .sy-ask__box {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .sy-js .sy-ask__q {
    grid-column: 2;
  }

  .sy-js .sy-ask__q:last-of-type {
    border-bottom: 1px solid var(--sy-line);
  }

  .sy-js .sy-ask__a {
    grid-column: 1;
    grid-row: 3 / span 4;
    padding: 24px 0 0;
    border-top: 1px solid var(--sy-line);
  }

  .sy-js .sy-ask__a p {
    max-width: 22em;
    margin-bottom: 20px;
    font-size: clamp(22px, 0.8vw + 16px, 27px);
    line-height: 1.65;
  }

  .sy-js .sy-ask__a .sy-arrow-link {
    font-size: 17px;
  }

  .sy-js .sy-ask__a.is-open {
    animation: sy-rise var(--sy-dur-3) var(--sy-ease-out);
  }
}

@keyframes sy-rise {
  from { opacity: 0; transform: translateY(10px); }
}

/* ── 我們怎麼寫 ── */
.sy-rule {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px clamp(40px, 5vw, 80px);
  padding: clamp(32px, 4vw, 48px) 0;
}

.sy-rule + .sy-rule {
  border-top: 1px solid var(--sy-line);
}

.sy-rule__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 12px;
  color: var(--sy-ink);
  font-size: clamp(22px, 1vw + 16px, 28px);
  font-weight: 700;
  line-height: 1.35;
}

.sy-rule__n {
  color: var(--sy-terracotta-text);
  font-size: 0.8em;
}

.sy-rule__text p {
  max-width: 30em;
  margin: 0;
  color: var(--sy-ink-2);
  font-size: var(--sy-text-base);
  line-height: 1.85;
}

/* 走過才寫：一列一條軌跡 */
.sy-log {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sy-ink);
  list-style: none;
}

.sy-log__row a {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) minmax(0, 150px) 112px;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 8px 8px;
  border-bottom: 1px solid var(--sy-line);
  color: var(--sy-ink);
  text-decoration: none;
  transition: background var(--sy-dur-1) ease;
}

.sy-log__row a:hover {
  background: var(--sy-sand);
}

.sy-log__row a:focus-visible {
  outline: 2px solid var(--sy-terracotta-text);
  outline-offset: -2px;
}

.sy-log__date {
  color: var(--sy-ink-2);
  font-size: 15px;
}

.sy-log__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
}

.sy-log__name .sy-icon {
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--sy-dur-1) ease, transform var(--sy-dur-2) var(--sy-ease-out);
}

.sy-log__row a:hover .sy-icon {
  opacity: 1;
  transform: none;
}

.sy-log__spark {
  height: 30px;
}

.sy-log__spark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sy-log__spark path {
  fill: none;
  stroke: var(--sy-terracotta);
  stroke-width: 1.75;
  stroke-linejoin: round;
}

.sy-log__flat {
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--sy-ink-2);
  font-size: 13px;
}

.sy-log__dist {
  font-size: 17px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.sy-log__dist span {
  margin-left: 2px;
  color: var(--sy-ink-2);
  font-size: 13px;
  font-weight: 500;
}

/* 數字有出處 */
.sy-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sy-proof__item {
  border-top: 1px solid var(--sy-ink);
}

.sy-proof__num {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 16px 0 14px;
  border: 0;
  background: none;
  color: var(--sy-ink);
  text-align: left;
  cursor: pointer;
}

.sy-proof__value {
  font-size: clamp(30px, 1.6vw + 20px, 42px);
  font-weight: 600;
  line-height: 1.05;
  transition: color var(--sy-dur-1) ease;
}

.sy-proof__value i {
  margin: 0 6px 0 4px;
  color: var(--sy-ink-2);
  font: 500 max(15px, 0.46em) / 1 var(--sy-font-text);
}

.sy-proof__value i:last-child {
  margin-right: 0;
}

.sy-proof__of {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sy-ink-2);
  font: 400 14px / 1.4 var(--sy-font-text);
}

.sy-js .sy-proof__of::after {
  content: "看原句";
  color: var(--sy-terracotta-text);
  font-weight: 700;
}

.sy-js .sy-proof__num[aria-expanded="true"] .sy-proof__of::after {
  content: "收起";
}

.sy-proof__num:hover .sy-proof__value,
.sy-proof__num[aria-expanded="true"] .sy-proof__value {
  color: var(--sy-terracotta-text);
}

.sy-proof__num:focus-visible {
  outline: 2px solid var(--sy-terracotta-text);
  outline-offset: 2px;
}

.sy-proof__quote {
  font-family: var(--sy-font-digits);
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--sy-radius-sm);
  background: var(--sy-sand);
  color: var(--sy-ink-2);
  font-size: 15px;
  line-height: 1.7;
}

.sy-proof__quote a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  color: var(--sy-terracotta-deep);
  font-weight: 700;
}

.sy-proof__quote .sy-icon {
  width: 15px;
  height: 15px;
}

.sy-js .sy-proof__quote {
  display: none;
}

.sy-js .sy-proof__quote.is-open {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--sy-ink);
  font-size: 17px;
  animation: sy-rise var(--sy-dur-2) var(--sy-ease-out);
}

/* 兩欄時：原句都出現在數字底下同一格（不會把旁邊那一格撐出空白） */
@media (min-width: 640px) {
.sy-js .sy-proof {
  position: relative;
  padding-bottom: 88px;
}

.sy-js .sy-proof::after {
  content: "點一個數字，它在文章裡的原句會出現在這裡。";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 20px;
  border: 1px dashed var(--sy-line-strong);
  border-radius: var(--sy-radius-sm);
  color: var(--sy-muted);
  font-size: 15px;
}

.sy-js .sy-proof.has-open::after {
  content: none;
}

.sy-js .sy-proof__quote {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 72px;
  margin: 0;
  padding: 16px 20px;
}
}

/* 不適合，就直接說 */
.sy-warn {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sy-ink);
  list-style: none;
}

.sy-warn li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--sy-line);
}

.sy-warn q {
  color: var(--sy-ink);
  font-size: clamp(20px, 0.8vw + 16px, 26px);
  font-weight: 700;
  line-height: 1.45;
  quotes: "「" "」";
}

.sy-warn a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--sy-terracotta-text);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.sy-warn .sy-icon {
  width: 15px;
  height: 15px;
}

/* ── 排雲山莊：測驗（砂岩色的一整塊，像在山屋停下來） ── */
.sy-about__quiz {
  /* 分享連結（#my-peak=）直接跳到這一節時，標題不能被 header＋上坡條蓋住 */
  scroll-margin-top: calc(var(--header-h) + 64px);
  margin-top: var(--sy-about-gap);
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: calc(clamp(90px, 13vw, 200px) + clamp(80px, 8vw, 128px));
  background: var(--sy-sand);
}

.sy-about__quiz .sy-arrow-link,
.sy-about__quiz a:not(.sy-btn) {
  color: var(--sy-terracotta-deep);
}

.sy-quiz {
  margin-top: clamp(32px, 4vw, 56px);
}

.sy-quiz__app {
  display: none;
}

.sy-js .sy-quiz__app {
  display: block;
}

.sy-js .sy-quiz__fallback {
  display: none;
}

.sy-quiz__fallback {
  margin: 0;
  padding: 0 0 0 1.2em;
  color: var(--sy-ink-2);
  font-size: var(--sy-text-base);
  line-height: 1.8;
}

.sy-quiz__fallback li + li {
  margin-top: 10px;
}

.sy-quiz__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--sy-line-strong);
}

.sy-quiz__steps {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sy-quiz__steps li {
  width: 14px;
  height: 12px;
  background: var(--sy-line-strong);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transition: background var(--sy-dur-2) ease;
}

.sy-quiz__steps li.is-done {
  background: var(--sy-terracotta);
}

.sy-quiz__steps li.is-now {
  background: var(--sy-ink);
}

.sy-quiz__count {
  color: var(--sy-ink-2);
  font-size: 14px;
  font-weight: 700;
}

.sy-quiz__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: 0 -12px 0 auto;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--sy-ink-2);
  font: 700 14px / 1 var(--sy-font-text);
  cursor: pointer;
}

.sy-quiz__back[hidden] {
  display: none;
}

.sy-quiz__back:hover {
  color: var(--sy-ink);
}

.sy-quiz__back .sy-icon {
  width: 16px;
  height: 16px;
}

.sy-quiz__q {
  min-width: 0;
  margin: 0;
  padding: clamp(28px, 4vw, 48px) 0 0;
  border: 0;
}

.sy-quiz__q[hidden],
.sy-quiz__results[hidden],
.sy-quiz__result[hidden] {
  display: none;
}

.sy-quiz__q.is-in,
.sy-quiz__results.is-in {
  animation: sy-rise var(--sy-dur-3) var(--sy-ease-out);
}

/* legend 預設會坐在 fieldset 的框線上：float 讓它回到一般的區塊流 */
.sy-quiz__ask {
  float: left;
  width: 100%;
  text-wrap: balance;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: 0;
  color: var(--sy-ink);
  font-size: clamp(26px, 2vw + 16px, 44px);
  font-weight: 700;
  line-height: 1.3;
}

.sy-quiz__opts {
  clear: both;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

/* 寬螢幕：題目在左、選項一欄在右（跟結果頁同一組欄寬） */
@media (min-width: 900px) {
  .sy-quiz__ask {
    width: 40%;
    padding-right: 48px;
  }

  .sy-quiz__opts {
    clear: none;
    margin-left: 45.5%;
  }

  .sy-quiz__q::after {
    content: "";
    display: block;
    clear: both;
  }
}

.sy-quiz__opt {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px 20px;
  border: 1px solid var(--sy-line-strong);
  border-radius: var(--sy-radius);
  background: var(--sy-paper);
  color: var(--sy-ink);
  font: 700 clamp(17px, 0.4vw + 15px, 20px) / 1.4 var(--sy-font-text);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--sy-dur-1) ease, background var(--sy-dur-1) ease, transform var(--sy-dur-2) var(--sy-ease-out);
}

.sy-quiz__key {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--sy-line-strong);
  border-radius: 50%;
  color: var(--sy-ink-2);
  font-size: 15px;
  transition: background var(--sy-dur-1) ease, color var(--sy-dur-1) ease, border-color var(--sy-dur-1) ease;
}

.sy-quiz__label {
  flex: 1;
  min-width: 0;
}

.sy-quiz__opt > .sy-icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--sy-terracotta-text);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--sy-dur-1) ease, transform var(--sy-dur-2) var(--sy-ease-out);
}

.sy-quiz__opt:focus-visible {
  border-color: var(--sy-ink);
  background: var(--sy-surface);
}

@media (hover: hover) {
  .sy-quiz__opt:hover {
    border-color: var(--sy-ink);
    background: var(--sy-surface);
  }

  .sy-quiz__opt:hover .sy-quiz__key {
    border-color: var(--sy-ink);
    background: var(--sy-ink);
    color: var(--sy-paper);
  }

  .sy-quiz__opt:hover > .sy-icon {
    opacity: 1;
    transform: none;
  }
}

.sy-quiz__opt.is-picked .sy-quiz__key {
  border-color: var(--sy-ink);
  background: var(--sy-ink);
  color: var(--sy-paper);
}

.sy-quiz__opt:focus-visible > .sy-icon {
  opacity: 1;
  transform: none;
}

.sy-quiz__opt:focus-visible {
  outline: 2px solid var(--sy-terracotta-text);
  outline-offset: 2px;
}

.sy-quiz__opt:active {
  transform: scale(0.985);
}

.sy-quiz__opt.is-picked {
  border-color: var(--sy-terracotta-text);
}

/* 結果 */
.sy-quiz__results {
  padding-top: clamp(28px, 4vw, 48px);
}

.sy-quiz__result {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  grid-template-areas:
    "name fig"
    "where fig"
    "why fig"
    "warn fig"
    "go fig";
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: clamp(40px, 5vw, 80px);
}

.sy-quiz__name {
  grid-area: name;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 16px;
  margin: 0;
  outline: none;
}

.sy-quiz__lead {
  color: var(--sy-ink-2);
  font-size: clamp(19px, 0.6vw + 15px, 24px);
  font-weight: 700;
}

.sy-quiz__peak {
  color: var(--sy-ink);
  font-size: clamp(44px, 4.6vw + 14px, 88px);
  line-height: 1.12;
}

.sy-quiz__where {
  grid-area: where;
  margin: 10px 0 0;
  color: var(--sy-ink-3);
  font-size: 15px;
  font-weight: 700;
}

.sy-quiz__why {
  grid-area: why;
  max-width: 32em;
  margin: 24px 0 0;
  color: var(--sy-ink);
  font-size: var(--sy-text-md);
  line-height: 1.8;
}

.sy-quiz__warn {
  grid-area: warn;
  max-width: 34em;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--sy-line-strong);
  color: var(--sy-ink-2);
  font-size: 16px;
  line-height: 1.75;
}

.sy-quiz__warn-k {
  display: block;
  margin-bottom: 2px;
  color: var(--sy-terracotta-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sy-quiz__go {
  grid-area: go;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

.sy-quiz__next {
  margin: 0;
  color: var(--sy-ink-2);
  font-size: 15px;
  line-height: 1.6;
}

.sy-quiz__next a {
  font-weight: 700;
}

.sy-quiz__fig {
  grid-area: fig;
  align-self: start;
  padding-top: 8px;
}

.sy-quiz__profile {
  position: relative;
  display: block;
  height: clamp(110px, 10vw, 150px);
  margin-bottom: 14px;
}

.sy-quiz__profile svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sy-quiz__area {
  fill: var(--sy-terracotta);
  opacity: 0.16;
}

.sy-quiz__line {
  fill: none;
  stroke: var(--sy-terracotta);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.sy-quiz__profile-note {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sy-muted);
  font-size: 13px;
}

/* 剖面從登山口往右畫出來：用 clip-path 揭開（線寬不縮放時 stroke-dasharray 量不準） */
.sy-quiz__result.is-in .sy-quiz__profile svg {
  animation: sy-wipe 1.4s var(--sy-ease-out) both;
}

@keyframes sy-wipe {
  from { clip-path: inset(-10% 100% -10% 0); }
  to { clip-path: inset(-10% 0 -10% 0); }
}


.sy-quiz__result.is-in .sy-quiz__peak {
  animation: sy-rise 0.7s var(--sy-ease-out) both;
}


@keyframes sy-fade {
  from { opacity: 0; }
}

.sy-about__quiz .sy-facts {
  border-top-color: var(--sy-ink);
  border-bottom-color: var(--sy-line-strong);
}

.sy-about__quiz .sy-facts > div + div {
  border-left-color: var(--sy-line-strong);
}

/* 一把尺：滿格＝玉山主峰 */
.sy-quiz__ruler {
  display: block;
  margin-top: 18px;
}

.sy-quiz__ruler-bar {
  position: relative;
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(68, 64, 59, 0.12);
}

.sy-quiz__ruler-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--h);
  border-radius: 3px;
  background: var(--sy-terracotta);
}

.sy-quiz__result.is-in .sy-quiz__ruler-bar::after {
  animation: sy-grow 1s var(--sy-ease-out) 0.2s both;
}

@keyframes sy-grow {
  from { width: 0; }
}

.sy-quiz__ruler-cap {
  display: block;
  margin-top: 6px;
  color: var(--sy-ink-2);
  font-size: 13px;
  text-align: right;
}

.sy-quiz__after {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--sy-ink);
}

.sy-quiz__echo {
  margin: 0;
  color: var(--sy-ink-2);
  font-size: 15px;
  line-height: 1.7;
}

.sy-quiz__echo span {
  color: var(--sy-ink);
  font-weight: 700;
}

.sy-quiz__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.sy-quiz__copied {
  color: var(--sy-ink-2);
  font-size: 14px;
}

.sy-quiz__sub {
  max-width: 560px;
  margin-top: 40px;
}

.sy-quiz__sub-t {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
  margin: 0 0 14px;
  color: var(--sy-ink);
  font-size: var(--sy-text-md);
  font-weight: 700;
  line-height: 1.5;
}

/* ── 主峰 ── */
.sy-summit {
  position: relative;
  display: flow-root;
  padding-bottom: clamp(72px, 9vw, 128px);
  background: var(--sy-dusk);
  color: var(--sy-on-dusk);
}

/* 稜線：整條玉山主峰剖面，深色山形蓋在上一節的砂岩底上 */
.sy-summit__ridge {
  position: relative;
  height: clamp(90px, 13vw, 200px);
  margin-top: calc(clamp(90px, 13vw, 200px) * -1);
}

.sy-summit__ridge > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: calc(100% + 1px);
  overflow: visible;
}

.sy-summit__area {
  fill: var(--sy-dusk);
}

.sy-summit__line {
  fill: none;
  stroke: var(--sy-on-dusk-accent);
  stroke-width: 2;
  stroke-linejoin: round;
}

.sy-summit__flag {
  position: absolute;
  left: var(--px);
  top: 6px;
  color: var(--sy-ink);
  font-size: 22px;
  transform: translate(-0.36em, -100%);
}

.sy-summit__in {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 32px 64px;
  padding-top: clamp(40px, 5vw, 72px);
}

.sy-summit__time {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 20px;
  margin: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--sy-dusk-line);
  color: var(--sy-on-dusk);
  font-size: clamp(18px, 0.6vw + 14px, 22px);
  font-weight: 700;
}

.sy-summit__time > span + span {
  color: var(--sy-on-dusk-muted);
  font-weight: 400;
}

.sy-summit__time[hidden] {
  display: none;
}

.sy-summit__time .sy-data {
  color: var(--sy-on-dusk-accent);
  font-size: clamp(56px, 5vw + 24px, 96px);
  font-weight: 600;
  line-height: 1;
}

.sy-summit__title {
  margin: 0;
  color: var(--sy-on-dusk);
  font-size: var(--sy-text-4xl);
  line-height: 1.16;
}

.sy-summit__body p {
  margin: 0 0 14px;
  color: var(--sy-on-dusk-muted);
  font-size: var(--sy-text-base);
  line-height: 1.85;
}

.sy-summit__go {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.sy-summit__ghost {
  border: 1px solid rgba(242, 237, 230, 0.4);
  background: transparent;
  color: var(--sy-on-dusk);
}

.sy-summit__ghost:hover {
  border-color: var(--sy-on-dusk);
  background: rgba(242, 237, 230, 0.08);
}

.sy-summit__body .sy-summit__mail {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--sy-dusk-line);
  font-size: 15px;
}

.sy-summit__mail a {
  color: var(--sy-on-dusk-accent);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* 頁尾緊接在山頂下面：中間用一條細線分開，不要再空一大段 */
.page-template .sy-about + * {
  margin-top: 0;
}

/* ── 捲動進場 ── */
@media (prefers-reduced-motion: no-preference) {
  .sy-js [data-reveal].is-pending {
    opacity: 0;
    transform: translateY(18px);
  }

  .sy-js [data-reveal] {
    transition: opacity 0.7s ease, transform 0.9s var(--sy-ease-out);
  }
}

/* ── 窄螢幕 ── */
@media (max-width: 899.98px) {
  .sy-about__hero-in,
  .sy-about__cols,
  .sy-rule,
  .sy-summit__in,
  .sy-quiz__result {
    grid-template-columns: minmax(0, 1fr);
  }

  .sy-quiz__result {
    grid-template-areas: "name" "where" "fig" "why" "warn" "go";
    grid-template-rows: none;
  }

  .sy-quiz__fig {
    margin-top: 24px;
  }

  .sy-strip__in {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    height: 44px;
  }

  .sy-strip__next {
    display: none;
  }

  .sy-strip__alt .sy-spot {
    font-size: 19px;
  }
}

@media (max-width: 899.98px) {
  .sy-isles__cap {
    max-width: none;
    margin-top: 16px;
    font-size: 16px;
  }
}

@media (max-width: 639.98px) {
  /* 手機：不放把手（會蓋住山名），改用圖下方的滑桿；虛線仍標出雲面 */
  .sy-isles__handle {
    display: none;
  }

  .sy-isles__range {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    margin-top: 4px;
    color: var(--sy-ink);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
  }

  .sy-isles__range input {
    flex: 1;
    min-width: 0;
    height: 44px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
  }

  .sy-isles__range input::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: var(--sy-line-strong);
  }

  .sy-isles__range input::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: var(--sy-line-strong);
  }

  .sy-isles__range input::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    margin-top: -11px;
    border: 3px solid var(--sy-paper);
    border-radius: 50%;
    background: var(--sy-ink);
    box-shadow: 0 0 0 1px var(--sy-ink);
    -webkit-appearance: none;
    appearance: none;
  }

  .sy-isles__range input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border: 3px solid var(--sy-paper);
    border-radius: 50%;
    background: var(--sy-ink);
  }

  .sy-isles__range input:focus-visible {
    outline: 2px solid var(--sy-terracotta-text);
    outline-offset: 2px;
  }

  .sy-isles__field {
    right: 0;
  }

  .sy-isles__plot {
    height: 250px;
    margin-top: 36px;
  }

  .sy-about__intro {
    font-size: 17px;
  }

  .sy-isles__label {
    padding: 4px 2px;
  }

  .sy-isles__label .sy-spot {
    font-size: 13px;
    gap: 3px;
  }

  .sy-isles__label .sy-spot__unit {
    display: none;
  }

  .sy-isles__grid > span {
    left: auto;
    right: 0;
    font-size: 12px;
  }

  .sy-isles__grid:first-child > span {
    display: none;
  }

  .sy-isles__name {
    font-size: 12px;
  }


  .sy-quiz__opts,
  .sy-proof {
    grid-template-columns: minmax(0, 1fr);
  }

  .sy-quiz__opt {
    min-height: 64px;
    padding: 12px 16px;
  }

  .sy-log__row a {
    grid-template-columns: minmax(0, 1fr) 84px auto;
    grid-template-areas: "date spark dist" "name spark dist";
    row-gap: 0;
    column-gap: 12px;
    padding: 10px 0;
  }

  .sy-log__date { grid-area: date; font-size: 13px; }
  .sy-log__name { grid-area: name; }
  .sy-log__spark { grid-area: spark; }
  .sy-log__dist { grid-area: dist; font-size: 15px; }

  .sy-strip__name {
    font-size: 12px;
  }

  .sy-strip__alt {
    gap: 6px;
  }

  .sy-strip__alt .sy-spot__unit {
    display: none;
  }

  .sy-strip__in {
    height: 40px;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sy-isles__wave,
  .sy-ask__caret,
  .sy-about__go .sy-icon,
  .sy-isles__handle.is-hint {
    animation: none;
  }

  .sy-quiz__result.is-in .sy-quiz__profile svg,
  .sy-isles__cloud::before,
  .sy-quiz__result.is-in .sy-quiz__peak,
  .sy-quiz__result.is-in .sy-quiz__ruler-bar::after,
  .sy-quiz__q.is-in,
  .sy-quiz__results.is-in,
  .sy-js .sy-ask__a.is-open,
  .sy-js .sy-proof__quote.is-open {
    animation: none;
  }

  .sy-strip,
  .sy-isles__label {
    transition: none;
  }
}
