/*
 * 內容版型
 *
 * 與 header.css 搭配使用，變數與基本設定都在那一支。
 * 版面一律由 grid 與 flex 決定，欄數靠 auto-fit 自己收，
 * 字級用 clamp 跟著視窗縮放，所以不需要為個別寬度另外寫規則。
 */

main { display: block; }

section { padding: clamp(2.5rem, 1.6rem + 3.4vw, 5rem) 0; }
section + section { padding-top: 0; }

h2, h3 { letter-spacing: -.015em; }

.prose p {
  margin: 0 0 1.1rem;
  font-size: clamp(1rem, .96rem + .18vw, 1.08rem);
  line-height: 1.85;
  color: var(--ink-soft);
  max-width: var(--prose-max);
  text-align: var(--prose-align);
  /* 兩端對齊時字距容易拉出空洞，讓英文可以斷字補回來 */
  hyphens: var(--prose-hyphens);
}
.prose p:last-child { margin-bottom: 0; }

/* ---------- 主視覺 ---------- */

.hero {
  padding: 0;
  background: var(--sand);
}
.hero-text {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(2rem, 1.2rem + 3vw, 3.6rem) var(--gutter)
    clamp(1.6rem, 1rem + 2.4vw, 2.8rem);
  text-align: center;
}
.hero-text h2 {
  margin: 0 0 .9rem;
  font-size: clamp(1.6rem, 1rem + 2.5vw, 3rem);
  line-height: 1.14;
  font-weight: 700;
}
.hero-tagline {
  margin: 0 0 1.3rem;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: .01em;
  font-weight: 600;
  color: var(--ink);
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .92rem;
  color: var(--muted);
}
/* 項目之間用分隔線，換行時不會留下孤立的符號 */
.hero-points li { display: flex; align-items: center; gap: .9rem; }
.hero-points li::after {
  content: "";
  width: 1px; height: 1em;
  background: var(--sand-line);
}
.hero-points li:last-child::after { display: none; }

.hero-figure { margin: 0; }
.hero-figure img {
  display: block;
  width: 100%;
  height: clamp(14rem, 8rem + 26vw, 34rem);
  object-fit: cover;
}

/*
 * 原始解析度不足的照片：不拉成滿版，收在版面內置中顯示，
 * 最寬只到 44rem，放大倍率有限才不會糊掉
 */
.hero-figure.inset {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem);
}
.hero-figure.inset img {
  width: auto;
  max-width: min(100%, 44rem);
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(28, 19, 18, .12);
}
/* 已經換成高解析的照片，放寬上限才不會小小一張擺在版面中間 */
.hero-figure.inset.wide img { max-width: min(100%, 62rem); }

/* ---------- 課程清單 ---------- */

.courses-intro { text-align: center; }
.courses-intro .kicker {
  margin: 0 0 1.6rem;
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  font-weight: 700;
  color: var(--ink);
}

.courselist {
  display: grid;
  gap: .7rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  max-width: 54rem;
}
.courselist li {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .3rem 1.1rem;
  align-items: baseline;
  padding: .9rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  text-align: left;
}
.courselist b {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
/* 窄螢幕改成上下兩行，課程名稱才有完整寬度 */
@media (max-width: 480px) {
  .courselist li { grid-template-columns: 1fr; }
}

/* ---------- 重點數字 ---------- */

.facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .7rem 1rem;
  margin: 2rem 0 1.2rem;
  padding: 0;
  list-style: none;
}
.facts .facts-label {
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.75rem);
  font-weight: 700;
  color: var(--gold-text);
}
.facts li.tag {
  padding: .55rem 1.3rem;
  background: var(--tag-bg);
  color: var(--tag-fg);
  border-radius: 2rem;
  font-weight: 600;
  font-size: clamp(.95rem, .92rem + .2vw, 1.05rem);
}

