/* theme-a.css — 方向 A「智庫典藏」語義層 + 組件（依 DESIGN.md §4.2 A 欄 / §8.1）
   底色紙白 · 襯線 display · 藍主強調 · 首屏焦點=大標題 · 視頻=簡報行
   禁：深底、carousel、等大瓷磚、裝飾動效 */

.t-a {
  /* 語義 token（A） */
  --color-bg: #FFFFFF;
  --color-surface: #FBFCFD;
  --color-text: #2A2E33;
  --color-muted: #6B737A;
  --color-accent: var(--blue);
  --color-accent-2: var(--mint);
  --color-highlight: var(--gold);
  --color-video: var(--cyan);
  --color-line: #E4E9EA;
  --color-footer: var(--aub);
  --focus: var(--blue);

  --font-display: "Noto Serif TC", "Songti TC", serif;
  --font-body: "Noto Sans TC", "PingFang TC", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;

  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── 報頭 masthead ─────────────────────────────────── */
.t-a .mh { background: var(--color-bg); border-bottom: 3px solid var(--ink); }
.t-a .mh-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding-block: var(--s3); }
.t-a .mh-brand img { height: 62px; width: auto; display: block; }
.t-a .mh-right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s1); }
.t-a .mh-folio { display: flex; gap: var(--s5); font-size: 11px; letter-spacing: .18em; color: var(--color-muted); }
.t-a .mh-actions { display: flex; align-items: center; gap: var(--s4); font-size: 12px; }
.t-a .ask { color: var(--color-accent); text-decoration: none; border-bottom: 1px dotted var(--color-accent); padding-bottom: 1px; }
.t-a .ask:hover { border-bottom-style: solid; }
.t-a .lang { color: var(--color-muted); letter-spacing: .06em; }
.t-a .mh-nav { border-top: 1px solid var(--color-line); }
.t-a .mh-nav .wrap { display: flex; gap: var(--s6); overflow-x: auto; }
.t-a .mh-nav a { text-decoration: none; font-size: 15px; padding: var(--s3) 0; color: var(--color-text); white-space: nowrap; border-bottom: 2px solid transparent; }
.t-a .mh-nav a:hover { color: var(--color-accent); }
.t-a .mh-nav a.on { color: var(--color-accent); border-bottom-color: var(--color-accent); font-weight: 500; }

/* ── 首頁 hero（不對稱 60/40：左大標題 / 右視頻簡報海報） ── */
.t-a .hero { border-bottom: 1px solid var(--color-line); }
.t-a .hero-grid { display: grid; grid-template-columns: 3fr 2fr; gap: var(--s7); padding-block: var(--s7) var(--s6); align-items: center; }
.t-a .kicker { font-size: 11px; letter-spacing: .3em; color: var(--color-accent); font-weight: 500; margin-bottom: var(--s3); }
.t-a .hero-h { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.8vw, 42px); line-height: 1.32; margin: 0 0 var(--s4); }
.t-a .hero-dek { font-size: 16px; color: var(--color-muted); max-width: 34em; margin: 0 0 var(--s4); }
.t-a .hero-meta { font-size: 12px; color: var(--color-muted); display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; }
.t-a .hero-meta a { color: var(--color-accent); text-decoration: none; border-bottom: 1px solid transparent; }
.t-a .hero-meta a:hover { border-bottom-color: var(--color-accent); }
.t-a .hero-brief { text-decoration: none; color: inherit; display: block; }
.t-a .hb-poster { position: relative; border: 1px solid var(--color-line); }
.t-a .hb-poster img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.t-a .hb-play { position: absolute; inset: 0; display: grid; place-items: center; }
.t-a .hb-play svg { width: 64px; height: auto; opacity: .96; }
.t-a .hero-brief:hover .hb-play svg { opacity: 1; transform: scale(1.03); transition: transform var(--dur) var(--ease); }
.t-a .hb-cap { font-size: 11px; letter-spacing: .18em; color: var(--color-muted); border-top: 1px solid var(--color-line); margin-top: var(--s2); padding-top: var(--s2); }

