/* =========================================================
   NPX 治理白皮書 — 正式白皮書版型
   npxexchangeltd.one
   米白紙張／深藏青／金褐．雙欄．章節編號．邊註．註腳
   ========================================================= */

:root{
  --cream: #FAF7F0;
  --paper: #FFFCF5;
  --ink: #1A2440;
  --gold: #9A7B3F;
  --gold-light: #C9A45E;
  --link: #755728;
  --gold-ink: #755728;
  --muted: #6B6250;
  --line: #DED6C6;
  --gold-wash: rgba(154, 123, 63, .085);
  --serif: "Noto Serif TC", "Songti TC", "Noto Serif CJK TC", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body{
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.95;
  letter-spacing: .02em;
  background-color: var(--cream);
  background-image:
    radial-gradient(1100px 620px at 12% -10%, rgba(154, 123, 63, .10), rgba(154, 123, 63, 0) 60%),
    radial-gradient(900px 560px at 108% 24%, rgba(26, 36, 64, .05), rgba(26, 36, 64, 0) 62%),
    repeating-linear-gradient(to bottom, rgba(26, 36, 64, 0) 0 33px, rgba(26, 36, 64, .042) 33px 34px),
    linear-gradient(180deg, #FAF7F0 0%, #F7F2E6 55%, #FAF7F0 100%);
  background-attachment: fixed;
}

/* 紙張雜訊 */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .38;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='170' height='170' filter='url(%23n)' opacity='0.13'/%3E%3C/svg%3E");
}

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

a{
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-color: rgba(154, 123, 63, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .22s var(--ease), text-decoration-color .22s var(--ease);
}

a:hover{ color: var(--ink); text-decoration-color: var(--gold); }

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

::selection{ background: rgba(154, 123, 63, .26); color: var(--ink); }

p{ margin: 0 0 1.05em; }

strong{ font-weight: 700; }

.iconify, iconify-icon{ color: var(--gold); }

.ic{ font-size: 22px; line-height: 1; color: var(--gold); flex: none; }

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

.wrap{
  position: relative;
  z-index: 1;
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.skip{
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  transition: top .2s var(--ease);
}

.skip:focus{ top: 12px; color: var(--paper); }

/* ---------- 置頂導覽 ---------- */

.topbar{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 240, .92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.topbar-inner{
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 66px;
}

.brand{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
  min-height: 44px;
}

.brand-mark{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--paper);
  background: var(--ink);
  padding: 6px 9px 5px;
  line-height: 1;
}

.brand-text{
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .1em;
}

.nav{
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a{
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  color: var(--muted);
  font-size: .89rem;
  letter-spacing: .04em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .22s var(--ease), border-color .22s var(--ease);
}

.nav a:hover{ color: var(--ink); border-bottom-color: var(--gold); }

.nav a[aria-current="page"]{
  color: var(--ink);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

/* ---------- 刊頭 ---------- */

.masthead{ padding: clamp(34px, 5vw, 64px) 0 0; }

.edition{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin: 0 0 22px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .22em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted);
}

.edition span:last-child{ color: var(--gold-ink); white-space: nowrap; }

.masthead h1{
  margin: 0;
  font-size: clamp(2.05rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: .05em;
  text-wrap: balance;
  max-width: 18em;
}

.masthead--page h1{
  font-size: clamp(1.78rem, 3.6vw, 2.6rem);
  line-height: 1.44;
  max-width: 22em;
}

.hero-grid{
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  column-gap: clamp(26px, 4.5vw, 58px);
  align-items: start;
  margin-top: 26px;
}

.hero-meta{
  margin: 0;
  padding-left: 15px;
  border-left: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.85;
}

.hero-meta dt{
  color: var(--gold-ink);
  letter-spacing: .16em;
  margin-bottom: 1px;
}

.hero-meta dd{
  margin: 0 0 12px;
  color: var(--muted);
}

.hero-meta dd:last-child{ margin-bottom: 0; }

.subtitle{
  margin: 0 0 14px;
  font-size: 1.11rem;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: .08em;
  color: var(--muted);
}

.lede{
  margin: 0;
  font-size: 1.04rem;
  line-height: 2.02;
  color: var(--ink);
  max-width: 35em;
}

.lede strong{ font-weight: 700; }

/* ---------- 問責鏈圖 ---------- */

.chain{
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: clamp(15px, 2.3vw, 24px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  background:
    linear-gradient(158deg, rgba(255, 252, 245, .96), rgba(250, 247, 240, .5)),
    repeating-linear-gradient(to bottom, rgba(26, 36, 64, 0) 0 29px, rgba(26, 36, 64, .035) 29px 30px);
}

.chain-grid{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.chain-grid li{
  position: relative;
  min-height: 154px;
  padding: 14px 14px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.chain-grid li:not(:last-child)::after{
  content: "";
  position: absolute;
  top: 33px;
  right: -17px;
  width: 17px;
  height: 1px;
  background: var(--gold);
}

.chain-grid li:not(:last-child)::before{
  content: "";
  position: absolute;
  top: 30px;
  right: -19px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
  transform: rotate(45deg);
}

.node-id{
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gold-ink);
  line-height: 1.7;
}

.node-name{
  display: block;
  margin: 2px 0 5px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.6;
}

.node-desc{
  display: block;
  font-size: .78rem;
  line-height: 1.78;
  letter-spacing: .03em;
  color: var(--muted);
}

.chain-legend{
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px dotted var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--gold-ink);
}

.chain figcaption,
figure.chain figcaption{ margin-top: 10px; }

/* ---------- 文件紙張 ---------- */

.sheet{
  margin-top: clamp(28px, 4vw, 50px);
  padding: clamp(22px, 3.5vw, 54px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 34px 70px -58px rgba(26, 36, 64, .6);
}

/* ---------- 章節區塊 ---------- */

.block{
  display: grid;
  grid-template-columns: 198px minmax(0, 1fr);
  column-gap: clamp(24px, 3.6vw, 54px);
  row-gap: 16px;
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-top: 1px solid var(--line);
}

.block:first-child{ border-top: 0; padding-top: 6px; }

.block > *{ min-width: 0; }

.block-head{
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.chapter-no{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold-ink);
  white-space: nowrap;
  padding-top: .45em;
  line-height: 1.6;
}

.block h2{
  margin: 0;
  font-size: clamp(1.34rem, 2.3vw, 1.76rem);
  font-weight: 700;
  line-height: 1.62;
  letter-spacing: .045em;
  text-wrap: balance;
  max-width: 26em;
}

.block .body{ grid-column: 2; grid-row: 2; }

.block .margin{
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-size: .79rem;
  line-height: 1.9;
  letter-spacing: .03em;
  color: var(--muted);
}

.margin .tag{
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--gold-ink);
  line-height: 1.6;
}

.margin p{ margin: 0 0 .6em; }
.margin p:last-child{ margin-bottom: 0; }

.body p:last-child{ margin-bottom: 0; }

.body h3{
  margin: 1.7em 0 .55em;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .05em;
  color: var(--ink);
}

.body h3:first-child{ margin-top: 0; }

.body ul,
.body ol{
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

.body li{ margin-bottom: .48em; }
.body li:last-child{ margin-bottom: 0; }

.body ul li::marker{ color: var(--gold); }
.body ol li::marker{
  color: var(--gold-ink);
  font-family: var(--mono);
  font-size: .82em;
}

.inline-cite{
  font-family: var(--mono);
  font-size: .78em;
  letter-spacing: .01em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 註腳 ---------- */

sup.fn{
  font-family: var(--mono);
  font-size: .58em;
  line-height: 0;
  letter-spacing: 0;
  vertical-align: super;
}

sup.fn a{
  color: var(--link);
  text-decoration: none;
  padding: 0 .14em;
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

sup.fn a:hover{ color: var(--ink); border-bottom-color: var(--gold); }

.footnotes{
  margin-top: 6px;
  padding-top: 22px;
  border-top: 3px double var(--ink);
}

.footnotes h2{
  margin: 0 0 14px;
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.7;
}

.footnotes ol{
  list-style: none;
  counter-reset: fn;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footnotes li{
  counter-increment: fn;
  position: relative;
  padding-left: 34px;
  font-size: .79rem;
  line-height: 1.92;
  letter-spacing: .025em;
  color: var(--muted);
  scroll-margin-top: 96px;
  transition: background-color .4s var(--ease);
}

.footnotes li::before{
  content: counter(fn);
  position: absolute;
  left: 0;
  top: .42em;
  width: 22px;
  text-align: right;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--gold-ink);
}

.footnotes li:target{ background: var(--gold-wash); }

.fn-back{
  font-family: var(--mono);
  font-size: .9em;
  text-decoration: none;
  margin-left: .35em;
  color: var(--gold-ink);
}

/* ---------- 引述 ---------- */

.pull{
  margin: 1.8em 0;
  padding: 18px 22px 16px;
  background: linear-gradient(100deg, rgba(154, 123, 63, .085), rgba(154, 123, 63, 0) 82%);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.92;
  letter-spacing: .035em;
  color: var(--ink);
}

.pull p{ margin: 0; }

.pull-kicker{
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .22em;
  color: var(--gold-ink);
}

blockquote.source{
  margin: 1.5em 0;
  padding: 20px 22px;
  background: var(--gold-wash);
  border-left: 3px solid var(--gold);
  font-size: .95rem;
  line-height: 1.95;
}

blockquote.source p{ margin: 0 0 .75em; }
blockquote.source p:last-child{ margin-bottom: 0; }

blockquote.source .en{
  font-family: var(--mono);
  font-size: .79rem;
  line-height: 1.9;
  color: var(--muted);
}

blockquote.source cite{
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: .72rem;
  font-style: normal;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------- 表格 ---------- */

.table-scroll{
  margin: 1.3em 0 1.5em;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .45);
}

table{
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
}

caption{
  caption-side: top;
  padding: 10px 12px 8px;
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--gold-ink);
  border-bottom: 1px solid var(--line);
}

th, td{
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

tbody th{
  white-space: nowrap;
}

.cell-date{
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: .8em;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.7;
  color: var(--muted);
  white-space: nowrap;
}

thead th{
  background: var(--gold-wash);
  border-top: 1px solid var(--gold);
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

tbody tr:last-child td{ border-bottom: 0; }

td .mono{
  font-family: var(--mono);
  font-size: .92em;
  letter-spacing: .01em;
}

/* ---------- 定義清單 ---------- */

.defs{
  margin: 1.2em 0 1.4em;
  padding: 0;
}

.defs dt{
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .05em;
  padding-top: .8em;
  border-top: 1px dotted var(--line);
}

.defs dt:first-child{ border-top: 0; padding-top: 0; }

.defs dd{
  margin: .18em 0 1em;
  font-size: .92rem;
  line-height: 1.92;
  color: var(--muted);
}

/* ---------- 四大支柱 ---------- */

.pillars{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 1.3em 0 1.5em;
}

.pillar{
  padding: 16px 17px 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(250, 247, 240, .35));
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
}

.pillar-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.pillar-no{
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gold-ink);
}

.pillar h3{
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.6;
}

.pillar p{
  margin: 0;
  font-size: .8rem;
  line-height: 1.88;
  letter-spacing: .025em;
  color: var(--muted);
}

/* ---------- 提醒／揭露方塊 ---------- */

.disclosure{
  margin: 1.5em 0;
  padding: 15px 18px 14px;
  background: rgba(255, 252, 245, .8);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
}

.disclosure .tag{
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--gold-ink);
}

.disclosure p{
  margin: 0;
  font-size: .85rem;
  line-height: 1.92;
  color: var(--muted);
}

/* ---------- 文件圖版 ---------- */

.doc-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 1.6em 0 1em;
}

figure.doc{
  margin: 0;
  padding: 10px 10px 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -28px rgba(26, 36, 64, .55);
}

.thumb{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 322px;
  padding: 4px;
  background:
    linear-gradient(180deg, #FBF8F0, #F4EEE1);
  border: 1px solid rgba(222, 214, 198, .7);
  overflow: hidden;
}

.thumb img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.95) contrast(1.02);
}

figure.doc figcaption{
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  font-size: .73rem;
  line-height: 1.86;
  letter-spacing: .02em;
  color: var(--muted);
}

figure.doc figcaption b{
  display: block;
  margin-bottom: 3px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--gold-ink);
}

figure.doc figcaption strong{ color: var(--ink); font-weight: 700; }

figure.plate{
  margin: 1.6em 0;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -36px rgba(26, 36, 64, .55);
}

figure.plate img{
  display: block;
  margin-inline: auto;
  border: 1px solid rgba(222, 214, 198, .6);
  filter: saturate(.95) contrast(1.02);
}

figure.plate--portrait img{ width: 100%; max-width: 430px; }

figure.plate figcaption{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: .79rem;
  line-height: 1.9;
  color: var(--muted);
}

figure.plate figcaption strong{ color: var(--ink); }

/* ---------- 目錄 ---------- */

.toc-block{
  grid-template-columns: 1fr;
  padding-top: clamp(20px, 2.8vw, 30px);
}

.toc-block .block-head,
.toc-block .body{ grid-column: 1; }

.toc-block .body{ grid-row: auto; }

.toc{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.toc li{ border-bottom: 1px dotted var(--line); }

.toc a{
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  padding: 9px 0;
  color: var(--ink);
  font-size: .9rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .22s var(--ease);
}

.toc a:hover{ color: var(--link); }
.toc a:hover .toc-title{ text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

.toc .num{
  flex: none;
  min-width: 3.4em;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--gold-ink);
}

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

.foot{
  position: relative;
  z-index: 1;
  margin-top: clamp(44px, 6vw, 76px);
  padding: clamp(34px, 5vw, 58px) 0 clamp(26px, 3.4vw, 36px);
  background:
    linear-gradient(150deg, #1A2440 0%, #212D4E 58%, #161F38 100%);
  color: #E9E3D4;
  border-top: 3px solid var(--gold);
}

.foot a{ color: #EFE7D5; }

.foot h2{
  margin: 0 0 16px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--gold-light);
}

.readnext-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.next-card{
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 44px;
  padding: 15px 16px 14px;
  border: 1px solid rgba(222, 214, 198, .26);
  background: rgba(255, 252, 245, .045);
  color: #EFE7D5;
  text-decoration: none;
  transition: background-color .24s var(--ease), border-color .24s var(--ease), transform .24s var(--ease);
}

.next-card:hover{
  background: rgba(255, 252, 245, .09);
  border-color: rgba(201, 164, 94, .55);
  color: #FFFCF5;
  transform: translateY(-2px);
}

.next-card iconify-icon{ align-self: flex-end; color: var(--gold-light); }

.next-kicker{
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  color: var(--gold-light);
}

.next-title{
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .04em;
}

.next-desc{
  font-size: .76rem;
  line-height: 1.8;
  color: rgba(233, 227, 212, .72);
}

.disclaimer{
  padding: 17px 19px;
  border: 1px solid rgba(222, 214, 198, .28);
  background: rgba(14, 20, 36, .35);
  font-size: .74rem;
  line-height: 1.95;
  letter-spacing: .025em;
  color: rgba(233, 227, 212, .78);
}

.disclaimer strong{
  display: block;
  margin-bottom: 5px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--gold-light);
}

.disclaimer p{ margin: 0; }

.foot-meta{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  line-height: 1.9;
  color: rgba(233, 227, 212, .72);
}

.foot-meta a{ color: rgba(233, 227, 212, .78); text-decoration-color: rgba(201, 164, 94, .4); }

/* ---------- 動效 ---------- */

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

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

@media (max-width: 980px){
  .block{ grid-template-columns: 168px minmax(0, 1fr); }
  .hero-grid{ grid-template-columns: 168px minmax(0, 1fr); }
  .doc-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumb{ height: 300px; }
}

@media (max-width: 860px){
  .chain-grid{ grid-template-columns: 1fr; gap: 13px; }

  .chain-grid li{ min-height: 0; }

  .chain-grid li:not(:last-child)::after{
    top: auto;
    right: auto;
    left: 26px;
    bottom: -15px;
    width: 1px;
    height: 15px;
  }

  .chain-grid li:not(:last-child)::before{
    top: auto;
    right: auto;
    left: 23px;
    bottom: -17px;
    transform: rotate(135deg);
  }

  .chain-legend{ flex-direction: column; gap: 4px; }
}

@media (max-width: 820px){
  .wrap{ width: min(1180px, 100% - 34px); }

  .hero-grid{ grid-template-columns: 1fr; row-gap: 20px; }

  .hero-meta{
    padding-left: 0;
    border-left: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .hero-meta dd{ margin-bottom: 0; }

  .block{
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .block-head{ grid-column: 1; }
  .block .body{ grid-column: 1; grid-row: auto; }

  .block .margin{
    grid-column: 1;
    grid-row: auto;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    background: rgba(154, 123, 63, .05);
    font-size: .8rem;
  }

  .toc{ grid-template-columns: 1fr; }
  .pillars{ grid-template-columns: 1fr; }
  .doc-grid{ grid-template-columns: 1fr; }
  .thumb{ height: 360px; }
  .readnext-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 620px){
  body{ font-size: 1rem; line-height: 1.95; }

  .topbar-inner{
    flex-wrap: wrap;
    gap: 0;
    padding-block: 6px;
  }

  .brand{ padding-block: 6px; }

  .nav{
    width: 100%;
    margin-left: 0;
    gap: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  .nav a{
    padding: 9px 7px;
    font-size: .8rem;
    white-space: nowrap;
  }

  .edition{ font-size: 10px; letter-spacing: .14em; gap: 10px; }
  .sheet{ padding: 18px 15px 22px; }
  .masthead h1{ letter-spacing: .035em; }
  .chapter-no{ padding-top: .3em; }
  .block-head{ gap: 8px; }
  .chain{ padding: 13px; }
  .pull{ padding: 15px 16px 13px; font-size: 1rem; }
  blockquote.source{ padding: 16px; }
  .doc-grid{ gap: 12px; }
  .thumb{ height: 300px; }
  table{ font-size: .79rem; }
  th, td{ padding: 9px 10px; }
  .foot-meta{ flex-direction: column; }
  [id]{ scroll-margin-top: 132px; }
}

@media print{
  body{ background: #FFFFFF; color: #000000; }
  body::before{ display: none; }
  .topbar, .skip, .foot .readnext-grid{ display: none; }
  .sheet{ border: 0; box-shadow: none; padding: 0; }
  .foot{ background: #FFFFFF; color: #000000; border-top: 1px solid #000000; }
  .foot a, .foot h2, .disclaimer strong{ color: #000000; }
  .disclaimer{ border-color: #999999; background: #FFFFFF; color: #000000; }
}