/* 原站的寫法：線條圖示擺左邊，右邊兩行字 */
.iconfacts { gap: 1.4rem clamp(2rem, 1rem + 4vw, 4.5rem); }
.facts li.fact {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, .5rem + .8vw, 1.1rem);
  text-align: left;
}
.facts .fact img {
  flex: none;
  width: clamp(2.6rem, 2rem + 1.6vw, 3.6rem);
  height: auto;
}
.facts .fact-text { display: grid; gap: .1rem; }
.facts .fact-text b {
  font-size: clamp(1.05rem, .98rem + .5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
}
.facts .fact-text span {
  font-size: clamp(.9rem, .87rem + .2vw, 1rem);
  line-height: 1.3;
  color: var(--muted);
}

.facts-note {
  margin: 0;
  text-align: center;
  font-size: clamp(1.02rem, .96rem + .4vw, 1.3rem);
  color: var(--ink-soft);
}

/* ---------- 區段標題（左右各一條線） ---------- */

.band-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, .5rem + 2vw, 2.5rem);
  margin: 0 0 clamp(1.4rem, 1rem + 1.4vw, 2.4rem);
}
.band-title::before,
.band-title::after {
  content: "";
  height: 1px;
  background: var(--sand-line);
}
.band-title h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2.1rem);
  line-height: 1.2;
  font-weight: 700;
}
/* 窄螢幕留一條線在下面就好，兩側的線會把標題擠成一欄字 */
@media (max-width: 640px) {
  .band-title {
    grid-template-columns: 1fr;
    gap: .8rem;
  }
  .band-title::before { display: none; }
}

/* ---------- 圖卡 ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: clamp(1rem, .7rem + 1.2vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.card img {
  display: block;
  width: 100%;
  aspect-ratio: var(--card-ratio);
  object-fit: cover;
}
.card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .85rem 1.1rem;
  background: var(--cap-bg);
  color: #fff;
  font-size: clamp(1rem, .95rem + .3vw, 1.2rem);
  font-weight: 700;
}
.cardtext {
  margin: .9rem 0 0;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- 左文右圖 ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: clamp(1.4rem, .8rem + 2.4vw, 3rem);
  align-items: center;
}
.split h2 {
  margin: 0 0 .7rem;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  line-height: 1.16;
  font-weight: 700;
}
.split .sub {
  margin: 0;
  font-size: clamp(1rem, .95rem + .4vw, 1.2rem);
  font-style: italic;
  color: var(--muted);
}
.split figure { margin: 0; }
.split img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ---------- 主題段落 ---------- */

.topic h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  /* 原站有些年度的段落標題是置中的，用變數各年度自己決定 */
  text-align: var(--topic-align);
}
.topic .sub {
  margin: 0 0 1.2rem;
  font-size: clamp(1rem, .96rem + .3vw, 1.12rem);
  font-weight: 700;
  color: var(--gold-text);
  text-align: var(--topic-align);
}
.topic .prose { margin-bottom: 1.6rem; }
.topic .prose:last-child { margin-bottom: 0; }

/* ---------- 圖片列 ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: clamp(.9rem, .7rem + .9vw, 1.5rem);
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}
.gallery:last-child { margin-bottom: 0; }
.gallery figure { margin: 0; }
.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}
/* 圖卡、表格這類不能裁切的圖，照原比例顯示 */
.gallery.natural img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* 簡報頁要看得清楚，格子開大一點 */
/* 單獨一張的資訊圖不必撐滿整個版面，置中限寬比較好讀 */
.gallery.natural:not(.slides) li:only-child {
  max-width: 48rem;
  margin-inline: auto;
}

.gallery.slides {
  grid-template-columns: repeat(auto-fit, minmax(min(24rem, 100%), 1fr));
}
.gallery.slides img { border: 1px solid var(--line); }

/*
 * 一列幾張的切換
 *
 * 預設兩張一列，按鈕可以換成一張一列把投影片看大。
 * 窄螢幕本來就只排得下一張，按鈕收起來免得多此一舉。
 * 按鈕要有 JS 才有作用，所以只有 html.js 時才顯示。
 */
.gallery.slides[data-cols="1"] { grid-template-columns: 1fr; }

.galleryhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem 1.2rem;
  margin: 0 0 .5rem;
}
.galleryhead h2 { margin: 0; }
.colswitch { display: none; gap: .4rem; }
.js .colswitch { display: flex; }
.colswitch button {
  padding: .4rem .9rem;
  font: 600 .85rem/1.4 var(--font);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.colswitch button:hover { background: var(--sand); }
.colswitch button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--primary);
  border-color: var(--primary);
}
@media (max-width: 640px) {
  .js .colswitch { display: none; }
}