/* ── 首欄結構：左索引欄 + 主欄 ─────────────────────── */
.t-a .cols { display: grid; grid-template-columns: 260px 1fr; gap: var(--s7); padding-block: var(--s6); }
.t-a .rail-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em; font-weight: 500; color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: var(--s2); margin: 0 0 var(--s3); }
.t-a .rail section + section { margin-top: var(--s6); }
.t-a .rail-ix, .t-a .rail-tp { list-style: none; margin: 0; padding: 0; }
.t-a .rail-ix a { display: grid; grid-template-columns: 26px 1fr auto; gap: var(--s2); align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--color-line); text-decoration: none; font-size: 13.5px; line-height: 1.5; }
.t-a .rail-ix .rfolio, .t-a .rail-ix .rdate { font-size: 11px; color: var(--color-muted); }
.t-a .rail-ix a:hover span:nth-child(2) { color: var(--color-accent); }
.t-a .rail-tp a { display: block; padding: 9px 0; border-bottom: 1px solid var(--color-line); text-decoration: none; font-family: var(--font-display); font-size: 15px; }
.t-a .rail-tp a:hover { color: var(--color-accent); }

/* ── 區塊標題（欄線） ──────────────────────────────── */
.t-a .sec + .sec { margin-top: var(--s7); }
.t-a .sec-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: var(--s3); margin-bottom: var(--s1); }
.t-a .sec-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0; }
.t-a .sec-more { font-family: var(--font-mono); font-size: 12px; color: var(--color-accent); text-decoration: none; }
.t-a .sec-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── 文章索引行（頁碼 + 日期 + 標題，欄線分隔） ────── */
.t-a .ixrow { display: grid; grid-template-columns: 44px 100px 1fr; gap: var(--s3); align-items: baseline; padding: var(--s4) 0; border-bottom: 1px solid var(--color-line); text-decoration: none; color: inherit; }
.t-a .ixrow .folio { font-size: 12px; color: var(--color-muted); }
.t-a .ixrow .ix-date { font-size: 12px; color: var(--color-muted); }
.t-a .ixrow h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 var(--s1); line-height: 1.5; }
.t-a .ixrow .ix-tags { font-size: 11px; letter-spacing: .1em; color: var(--color-muted); }
.t-a .ixrow:hover h3 { color: var(--color-accent); }

/* ── 視頻簡報行（海報 + 信息，非縮略圖瓷磚） ────────── */
.t-a .brief { display: grid; grid-template-columns: 280px 1fr; gap: var(--s5); padding: var(--s4) 0; border-bottom: 1px solid var(--color-line); text-decoration: none; color: inherit; align-items: center; }
.t-a .brief .kicker { margin-bottom: var(--s2); }
.t-a .b-poster { position: relative; border: 1px solid var(--color-line); }
.t-a .b-poster img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.t-a .b-play { position: absolute; inset: 0; display: grid; place-items: center; }
.t-a .b-play svg { width: 44px; height: auto; opacity: .95; }
.t-a .brief h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 var(--s2); line-height: 1.5; }
.t-a .b-meta { font-size: 11px; letter-spacing: .15em; color: var(--color-muted); }
.t-a .brief:hover h3 { color: var(--color-accent); }
.t-a .brief.hidden { display: none; }

/* ── 列表頁（視頻/文章） ───────────────────────────── */
.t-a .page { max-width: 920px; padding-block: var(--s7) var(--s8); }
.t-a .page-h { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 36px); font-weight: 700; margin: 0 0 var(--s2); }
.t-a .page-sub { font-size: 12px; color: var(--color-muted); margin-bottom: var(--s5); }
.t-a .tabs { display: flex; flex-wrap: wrap; gap: 0 var(--s4); font-size: 12px; border-bottom: 1px solid var(--color-line); margin-bottom: var(--s4); }
.t-a .tabs button { appearance: none; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: var(--s2) 0; margin-right: var(--s3); font: inherit; color: var(--color-muted); cursor: pointer; }
.t-a .tabs button:hover { color: var(--color-text); }
.t-a .tabs button.on { color: var(--color-accent); border-bottom-color: var(--color-accent); font-weight: 500; }
.t-a .page .tabs + .tabs { margin-top: calc(-1 * var(--s3)); }

