/* 梁宗榮 醫師 — 甲狀腺・副甲狀腺外科
 *
 * 版面語彙很小，只有三個：
 *   .shell    頁面最大寬度（1220px）
 *   .band     一個垂直區段，負責 section 之間的呼吸
 *   .measure  長文閱讀寬度（44rem ≒ 704px）
 *
 * 質感靠字級層次、留白與極細的分隔線建立，不靠陰影、漸層或圓角堆疊。
 */

:root {
  /* 色彩
     navy 是主色，teal 只做重點——active 導覽、eyebrow 小標、連結與箭頭
     hover、選取中的篩選鈕、focus、細的強調線。不做大面積填色。
     teal 沿用 favicon 的 #0F6E6E，讓網站與分頁圖示是同一個識別。 */
  --navy: #1E3347;
  --navy-soft: #38516A;
  --navy-muted: #6B7C8F;
  --teal: #0F6E6E;
  --teal-soft: #4B9D98;
  /* 深藍底上的小字專用。#4B9D98 壓在 #1E3347 上只有 4.06，小字達不到
     WCAG AA 的 4.5；提亮到 #5CAFA9 是 5.04。 */
  --teal-on-navy: #5CAFA9;
  --teal-pale: #E3F0EF;
  /* teal 填色上的文字。淺色模式的 teal 夠深，配白字；深色模式的 teal 是
     提亮過的，白字只有 3.19，必須改成深字。 */
  --on-teal: #FFFFFF;
  --surface: #FFFFFF;
  --tint: #F7F8F8;
  --tint-2: #F2F4F5;
  /* 只給 Hero 用：照片本身的背景是冷調的淡紫灰，這個色是為了讓照片邊緣
     與版面銜接得自然，不要在其他地方使用。 */
  --hero-bridge: #F1F1F7;

  --bg: var(--surface);
  --band-tint: var(--tint);
  --ink: var(--navy);
  --ink-soft: var(--navy-soft);
  /* 色票的 --navy-muted (#6B7C8F) 在白底只有 4.28，小字達不到 WCAG AA
     的 4.5。這裡壓深一階到 #5D6E7E（白底 5.25、#F7F8F8 上 5.11），
     色相維持不變，肉眼幾乎看不出差別，但小字就合規了。 */
  --ink-faint: #5D6E7E;
  --line: #DCE1E5;
  --line-strong: #C4CCD3;

  /* 深藍區塊（手術理念、門診 CTA）用的一組反轉色 */
  --on-navy: #FFFFFF;
  --on-navy-soft: #C3CEDA;
  --on-navy-faint: #93A3B4;
  --on-navy-line: #354B60;

  /* 版面 */
  --shell: 1220px;
  /* 條列式資訊（About 07/08/09）用的收窄容器。滿版 1220 會讓每一行拉太長。 */
  --shell-narrow: 1060px;
  /* 這是含左右內距的外框寬，實際文字欄還要再扣掉兩側 gutter。
     48rem - 2×2.5rem ≒ 688px，落在長文可讀寬度 680–760px 之內。 */
  --measure: 48rem;
  --band-y: clamp(4rem, 9vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* 字體 */
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei",
               -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Playfair Display", "Noto Serif TC", Georgia, "Times New Roman", serif;
}

/* 深色模式是既有行為，沿用；色票由同一組海軍藍推導，不另開一套色系。 */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #16222E;
    --bg: #101A24;
    --tint: #17232F;
    --tint-2: #1B2836;
    --band-tint: #17232F;
    --hero-bridge: #17202C;
    --ink: #E9EDF1;
    --ink-soft: #AEBCC8;
    --ink-faint: #8496A4;
    --line: #26333F;
    --line-strong: #35434F;
    /* 深藍區塊在深色模式下要比頁面底色亮一階，否則整塊糊在一起看不出分區 */
    --navy: #22384E;
    --teal: var(--teal-soft);
    --on-teal: #0E1A24;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* 只給輔助技術與計數器用的隱藏元素——不能用 display:none，
   那會讓它從無障礙樹上消失，也讓某些瀏覽器跳過它。 */
.srOnly {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff;
  padding: .7rem 1.1rem; z-index: 20;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ------------------------------------------------------------ 版面骨架 */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: var(--shell-narrow); }

.band { padding-block: var(--band-y); }
.band--tint { background: var(--band-tint); }

/* 深藍區塊。整段換色而不是只換背景——裡面的文字、細線與連結都要跟著反轉，
   否則會出現深藍底配深藍字。teal 在這裡改用較亮的 --teal-soft，
   #0F6E6E 壓在 #1E3347 上等於看不見。 */
.band--navy {
  background: var(--navy);
  color: var(--on-navy);
  --ink: var(--on-navy);
  --ink-soft: var(--on-navy-soft);
  --ink-faint: var(--on-navy-faint);
  --line: var(--on-navy-line);
  --line-strong: var(--on-navy-line);
  --teal: var(--teal-on-navy);
}

.measure {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 標題左、內文右的兩欄結構，整個站重複使用 */
.splitSection {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.splitSection__body > p { margin: 0 0 1.35rem; }
.splitSection__body > p:last-child { margin-bottom: 0; }

.sectionHead { margin: 0 0 2.5rem; }
.splitSection .sectionHead { margin-bottom: 0; }

.sectionHead__zh {
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .02em;
  margin: 0;
}
.sectionHead__en {
  font-family: var(--font-display);
  font-size: .95rem;
  font-style: italic;
  letter-spacing: .04em;
  color: var(--ink-faint);
  margin: .35rem 0 0;
}

.chapterNum {
  font-size: .95rem;
  letter-spacing: .18em;
  color: var(--ink-faint);
  margin: 0 0 .6rem;
}
/* Expertise 四區用大號編號當視覺錨點 */
.chapterNum--lg {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--navy-muted);
  margin-bottom: 1rem;
}

/* ------------------------------------------------ Expertise 的寬版面
   與 splitSection 交替出現，讓四個專長區不會長得一模一樣。 */
.expWide__head { margin: 0 0 2.5rem; }
.expWide__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.expWide__body > .lead { grid-column: 1 / -1; max-width: 46rem; margin: 0; }
.expWide__body > .keyPoints { grid-column: 1 / -1; }

/* 重點條目。細分隔線 + 前方短破折號，不用項目符號也不用圖示。 */
.keyPoints {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
}
.keyPoints li {
  padding: .9rem 0;
  border-top: 1px solid var(--line);
  font-size: .96rem;
  line-height: 1.7;
}
.splitSection__body .keyPoints { grid-template-columns: minmax(0, 1fr); }

/* ================================ 無疤與內視鏡甲狀腺手術（深度頁） */

/* 長文段落。收在可讀寬度內，不讓句子橫跨整個 1060px。 */
.proseBlock {
  max-width: 40rem;
  margin: 1.75rem 0 0;
}
.proseBlock p { margin: 0 0 1.2rem; }
.proseBlock p:last-child { margin-bottom: 0; }

/* 03 的主標。放大但不到 Hero 的等級——它是一段立場陳述，不是頁面標題。 */
.bigStatement {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .01em;
  max-width: 18ch;
  margin: 2rem 0 0;
  padding-inline-start: 1.2rem;
  border-inline-start: 2px solid var(--teal);
}

/* TOETVA / BABA 並排。左右對稱，避免任何一邊看起來比較「好」。 */
.routeSplit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}
.routeCard { border-top: 2px solid var(--navy); padding-top: 1.5rem; }
.routeCard__abbr {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .06em;
  margin: 0 0 .5rem;
}
.routeCard__zh {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 .3rem;
}
.routeCard__en {
  font-family: var(--font-display);
  font-size: .8rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-faint);
  margin: 0 0 1.2rem;
}
.routeCard__points { list-style: none; margin: 0; padding: 0; }
.routeCard__points li {
  padding: .75rem 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  line-height: 1.7;
}