/* 點得開的圖，滑過去與鍵盤聚焦時給回饋 */
.gallery a {
  display: block;
  position: relative;
  border-radius: var(--radius);
}
.gallery a img { transition: opacity .15s ease; }
.gallery a:hover img,
.gallery a:focus-visible img { opacity: .85; }
/* 放大鏡提示，純裝飾 */
.gallery a::after {
  content: "";
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(28, 19, 18, .72)
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16 16l5 5M11 8v6M8 11h6'/%3E%3C/svg%3E")
    center / 1.1rem no-repeat;
  opacity: 0;
  transition: opacity .15s ease;
}
/*
 * 觸控螢幕沒有滑過這個動作，提示永遠不會出現，
 * 手機上的圖又小到看不清字，更需要知道點得開，所以直接顯示。
 */
@media (hover: none) {
  .gallery a::after {
    opacity: .9;
    width: 1.6rem;
    height: 1.6rem;
    right: .4rem;
    bottom: .4rem;
    background-size: .95rem;
  }
}
.gallery a:hover::after,
.gallery a:focus-visible::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .gallery a img, .gallery a::after { transition: none; }
}

/* ---------- 放大檢視 ---------- */

.lightbox {
  width: min(96vw, 76rem);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(20, 14, 13, .82); }

.lb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .9rem;
  background: var(--sand);
  border-bottom: 1px solid var(--sand-line);
}
.lb-count {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold-text);
  font-variant-numeric: tabular-nums;
}
.lightbox button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .95rem;
  font: 600 .92rem/1.4 var(--font);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.lightbox button:hover { background: var(--sand); border-color: var(--sand-line); }
.lightbox button[disabled] { opacity: .45; cursor: default; }

.lb-figure {
  margin: 0;
  padding: 1rem;
  text-align: center;
  background: var(--paper);
}
.lb-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 68vh;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.lb-figure figcaption {
  margin-top: .8rem;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.lb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding: .8rem .9rem 1rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .lightbox { width: 96vw; }
  .lb-figure { padding: .7rem; }
  .lb-figure img { max-height: 56vh; }
  .lightbox button { padding: .55rem .8rem; font-size: .88rem; }
}
.gallery figcaption {
  margin-top: .45rem;
  font-size: .88rem;
  color: var(--muted);
}

/* 整列一張的寬圖，例如排名表，照原比例顯示不裁切 */
.wideimage { margin: 0 0 1.6rem; }
.wideimage:last-child { margin-bottom: 0; }
.wideimage img {
  display: block;
  width: 100%;
  max-width: 54rem;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

/* ---------- 課程卡 ---------- */

.coursecard {
  margin: 0 0 clamp(2rem, 1.4rem + 2vw, 3.5rem);
  padding: 0 0 clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.coursecard:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.coursecard h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.3rem, 1.05rem + 1.2vw, 2.05rem);
  line-height: 1.2;
  font-weight: 700;
}
.coursecard .schedule { margin: 0 0 1.2rem; }
.coursecard .schedule img {
  display: block;
  margin-inline: auto;
  width: 100%;
  max-width: var(--schedule-max);
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.btn {
  display: inline-block;
  padding: .7rem 1.5rem;
  /* 預設跟著年度主色，年度另外寫 --btn-bg 才改掉。
     備用值寫在這裡而不是 :root，不然 var() 會在 :root 就定死 */
  background: var(--btn-bg, var(--primary));
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius);
}
.btn:hover { background: var(--btn-bg-hover, var(--primary-soft)); }

/* ---------- 講師 ---------- */

.faculty {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--faculty-col), 100%), 1fr));
  gap: clamp(1.2rem, .9rem + 1.4vw, 2.2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
/*
 * stack：一位老師一列。
 * 多位老師並排時每人只分到半欄，照片縮到很小、經歷擠成一長條。
 * 客戶（第 4 則註解）要的是「師資圖片在左、相關經歷在右」，
 * 那需要整列的寬度，所以 Course C 這種多位老師的頁面改成一位一列。
 */
.faculty.stack { grid-template-columns: 1fr; }
.faculty.stack > .person {
  grid-template-columns: var(--person-photo-solo) 1fr;
  gap: clamp(1.2rem, .8rem + 1.6vw, 2.2rem);
}

.person {
  display: grid;
  grid-template-columns: var(--person-photo) 1fr;
  gap: 1.1rem;
  align-items: start;
}
/* 整頁只有一位講師時，照片放大到原站那個份量 */
.faculty > .person:only-child {
  grid-template-columns: var(--person-photo-solo) 1fr;
  gap: clamp(1.2rem, .8rem + 1.6vw, 2.2rem);
}
.person img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--sand);
}
.person h3 {
  margin: 0 0 .4rem;
  font-size: var(--person-name);
  line-height: 1.35;
  font-weight: 700;
}
.person dl {
  margin: 0;
  font-size: var(--person-text);
  line-height: 1.6;
  color: var(--ink-soft);
}
.person dt {
  font-weight: 700;
  color: var(--gold-text);
  font-size: var(--person-label);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: .5rem;
}
.person dd { margin: 0; }