/* ── 分頁 ──────────────────────────────────────────── */
.t-a .pager { display: flex; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s5); font-size: 12px; }
.t-a .pager button { appearance: none; background: none; border: 1px solid var(--color-line); border-radius: var(--r-btn); padding: 4px 10px; font: inherit; color: var(--color-muted); cursor: pointer; }
.t-a .pager button:hover:not(:disabled) { color: var(--color-accent); border-color: var(--color-accent); }
.t-a .pager button:disabled { opacity: .45; cursor: default; }
.t-a .pager .cur { color: var(--color-accent); border-color: var(--color-accent); }

/* ── 文章頁（襯線長文 + 首字下沉 + 引文） ───────────── */
.t-a .post { max-width: 720px; padding-block: var(--s6) var(--s8); }
.t-a .crumb { font-size: 11px; letter-spacing: .18em; color: var(--color-muted); margin-bottom: var(--s4); }
.t-a .crumb a { color: var(--color-muted); text-decoration: none; }
.t-a .crumb a:hover { color: var(--color-accent); }
.t-a .post-h { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.4; margin: 0 0 var(--s3); }
.t-a .post-meta { font-size: 12px; color: var(--color-muted); display: flex; flex-wrap: wrap; gap: var(--s2); }
.t-a .post-meta a { color: var(--color-accent); }
.t-a .rule { border: none; border-top: 2px solid var(--ink); margin: var(--s4) 0 var(--s5); }
.t-a .post-body { font-size: 17px; line-height: 1.9; }
.t-a .post-body p { margin: 0 0 1.3em; }
.t-a .post:not(.content-detail) .post-body > p:first-child::first-letter {
  font-family: var(--font-display); font-weight: 700; font-size: 3em;
  float: left; line-height: 1; padding: .06em .14em 0 0; color: var(--color-accent);
}
.t-a .post-body h2, .t-a .post-body h3, .t-a .post-body h4 { font-family: var(--font-display); line-height: 1.5; margin: 1.6em 0 .6em; }
.t-a .post-body h2 { font-size: 24px; } .t-a .post-body h3 { font-size: 20px; }
.t-a .post-body a { color: var(--color-accent); }
.t-a .post-body blockquote {
  margin: 1.8em 0; padding: var(--s3) var(--s4);
  border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line);
  font-family: var(--font-display); font-size: 1.06em; color: var(--ink);
}
.t-a .post-body img { display: block; margin: 1.5em auto; }
.t-a .pn { border-top: 1px solid var(--color-line); margin-top: var(--s7); padding-top: var(--s4); display: flex; flex-direction: column; gap: var(--s2); font-size: 13px; }
.t-a .pn a { color: var(--color-accent); text-decoration: none; }
.t-a .pn a:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-a .ask-note { margin-top: var(--s7); border-top: 2px solid var(--ink); padding-top: var(--s4); }
.t-a .ask-note p { font-size: 15px; color: var(--color-muted); margin: var(--s2) 0 0; }

/* Video page layout; player details live in video-player.css. */
.t-a .watch { max-width: 1040px; padding-block: var(--s4) var(--s7); }
.t-a .vp-watch > .crumb { margin-bottom: var(--s3); }
.t-a .vp-details { margin-top: var(--s4); }

