/* 首頁：方磚牆（115 年識別，原型 D2，昀楷 10/27 選定）。
   顏色只用 style.css :root 的 --ci-*（識別手冊 A-08、A-09），字級只用 tokens.json 的 7 級，沒有陰影（識別是平的）。
   首頁只有白天，同 /brand。牆的排法、翻轉、介紹卡都在 assets/home.js。 */

:root { --wall-h: 100vh; }
@supports (height: 100svh) { :root { --wall-h: 100svh; } }
.home { background: var(--ci-paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ================================================================ 磚牆 */
.w-stage { position: relative; background: var(--ci-navy); }
.w-spot { position: absolute; left: 0; top: 0; width: 1px; height: var(--wall-h); pointer-events: none; }
/* --fade：圖示磚往米白混多少（昀楷 10/28：「主 LOGO 以外的可以稍淡，讓主 LOGO 群更凸顯」）。
   用一層米白蓋在磚上（不是把磚變透明露出底下的深藍）。標誌、選項磚、入口的標籤不淡 */
.w-wall {
  --fade: .4;
  position: sticky; top: 0; z-index: 1;
  height: var(--wall-h); overflow: hidden;
  background: var(--ci-paper); color: var(--ci-navy);
  transform-origin: 50% 0;
}
.w-cells, .w-gates, .w-zone { position: absolute; inset: 0; margin: 0; padding: 0; }
.w-gates li { display: contents; }
.w-zone, .w-gates, .w-nav { pointer-events: none; }   /* 疊在牆上的幾層只讓裡面的磚接手指，標誌才點得到 */
.w-gate, .w-opt { pointer-events: auto; }

/* 一格：外層給透視，內層翻轉；正面、背面各一面 */
.w-cell { position: absolute; perspective: 800px; -webkit-tap-highlight-color: transparent; }
.w-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.w-flip.no-tr { transition: none; }
.w-face { position: absolute; inset: -.5px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--ci-paper); }
.w-face > svg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.w-face::after { content: ''; position: absolute; inset: 0; background: var(--ci-paper); opacity: var(--fade); pointer-events: none; transition: opacity .4s; }
.w-face.is-opt::after { opacity: 0; }
/* 原色與淡之間慢慢換（選組合時照原本 .4 秒） */
.w-wall.is-vivid:not(.is-picking):not(.has-pick) { --fade: 0; }
.w-wall:not(.is-picking):not(.has-pick) .w-face::after { transition-duration: 1.4s; }
.w-face.back { transform: rotateY(180deg); }
.w-flip.ax-x .w-face.back { transform: rotateX(180deg); }

/* 入口：正面是磚＋「編號 名稱」標籤；滑過或按著翻到背面看一句說明 */
.w-gate { display: block; color: var(--ci-navy); -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
.w-gate .w-face.front { display: flex; align-items: flex-end; }
/* 標籤：深藍底米白字，外面一圈米白，不管底下是哪種磚都分得開 */
.w-tag {
  position: relative; z-index: 1; display: grid; max-width: calc(100% - 10px); margin: 5px;
  padding: 2px 6px 3px; background: var(--ci-navy); color: var(--ci-paper); outline: 2px solid var(--ci-paper);
  font-size: .8rem; font-weight: 700; line-height: 1.25;
}
.w-tag .no { font-family: var(--en); font-weight: 800; }
.w-wall.is-m .w-tag, .w-wall.is-m .w-opt-tag, .w-wall.is-m .w-legend { font-size: .92rem; }
.w-wall.is-l .w-tag, .w-wall.is-l .w-opt-tag, .w-wall.is-l .w-legend { font-size: 1rem; }
.w-wall.is-l .w-tag { max-width: calc(100% - 16px); margin: 8px; padding: 3px 8px 4px; }
.w-wall.is-l .w-logo-tag { font-size: .92rem; }
.w-tag .nm { min-width: 0; overflow: hidden; white-space: nowrap; word-break: keep-all; }
.w-tag.is-wrap .nm { white-space: normal; }
/* 背面：名稱＋一句說明＋小字「看介紹」。中文只在標點後換行（keep-all），一段長到放不下才在字中間斷（anywhere）。
   昀楷 10/28：原本太擠、「評／審標準」這種斷法奇怪、按鈕太大（.go 撞到小島頁的綠色大按鈕樣式），改成 .w-go 小字 */
.w-gate .w-face.back { display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: 10px 12px; background: var(--ci-navy); color: var(--ci-paper); font-size: .8rem; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.w-wall:not(.is-m):not(.is-l) .w-gate .w-face.back { padding: 5px 6px; font-size: .8rem; line-height: 1.3; word-break: normal; }
.w-gate .w-face.back::after { content: none; }
.w-gate .w-face.back b { font-size: .92rem; line-height: 1.3; }
.w-gate .w-face.back .w-go { margin-top: .1rem; font-size: .8rem; font-weight: 700; white-space: nowrap; opacity: .8; }
.w-gate:focus-visible { outline: 3px solid var(--ci-sea); outline-offset: -3px; z-index: 2; }
/* 入口磚（可以點的）一律原色不淡（昀楷 10/28：「可以點的按鈕也要是原本的顏色」）；只有選了組合、跟組合無關的入口才跟著牆一起淡 */
.w-gate .w-face::after { opacity: 0; }
.w-wall.is-picking .w-gate.is-dim .w-face::after, .w-wall.has-pick .w-gate.is-dim .w-face::after { opacity: var(--fade); }

/* 選了組合：有關的入口恢復全彩、框起來；其他入口和牆上的磚淡到幾乎只剩米白，標籤改成米白底 */
.w-wall.is-picking, .w-wall.has-pick { --fade: .8; }
.w-gate.is-hit .w-face::after { opacity: 0; }
.w-gate.is-hit::after { content: ''; position: absolute; inset: 0; z-index: 2; border: 4px solid var(--ci-paper); outline: 3px solid var(--ci-navy); outline-offset: -7px; pointer-events: none; }
.w-gate.is-dim .w-tag { background: var(--ci-paper); color: var(--ci-navy); outline-color: var(--ci-navy); }

/* 標誌：2×4 格（2×2 磚＋下面的字），全彩，不淡 */
.w-logo { position: absolute; z-index: 1; display: block; padding: 0; border: 0; background: var(--ci-paper); color: inherit; cursor: pointer; }
.w-logo svg { display: block; width: 100%; height: 100%; }
.w-logo:focus-visible { outline: 3px solid var(--ci-sea); outline-offset: -3px; z-index: 3; }
.w-logo-tag { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); padding: 1px 10px 2px; background: var(--ci-navy); color: var(--ci-paper); border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.w-wall.is-picking .w-logo-tag { background: var(--ci-paper); color: var(--ci-navy); outline: 2px solid var(--ci-navy); }
/* 手機的磚（小於 92px）：組合標誌最下面那行字離盒底只剩約 0.32 格（64px 的磚約 21px），原本的提示會撞到字（昀楷 10/28 截圖）。
   提示收矮（字級已是最小的 .8rem，不再縮），位置照磚的大小算：跟字之間留 7px，不凸出盒子（320 寬的 64px 磚離盒底剩 0.5px）。
   選擇中的提示有外框、更高，放不下；下方已經有「選好了，回到磚牆」，手機上就不放 */
.w-wall.is-s .w-logo-tag { bottom: min(2px, calc(var(--cell) * .32 - 20px)); padding: 0 9px 1px; line-height: 1.15; }
.w-wall.is-s.is-picking .w-logo-tag { display: none; }
.w-logo-static { display: none; }

/* 點標誌翻出來的 8 塊選項：選項是要按的，全彩。外面一圈框把 8 塊圈成一組，標籤是圓角＋圓點（入口是方的＋編號），兩種一眼分得開 */
.w-opt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 0; text-align: left; }
.w-opt svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-legend { position: relative; margin: 5px; padding: 1px 6px 2px; background: var(--ci-paper); color: var(--ci-navy); outline: 2px solid var(--ci-navy); font-size: .8rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.w-opt-tag { position: relative; display: inline-flex; align-items: center; gap: .3rem; max-width: calc(100% - 10px); margin: auto 5px 5px; padding: 1px 8px 2px 6px; background: var(--ci-paper); color: var(--ci-navy); outline: 2px solid var(--ci-navy); border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.w-opt-tag > span { min-width: 0; overflow: hidden; word-break: keep-all; }
/* 手機的小磚放不下「圓點＋四個字」：拿掉圓點、縮小左右留白；還放不下才換行，只在詞跟詞之間（home.js 的 OPT_SEG：自組／團隊、主題／服務），
   一個詞自己都放不下才在字中間斷。.w-seg 平常是一般的字（nowrap 不換行），tight 時變成 inline-block，段跟段之間才有換行點 */
.w-opt-tag.is-tight { gap: 0; padding: 1px 4px 2px; white-space: normal; overflow-wrap: anywhere; border-radius: 12px; }
.w-opt-tag.is-tight .w-seg { display: inline-block; }
.w-opt-tag.is-tight i { display: none; }
.w-opt-tag i { flex: none; width: .75em; height: .75em; border: 2px solid currentColor; border-radius: 50%; }
.w-opt[aria-pressed="true"] .w-opt-tag { background: var(--ci-navy); color: var(--ci-paper); outline-color: var(--ci-paper); }
.w-opt[aria-pressed="true"] .w-opt-tag i { background: currentColor; }
.w-opt[aria-pressed="true"]::after { content: ''; position: absolute; inset: 0; border: 4px solid var(--ci-paper); outline: 3px solid var(--ci-navy); outline-offset: -7px; pointer-events: none; }
.w-opt:focus-visible { outline: 3px solid var(--ci-sea); outline-offset: -3px; }
.w-zone-frame { position: absolute; z-index: 2; border: 3px solid var(--ci-navy); outline: 3px solid var(--ci-paper); pointer-events: none; }

/* 牆的最下緣：往下還有東西的提示、進小島、暫停 */
.w-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 0 8px calc(12px + env(safe-area-inset-bottom, 0px)); pointer-events: none; }
.w-pill { pointer-events: auto; display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 1rem; background: var(--ci-paper); color: var(--ci-navy); border: 2px solid var(--ci-navy); border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
@media (min-width: 900px) and (min-height: 600px) { .w-pill { min-height: 44px; font-size: .92rem; } }
.w-pill.is-dark { background: var(--ci-navy); color: var(--ci-paper); border-color: var(--ci-paper); }
.w-pill:focus-visible { outline: 3px solid var(--ci-sea); outline-offset: 2px; }
.w-arr { display: inline-block; font-family: var(--en); font-weight: 800; animation: w-nudge 1.6s var(--ease) infinite; }
@keyframes w-nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.is-paused .w-arr { animation-play-state: paused; }
.w-wall.is-picking #bar-island { display: none; }

/* 磚牆排不起來（舊瀏覽器、程式抓不到）：入口變回一般的清單，標誌用圖 */
.wall-failed .w-wall, html:not(.js) .w-wall { position: relative; height: auto; overflow: visible; padding: 2rem var(--pad) 6rem; }
.wall-failed .w-gates, html:not(.js) .w-gates { position: static; display: grid; gap: .5rem; max-width: 640px; margin: 1.5rem auto 0; pointer-events: auto; }
.wall-failed .w-gates li, html:not(.js) .w-gates li { display: block; }
.wall-failed .w-gate, html:not(.js) .w-gate { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding: .75rem 1rem; border: 2px solid var(--ci-navy); user-select: auto; -webkit-user-select: auto; }
.wall-failed .w-gate .w-desc, html:not(.js) .w-gate .w-desc { grid-column: 2; font-size: .92rem; color: var(--ci-sub); }
.wall-failed .w-logo, html:not(.js) .w-logo { display: none; }
.wall-failed .w-logo-static, html:not(.js) .w-logo-static { display: block; width: 160px; height: auto; margin: 0 auto; }
.wall-failed #wall-pause, html:not(.js) #wall-pause { display: none; }
.js:not(.wall-on):not(.wall-failed) .w-gates { visibility: hidden; }
.wall-on .w-gate .w-no, .wall-on .w-gate > strong, .wall-on .w-gate .w-desc { display: none; }

/* ================================================================ 往下：蓋上來的卡片 */
.w-sheet { position: relative; z-index: 3; display: flow-root; background: var(--ci-paper); color: var(--ci-navy); border-top: 2px solid var(--ci-navy); border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
.w-sheet::before { content: ''; display: block; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 999px; background: var(--ci-line); }
.h-sec { padding-block: clamp(3rem, 9vw, 6rem); }
.w-sheet > .h-sec:not([hidden]) ~ .h-sec { padding-top: 0; }
.h-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1.5rem; }
.h-title { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 900; line-height: 1.23; }
/* 區塊標題旁的「全年活動表」：獨立的外框按鈕，比卡片裡的「報名」大一級但不用實心，實心留給報名（昀楷 11/14：「可以更大更獨立一點」） */
.h-more { display: inline-flex; align-items: center; gap: .5rem; min-height: 52px; padding: 0 1.5rem; border: 2px solid var(--ci-navy); background: var(--ci-paper); color: var(--ci-navy); font-size: 1.18rem; font-weight: 700; transition: background-color .2s, color .2s; }
.h-more:hover { background: var(--ci-navy); color: var(--ci-paper); }
.h-more:focus-visible { outline: 3px solid var(--ci-sea); outline-offset: 3px; }
.h-note { margin-top: .75rem; max-width: 36em; color: var(--ci-sub); font-size: .92rem; }

/* 近期活動：每一場掛自己的子識別；標題放在實色底上、字反白（昀楷 10/28：「要有底色然後放字，比較清楚」）。
   底色是這一場的參與方式色；自組團隊、培力課程的顏色配米白字對比不夠 4.5，往深藍混 40%（主題式服務原色就夠）。
   不支援 color-mix 的瀏覽器一律用深藍 */
.h-events { display: grid; gap: 1rem; margin-top: 1.5rem; }
.h-ev { --ev-ink: var(--ci-navy); display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--ci-line); transition: opacity .3s, border-color .3s; }
@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {
  .h-ev.is-team { --ev-ink: color-mix(in srgb, var(--ci-team) 60%, var(--ci-navy)); }
  .h-ev.is-learn { --ev-ink: color-mix(in srgb, var(--ci-learn) 60%, var(--ci-navy)); }
}
.h-ev.is-serve { --ev-ink: var(--ci-serve); }
.h-ev > svg { display: block; width: 84px; height: auto; }
.h-ev-when { font-family: var(--en); font-size: clamp(1.45rem, 5.6vw, 1.9rem); font-weight: 800; line-height: 1.1; }
.h-ev-when small { margin-left: .3rem; font-family: var(--sans); font-size: .92rem; font-weight: 700; }
.h-ev-time { font-size: .92rem; color: var(--ci-sub); }
.h-ev-title { margin-top: .6rem; padding: .35rem .7rem .45rem; background: var(--ev-ink); color: var(--ci-paper); font-size: 1.18rem; font-weight: 900; line-height: 1.4; }
.h-ev-kind { display: flex; flex-wrap: wrap; gap: .25rem .9rem; margin-top: .6rem; }
.h-ev-kind span { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; }
.h-ev-kind i { width: .8em; height: .8em; }
.h-ev-kind .k-team { background: var(--ci-team); } .h-ev-kind .k-learn { background: var(--ci-learn); } .h-ev-kind .k-serve { background: var(--ci-serve); }
.h-ev-kind .k-farm { background: var(--ci-farm); } .h-ev-kind .k-slow { background: var(--ci-slow); } .h-ev-kind .k-tree { background: var(--ci-mint); }
.h-ev-place, .h-ev-note { margin-top: .25rem; font-size: .92rem; color: var(--ci-sub); }
/* 卡片最下面一列：報名（實心按鈕或「報名頁準備中」）＋活動說明（外框按鈕，連到全年活動表的說明頁）。
   昀楷 11/14：「我不喜歡這種文字的連結按鈕 要幫我做成按鈕」，外框按鈕同全年活動表頁的 .ac-btn */
.h-ev-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .75rem; }
.h-ev-reg { font-size: .8rem; font-weight: 700; color: var(--ci-sub); }
.h-ev-go { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 1rem; background: var(--ci-navy); color: var(--ci-paper); font-size: .92rem; font-weight: 700; }
.h-ev-more { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 1rem; border: 2px solid var(--ci-navy); background: var(--ci-paper); color: var(--ci-navy); font-size: .92rem; font-weight: 700; transition: background-color .2s, color .2s; }
.h-ev-more:hover { background: var(--ci-navy); color: var(--ci-paper); }
.h-ev-more:focus-visible { outline: 3px solid var(--ci-sea); outline-offset: 3px; }
.h-ev.is-hit { border-color: var(--ci-navy); outline: 2px solid var(--ci-navy); outline-offset: -3px; }
.h-ev.is-dim { opacity: .55; }
@media (min-width: 760px) {
  .h-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-ev { grid-template-columns: 110px minmax(0, 1fr); }
  .h-ev > svg { width: 110px; }
}

/* 我們是誰 */
.h-about-grid { display: grid; gap: 2rem; margin-top: 1.5rem; }
.h-about-grid p + p { margin-top: .75rem; }
.h-nums { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 1.5rem; }
.h-nums dt { font-size: clamp(2rem, 7vw, 3.2rem); font-weight: 800; line-height: 1.1; }
.h-nums dd { margin-top: .25rem; font-size: .92rem; color: var(--ci-sub); line-height: 1.5; }
.h-three { display: grid; gap: .5rem; }
.h-three li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--ci-line); }
.h-three li > span:first-child { grid-row: span 2; font-weight: 800; }
.h-three strong { font-size: 1.18rem; }
.h-three li > span:last-child { font-size: .92rem; color: var(--ci-sub); }
@media (min-width: 900px) { .h-about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }

/* 找到我們 */
.h-contact { padding-bottom: 3rem; }
.h-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 1rem; align-items: center; margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--ci-navy); color: var(--ci-paper); }
.h-line svg { display: block; width: 72px; height: 72px; outline: 2px solid var(--ci-paper); }
.h-line strong { display: block; font-size: 1.18rem; }
.h-sub { font-size: .92rem; }
.h-arrow { font-weight: 700; }
.h-contacts { display: grid; gap: 8px; margin-top: 8px; }
.h-contacts li { position: relative; }
.h-contacts a, .h-copy { display: grid; width: 100%; height: 100%; min-width: 0; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--ci-line); text-align: left; }
.h-contacts a:hover, .h-copy:hover { border-color: var(--ci-navy); }
.h-contacts .k { font-size: .8rem; font-weight: 700; color: var(--ci-sub); }
.h-contacts .v { font-size: 1.18rem; font-weight: 700; overflow-wrap: anywhere; }
.h-contacts .v-sm { font-size: .92rem; }
.h-contacts .n { font-size: .8rem; color: var(--ci-sub); }
/* 信箱：地址是看得到的字，剪貼簿不能用時把它選起來讓人自己複製 */
.h-copy #mail-addr { user-select: text; -webkit-user-select: text; }
.h-copied { position: absolute; right: .75rem; top: .75rem; padding: 0 .6rem; background: var(--ci-navy); color: var(--ci-paper); border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.6; pointer-events: none; }
.h-copied:empty { display: none; }
@media (min-width: 760px) { .h-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================================================================ 介紹卡：磚翻過來、放大成一張卡；按「前往」才去 */
.ic { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.ic-scrim { position: absolute; inset: 0; background: var(--ci-navy); opacity: 0; transition: opacity .45s; }
.ic.is-open .ic-scrim { opacity: .55; }
.ic-card { position: relative; width: min(100%, 520px); max-height: 100%; perspective: 1400px; }
.ic-flip { position: relative; transform-style: preserve-3d; transform-origin: 50% 50%; transition: transform .65s var(--ease); }
.ic-flip.no-tr { transition: none; }
.ic-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ic-front { position: absolute; inset: 0; transform: rotateY(180deg); overflow: hidden; background: var(--ci-navy); }
.ic-front svg { display: block; width: 100%; height: 100%; }
.ic-back { position: relative; display: grid; gap: .6rem; max-height: calc(100svh - 32px); overflow: auto; padding: 1.25rem 1.25rem 1.1rem; background: var(--ci-paper); color: var(--ci-navy); outline: 2px solid var(--ci-navy); }
.ic-head { display: flex; align-items: center; gap: .9rem; }
.ic-head > svg { width: 64px; height: 64px; flex: none; }
.ic-head > svg:empty { display: none; }
.ic-no { font-family: var(--en); font-size: .92rem; font-weight: 800; color: var(--ci-sub); }
.ic-title { font-size: clamp(1.45rem, 5.6vw, 1.9rem); font-weight: 900; line-height: 1.23; }
.ic-text { font-size: 1rem; }
.ic-host { font-size: .8rem; color: var(--ci-sub); overflow-wrap: anywhere; }
.ic-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .25rem; }
.ic-go { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: 0 1.25rem; background: var(--ci-navy); color: var(--ci-paper); font-weight: 700; }
/* 「回到磚牆」：外框按鈕，跟「前往」一樣高（原本是底線字，昀楷 11/14 要做成按鈕） */
.ic-close { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.25rem; border: 2px solid var(--ci-navy); background: var(--ci-paper); color: var(--ci-navy); font-size: 1rem; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.ic-close:hover { background: var(--ci-navy); color: var(--ci-paper); }
.ic :focus-visible { outline: 3px solid var(--ci-sea); outline-offset: 3px; }

/* 點提示、點標誌往下時滑過去（減少動態時直接跳） */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .w-flip, .w-face::after, .ic-flip, .ic-scrim, .h-ev, .h-more, .h-ev-more, .ic-close { transition: none; }
  .w-arr { animation: none; }
}