/*
 * 講師自己的課名與課程介紹（選填）。
 * 跟上面的經歷清單用一條細線分開 —— 不分開的話，
 * 課程介紹會被當成 Area 那一欄的續行讀下去。
 */
.person-course {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}
.person-course h4 {
  margin: 0 0 .35rem;
  font-size: var(--person-text);
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}
.person-course p {
  margin: 0 0 .5rem;
  font-size: var(--person-text);
  line-height: 1.7;
  color: var(--ink-soft);
}
.person-course p:last-child { margin-bottom: 0; }

/* 窄螢幕照片擺上方，文字才有完整寬度 */
@media (max-width: 420px) {
  /* 單人那條規則的指定度比較高，這裡要一起寫上才蓋得過去 */
  .person,
  .faculty > .person:only-child { grid-template-columns: 1fr; }
  .person img { max-width: 10rem; }
}

/* ---------- 課程說明 ---------- */

.detail {
  margin: 0 0 clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
  padding: clamp(1.1rem, .9rem + .8vw, 1.7rem) clamp(1.1rem, .9rem + 1vw, 1.9rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.detail:last-child { margin-bottom: 0; }
.detail h3 {
  margin: 0 0 .8rem;
  font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem);
  font-weight: 700;
  color: var(--gold-text);
}
.detail .prose p { max-width: none; }
.detail-list {
  margin: 0;
  padding-left: 1.4rem;
  font-size: clamp(1rem, .96rem + .18vw, 1.08rem);
  line-height: 1.8;
  color: var(--ink-soft);
}
.detail-list li { margin-bottom: .45rem; }
.detail-list li:last-child { margin-bottom: 0; }
.detail .prose + .detail-list { margin-top: 1rem; }

/* ---------- 說明圖 ---------- */

.figures { margin: 1.8rem 0 0; }
.figures figure { margin: 0 0 1.4rem; }
.figures figure:last-child { margin-bottom: 0; }
.figures img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.figures figcaption {
  margin-top: .5rem;
  font-size: .88rem;
  color: var(--muted);
}

/* ---------- 講座 ---------- */

.session {
  margin: 0 0 clamp(1.6rem, 1.2rem + 1.6vw, 2.8rem);
  padding: 0 0 clamp(1.6rem, 1.2rem + 1.6vw, 2.8rem);
  border-bottom: 1px solid var(--line);
}
.session:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.session > h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  line-height: 1.25;
  font-weight: 700;
}
/* 講師在左、說明在右；窄螢幕自動疊成上下 */
.session-body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  gap: clamp(1.2rem, .9rem + 1.4vw, 2.4rem);
  align-items: start;
}
.session-desc h3 {
  margin: 0 0 .5rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.session-desc + .session-desc { margin-top: 1.4rem; }
.session-desc p {
  margin: 0 0 .8rem;
  font-size: clamp(.97rem, .94rem + .15vw, 1.04rem);
  line-height: 1.8;
  color: var(--ink-soft);
}
.session-desc p:last-child { margin-bottom: 0; }
.session-desc ol {
  margin: .6rem 0 0;
  padding-left: 1.3rem;
  font-size: .97rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- 特色 ---------- */

.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  gap: clamp(1.2rem, .9rem + 1.6vw, 2.6rem);
  /* 圖的上緣與標題切齊，不要讓文字被垂直置中浮在中間 */
  align-items: start;
  margin: 0 0 clamp(2rem, 1.5rem + 2vw, 3.4rem);
  padding: 0 0 clamp(1.6rem, 1.2rem + 1.4vw, 2.6rem);
  border-bottom: 1px solid var(--line);
}
.feature:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
/* 偶數項圖文對調，視覺上有節奏；窄螢幕一律文字在上 */
@media (min-width: 821px) {
  .feature.flip > :first-child { order: 2; }
}
/*
 * 直放的平板寬度勉強排得下兩欄，但文字欄只剩三百出頭，
 * 一行放不到十個字。圖文對調也是從 821 才開始，
 * 這裡一併讓它在同一個斷點以下改成上下排
 */
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
}
.feature h2 {
  margin: 0 0 .8rem;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.8rem);
  line-height: 1.25;
  font-weight: 700;
}
.feature p {
  margin: 0;
  font-size: clamp(.97rem, .94rem + .15vw, 1.04rem);
  line-height: 1.85;
  color: var(--ink-soft);
}
.feature.solo { grid-template-columns: 1fr; }
/*
 * 配圖比旁邊的文字矮的時候，圖下面會空一大塊。
 * 寫 fill 就讓圖長到整欄的高度，兩欄收在同一條線上
 */