/* ── 頁腳（深紫灰，欄線收口） ───────────────────────── */
.t-a .ft { background: var(--color-footer); color: #C9C6D4; }
.t-a .ft-in { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); padding-block: var(--s6); flex-wrap: wrap; }
.t-a .ft-brand strong { font-family: var(--font-display); font-size: 18px; color: #F5F3FA; font-weight: 700; }
.t-a .ft-brand span { margin-left: var(--s4); font-size: 12px; color: #9A93AA; }
.t-a .ft-note { font-size: 11px; color: #9A93AA; }
.t-a .ft-note a { color: #9A93AA; }
.t-a .ft-note a:hover { color: #F5F3FA; }

/* ── 動效層（DESIGN.md D-P1-3：A 簽名=欄線繪製；僅進門與瀏覽，閱讀/播放頁零 data-rv） ── */
html.js .t-a [data-rv] {
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
html.js .t-a [data-rv].rv-in { opacity: 1; transform: none; transition-delay: var(--rvd, 0s); }
html.js .t-a [data-rv].rv-done { transition-delay: 0s; }  /* 入場後清錯峰延遲，hover 不遲滯 */

/* 欄線繪製：帶 draw-rule 的標題欄，底線從左向右畫出（無 JS 時保留靜態底線） */
html.js .t-a .draw-rule[data-rv] { position: relative; border-bottom-color: transparent; }
html.js .t-a .draw-rule[data-rv]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left center;
  transition: transform .6s var(--ease); transition-delay: calc(var(--rvd, 0s) + .08s);
}
html.js .t-a .draw-rule[data-rv].rv-in::after { transform: scaleX(1); }
html.js .t-a .draw-rule[data-rv].rv-done::after { transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  html.js .t-a [data-rv] { opacity: 1; transform: none; transition: none; }
  html.js .t-a .draw-rule[data-rv] { border-bottom-color: var(--ink); }
  html.js .t-a .draw-rule[data-rv]::after { content: none; }
}

/* ── 響應式 ────────────────────────────────────────── */
@media (max-width: 980px) {
  .t-a .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .t-a .cols { grid-template-columns: 1fr; gap: var(--s6); }
  .t-a .rail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .t-a .brief { grid-template-columns: 220px 1fr; }
}
@media (max-width: 640px) {
  .t-a .mh-top { flex-wrap: wrap; }
  .t-a .mh-brand img { height: 48px; }
  .t-a .mh-folio span:first-child { display: none; }
  .t-a .rail { grid-template-columns: 1fr; }
  .t-a .ixrow { grid-template-columns: 40px 1fr; row-gap: 2px; }
  .t-a .ixrow .ix-date { grid-column: 2; }
  .t-a .ixrow .ix-main { grid-column: 2; }
  .t-a .brief { grid-template-columns: 1fr; gap: var(--s3); }
  .t-a .b-poster { max-width: 420px; }
  .t-a .ft-in { flex-direction: column; gap: var(--s2); }
}

/* ══════════════════════════════════════════════════════════
   v2：廣告牌 / 板塊卡 / YouTube 式視頻 / 會員區 / 三語
   ══════════════════════════════════════════════════════════ */

/* ── 語言佔位提示 ─────────────────────────────────── */
.t-a .lang-notice {
  background: #FDF3E2; color: #8A5A12; border-bottom: 1px solid #EBD9B4;
  font-size: 12px; letter-spacing: .02em; text-align: center; padding: 6px 12px;
}

/* Homepage slides show the image before any caption. */
.t-a .billboard {
  position: relative; overflow: hidden; background: #F4F6F7;
  height: 430px; height: clamp(270px, 42vw, 510px);
  touch-action: pan-y;
}
.t-a .bb-track { list-style: none; margin: 0; padding: 0; height: calc(100% - 56px); position: relative; }
.t-a .bb-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease); pointer-events: none;
}
.t-a .bb-slide.on { opacity: 1; pointer-events: auto; visibility: visible; z-index: 1; }
.t-a .bb-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.t-a .bb-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(18,16,28,.88), rgba(18,16,28,0) 80%);
  transition: opacity .2s ease;
}
.t-a .bb-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
  padding: var(--s4) max(60px, var(--s5)); color: #fff; opacity: 0; visibility: hidden;
  transition: opacity .2s ease;
}
.t-a .bb-k { font-size: 11px; letter-spacing: .2em; color: var(--mint); margin-bottom: var(--s1); }
.t-a .bb-cap h3 { font-family: var(--font-display); font-size: clamp(18px,2.6vw,32px); font-weight: 700; line-height: 1.35; margin: 0; color: #fff; }
.t-a .billboard.info-open .bb-slide.on::after,
.t-a .billboard.keyboard-focus .bb-slide.on::after { opacity: 1; }
.t-a .billboard.info-open .bb-slide.on .bb-cap,
.t-a .billboard.keyboard-focus .bb-slide.on .bb-cap { opacity: 1; visibility: visible; }
@media (hover: hover) {
  .t-a .billboard:hover .bb-slide.on::after { opacity: 1; }
  .t-a .billboard:hover .bb-slide.on .bb-cap { opacity: 1; visibility: visible; }
}
.t-a .bb-link { position: absolute; inset: 0; z-index: 3; }
.t-a .bb-link:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -4px; }
.t-a .bb-arrow, .t-a .bb-tools, .t-a .bb-dots { display: none; }
.t-a .bb-ready .bb-arrow { display: block; }
.t-a .bb-ready .bb-tools, .t-a .bb-ready .bb-dots { display: flex; }
.t-a .bb-arrow {
  position: absolute; top: calc(50% - 28px); transform: translateY(-50%); z-index: 4;
  appearance: none; border: 1px solid rgba(255,255,255,.7); background: rgba(18,16,28,.55);
  color: #fff; width: 44px; height: 44px; font-size: 24px; line-height: 1; cursor: pointer;
}
.t-a .bb-arrow:hover { background: var(--blue); }
.t-a .bb-arrow.prev { left: var(--s2); }
.t-a .bb-arrow.next { right: var(--s2); }
.t-a .bb-tools { position: absolute; left: var(--s3); bottom: 6px; z-index: 4; gap: 4px; }
.t-a .bb-tools button {
  appearance: none; min-width: 44px; height: 44px; border: 1px solid var(--color-line);
  background: #fff; color: var(--color-text); cursor: pointer; font: inherit; font-size: 13px; padding: 4px 10px;
}
.t-a .bb-info { font-size: 22px !important; }
.t-a .bb-tools button:hover { color: var(--color-accent); border-color: var(--color-accent); }
.t-a .bb-dots { position: absolute; right: var(--s3); bottom: 6px; z-index: 4; gap: 0; }
.t-a .bb-dot { appearance: none; width: 28px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; position: relative; }
.t-a .bb-dot::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 4px; background: #ABB4BA; }
.t-a .bb-dot:hover::after, .t-a .bb-dot.on::after { background: var(--color-accent); }
.t-a .billboard button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .t-a .bb-slide, .t-a .bb-cap, .t-a .bb-slide::after { transition: none; }
}