/* 比較示意圖的佔位。留好比例與 RWD，等圖片提供再換掉。
   刻意不放任何 stock 圖或網路上的手術照片。 */
.illusPlaceholder { margin: 2.5rem 0 0; }
.illusPlaceholder__box {
  aspect-ratio: var(--ratio, 16 / 9);
  width: 100%;
  background: var(--tint-2);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}
.illusPlaceholder figcaption {
  margin-top: .7rem;
  font-size: .8rem;
  color: var(--ink-faint);
}

/* 實際的比較示意圖 */
.illus { margin: 2.5rem 0 0; }
.illus__link {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;               /* 圖是白底，固定住避免深色模式露出邊 */
  transition: border-color .18s ease;
}
.illus__link:hover { border-color: var(--teal); }
.illus img { display: block; width: 100%; height: auto; }
.illus figcaption {
  margin-top: .7rem;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--ink-faint);
}
.illus__hint { margin-inline-start: .4rem; }

/* 考量因素。刻意不用核取方塊或項目符號——這不是自我檢核表。 */
.factorList {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
}
.factorList li {
  padding: .8rem 0;
  border-top: 1px solid var(--line);
  font-size: .95rem;
}

/* 緊接在因素清單後的臨床提醒，視覺上要壓得住，不能被當成附註略過。 */
.clinicalNote {
  max-width: 40rem;
  margin: 2rem 0 0;
  padding: 1.1rem 1.3rem;
  background: var(--teal-pale);
  border-inline-start: 3px solid var(--teal);
  border-radius: 0 8px 8px 0;
  font-size: .92rem;
  line-height: 1.8;
  color: var(--navy);
}

.pillars.pillars--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 05 的 Clinical Question → Solution → Research，橫向排列 */
.flow--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  margin: 1.75rem 0 0;
}
.flow--row li + li::before {
  content: "→";
  display: inline;
  margin-inline-end: 1rem;
  color: var(--ink-faint);
}

