:root{--bg:#f3f4f1;--paper:#fffcf7;--ink:#16181a;--muted:#4f575a;--line:#d7ddd8;--accent:#0e6b66;--ok:#0e6b66;--slot:#e6efec;--serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;--sans:"Source Sans 3","Segoe UI",Roboto,"Helvetica Neue",sans-serif;}
/* Shared layout; each site overrides :root in a tiny theme file. */
:root {
  --bg: #f7f1e6;
  --paper: #fffdf8;
  --ink: #1f1a16;
  --muted: #5c534b;
  --line: #e4d8c6;
  --accent: #a43b22;
  --accent-ink: #fffdf8;
  --ok: #2c5e4a;
  --warn: #8a5a12;
  --slot: #f3e6d4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(40, 24, 10, 0.06);
  --max: 44rem;
  --wide: 68rem;
  --serif: "Iwanami Mincho", "Source Han Serif TC", "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --sans: "Source Han Sans TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 20; }
.wrap { width: min(var(--wide), calc(100% - 2rem)); margin: 0 auto; }
main.wrap { width: min(var(--max), calc(100% - 2rem)); padding: 1.25rem 0 4rem; }
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, white);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.nav a, .site-footer a, .crumbs a, a {
  color: var(--accent);
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent); }
.disclose-bar {
  background: var(--slot);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.crumbs { font-size: 0.88rem; color: var(--muted); margin: 1rem 0; }
h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(1.7rem, 4vw, 2.15rem); margin: 0.4rem 0 0.8rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.7rem; }
h3 { font-size: 1.12rem; margin: 1.4rem 0 0.5rem; }
p { margin: 0.8rem 0; }
.lede { font-size: 1.12rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.2rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 2rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card h2 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.kicker { color: var(--accent); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.4rem;
  background: var(--paper);
}
th, td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
th { background: color-mix(in srgb, var(--slot) 70%, var(--paper)); }
.note, .warn, .ok {
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  border: 1px solid var(--line);
}
.note { background: var(--paper); }
.warn { background: #f8efe0; border-color: #e5cc9a; }
.ok { background: #eef5f0; border-color: #c5d9cc; }
.aff-slot {
  background: var(--slot);
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line));
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.4rem 0;
}
.aff-slot .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}
ul, ol { padding-left: 1.2rem; }
li { margin: 0.3rem 0; }
figure { margin: 1.3rem 0; }
figcaption { color: var(--muted); font-size: 0.86rem; margin-top: 0.4rem; }
.svg-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem;
  overflow: auto;
}
.hero {
  padding: 1.2rem 0 0.4rem;
}
.hero p { max-width: 40rem; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: color-mix(in srgb, var(--bg) 80%, var(--paper));
}
.muted { color: var(--muted); }
.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}
.toc h2 { margin: 0 0 0.4rem; font-size: 1rem; font-family: var(--sans); }
.toc ol { margin: 0.3rem 0 0; }
.kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.7rem;
  margin: 1rem 0 1.5rem;
}
.kpi div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
}
.kpi strong { display: block; font-size: 1.05rem; }
.kpi span { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 0.6rem 0; }
  table { font-size: 0.88rem; display: block; overflow-x: auto; }
}

.related {
  margin-top: 2.2rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}
.related ul { margin: 0.4rem 0 0; }