/* ── 智庫定位帶 ──────────────────────────────────── */
.t-a .honor { padding-block: var(--s6) var(--s5); border-bottom: 1px solid var(--color-line); }
.t-a .honor-row { display: grid; grid-template-columns: 1fr 300px; gap: var(--s7); align-items: end; }
.t-a .honor-lead h1 {
  font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 700; line-height: 1.35; margin: var(--s2) 0 var(--s3);
}
.t-a .honor-lead p { font-size: 16px; color: var(--color-muted); max-width: 60ch; margin: 0; }
.t-a .honor-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.t-a .honor-stats div {
  border-top: 2px solid var(--ink); padding-top: var(--s2); text-align: right;
}
.t-a .honor-stats b { display: block; font-size: 26px; color: var(--color-accent); line-height: 1.2; }
.t-a .honor-stats span { font-size: 11px; letter-spacing: .14em; color: var(--color-muted); }

/* ── 關注議題 chips ──────────────────────────────── */
.t-a .tchips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.t-a .tchip {
  display: inline-block; text-decoration: none; color: var(--color-text);
  font-family: var(--font-display); font-size: 16px; padding: var(--s2) var(--s4);
  border: 1px solid var(--color-line); background: var(--color-surface);
}
.t-a .tchip:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ── 活動／建議／新聞稿卡片 ──────────────────────── */
.t-a .icards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--s5) var(--s4); }
.t-a .icard { display: block; text-decoration: none; color: inherit; border-top: 3px solid var(--ink); padding-top: var(--s3); }
.t-a .icard:hover { border-top-color: var(--color-accent); }
.t-a .ic-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--grey-100); margin-bottom: var(--s3); }
.t-a .ic-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.t-a .icard:hover .ic-img img { transform: scale(1.04); }
.t-a .ic-img.noimg { display: grid; place-items: center; color: var(--grey-500); letter-spacing: .3em; }
.t-a .ic-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-bottom: var(--s2); }
.t-a .ic-kind { font-size: 10px; letter-spacing: .18em; color: var(--color-accent); border: 1px solid var(--color-line); padding: 1px 6px; }
.t-a .ic-date { font-size: 11px; color: var(--color-muted); }
.t-a .ic-body h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.5; margin: 0 0 var(--s2); }
.t-a .icard:hover h3 { color: var(--color-accent); }
.t-a .ic-body p { font-size: 13.5px; color: var(--color-muted); margin: 0; }