.feature.fillpic { align-items: stretch; }
.feature.fillpic .featurepics,
.feature.fillpic .featurepics figure { height: 100%; }
.feature.fillpic .featurepics img { height: 100%; object-fit: cover; }
.featurepics { display: grid; gap: 1rem; }

/* ---------- 照片輪播 ---------- */

.carousel { display: grid; gap: .75rem; }
/*
 * 本體就是一條橫向捲動的清單，捲到哪張就停在哪張。
 * 沒有腳本時照樣滑得動，所以左右鈕等腳本跑起來才出現
 */
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  border-radius: var(--radius);
}
.carousel-track > li { scroll-snap-align: start; }
.carousel-track:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
/* 三張照片原始比例不一，裁成同一個比例切換時畫面才不會上下跳 */
.carousel-track img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.carousel-controls { display: none; }
.js .carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.carousel-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--sand-line);
  border-radius: 50%;
  background: var(--sand);
  color: var(--primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.carousel-controls button:hover { background: var(--primary); color: var(--btn-text); }
.carousel-controls button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.carousel-count {
  margin: 0;
  min-width: 3.5rem;
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink-soft);
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}
.feature figure { margin: 0; }
.feature img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* 合作單位標誌，等高置中並排 */
.logorow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 1rem + 1.4vw, 2.6rem);
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.logorow img {
  display: block;
  width: auto;
  height: auto;
  max-width: 9.5rem;
  max-height: 3.4rem;
  object-fit: contain;
}

/* ---------- 回饋 ---------- */

.rating {
  margin: 0 0 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  padding: clamp(1.1rem, .9rem + .9vw, 1.7rem);
  background: var(--sand);
  border-radius: var(--radius);
  text-align: center;
}
.rating .score {
  display: block;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
}
.rating .stars { color: var(--stars); letter-spacing: .1em; }
.rating p { margin: .4rem 0 0; color: var(--muted); font-size: .95rem; }

.quotegroups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: clamp(1.1rem, .9rem + 1.2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.quotegroup h3 {
  margin: 0 0 .8rem;
  font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem);
  font-weight: 700;
  color: var(--gold-text);
}
.quotegroup .quotes { display: grid; }
.quotegroup blockquote {
  margin: 0 0 1rem;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--sand-line);
}
.quotegroup blockquote:last-child { margin-bottom: 0; }

/*
 * rows：一組佔滿一列，組內的心得改成並排。
 * 附人像的心得照原站的做法，姓名壓在照片下緣那條色帶上
 */
.quotegroups.rows { grid-template-columns: 1fr; }
.quotegroups.rows .quotes {
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  gap: clamp(1.1rem, .9rem + 1.2vw, 2rem);
  align-items: start;
}
.quotegroups.rows blockquote { margin-bottom: 0; }