.exampleList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
.example { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.example__key {
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--teal);
  margin: 0 0 .8rem;
}
.example__title {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 .5rem;
}
.example__body {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.example__link { margin: 0; }
.arrowLink--sm { font-size: .85rem; }

/* 07 CTA。深藍區塊，但語氣是「來門診談」而不是行銷推銷。 */
.scarlessCta__title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 1rem;
}
.scarlessCta__body {
  max-width: 34rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.scarlessCta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ================================== 精準甲狀腺手術（深度頁） */

.pageHead__lead {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
}
.pageHead__lead p { margin: 0 0 1rem; }
.pageHead__lead p:last-child { margin-bottom: 0; }

/* 01 三個情境。橫排三欄，靠編號與細線分隔，不做成卡片。 */
.scenarioList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
.scenario { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.scenario__key {
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--teal);
  margin: 0 0 .8rem;
}
.scenario__title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 .5rem;
}
.scenario__body {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* 03 的兩個切除範圍。沿用 routeSplit 的骨架但標題是中文，
   而且多一個「可能考量的情境」的標籤——這不是適應症清單。 */
.routeCard__abbr--zh {
  font-size: 1.15rem;
  letter-spacing: .02em;
  line-height: 1.5;
}
.routeCard__label {
  font-size: .76rem;
  letter-spacing: .14em;
  color: var(--teal);
  margin: 1.2rem 0 .2rem;
}
.extentSplit { margin-top: 2.5rem; }

.bigStatement--after {
  margin-top: 2.5rem;
  border-inline-start-color: var(--navy-muted);
}

/* 05 兩欄關注點 */
.focusSplit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4rem);
  margin-top: 2.5rem;
}
.focusCol { border-top: 2px solid var(--navy); padding-top: 1.5rem; }
.focusCol__zh {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 .25rem;
}
.focusCol__en {
  font-family: var(--font-display);
  font-size: .8rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-faint);
  margin: 0 0 1.2rem;
}
.focusCol__points { list-style: none; margin: 0; padding: 0; }
.focusCol__points li {
  padding: .75rem 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  line-height: 1.7;
}
.focusNote {
  max-width: 40rem;
  margin: 2rem 0 0;
  font-size: .92rem;
  color: var(--ink-faint);
}

/* 06 三種途徑，只是提示不是內容——所以做得很輕 */
.routeChips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}
.routeChips li {
  font-size: .88rem;
  padding: .45rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink-soft);
}