/* ── 建議／新聞稿列 ──────────────────────────────── */
.t-a .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); }
.t-a .srow {
  display: grid; grid-template-columns: 92px 1fr; gap: var(--s3); align-items: baseline;
  padding: var(--s3) 0; border-bottom: 1px solid var(--color-line);
  text-decoration: none; color: inherit;
}
.t-a .s-date { font-size: 12px; color: var(--color-muted); }
.t-a .s-main h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 0 0 2px; line-height: 1.5; }
.t-a .srow:hover h3 { color: var(--color-accent); }
.t-a .s-ex { font-size: 11px; color: var(--color-muted); }

/* ── YouTube 式視頻網格（含滑鼠移入動態） ────────── */
.t-a .ygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--s5) var(--s4); }
.t-a .ycard { display: block; text-decoration: none; color: inherit; }
.t-a .yc-thumb {
  position: relative; overflow: hidden; background: var(--grey-100); aspect-ratio: 16 / 9;
}
.t-a .yc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.t-a .yc-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.t-a .yc-badge {
  position: absolute; top: var(--s2); left: var(--s2);
  background: rgba(13, 103, 160, .92); color: #fff; font-size: 11px; padding: 2px 8px;
}
.t-a .yc-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: .92; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.t-a .yc-play svg { width: 52px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.t-a .ycard:hover .yc-thumb img { transform: scale(1.05); }
.t-a .ycard:hover .yc-play { transform: scale(1.12); opacity: 1; }
.t-a .yc-hint {
  position: absolute; right: var(--s2); bottom: var(--s2);
  background: rgba(18, 16, 28, .72); color: #fff; font-size: 10px; letter-spacing: .1em;
  padding: 2px 8px; opacity: 0; transition: opacity var(--dur) var(--ease);
}
.t-a .ycard:hover .yc-hint { opacity: 1; }
.t-a .yc-title {
  font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.5;
  margin: var(--s3) 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.t-a .ycard:hover .yc-title { color: var(--color-accent); }
.t-a .yc-meta { font-size: 11px; color: var(--color-muted); }
.t-a .ycard.hidden { display: none; }
.t-a .yc-thumb.playing .yc-play, .t-a .yc-thumb.playing .yc-hint { opacity: 0; }

/* ── 會員專區（問智庫） ──────────────────────────── */
.t-a .member-box {
  display: grid; grid-template-columns: 1fr 280px; gap: var(--s6); align-items: center;
  border: 1px solid var(--color-line); border-top: 3px solid var(--ink);
  background: var(--color-surface); padding: var(--s5);
}
.t-a .member-box h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: var(--s2) 0 var(--s2); }
.t-a .member-box p { font-size: 14.5px; color: var(--color-muted); margin: 0; line-height: 1.8; }
.t-a .mb-right { display: flex; flex-direction: column; gap: var(--s2); align-items: flex-start; }
.t-a .btn-member {
  display: inline-block; background: var(--color-accent); color: #fff; text-decoration: none;
  font-weight: 700; padding: 12px 20px; border-radius: var(--r-btn);
}
.t-a .btn-member:hover { background: #0A5382; }
.t-a .mb-note { font-size: 10.5px; color: var(--color-muted); }

/* ── 條目內容頁 ──────────────────────────────────── */
.t-a .item-hero { display: block; width: 100%; margin: 0 0 var(--s5); border: 1px solid var(--color-line); }

/* ── 聯絡資訊 ────────────────────────────────────── */
.t-a .contact-box {
  margin-top: var(--s7); border-top: 2px solid var(--ink); padding-top: var(--s4);
}
.t-a .ci-row { display: grid; grid-template-columns: 72px 1fr; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--color-line); }
.t-a .ci-row span { font-size: 11px; letter-spacing: .18em; color: var(--color-muted); }
.t-a .ci-row b { font-weight: 500; }
.t-a .contact-box .hint { margin-top: var(--s3); }

@media (max-width: 980px) {
  .t-a .honor-row { grid-template-columns: 1fr; gap: var(--s5); }
  .t-a .honor-stats { grid-template-columns: repeat(4, 1fr); }
  .t-a .two-col { grid-template-columns: 1fr; gap: var(--s6); }
  .t-a .member-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .t-a .billboard { height: 290px; height: clamp(250px, 74vw, 390px); }
  .t-a .bb-cap { padding: var(--s3) 56px; }
  .t-a .bb-cap h3 { font-size: 17px; }
  .t-a .bb-tools { left: var(--s2); }
  .t-a .bb-dots { right: var(--s2); }
  .t-a .honor-stats { grid-template-columns: repeat(2, 1fr); }
  .t-a .ygrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}


/* P1 count, original About layout and access semantics. */
.t-a .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.t-a .article-count { font-family: var(--font-body); display: inline-flex; align-items: baseline; }
.t-a .count-value { display: inline-block; min-width: 3ch; text-align: center; font-family: var(--font-display); font-size: 1.65em; font-weight: 700; font-variant-numeric: tabular-nums; color: #0D67A0; line-height: 1.3; }
.t-a .lang [aria-disabled="true"] { opacity: .45; }
.t-a .source-about-page { max-width: 960px; }
.t-a .source-about { overflow-wrap: anywhere; }
.t-a .source-about section + section { margin-top: var(--s7); }
.t-a .source-about h1, .t-a .source-about h2 { font-family: var(--font-display); line-height: 1.4; }
.t-a .source-about h1 { font-size: clamp(26px,4vw,36px); }
.t-a .source-about h2 { font-size: clamp(23px,3vw,30px); }
.t-a .source-about p { max-width: 72ch; line-height: 1.85; margin: 0 0 1.2em; }
.t-a .source-about table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.t-a .source-about td, .t-a .source-about th { vertical-align: top; padding: 12px; overflow-wrap: anywhere; }
.t-a .source-about img { max-width: 100%; height: auto; }
.t-a .source-about a { color: var(--color-accent); }
@media (max-width: 640px) {
  .t-a .source-about table, .t-a .source-about tbody, .t-a .source-about tr, .t-a .source-about td, .t-a .source-about th { display: block; width: auto; }
  .t-a .source-about td, .t-a .source-about th { padding-inline: 0; }
}

/* Unified content templates: filters are enhancements; all cards remain readable without JS. */
.t-a .bb-slide picture { display: block; width: 100%; height: 100%; }
.t-a .catalog-search { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.t-a .catalog-search input { min-width: 0; width: min(100%, 360px); min-height: 44px; padding: 8px 12px; font: inherit; border: 1px solid #ABB4BA; border-radius: 3px; }
.t-a [data-content-card][hidden] { display: none !important; }
.t-a [data-content-card] > .icard, .t-a [data-child-id] > .icard { height: 100%; }
.t-a .content-detail { overflow-wrap: anywhere; }
.t-a .content-detail .post-body img, .t-a .content-gallery img { max-width: 100%; height: auto; }
.t-a .content-detail .post-body table { display: block; max-width: 100%; overflow-x: auto; }
.t-a .content-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; margin: 32px 0; }
.t-a .content-gallery figure { margin: 0; }
.t-a .content-gallery figcaption { padding-top: 8px; font-size: 14px; line-height: 1.6; }
.t-a .collection-children { margin: 36px 0; }
.t-a .catalog-grid, .t-a .collection-children { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
/* Preserve original embedded event recordings at a usable responsive size. */
.t-a .content-detail .post-body iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; margin: 24px auto; border: 0; }
.t-a .content-detail [aria-disabled="true"][data-source-url] { cursor: default; color: inherit; }

/* A failed/slow next image never removes the current slide. */
.bb-status:not(:empty){position:absolute;left:50%;bottom:1rem;transform:translateX(-50%);z-index:5;padding:.35rem .65rem;background:rgba(255,255,255,.94);color:#273039;font-size:.85rem;pointer-events:none;}

/* Structured editor output; legacy article styling stays outside this wrapper. */
.sda-rich-content{min-width:0;overflow-wrap:anywhere}
.sda-rich-content img{max-width:100%;height:auto}
.sda-rich-content pre{max-width:100%;overflow-x:auto;white-space:pre}
.sda-rich-content iframe{display:block;width:100%;max-width:560px;height:auto;aspect-ratio:16/9;border:0}
.sda-rich-content table{display:block;max-width:100%;overflow-x:auto}