.quotegroup blockquote.withphoto { padding: 0; border-left: 0; }
.quotegroup blockquote.withphoto figure {
  position: relative;
  margin: 0 0 .9rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
/* 兩張照片原始比例不同，裁成正方形姓名那條色帶才會齊平；
   人物多半在畫面偏上，裁切基準往上挪一點 */
.quotegroup blockquote.withphoto img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: 50% 32%;
}
.quotegroup blockquote.withphoto figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: .7rem 1rem;
  background: var(--cap-bg);
}
.quotegroup blockquote.withphoto cite {
  font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
  font-weight: 700;
  font-style: normal;
  color: #fff;
}
.quotegroup p {
  margin: 0 0 .35rem;
  font-size: .97rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.quotegroup cite {
  font-size: .9rem;
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
}

.valued {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: clamp(1rem, .8rem + 1vw, 1.7rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.valued > li {
  padding: clamp(1rem, .85rem + .7vw, 1.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}
.valued h3 {
  margin: 0 0 .6rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.valued ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- 問答 ---------- */

/*
 * 分類是 h2、問題是可點開的 details。
 * 收起來時整頁就是一份問題目錄，一眼看得出有幾個分類、每類幾題。
 */

.faqgroup { margin: 0 0 clamp(1.8rem, 1.4rem + 1.4vw, 2.8rem); }
.faqgroup:last-child { margin-bottom: 0; }
.faqgroup > h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .8rem;
  margin: 0 0 1.1rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--sand-line);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.8rem);
  font-weight: 700;
}
.faqcount {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.faqlist { margin: 0; padding: 0; list-style: none; }
.faqlist > li + li { margin-top: .6rem; }

.faq {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.faq[open] { border-color: var(--sand-line); }

/* 整列都是點擊區，高度保證 44px 以上 */
.faq > summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  padding: clamp(.75rem, .65rem + .4vw, 1.05rem) clamp(1rem, .85rem + .7vw, 1.5rem);
  cursor: pointer;
  list-style: none;                 /* 拿掉瀏覽器預設的小三角 */
}
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary::marker { content: ""; }
.faq > summary:hover { background: var(--sand); }
.faq > summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}
.faq > summary h3 {
  margin: 0;
  flex: 1 1 auto;
  font-size: clamp(1rem, .96rem + .3vw, 1.12rem);
  line-height: 1.45;
  font-weight: 700;
}

/* ＋／− 標記：用兩條線畫，展開時橫線轉成只剩一條 */
.faqmark {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--sand-line);
  border-radius: 50%;
  background: var(--sand);
}
.faqmark::before,
.faqmark::after {
  content: "";
  position: absolute;
  inset: 50% 50%;
  width: .7rem;
  height: 2px;
  margin: -1px 0 0 -.35rem;
  background: var(--primary);
}
.faqmark::after { transform: rotate(90deg); }
.faq[open] .faqmark::after { transform: rotate(0deg); }
.faq[open] .faqmark { background: var(--primary); border-color: var(--primary); }
.faq[open] .faqmark::before,
.faq[open] .faqmark::after { background: #fff; }

.faqbody {
  padding: 0 clamp(1rem, .85rem + .7vw, 1.5rem)
    clamp(.9rem, .8rem + .5vw, 1.3rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(.8rem, .7rem + .4vw, 1.1rem);
}
.faqbody p {
  margin: 0 0 .7rem;
  font-size: .97rem;
  line-height: 1.8;
  color: var(--ink-soft);
}
.faqbody p:last-child { margin-bottom: 0; }
.faqtags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
  margin: .6rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .92rem;
}
.faqtags li {
  padding: .25rem .7rem;
  background: var(--sand);
  border-radius: 2rem;
  color: var(--ink-soft);
}

/* 動畫只給不介意動態效果的人；列印時全部展開 */
@media (prefers-reduced-motion: no-preference) {
  .faqmark::after { transition: transform .18s ease; }
}
@media print {
  .faqbody { display: block !important; }
  .faqmark { display: none; }
}

/* ---------- 梯次方案 ---------- */

.plan {
  margin: 0 0 clamp(1.2rem, 1rem + 1vw, 2rem);
  padding: clamp(1.1rem, .9rem + .9vw, 1.8rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan:last-child { margin-bottom: 0; }
.plan > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem);
  line-height: 1.25;
  font-weight: 700;
}
.plan .courselist { max-width: none; }
.plan-note {
  margin: .9rem 0 0;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--muted);
}
.plan-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 2.2rem;
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.plan-facts > div { display: flex; gap: .5rem; align-items: baseline; }
.plan-facts dt {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.plan-facts dd { margin: 0; font-size: .97rem; color: var(--ink-soft); }

/*
 * 梯次總表的深色版
 *
 * 2024 原站把兩個梯次做成一張深灰底的表格圖，兩列標題各一個顏色。
 * 這裡用同一組結構換底色重畫，字還是真文字，窄螢幕照樣會收。
 * 深灰底上只有純白字過得了 7:1，所以卡片裡一律白字，靠粗細與間距分層。
 */
.plan-teal,
.plan-rose {
  padding: 0;
  overflow: hidden;
  background: var(--slate);
  border-color: var(--slate-line);
  color: #fff;
}
.plan-teal > h2,
.plan-rose > h2 {
  margin: 0;
  padding: .65rem 1.2rem;
  text-align: center;
  font-size: clamp(1.05rem, .95rem + .55vw, 1.35rem);
}
.plan-teal > h2 { background: var(--plan-teal); color: #1C1312; }
.plan-rose > h2 { background: var(--plan-rose); color: #fff; }
/* 標題列要滿寬，所以內距改掛在其餘區塊上 */
.plan-teal > :not(h2),
.plan-rose > :not(h2) {
  margin-left: clamp(1.1rem, .9rem + .9vw, 1.8rem);
  margin-right: clamp(1.1rem, .9rem + .9vw, 1.8rem);
}
.plan-teal > .courselist,
.plan-rose > .courselist {
  margin-top: clamp(1rem, .85rem + .7vw, 1.5rem);
}
.plan-teal > .plan-facts,
.plan-rose > .plan-facts {
  margin-bottom: clamp(1rem, .85rem + .7vw, 1.5rem);
}
.plan-teal .courselist li,
.plan-rose .courselist li {
  background: transparent;
  border-color: var(--slate-line);
  color: #fff;
}
.plan-teal .courselist b,
.plan-rose .courselist b { color: #fff; }
.plan-teal .plan-note,
.plan-rose .plan-note { color: #fff; }
.plan-teal .plan-facts,
.plan-rose .plan-facts { border-top-color: var(--slate-line); }
.plan-teal .plan-facts dt,
.plan-rose .plan-facts dt,
.plan-teal .plan-facts dd,
.plan-rose .plan-facts dd { color: #fff; }

/* ---------- 頁首橫幅 ---------- */

/*
 * 原站每頁上方都有一條科技感底圖。底圖疊一層暗色，
 * 白字在整張圖上都還有 10:1 以上，不必挑位置擺字。
 */
.banner {
  padding: clamp(2.6rem, 1.6rem + 3.6vw, 5rem) 0;
  background-color: #2B2B2B;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
}
.banner-chip {
  background-image: linear-gradient(rgba(24, 24, 24, .62), rgba(24, 24, 24, .62)),
    url(2024-banner-chip.jpg);
}
.banner-ai {
  background-image: linear-gradient(rgba(24, 24, 24, .62), rgba(24, 24, 24, .62)),
    url(2024-banner-ai.jpg);
}
.banner h2 {
  margin: 0;
  font-size: clamp(1.45rem, 1.1rem + 1.7vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
}
.banner-tagline {
  margin: .8rem 0 0;
  font-size: clamp(1.15rem, 1rem + .9vw, 1.7rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--banner-key);
}
.banner h2 + .banner-tagline { margin-top: .6rem; }
.banner-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem .9rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .92rem;
}
.banner-points li { position: relative; padding-right: .9rem; }
.banner-points li::after {
  content: "";
  position: absolute;
  right: 0;
  top: .25em;
  bottom: .25em;
  width: 1px;
  background: rgba(255, 255, 255, .45);
}
.banner-points li:last-child { padding-right: 0; }
.banner-points li:last-child::after { display: none; }

/* ---------- 每日行程 ---------- */

.schedule-note {
  margin: 0 0 1.4rem;
  font-size: .95rem;
  color: var(--muted);
}
.schedule {
  display: grid;
  gap: .7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: day;
}
.schedule > li {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: .4rem 1.4rem;
  padding: clamp(.9rem, .8rem + .5vw, 1.3rem) clamp(1rem, .85rem + .7vw, 1.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
}
.schedule h3 {
  margin: 0;
  font-size: clamp(.98rem, .95rem + .25vw, 1.08rem);
  font-weight: 700;
  color: var(--primary);
}
.schedule > li > ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: .97rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.schedule > li > ul li { margin-bottom: .25rem; }
.schedule > li > ul li:last-child { margin-bottom: 0; }
/* 窄螢幕改成日期在上、行程在下 */
@media (max-width: 560px) {
  .schedule > li { grid-template-columns: 1fr; }
}

/* ---------- 重點數字 ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: clamp(1rem, .8rem + 1vw, 1.8rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats > li {
  padding: clamp(1.1rem, .9rem + .8vw, 1.7rem);
  background: var(--sand);
  border-radius: var(--radius);
  text-align: center;
}
.stats .num {
  display: block;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--primary);
}
.stats .label {
  display: block;
  margin-top: .5rem;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- 影片 ---------- */

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: clamp(1.1rem, .9rem + 1.2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.videos h3 {
  margin: 0 0 .7rem;
  font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem);
  font-weight: 700;
}
.videos video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
}

/* ---------- 連結列 ---------- */

.linklist {
  display: grid;
  gap: .5rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 34rem;
}
.linklist a {
  display: block;
  padding: .75rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.linklist a:hover { background: var(--sand); }

/* ---------- 歷年相簿 ---------- */

/*
 * 相簿封面列。每張卡是一個連結，整張卡都可以點 ——
 * 只讓文字可點的話，滑鼠使用者會一直點到圖片沒反應。
 */
.albumgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: clamp(.9rem, .6rem + 1vw, 1.5rem);
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.albumcard {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.albumcard img {
  display: block;
  width: 100%;
  /*
   * height: auto 不能省。
   * <img> 上的 width／height 屬性是留著預防版面跳動的，但 height 屬性
   * 等同於設了 height:267px，而 aspect-ratio 只有在某一邊是 auto 時才生效。
   * 少了這一行，五張封面會各自用原始高度，排起來高低參差。
   */
  height: auto;
  /* 封面比例統一，否則五張不同比例的照片排起來參差不齊 */
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.albumname {
  display: block;
  padding: .7rem 1rem .1rem;
  font-weight: 700;
}
.albumcount {
  display: block;
  padding: 0 1rem .8rem;
  font-size: .85rem;
  color: var(--muted);
}
.albumcard:hover { background: var(--sand); }
.albumcard:hover .albumname { text-decoration: underline; }

/* 相簿頁的縮圖格 */
.photogrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: clamp(.9rem, .6rem + 1vw, 1.4rem);
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}
.photogrid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.photogrid a {
  display: block;
  /*
   * 縮圖本身就是點擊目標，遠大於 44px，不另外設 min-height。
   * 但焦點外框要蓋在圖片上看得見，所以留 outline-offset 的空間。
   */
  line-height: 0;
}
.photogrid img {
  display: block;
  width: 100%;
  /* 同上：height 屬性會讓 aspect-ratio 失效，必須設回 auto */
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.photogrid figcaption {
  padding: .6rem .9rem .75rem;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.photogrid a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

/* ---------- 頁尾 ---------- */

.sitefoot {
  padding: clamp(2rem, 1.5rem + 2vw, 3.2rem) 0 1.6rem;
  background: var(--sand);
  border-top: 1px solid var(--sand-line);
  font-size: .95rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.footgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: clamp(1.4rem, 1rem + 1.8vw, 2.8rem);
  margin-bottom: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
}
.footcol h2 {
  margin: 0 0 .9rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-text);
}
/* 主辦單位的校徽 */
.footmark {
  display: block;
  width: auto;
  height: 4.5rem;
  margin: 0 0 .9rem;
}
.footcol .org { margin: 0 0 .2rem; }
/*
 * 頁尾的承辦人姓名也用了 .person 這個 class，但 .person 是師資卡的版面
 * （display:grid，第一欄是 7.5rem 的照片欄），名字會被擠進那個窄欄換行。
 * 這裡要把版面屬性蓋回來，只留字重與顏色。
 */
.footcol .person {
  display: block;
  margin: 0 0 .9rem;
  font-weight: 700;
  color: var(--ink);
}

.contact-lines {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-lines a { color: var(--primary); }

.footlinks {
  display: grid;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footlinks a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footlinks a:hover { color: var(--primary); text-decoration: underline; }

/*
 * 觸控裝置上頁尾的連結原本只有 20px 高，手指不好點。
 * 整列變成可按的區塊、補到 44px，連結之間的間距改由各自的留白撐開。
 * 滑鼠裝置不套用，游標比手指準，頁尾也不必跟著變高。
 */
@media (hover: none) {
  .contact-lines,
  .footlinks { gap: 0; }
  .contact-lines a,
  .footlinks a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
  }
}

.footbottom {
  padding-top: 1.3rem;
  border-top: 1px solid var(--sand-line);
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}
.footbottom p { margin: 0; }

/* ---------- 段落結尾的動作按鈕 ---------- */

/*
 * 報名之類的動作放在段落結尾。第一顆實心、其餘外框，
 * 一排都深色的話看不出要先按哪一顆。
 */
.topicacts {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1.5rem 0 0;
}
.topicacts .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;          /* 點擊目標至少 44px */
}
.topicacts .btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.topicacts .btn.ghost:hover { background: var(--sand); }
.topicacts .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