/* FAQ。答案是完整段落不是一句話，所以用可讀寬度而不是兩欄。 */
.faqList { margin-top: 2.5rem; }
.faq {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  gap: .9rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 .7rem;
}
.faq__num {
  flex: 0 0 auto;
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--teal);
  padding-top: .35rem;
}
.faq__a {
  max-width: 42rem;
  margin: 0 0 0 2.1rem;
  font-size: .95rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ================================== 副甲狀腺手術（深度頁） */

/* 名詞 + 說明的清單。用在「不是教科書但要解釋概念」的地方——
   標題一行、說明一行，比純條列多一層資訊，又不像段落那麼重。 */
.defList { list-style: none; margin: 2.25rem 0 0; padding: 0; }
.defList li {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: .3rem clamp(1.5rem, 4vw, 3rem);
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.defList li:last-child { border-bottom: 1px solid var(--line); }
.defList__t { font-size: 1rem; font-weight: 500; line-height: 1.6; }
.defList__d {
  font-size: .92rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 臨床族群 / 疾病型態卡片裡的說明段落 */
.routeCard__body {
  font-size: .92rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 1rem 0 0;
}

/* ------------------------------------------- About 的敘事／專業背景分界 */
.profileDivider {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.profileDivider__zh {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: .12em;
  margin: 0;
}
.profileDivider__en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .95rem;
  letter-spacing: .05em;
  color: var(--ink-faint);
  margin: .3rem 0 0;
}

.lead { color: var(--ink-soft); }

.microLabel {
  font-size: .78rem;
  letter-spacing: .16em;
  color: var(--ink-faint);
  margin: 2rem 0 .75rem;
}

.sectionFoot { margin: 2.75rem 0 0; }

.arrowLink {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: .2rem;
  transition: border-color .18s ease, gap .18s ease;
}
.arrowLink:hover {
  color: var(--teal);
  border-color: var(--teal);
  gap: .8rem;              /* 箭頭往右移 2px 左右，僅此而已 */
}

/* 次要按鈕：透明底、navy 字、細的 navy 邊框。hover 時才帶一點 teal，
   不做整片 teal 填色。 */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid var(--navy-muted);
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* 主要 CTA：navy 底白字，hover 只是淺一階 */
.btn--solid {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn--solid:hover {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
  color: #fff;
}

/* 深藍區塊裡的按鈕要反過來：實心變白底深藍字，次要變白框白字 */
.band--navy .btn {
  border-color: var(--on-navy-faint);
  color: var(--on-navy);
}
.band--navy .btn:hover {
  border-color: var(--on-navy);
  color: var(--on-navy);
}
.band--navy .btn--solid {
  background: var(--on-navy);
  border-color: var(--on-navy);
  color: var(--navy);
}
.band--navy .btn--solid:hover {
  background: var(--teal-pale);
  border-color: var(--teal-pale);
  color: var(--navy);
}

/* ---------------------------------------------------------------- 頁首 */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.identity {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  text-decoration: none;
  padding-block: .75rem;
}
.identity__zh {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .06em;
}
.identity__en {
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .13em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.sitenav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitenav a {
  display: inline-block;
  font-size: .92rem;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: .3rem;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.sitenav a:hover { color: var(--ink); }
/* 目前所在頁面：teal 底線。這是 teal 在版面上最常被看到的一處。 */
.sitenav a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.navToggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.navToggle__bar {
  display: block;
  height: 1px;
  width: 22px;
  margin-inline: auto;
  background: var(--ink);
}

/* ---------------------------------------------------------------- Hero */

.hero__inner {
  display: grid;
  /* 照片再放大一點：52/48。頁首已經有醫師姓名，Hero 的重量放在
     品牌主句與照片上，不需要再讓姓名撐場面。 */
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

/* 姓名縮到中等尺寸——頁首每一頁都有它，這裡不必再喊一次。 */
.hero__name { margin: 0; }
.hero__zh {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .05em;
}
.hero__en {
  display: block;
  font-size: clamp(.76rem, 1.1vw, .84rem);
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-top: .45rem;
}

/* 專科別做成小的 eyebrow，是全站少數用 teal 的地方之一 */
.hero__field {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--teal);
  margin: 1.8rem 0 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

/* 版面上最大的一組字：品牌主句 */
.hero__motto {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .01em;
  margin: .9rem 0 0;
}
.hero__mottoEn {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: .5rem 0 0;
}

.hero__lead {
  color: var(--ink-soft);
  margin: 1.5rem 0 0;
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.2rem;
}

.hero__affil {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.5rem;
}

/* 照片本身是 4:5。容器收成 3:4，cover 會從左右各裁掉一點，讓人物在畫面裡
   佔更大比例——垂直方向完全沒動，所以頭頂不會被切到。
   底色用 --hero-bridge：照片背景是冷調的淡紫灰，邊緣才不會出現一圈色差。 */
.portrait {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: var(--hero-bridge);
  border-radius: 10px;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait--empty { border: 1px solid var(--line); }

/* ------------------------------------------------------------ 核心專長 */

/* 專長不是四張 UI 卡片，是四個並排的欄目。靠編號、字級層次與欄間細線
   建立structure——沒有填色、沒有陰影、沒有大圓角。 */
.capGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.capCard {
  display: block;
  padding: 2.4rem 1.6rem 2.6rem;
  text-decoration: none;
  border-top: 2px solid transparent;
  margin-top: -1px;               /* 蓋住 capGrid 的上緣線，hover 時才換成 teal */
  transition: border-color .2s ease;
}
.capCard + .capCard { border-left: 1px solid var(--line); }
.capCard:hover { border-top-color: var(--teal); }

/* 大號編號是這一區的主要視覺記號 */
.capCard__num {
  display: block;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .04em;
  /* 不能再淺了：25.6px 屬大字，門檻 3:1，#6B7C8F 是 4.28。
     原本用 --line-strong 只有 1.62，等於看不見。 */
  color: var(--navy-muted);
  margin-bottom: 1.5rem;
  transition: color .2s ease;
}
.capCard:hover .capCard__num { color: var(--teal); }
.capCard__title {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.55;
  margin: 0 0 .45rem;
}
.capCard__en {
  font-family: var(--font-display);
  font-size: .78rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-faint);
  margin: 0 0 1.1rem;
}
.capCard__body {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* -------------------------------------------------------- 引句與清單 */

.pullQuote {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.6;
  letter-spacing: .02em;
  margin: 2.2rem 0;
  padding-inline-start: 1.4rem;
  border-inline-start: 2px solid var(--line-strong);
}

.valueList {
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  display: grid;
  gap: .1rem;
}
.valueList li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .85rem 0;
  border-top: 1px solid var(--line);
  font-size: .98rem;
}
.valueList li:last-child { border-bottom: 1px solid var(--line); }
.valueList__num {
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------ 手術理念 */

/* 首頁的視覺高潮。字級明顯拉大，靠字本身而不是裝飾撐場面。 */
.philosophy__headline {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .01em;
  margin: 2.5rem 0 2.25rem;
  max-width: 20ch;
}
.philosophy__body {
  max-width: var(--measure);
  color: var(--ink-soft);
}
.philosophy__body p { margin: 0 0 1.35rem; }

.pillars {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
}
.pillars li {
  background: transparent;
  padding: 1.8rem 1.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  border-top: 1px solid var(--line);
}
/* 01 / 02 / 03 是深藍區塊上唯一的彩色元素 */
.pillar__num {
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--teal);
  margin-bottom: .5rem;
}
.pillar__zh { font-size: 1.02rem; font-weight: 500; }
.pillar__en {
  font-family: var(--font-display);
  font-size: .78rem;
  font-style: italic;
  color: var(--ink-faint);
}

/* -------------------------------------------------------- 術式與肯定 */

.approaches {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}
.approaches li {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}
.approaches li:last-child { border-bottom: 1px solid var(--line); }
.approach__abbr {
  font-size: 1.25rem;
  letter-spacing: .06em;
}
.approach__full {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* SNQ：navy 文字 + 一小段 teal 強調線。不用金色，也不加獎牌／獎盃——
   證書縮圖本身就是這一區的 recognition visual。 */
.recognition {
  margin-top: 2.5rem;
  padding: 1.5rem 0 0;
  position: relative;
}
.recognition::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--teal);
}
.recognition--withCert {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.recognition__text { flex: 1 1 auto; }

.recognition__cert {
  flex: 0 0 auto;
  display: block;
  width: 160px;
  line-height: 0;                 /* 去掉 inline 圖片底下的基線縫隙 */
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  /* 證書是白紙，底色固定白；文字色也一起固定，深色模式下才不會變成
     白底白字（雖然這裡的文字是給螢幕閱讀器用的、看不見）。 */
  background: #fff;
  color: var(--navy);
  transition: border-color .18s ease;
}
.recognition__cert:hover { border-color: var(--ink); }
.recognition__cert img { display: block; width: 100%; height: auto; }
.recognition__award {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin: 0 0 .3rem;
}
.recognition__citation {
  font-size: .9rem;
  color: var(--ink-faint);
  margin: 0;
}

/* ---------------------------------------------------------------- 研究 */

.flow {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.flow li {
  font-size: .95rem;
  letter-spacing: .05em;
  color: var(--ink-soft);
}
.flow li + li::before {
  content: "↓";
  display: block;
  color: var(--ink-faint);
  margin-bottom: .55rem;
}

.dirList { list-style: none; margin: 0; padding: 0; }
.dirList li {
  padding: .85rem 0;
  border-top: 1px solid var(--line);
  font-size: .98rem;
}
.dirList li:last-child { border-bottom: 1px solid var(--line); }

/* ------------------------------------------- About 07 / 08 / 09
 *
 * 三區共用 .profileHead 建立一致的視覺語言，內容各用各的元件。
 * 一律靠細線與留白分隔，不用圓點、粗軸線或卡片。
 */

.profileHead { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.profileHead .sectionHead__zh { margin: 0; }

/* 07 專業經歷 —— 年表 */
.tl { list-style: none; margin: 0; padding: 0; }
.tl__row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.75rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.tl__row:last-child { border-bottom: 1px solid var(--line); }
.tl__period {
  font-size: .88rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
  padding-top: .15rem;
}
.tl__period--current { color: var(--ink); font-weight: 500; }
.tl__main { display: flex; flex-direction: column; gap: .3rem; }
.tl__title { font-size: 1.02rem; line-height: 1.6; }
.tl__detail { font-size: .9rem; line-height: 1.8; color: var(--ink-faint); }

/* 07 附屬 —— 學歷與資格，刻意不做成年表 */
.eduBlock {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line-strong);
}
.eduBlock__head { margin: 0 0 1.75rem; }
.eduBlock__title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin: 0;
}
.eduBlock__en {
  font-family: var(--font-display);
  font-size: .82rem;
  font-style: italic;
  color: var(--ink-faint);
  margin: .2rem 0 0;
}
.eduGroups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
}
.eduGroup__label {
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .16em;
  color: var(--ink-faint);
  margin: 0 0 .9rem;
}
.eduList { list-style: none; margin: 0; padding: 0; }
.eduList li {
  font-size: .96rem;
  line-height: 1.7;
  padding: .55rem 0;
  border-top: 1px solid var(--line);
}

/* 08 學會與專業角色 —— 兩組並列，不是年表 */
.roleGroups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.roleGroup__label {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin: 0;
}
.roleGroup__en {
  font-family: var(--font-display);
  font-size: .8rem;
  font-style: italic;
  color: var(--ink-faint);
  margin: .2rem 0 1.25rem;
}
.roleList { list-style: none; margin: 0; padding: 0; }
.roleItem {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .95rem 0;
  border-top: 1px solid var(--line);
}
.roleItem:last-child { border-bottom: 1px solid var(--line); }
.roleItem__org { font-size: .98rem; line-height: 1.6; }
.roleItem__role { font-size: .85rem; color: var(--ink-faint); }

/* 09 教學與重要肯定 —— 兩欄對照 */
.trGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.trCol__label {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: .04em;
  margin: 0;
}
.trCol__en {
  font-family: var(--font-display);
  font-size: .8rem;
  font-style: italic;
  color: var(--ink-faint);
  margin: .2rem 0 1.25rem;
}

.tList, .rList { list-style: none; margin: 0; padding: 0; }

.tItem {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.tItem:last-child { border-bottom: 1px solid var(--line); }
.tItem__period {
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
}
.tItem__title { font-size: .98rem; line-height: 1.6; }
.tItem__detail { font-size: .88rem; line-height: 1.8; color: var(--ink-faint); }

.rItem {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: .95rem 0;
  border-top: 1px solid var(--line);
}
.rItem:last-child { border-bottom: 1px solid var(--line); }
.rItem__period {
  font-size: .88rem;
  letter-spacing: .04em;
  color: var(--ink-faint);
}
.rItem__title { font-size: .98rem; line-height: 1.6; }

/* SNQ 與上面的個人教學獎明確分開：受獎單位是醫院不是個人 */
.qualityRecog {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-strong);
}
/* 與上方的個人教學獎明確分開：teal 小標，不用金色、不加獎牌獎盃。 */
.qualityRecog__label {
  font-size: .76rem;
  letter-spacing: .12em;
  color: var(--teal);
  margin: 0 0 .7rem;
}
.qualityRecog__period {
  font-size: .88rem;
  color: var(--ink-faint);
  margin: 0;
}
.qualityRecog__title {
  font-size: .98rem;
  font-weight: 500;
  margin: .15rem 0 .2rem;
}
.qualityRecog__citation {
  font-size: .88rem;
  line-height: 1.7;
  color: var(--ink-faint);
  margin: 0;
}

/* ------------------------------------------------------ 研究理念與主題 */

.philoGrid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.philoText p { margin: 0 0 1.35rem; }
.philoText p:last-child { margin-bottom: 0; }

.interestGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.interest {
  background: var(--tint);
  padding: 2rem 1.75rem 2.25rem;
}
.interest__num {
  font-size: .85rem;
  letter-spacing: .18em;
  color: var(--ink-faint);
  margin: 0 0 1.2rem;
}
/* 中文是主標題，英文降為次要說明 */
.interest__zh {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 .25rem;
}
.interest__en {
  font-family: var(--font-display);
  font-size: .82rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-faint);
  margin: 0 0 .9rem;
}
.interest__body {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

/* ------------------------------------------------------ 代表著作 */

.selList { list-style: none; margin: 0; padding: 0; }
.sel {
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}
.sel:last-child { border-bottom: 1px solid var(--line); }

.sel__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  margin: 0 0 .7rem;
}
.sel__year {
  font-size: 1.05rem;
  letter-spacing: .06em;
}
.sel__topic {
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--ink-faint);
  padding: .15rem .6rem;
  border: 1px solid var(--line-strong);
}
.sel__title {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 .6rem;
  max-width: 46rem;
}
.sel__source {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin: 0 0 1.1rem;
  font-size: .88rem;
}
.sel__journal { font-style: italic; color: var(--ink-soft); }
.sel__authors { color: var(--ink-faint); }

.sel__why {
  max-width: 44rem;
  margin: 0 0 1.1rem;
  padding-inline-start: 1.1rem;
  border-inline-start: 2px solid var(--line-strong);
}
.sel__whyLabel {
  font-family: var(--font-display);
  font-style: italic;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
  margin: 0 0 .3rem;
}
.sel__whyText {
  font-size: .92rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.pubLinks {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 0;
  font-size: .84rem;
}
.pubLinks a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: .1rem;
  color: var(--ink-soft);
  transition: color .18s ease, border-color .18s ease;
}
.pubLinks a:hover { color: var(--ink); border-color: var(--ink); }

/* ------------------------------------------------------ 全部著作 */

.pubFilter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .6rem 1.25rem;
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.pubFilter__label {
  font-size: .76rem;
  letter-spacing: .16em;
  color: var(--ink-faint);
}
.pubFilter__btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.pubFilter button { white-space: nowrap; }   /* 分類名稱不折行，寧可橫向捲動 */
.pubFilter button {
  font: inherit;
  font-size: .82rem;
  padding: .35rem .85rem;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;          /* 與 .btn 一致 */
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.pubFilter button:hover { border-color: var(--ink); color: var(--ink); }
/* 選取中的篩選是 teal 少量使用的其中一處 */
.pubFilter button[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--on-teal);
}

/* 全部著作是一份索引，不是一疊卡片——刻意壓縮行距與字級，
   讓它跟上方的代表著作在視覺上明確不同層級。 */
.pubList { list-style: none; margin: 0; padding: 0; }
.pub {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr);
  gap: .15rem 1.25rem;
  padding: .95rem 0;
  border-top: 1px solid var(--line);
}
.pub:last-child { border-bottom: 1px solid var(--line); }
.pub[hidden] { display: none; }
.pub__year {
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  color: var(--ink-faint);
  margin: 0;
  padding-top: .1rem;
}
.pub__title {
  font-size: .94rem;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 .15rem;
}
/* 作者與期刊擠在同一行的視覺重量上，不各佔一段 */
.pub__authors, .pub__journal {
  display: inline;
  font-size: .8rem;
  line-height: 1.6;
  margin: 0;
  color: var(--ink-faint);
}
.pub__journal { font-style: italic; }
.pub__authors::after {
  content: "·";
  margin-inline: .4rem;
  color: var(--line-strong);
}
.pub__main .pubLinks { margin-top: .35rem; font-size: .78rem; }

.pubEmpty {
  margin: 1.5rem 0 0;
  font-size: .9rem;
  color: var(--ink-faint);
}

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline__row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: .3rem 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.timeline__row:last-child { border-bottom: 1px solid var(--line); }
.timeline__period {
  font-size: .88rem;
  letter-spacing: .06em;
  color: var(--ink-faint);
}
.timeline__what { font-size: .98rem; }
.timeline__detail {
  grid-column: 2;
  font-size: .88rem;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------ 文章卡片 */

.postGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.postCard { display: flex; flex-direction: column; }
.postCard__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 1.1rem;
  background: var(--tint);
}
.postCard__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.postCard__cat {
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--ink-faint);
  margin: 0 0 .7rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
}
.postCard__title {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 .6rem;
}
.postCard__title a {
  text-decoration: none;
  transition: color .18s ease;
}
.postCard__title a:hover { color: var(--ink-soft); }
.postCard__excerpt {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.postCard__date {
  margin: auto 0 0;
  font-size: .8rem;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------ 門診 CTA */

.band--cta { border-top: 1px solid var(--line); }
.clinicCta { text-align: center; }
.clinicCta__title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: .03em;
  margin: 0 0 .5rem;
}
.clinicCta__place { color: var(--ink-faint); margin: 0 0 2rem; }
.clinicCta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
}

/* ------------------------------------------------------------ 內容頁頭 */

.pageHead { padding-bottom: 0; }
.pageHead__zh {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .03em;
  margin: 0;
}
.pageHead__en {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .05em;
  color: var(--ink-faint);
  margin: .5rem 0 0;
}
.pageHead__intro {
  color: var(--ink-soft);
  margin: 1.5rem 0 0;
  max-width: var(--measure);
}

/* ---------------------------------------------------------------- 文章 */

.post { padding-block: var(--band-y) 0; }

.post__title {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .02em;
  margin: 0 0 1.2rem;
}
.post__byline { font-size: .92rem; color: var(--ink-soft); margin: 0 0 .5rem; }
.post__byline .sep { margin-inline: .5rem; color: var(--ink-faint); }
.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.2rem;
  margin: 0 0 1.2rem;
  font-size: .8rem;
  color: var(--ink-faint);
}
.post__meta [data-count] { font-variant-numeric: tabular-nums; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tags li {
  font-size: .75rem;
  letter-spacing: .04em;
  padding: .2rem .7rem;
  color: var(--ink-soft);
  background: var(--tint);
  border: 1px solid var(--line);
}

.post__figure {
  margin: 2.75rem auto;
  width: 100%;
  max-width: calc(var(--measure) + 6rem);
  padding-inline: var(--gutter);
}
.post__figure img { display: block; width: 100%; height: auto; }
.post__figure figcaption {
  margin-top: .7rem;
  font-size: .78rem;
  line-height: 1.7;
  color: var(--ink-faint);
}

.prose { font-size: 1.03rem; line-height: 1.85; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4, .prose h5 {
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
  margin: 2.6rem 0 .9rem;
}
.prose h2 { font-size: 1.35rem; }
.prose h3 { font-size: 1.18rem; }
.prose h4 { font-size: 1.05rem; }
.prose h5 { font-size: .98rem; color: var(--ink-soft); }
.prose p { margin: 0 0 1.3rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-inline-start: 1.4rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { font-weight: 700; }
.prose a { text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote {
  margin: 1.6rem 0;
  padding: .2rem 0 .2rem 1.2rem;
  border-inline-start: 2px solid var(--line-strong);
  color: var(--ink-soft);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }
.prose code {
  font-size: .88em;
  padding: .1rem .4rem;
  background: var(--tint);
  border: 1px solid var(--line);
}
.prose img { display: block; margin-block: 1.5rem; }

.attribution {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .85rem;
  color: var(--ink-faint);
}
.attribution h2 {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--ink-faint);
  margin: 0 0 .6rem;
}
.attribution p { margin: 0; line-height: 1.8; }

.postDisclaimer {
  margin-top: 2rem;
  padding: 1.1rem 1.3rem;
  background: var(--tint);
  border: 1px solid var(--line);
  font-size: .85rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.postNav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 3rem 0 0;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.postNav a {
  display: block;
  padding: 1.2rem 1.3rem;
  background: var(--bg);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.65;
  transition: background-color .18s ease;
}
.postNav a:hover { background: var(--tint); }
.postNav a span {
  display: block;
  font-size: .74rem;
  letter-spacing: .12em;
  color: var(--ink-faint);
  margin-bottom: .35rem;
}
.postNav__next { text-align: end; }

.back { margin: 1.5rem 0 var(--band-y); font-size: .9rem; }

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

.siteFooter {
  border-top: 1px solid var(--line);
  background: var(--tint);
  padding-block: clamp(2.5rem, 5vw, 4rem) 2rem;
  font-size: .88rem;
}
.siteFooter__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.siteFooter__zh {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .06em;
  margin: 0;
}
.siteFooter__en {
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--ink-faint);
  margin: .25rem 0 0;
}
.siteFooter__tag {
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin: .8rem 0 0;
}
.siteFooter__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.siteFooter__nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .18s ease;
}
.siteFooter__nav a:hover { color: var(--ink); }

.siteFooter__base {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}
.disclaimer {
  margin: 0 0 .8rem;
  font-size: .82rem;
  line-height: 1.75;
  color: var(--ink-soft);
}
.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.5rem;
  margin: 0;
  font-size: .8rem;
  color: var(--ink-faint);
}
.siteViews [data-count] { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- 響應式 */

@media (max-width: 1080px) {
  .capGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .postGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .navToggle { display: flex; }

  .sitenav {
    display: none;
    position: absolute;
    top: 100%;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
  }
  .sitenav[data-open] { display: block; }
  .sitenav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .sitenav a {
    padding-block: .95rem;   /* 觸控目標高度 */
    border-bottom: 1px solid var(--line);
  }
  .sitenav a[aria-current="page"] { border-bottom-color: var(--ink); }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: -1; max-width: 22rem; }

  .splitSection { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .philosophy__headline { max-width: none; }

  /* 學會名稱與教學條目偏長，兩欄在平板寬度就已經擠了，提早收單欄 */
  .roleGroups, .trGrid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }

  .philoGrid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .interestGrid { grid-template-columns: minmax(0, 1fr); }

  .expWide__body { grid-template-columns: minmax(0, 1fr); }

  /* 四個關注點在平板寬度擠成一排會太窄，先收兩欄 */
  .pillars.pillars--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exampleList { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }

  /* 三個情境的標題偏長，平板寬度三欄就已經擠了 */
  .scenarioList { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .capGrid { grid-template-columns: minmax(0, 1fr); }
  .postGrid { grid-template-columns: minmax(0, 1fr); }
  .postNav { grid-template-columns: minmax(0, 1fr); }
  .postNav__next { text-align: start; }

  .timeline__row { grid-template-columns: minmax(0, 1fr); }
  .timeline__detail { grid-column: 1; }

  .pub { grid-template-columns: minmax(0, 1fr); gap: .3rem; }

  /* 重點條目在窄螢幕一定要單欄：兩欄各只剩 155px，
     「曾接受過甲狀腺／副甲狀腺手術」這種長度會擠成一團 */
  .keyPoints { grid-template-columns: minmax(0, 1fr); }

  /* 手機上 TOETVA / BABA 上下堆疊；並排各只剩約 150px，讀不了 */
  .routeSplit { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .focusSplit { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }

  /* FAQ 答案在手機上不縮排，否則每行只剩一點寬度 */
  .faq__a { margin-left: 0; }

  /* 名詞與說明在窄螢幕改成上下堆疊 */
  .defList li { grid-template-columns: minmax(0, 1fr); }

  /* 這張比較圖在 375px 只剩 335px 寬，圖上小字約 4.4px、讀不了。
     比較重點本節文字都寫過了，圖是輔助——所以把「點擊看大圖」提成
     獨立一行的 teal 提示，讓它明確是個可以按的動作，而不是句尾附註。 */
  .illus__hint {
    display: block;
    margin: .35rem 0 0;
    color: var(--teal);
    font-weight: 500;
  }
  .factorList { grid-template-columns: minmax(0, 1fr); }
  .pillars.pillars--four { grid-template-columns: minmax(0, 1fr); }
  .bigStatement { max-width: none; }

  /* 六個分類在窄螢幕排不下。橫向捲動，不縮字——縮到看不清楚就失去意義了。
     負 margin 讓捲動區延伸到版面邊緣，視覺上才知道右邊還有東西。 */
  .pubFilter { display: block; }
  .pubFilter__label { display: block; margin-bottom: .75rem; }
  .pubFilter__btns {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: .5rem;
  }

  /* About 07/08/09 全部收成單欄 */
  .tl__row { grid-template-columns: minmax(0, 1fr); gap: .45rem; }
  .tl__period { padding-top: 0; }
  .eduGroups, .roleGroups, .trGrid { grid-template-columns: minmax(0, 1fr); }
  .rItem { grid-template-columns: 3.2rem minmax(0, 1fr); gap: .85rem; }

  .hero__actions .btn,
  .clinicCta__actions .btn { flex: 1 1 auto; text-align: center; }

  /* 窄螢幕下證書縮圖與文字並排會把兩邊都擠扁，改成上下堆疊 */
  .recognition--withCert { flex-direction: column; }
  .recognition__cert { width: 140px; }

  .siteFooter__inner { flex-direction: column; }
}
