:root {
  --ink: #3f4542;
  --deep: #4a5653;
  --sage: #8d998e;
  --rose: #b9948e;
  --clay: #b98068;
  --blue: #87949b;
  --ochre: #b79a6b;
  --paper: #eee9df;
  --ivory: #f8f4eb;
  --line: rgba(74, 86, 83, 0.2);
  --shadow: 0 24px 70px rgba(54, 58, 55, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif TC", "Source Han Serif TC", "PingFang TC", serif;
  font-size: 16px;
  line-height: 1.9;
  background: #d8d4ca url("./assets/grandmother-barriers-morandi-monet-autumn-20260913.webp") center top / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(239, 235, 226, 0.84), rgba(218, 213, 202, 0.94)),
    radial-gradient(circle at 12% 22%, rgba(185, 148, 142, 0.25), transparent 28%);
}

a { color: var(--deep); }

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(74, 86, 83, 0.38);
  outline-offset: 3px;
}

.skip {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 2147483647;
  padding: 0.6rem 1rem;
  background: #fff;
}

.skip:focus { top: 1rem; }

.preview-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 1rem;
  color: #f8f4eb;
  background: rgba(63, 69, 66, 0.93);
  backdrop-filter: blur(15px);
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

html.cpa-four-language-toolbar-active .preview-bar {
  position: relative;
  top: auto;
}

.preview-bar span {
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 800px;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(45, 50, 48, 0.68) 0%, rgba(45, 50, 48, 0.3) 40%, rgba(45, 50, 48, 0.05) 68%),
    linear-gradient(0deg, rgba(45, 50, 48, 0.62), transparent 48%),
    url("./assets/grandmother-barriers-morandi-monet-autumn-20260913.webp");
  background-position: center;
  background-size: cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 8rem 0 7rem;
  color: #fff;
}

.eyebrow,
.section-label {
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.2rem 0;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-shadow: 0 4px 30px rgba(35, 38, 36, 0.28);
}

.dek {
  max-width: 800px;
  font-size: clamp(1.15rem, 2.1vw, 1.55rem);
  line-height: 1.75;
}

.hero-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  text-decoration: none;
}

.hero-link:hover { background: rgba(255, 255, 255, 0.18); }

.chapter-nav {
  position: relative;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  width: min(1180px, calc(100% - 3rem));
  margin: -2rem auto 0;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  background: rgba(248, 244, 235, 0.94);
  box-shadow: 0 16px 42px rgba(54, 58, 55, 0.16);
  backdrop-filter: blur(16px);
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
}

.chapter-nav a {
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  color: #52605c;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.chapter-nav a:hover { background: rgba(141, 153, 142, 0.14); }

.chapter-nav a[aria-current="page"] {
  color: var(--ivory);
  background: var(--deep);
}

.chapter-nav + .paper { margin-top: 1rem; }

.paper {
  position: relative;
  width: min(1180px, calc(100% - 3rem));
  margin: -2.5rem auto 4rem;
  padding: clamp(2rem, 5vw, 5.4rem);
  overflow: hidden;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 34px;
  background: rgba(248, 244, 235, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.cpa-article-engagement {
  position: relative;
  z-index: 6;
  width: min(1120px, calc(100% - 3rem));
  margin: -2rem auto 0;
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(248, 244, 235, 0.94);
  box-shadow: 0 18px 48px rgba(45, 50, 48, 0.18);
}

.cpa-article-engagement + .paper { margin-top: 1rem; }

.paper::before,
.paper::after {
  content: "";
  position: absolute;
  border-radius: 42% 58% 54% 46%;
  pointer-events: none;
}

.paper::before {
  top: 12%;
  right: -55px;
  width: 190px;
  height: 260px;
  background: rgba(141, 153, 142, 0.15);
  transform: rotate(18deg);
}

.paper::after {
  top: 55%;
  left: -70px;
  width: 160px;
  height: 220px;
  background: rgba(185, 148, 142, 0.13);
  transform: rotate(-25deg);
}

.paper > section,
.paper > nav { position: relative; z-index: 1; }

.paper > section + section { margin-top: clamp(5rem, 9vw, 8rem); }

.paper > section.compact-section { margin-top: 3rem; }

.section-label {
  margin: 0 0 0.6rem;
  color: #7b6964;
}

.paper h2 {
  margin: 0.2rem 0 1.5rem;
  color: #46524f;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  font-weight: 600;
  line-height: 1.35;
}

.paper h3 { line-height: 1.4; }

.paper p,
.paper li,
.paper td,
.paper th { font-size: 1.03rem; }

.quick-read {
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid rgba(74, 86, 83, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.74), rgba(222, 226, 220, 0.58)),
    rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 42px rgba(74, 86, 83, 0.09);
}

.quick-read h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }

.quick-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: quick;
}

.quick-points li {
  min-height: 150px;
  padding: 1.3rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(74, 86, 83, 0.1);
}

.quick-points li::before {
  counter-increment: quick;
  content: "0" counter(quick);
  display: block;
  color: var(--rose);
  font: 800 0.8rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.12em;
}

.core-sentence {
  margin: 1.4rem 0 0;
  padding: 1.25rem 1.4rem;
  border-left: 5px solid var(--clay);
  border-radius: 0 18px 18px 0;
  color: #493f3b;
  background: rgba(185, 128, 104, 0.13);
  font-size: clamp(1.15rem, 2.1vw, 1.42rem) !important;
}

.aid-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: aid-step;
}

.aid-flow li {
  position: relative;
  min-width: 0;
  padding: 1rem 0.85rem;
  border: 1px solid rgba(74, 86, 83, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
}

.aid-flow li::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -0.58rem;
  z-index: 2;
  color: #84726d;
  font: 800 1rem/1 system-ui, sans-serif;
  transform: translateY(-50%);
}

.aid-flow li:last-child::after { display: none; }

.aid-flow b,
.aid-flow span { display: block; }

.aid-flow b {
  color: #5d504c;
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
}

.aid-flow span {
  margin-top: 0.18rem;
  color: #6f7672;
  font-size: 0.82rem;
  line-height: 1.5;
}

.reader-question {
  display: grid;
  grid-template-columns: minmax(8rem, 0.32fr) 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border: 1px dashed rgba(74, 86, 83, 0.28);
  border-radius: 16px;
  background: rgba(135, 148, 155, 0.08);
}

.reader-question b { color: #53666f; }
.reader-question a { margin-left: 0.35rem; font-weight: 750; }

.fluorescent {
  --fluorescent-color: rgba(246, 213, 76, 0.62);
  --fluorescent-height: 0.46em;
  margin: 0 -0.015em;
  padding: 0 0.045em 0.035em;
  color: inherit;
  background-color: transparent;
  background-image: linear-gradient(
    176deg,
    transparent 0 10%,
    var(--fluorescent-color) 18% 82%,
    transparent 94% 100%
  );
  background-position: left calc(100% - 0.08em);
  background-repeat: no-repeat;
  background-size: 100% var(--fluorescent-height);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.fluorescent-gold { --fluorescent-color: rgba(246, 213, 76, 0.62); }
.fluorescent-sage { --fluorescent-color: rgba(139, 194, 137, 0.54); }
.fluorescent-rose { --fluorescent-color: rgba(235, 137, 141, 0.5); }
.fluorescent-blue { --fluorescent-color: rgba(111, 182, 210, 0.48); }

.opening {
  padding-left: clamp(1rem, 5vw, 4rem);
  border-left: 5px solid var(--rose);
}

.opening > p:not(.section-label) { max-width: 850px; }

.chapter-question {
  max-width: 900px;
  margin: 2rem 0 1rem;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 4px solid var(--blue);
  color: #4e6067;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 650;
}

.procedure-note {
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(135, 148, 155, 0.11);
  font-size: 0.92rem !important;
}

.boundary {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.boundary b { color: #704f4a; }

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0.22rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.78rem !important;
  font-weight: 800;
  line-height: 1.3;
}

.pill.court {
  border-color: #b9c7bb;
  color: #40584e;
  background: #dce6dc;
}

.pill.material {
  border-color: #b7c4ca;
  color: #465b65;
  background: #dce5e9;
}

.pill.official {
  border-color: #aebec7;
  color: #3f5b67;
  background: #dce7eb;
}

.pill.prosecution {
  border-color: #d3b3a7;
  color: #754b42;
  background: #ead5cd;
}

.pill.testimony {
  border-color: #c9bb9e;
  color: #6d5a35;
  background: #ede3ca;
}

.pill.institution {
  border-color: #bcb5c8;
  color: #5a526b;
  background: #e4deeb;
}

.pill.pending {
  border-color: #d7b6ad;
  color: #744d47;
  background: #ead7d1;
}

.pill.scenario {
  border-color: #d3bd92;
  color: #705b33;
  background: #eee2c7;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 154px;
  width: 2px;
  background: linear-gradient(var(--sage), var(--rose));
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 3rem;
  padding: 0 0 2rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 147px;
  width: 12px;
  height: 12px;
  border: 4px solid var(--ivory);
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 2px rgba(74, 86, 83, 0.18);
}

.timeline li.is-pending::before { background: var(--rose); }

.timeline time {
  padding-top: 0.35rem;
  color: #6c5d58;
  font: 800 0.92rem/1.4 system-ui, sans-serif;
  text-align: right;
}

.timeline h3 { margin: 0.55rem 0 0.25rem; }

.timeline p { margin: 0; }

.evidence-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.3rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.evidence-grid,
.questions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.evidence-grid article,
.questions article {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 13px 35px rgba(74, 86, 83, 0.08);
}

.evidence-grid h3 { margin-bottom: 0.5rem; }

.evidence-grid p { margin-bottom: 0; }

.caregiver-selection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rights-table {
  margin-top: 1.8rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 13px 35px rgba(74, 86, 83, 0.08);
}

.rights-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.rights-table caption {
  padding: 1.2rem 1.4rem 0.5rem;
  text-align: left;
  color: #6e5550;
  font-size: 1.15rem;
  font-weight: 700;
}

.rights-table th,
.rights-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.rights-table thead th {
  color: #f8f4eb;
  background: rgba(74, 86, 83, 0.9);
  font-family: sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}

.rights-table tbody th {
  width: 16%;
  color: #6e5550;
  white-space: nowrap;
}

.rights-table tbody td:nth-child(2) {
  width: 27%;
}

.rights-table tbody tr:last-child th,
.rights-table tbody tr:last-child td {
  border-bottom: 0;
}

.missing-evidence {
  margin-top: 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(235, 229, 218, 0.72);
}

.missing-evidence > h3 {
  margin: 0 0 1rem;
  color: #5d4d48;
  font-size: 1.45rem;
}

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 16px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.62);
}

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

th {
  color: #4b5855;
  background: rgba(141, 153, 142, 0.17);
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.9rem !important;
}

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

.intro { max-width: 920px; }

.route-list { display: grid; gap: 1rem; }

.route {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.5rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.68), rgba(231, 226, 215, 0.62));
  box-shadow: 0 12px 30px rgba(56, 64, 61, 0.07);
}

.route:nth-child(2n) {
  background: linear-gradient(120deg, rgba(226, 231, 227, 0.76), rgba(255, 255, 255, 0.56));
}

.route-no {
  padding-top: 0.15rem;
  color: var(--rose);
  font-size: 2rem;
  font-style: italic;
}

.route-body { min-width: 0; }

.route-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.route-heading h3 {
  margin: 0;
  font-size: 1.45rem;
}

.route-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.route-cell {
  min-width: 0;
  padding: 1rem;
  border-top: 4px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.route-cell > b {
  display: block;
  margin-bottom: 0.35rem;
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
}

.route-cell p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.75;
}

.route-cell.try { border-color: var(--sage); }
.route-cell.block { border-color: var(--rose); }
.route-cell.duty { border-color: var(--blue); }
.route-cell.try > b { color: #52635a; }
.route-cell.block > b { color: #7d5750; }
.route-cell.duty > b { color: #4e626b; }

.chain-section {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 30px;
  color: var(--ivory);
  background: rgba(74, 86, 83, 0.93);
  box-shadow: var(--shadow);
}

.chain-section h2,
.chain-section .section-label,
.chain-section .chapter-subtitle,
.chain-section .subsection-label { color: var(--ivory); }

.chain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.chain li {
  min-height: 130px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.chain b,
.chain span { display: block; }

.chain b { font-size: 1.25rem; }

.chain span {
  opacity: 0.82;
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
}

.chain-section blockquote {
  margin: 2.2rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.35rem;
}

.questions { grid-template-columns: repeat(2, 1fr); }

.questions b {
  color: #6e5550;
  font-size: 1.25rem;
}

.chapter-subsection {
  margin-top: 3.2rem;
  padding-top: 2.4rem;
  border-top: 1px solid rgba(74, 86, 83, 0.18);
}

.subsection-label {
  margin: 0 0 0.45rem;
  color: #7b6964;
  font: 800 0.76rem/1.4 system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-subtitle {
  margin: 0 0 1.25rem;
  color: #46524f;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 650;
}

.chain-section.chapter-subsection {
  margin-top: 3rem;
  border-top: 0;
}

.closing {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(540px, 72svh, 760px);
  align-content: center;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 4vw, 3rem);
  border: 1px solid rgba(132, 107, 91, 0.14);
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 50% 51%, rgba(255, 237, 196, 0.68), rgba(239, 216, 183, 0.2) 32%, transparent 67%),
    linear-gradient(118deg, rgba(141, 153, 142, 0.08), transparent 38%, rgba(185, 148, 142, 0.09)),
    rgba(246, 240, 228, 0.72);
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.18),
    inset 0 26px 58px rgba(255, 255, 255, 0.34),
    0 24px 62px rgba(76, 65, 57, 0.1);
  text-align: center;
}

.closing > :not(.closing-motion-stage) {
  position: relative;
  z-index: 2;
}

.closing p {
  max-width: 790px;
  margin: 1rem auto;
}

.closing-manifest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(840px, 100%);
  margin: 1.5rem auto 0;
}

.closing-manifest article {
  padding: 1rem;
  border: 1px solid rgba(117, 94, 78, 0.16);
  border-radius: 18px;
  background: rgba(255, 251, 242, 0.54);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.64), 0 10px 25px rgba(81, 62, 50, 0.07);
  backdrop-filter: blur(8px);
}

.closing-manifest b,
.closing-manifest span { display: block; }

.closing-manifest b {
  color: #6e5550;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
}

.closing-manifest span {
  margin-top: 0.28rem;
  color: #5c6662;
  font-size: 0.9rem;
  line-height: 1.65;
}

#closing-title {
  scroll-margin-top: max(10rem, 24svh);
}

.closing-motion-stage {
  position: absolute;
  inset: 3% 2%;
  z-index: 0;
  overflow: hidden;
  border-radius: 28px;
  pointer-events: none;
  perspective: 1100px;
  transform-style: preserve-3d;
}

.closing-paper-frame,
.closing-glow,
.closing-paper-fold,
.closing-door,
.closing-seam,
.closing-clay-seal,
.closing-dust,
.closing-threshold {
  position: absolute;
  display: block;
  pointer-events: none;
}

.closing-paper-frame {
  inset: 4% 4.5% 6%;
  border: 1px solid rgba(123, 104, 91, 0.16);
  border-radius: 48% 48% 16% 16% / 30% 30% 12% 12%;
  background:
    linear-gradient(90deg, rgba(123, 145, 137, 0.1), transparent 16% 84%, rgba(177, 126, 105, 0.1)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(226, 213, 190, 0.1));
  box-shadow:
    inset 0 0 0 9px rgba(255, 255, 255, 0.2),
    0 18px 46px rgba(70, 58, 50, 0.07);
  clip-path: polygon(7% 4%, 25% 1%, 50% 3%, 76% 1%, 94% 5%, 98% 28%, 96% 74%, 91% 96%, 69% 98%, 48% 96%, 25% 99%, 6% 95%, 2% 70%, 4% 29%);
  transform-origin: center bottom;
}

.closing-paper-frame::before,
.closing-paper-frame::after {
  content: "";
  position: absolute;
  top: 7%;
  bottom: 8%;
  width: 20%;
  opacity: 0.72;
  background:
    radial-gradient(circle at 50% 18%, rgba(181, 125, 104, 0.28) 0 5%, transparent 5.8%),
    radial-gradient(circle at 48% 41%, rgba(129, 153, 143, 0.22) 0 7%, transparent 7.8%),
    radial-gradient(circle at 52% 68%, rgba(190, 159, 105, 0.2) 0 6%, transparent 6.8%),
    linear-gradient(90deg, transparent 47%, rgba(116, 103, 91, 0.13) 48% 52%, transparent 53%);
  filter: drop-shadow(0 7px 8px rgba(93, 72, 58, 0.09));
}

.closing-paper-frame::before {
  left: 2%;
  transform: rotate(-2deg);
}

.closing-paper-frame::after {
  right: 2%;
  transform: scaleX(-1) rotate(-2deg);
}

.closing-glow {
  inset: 11% 23% 13%;
  border-radius: 48% 48% 18% 18% / 32% 32% 10% 10%;
  opacity: 0.82;
  background:
    radial-gradient(ellipse at 50% 54%, rgba(255, 246, 212, 0.94), rgba(242, 210, 151, 0.34) 38%, transparent 72%);
  filter: blur(5px);
  transform-origin: center;
}

.closing-paper-fold {
  top: 7%;
  bottom: 7%;
  width: 16%;
  opacity: 0.5;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 250, 236, 0.6), rgba(184, 157, 125, 0.08));
  filter: drop-shadow(0 14px 20px rgba(72, 59, 50, 0.08));
}

.closing-paper-fold--left {
  left: 11%;
  clip-path: polygon(4% 4%, 100% 0, 84% 100%, 0 95%, 17% 53%);
}

.closing-paper-fold--right {
  right: 11%;
  clip-path: polygon(0 0, 96% 4%, 100% 95%, 16% 100%, 0 53%);
}

.closing-door {
  top: 8%;
  bottom: 9%;
  z-index: 1;
  width: 46%;
  opacity: 0.56;
  border: 1px solid rgba(121, 92, 76, 0.24);
  background:
    linear-gradient(108deg, rgba(126, 151, 142, 0.38), rgba(237, 222, 194, 0.82) 55%, rgba(184, 130, 106, 0.28)),
    #e9dcc4;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.18),
    inset 0 -30px 50px rgba(126, 92, 72, 0.08),
    0 18px 30px rgba(71, 61, 54, 0.12);
  filter: drop-shadow(0 18px 28px rgba(71, 61, 54, 0.11));
  transform-style: preserve-3d;
}

.closing-door::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border: 1px solid rgba(113, 96, 83, 0.18);
  border-radius: 48% 48% 8% 8% / 22% 22% 6% 6%;
  background:
    radial-gradient(circle at 50% 18%, transparent 0 13%, rgba(255, 255, 255, 0.24) 13.5% 15%, transparent 15.5%),
    radial-gradient(circle at 50% 68%, rgba(181, 128, 104, 0.13) 0 17%, transparent 17.8%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 36%);
  box-shadow: inset 0 0 22px rgba(116, 91, 72, 0.08);
}

.closing-door::after {
  content: "";
  position: absolute;
  bottom: 15%;
  width: clamp(34px, 5vw, 62px);
  aspect-ratio: 1;
  border: 1px solid rgba(116, 78, 61, 0.18);
  border-radius: 48% 52% 46% 54%;
  background: radial-gradient(circle at 34% 28%, #d6a48b, #ae745d 68%, #8f5f50 100%);
  box-shadow:
    inset 5px 5px 9px rgba(255, 236, 219, 0.34),
    inset -6px -7px 10px rgba(99, 59, 45, 0.16),
    0 6px 12px rgba(84, 58, 46, 0.13);
}

.closing-door--left {
  left: 4%;
  clip-path: polygon(0 4%, 92% 0, 100% 50%, 92% 100%, 0 96%);
  transform-origin: left center;
}

.closing-door--left::after {
  right: 9%;
}

.closing-door--right {
  right: 4%;
  clip-path: polygon(8% 0, 100% 4%, 100% 96%, 8% 100%, 0 50%);
  transform-origin: right center;
}

.closing-door--right::after {
  left: 9%;
}

.closing-seam {
  top: 16%;
  bottom: 16%;
  left: 50%;
  z-index: 3;
  width: 1px;
  opacity: 0.3;
  background: linear-gradient(transparent, rgba(149, 116, 89, 0.68) 25%, rgba(255, 236, 192, 0.88) 58%, transparent);
  box-shadow: 0 0 18px rgba(219, 181, 119, 0.5);
  transform-origin: center top;
}

.closing-clay-seal {
  top: 52%;
  left: 50%;
  z-index: 4;
  width: clamp(46px, 6.4vw, 78px);
  aspect-ratio: 1;
  border: 1px solid rgba(101, 64, 52, 0.2);
  border-radius: 49% 51% 47% 53%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 225, 205, 0.5), transparent 24%),
    radial-gradient(circle at 55% 62%, #bf8068, #9d6655 72%, #835245);
  box-shadow:
    inset 7px 6px 12px rgba(255, 225, 206, 0.26),
    inset -8px -9px 13px rgba(80, 43, 34, 0.22),
    0 11px 21px rgba(76, 48, 38, 0.2);
  transform: translate(-50%, -50%);
  transform-origin: center;
}

.closing-clay-seal::before {
  content: "";
  position: absolute;
  inset: 22%;
  border: 2px solid rgba(88, 52, 42, 0.36);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(255, 222, 199, 0.1);
}

.closing-clay-seal::after {
  content: "";
  position: absolute;
  top: 34%;
  left: 50%;
  width: 14%;
  height: 34%;
  border-radius: 999px 999px 42% 42%;
  background: rgba(76, 48, 41, 0.48);
  transform: translateX(-50%);
}

.closing-dust {
  inset: 10% 18%;
  opacity: 0.56;
  background:
    radial-gradient(circle at 16% 29%, rgba(183, 154, 107, 0.44) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 24%, rgba(185, 148, 142, 0.42) 0 2px, transparent 3px),
    radial-gradient(circle at 24% 76%, rgba(141, 153, 142, 0.4) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 70%, rgba(183, 154, 107, 0.38) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 56% 13%, rgba(255, 238, 199, 0.7) 0 2px, transparent 3px);
  filter: blur(0.2px);
}

.closing-threshold {
  right: 17%;
  bottom: 10%;
  left: 17%;
  height: 7px;
  opacity: 0.72;
  border-radius: 54% 46% 50% 50%;
  background: linear-gradient(90deg, transparent, rgba(151, 111, 86, 0.42) 12%, rgba(219, 185, 137, 0.62) 50%, rgba(132, 101, 80, 0.4) 88%, transparent);
  box-shadow: 0 8px 14px rgba(90, 63, 48, 0.09);
  transform-origin: center;
}

.closing-motion-replay {
  justify-self: center;
  min-height: 44px;
  margin-top: 1.3rem;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(111, 86, 71, 0.22);
  border-radius: 999px;
  color: #5d504c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(229, 211, 184, 0.7));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.7),
    0 8px 18px rgba(89, 64, 48, 0.1);
  font: 760 0.78rem/1.2 system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.closing-motion-replay:hover,
.closing-motion-replay:focus-visible {
  color: #3f4d49;
  border-color: rgba(74, 86, 83, 0.38);
  background: linear-gradient(180deg, #fffaf0, #e9d4b5);
}

.sources {
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.accountability-loop {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.78rem;
  margin-top: 1.8rem;
}

.accountability-loop article {
  min-width: 0;
  padding: 1.25rem 1rem;
  border: 1px solid rgba(74, 86, 83, 0.15);
  border-radius: 22px 22px 28px 18px;
  background:
    radial-gradient(circle at 86% 10%, rgba(246, 221, 176, 0.42), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(221, 226, 219, 0.55));
  box-shadow: 0 14px 34px rgba(74, 86, 83, 0.08);
}

.accountability-loop article:nth-child(2),
.accountability-loop article:nth-child(5) {
  background:
    radial-gradient(circle at 84% 10%, rgba(225, 185, 180, 0.35), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(230, 215, 208, 0.5));
}

.accountability-loop article > span {
  color: #9b7667;
  font: 850 0.78rem/1 system-ui, sans-serif;
  letter-spacing: 0.12em;
}

.accountability-loop h3 {
  margin: 0.6rem 0 0.45rem;
  color: #4c5d58;
  font-size: 1.2rem;
}

.accountability-loop p {
  margin: 0;
  color: #59635f;
  font-size: 0.92rem;
  line-height: 1.72;
}

.implementation-test {
  margin-top: 1.25rem;
  padding: 1.35rem;
  border: 1px solid rgba(183, 154, 107, 0.24);
  border-radius: 24px;
  background: rgba(239, 229, 209, 0.58);
}

.implementation-test > p {
  margin: 0 0 0.75rem;
  color: #604f48;
  font-weight: 750;
}

.implementation-test ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.implementation-test li {
  padding: 0.8rem 0.9rem;
  border-left: 4px solid var(--ochre);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.55);
}

.implementation-test b,
.implementation-test span { display: block; }

.implementation-test span {
  margin-top: 0.15rem;
  color: #69716d;
  font-size: 0.86rem;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 1.8rem;
}

.poster-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(74, 86, 83, 0.15);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 44px rgba(74, 86, 83, 0.11);
}

.poster-grid a,
.poster-grid img { display: block; }

.poster-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 350ms ease;
}

.poster-grid a:hover img,
.poster-grid a:focus-visible img {
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.018);
}

.poster-grid figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 1.15rem;
}

.poster-grid figcaption b { color: #52605c; }
.poster-grid figcaption span { color: #7b6964; font-size: 0.86rem; }

.sources h2 { font-size: 2rem; }

.sources a { text-underline-offset: 0.25em; }

.notice {
  margin-top: 2rem;
  padding: 1.2rem 1.4rem;
  border-radius: 16px;
  background: rgba(135, 148, 155, 0.13);
  font-size: 0.94rem !important;
}

.chapter-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(4rem, 8vw, 7rem);
}

.chapter-next a {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  text-decoration: none;
}

.chapter-next span {
  color: #7b6964;
  font: 750 0.75rem/1.4 system-ui, sans-serif;
  letter-spacing: 0.1em;
}

.chapter-next b { color: #4a5653; }

.cpa-article-comments {
  margin-top: 0;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(238, 233, 223, 0.96), rgba(248, 244, 235, 0.98));
}

.cpa-article-comments__inner { width: min(1120px, calc(100% - 2rem)); }

.cpa-comment-list,
.cpa-comment-form {
  border-color: var(--line);
  background: rgba(255, 253, 249, 0.78);
}

body > footer {
  padding: 1rem 1rem 3rem;
  color: #535b57;
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.85rem;
  text-align: center;
}

html[lang="zh-Hans"] body {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
}

html[lang="en"] body {
  font-family: Georgia, "Times New Roman", serif;
}

html[lang="ja"] body {
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}


.qa-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.qa-grid article {
  grid-column: span 2;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-top: 6px solid var(--sage);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 30px rgba(74, 86, 83, 0.07);
}

.qa-grid article:nth-child(2) { border-top-color: var(--ochre); }
.qa-grid article:nth-child(3) { border-top-color: var(--rose); }
.qa-grid article:nth-child(4) { border-top-color: var(--blue); }
.qa-grid article:nth-child(5) { border-top-color: var(--clay); }
.qa-grid article:nth-child(6) { border-top-color: var(--ochre); }

.qa-no {
  display: block;
  color: #7b6964;
  font: 800 0.8rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.12em;
}

.qa-grid h3 {
  margin: 0.55rem 0 0.65rem;
  color: #4b5855;
  font-size: 1.28rem;
}

.qa-grid p { margin: 0; }

.source-link {
  white-space: nowrap;
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.82em;
  font-weight: 750;
  text-underline-offset: 0.2em;
}

.highlight-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 1rem 0 0;
  color: #666d69;
  font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  font-size: 0.78rem !important;
}

.highlight-key span::before {
  content: "";
  display: inline-block;
  width: 1.2rem;
  height: 0.45rem;
  margin-right: 0.32rem;
  border-radius: 999px;
  background: rgba(246, 213, 76, 0.72);
}

.highlight-key .key-sage::before { background: rgba(139, 194, 137, 0.68); }
.highlight-key .key-rose::before { background: rgba(235, 137, 141, 0.65); }
.highlight-key .key-blue::before { background: rgba(111, 182, 210, 0.64); }

.comparison-table,
.knowledge-table {
  max-width: 100%;
  margin-top: 1.8rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 13px 35px rgba(74, 86, 83, 0.08);
}

.comparison-table table { min-width: 850px; }
.position-table table { min-width: 760px; }
.knowledge-table table { min-width: 900px; }

.comparison-table caption {
  padding: 1.1rem 1.2rem 0.55rem;
  color: #6e5550;
  font-size: 1.12rem;
  font-weight: 700;
  text-align: left;
}

.comparison-table thead th,
.knowledge-table thead th {
  color: #f8f4eb;
  background: rgba(74, 86, 83, 0.9);
}

.comparison-table tbody th {
  width: 22%;
  color: #6e5550;
  background: rgba(185, 148, 142, 0.1);
}

.comparison-table tbody td:nth-child(2) { width: 34%; }
.legal-effect-note {
  max-width: 78ch;
  margin: -0.45rem 0 1rem;
  color: #666d69;
  font-size: 0.9rem;
}
.legal-effect-table tbody th a {
  color: inherit;
  text-underline-offset: 0.2em;
}
.legal-effect-table tbody td { vertical-align: top; }
.position-table tbody td,
.knowledge-table tbody td { width: 33.333%; }

.change-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.change-grid article {
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 30px rgba(74, 86, 83, 0.07);
}

.change-grid h3 { margin: 0.7rem 0 0.45rem; }
.change-grid p { margin: 0; }

.status-badge {
  display: inline-flex;
  padding: 0.16rem 0.55rem;
  border: 1px solid #adc1b2;
  border-radius: 999px;
  color: #40584e;
  background: #dce6dc;
  font: 800 0.75rem/1.4 system-ui, sans-serif;
}

.status-badge.is-claimed {
  border-color: #b7c4ca;
  color: #465b65;
  background: #dce5e9;
}

@media (max-width: 980px) {
  .route-columns { grid-template-columns: 1fr; }
  .route-cell { border-top: 0; border-left: 4px solid transparent; }
  .aid-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .aid-flow li:nth-child(3)::after { display: none; }
  .quick-points,
  .qa-grid { grid-template-columns: 1fr; }
  .qa-grid article,
  .qa-grid article:nth-child(4),
  .qa-grid article:nth-child(5) { grid-column: auto; }
  .accountability-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-points li { min-height: 0; }
}

@media (max-width: 780px) {
  body { background-attachment: scroll; }

  .preview-bar {
    justify-content: flex-start;
    overflow: auto;
    white-space: nowrap;
  }

  .hero { min-height: 680px; }
  .hero-art { background-position: 61% center; }

  .hero-copy {
    width: calc(100% - 2rem);
    padding: 10rem 0 4rem;
  }

  .hero h1 { font-size: 3.6rem; }
  .dek { font-size: 1.08rem; }

  .chapter-nav {
    flex-wrap: nowrap;
    width: calc(100% - 1rem);
    margin-top: -1.4rem;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .cpa-article-engagement {
    width: calc(100% - 1rem);
    margin-top: -1.3rem;
  }

  .paper,
  .cpa-article-engagement + .paper {
    width: calc(100% - 1rem);
    margin: 0.8rem auto 2rem;
    padding: 2.3rem 1.15rem;
    border-radius: 25px;
  }

  .paper h2 { font-size: 2rem; }
  .opening { padding-left: 1rem; }
  .boundary { grid-template-columns: 1fr; }
  .reader-question { grid-template-columns: 1fr; }
  .aid-flow { grid-template-columns: 1fr; }
  .aid-flow li::after,
  .aid-flow li:nth-child(3)::after { display: none; }
  .evidence-grid,
  .questions,
  .change-grid { grid-template-columns: 1fr; }
  .accountability-loop,
  .implementation-test ol,
  .poster-grid,
  .closing-manifest { grid-template-columns: 1fr; }

  .comparison-table,
  .knowledge-table {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .comparison-table table,
  .knowledge-table table {
    min-width: 0;
    background: transparent;
  }

  .comparison-table thead,
  .knowledge-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .comparison-table tbody,
  .knowledge-table tbody {
    display: grid;
    gap: 1rem;
  }

  .comparison-table tbody tr,
  .knowledge-table tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 10px 26px rgba(74, 86, 83, 0.06);
  }

  .comparison-table tbody th {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(185, 148, 142, 0.13);
    white-space: normal;
  }

  .comparison-table tbody td,
  .knowledge-table tbody td {
    display: grid;
    grid-template-columns: minmax(7rem, 34%) minmax(0, 1fr);
    gap: 0.8rem;
    width: 100%;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .comparison-table tbody td::before,
  .knowledge-table tbody td::before {
    content: attr(data-label);
    color: #6e5550;
    font-family: system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .comparison-table tbody td:nth-child(n),
  .knowledge-table tbody td:nth-child(n) { width: 100%; }

  .comparison-table tbody tr:last-child > td,
  .knowledge-table tbody tr:last-child > td { border-bottom: 1px solid var(--line); }

  .comparison-table tbody tr > :last-child,
  .knowledge-table tbody tr > :last-child,
  .comparison-table tbody tr:last-child > :last-child,
  .knowledge-table tbody tr:last-child > :last-child { border-bottom: 0; }

  .timeline::before { left: 8px; }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-left: 2.2rem;
  }

  .timeline li::before { left: 1px; }

  .timeline time { text-align: left; }

  .route {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .route-no { font-size: 1.4rem; }
  .route-heading { align-items: flex-start; }
  .route-heading .pill { flex: 0 0 auto; }

  .chain { grid-template-columns: repeat(2, 1fr); }
  .chain-section { padding: 1.4rem; }
  .chain-section blockquote { font-size: 1.1rem; }
  .chapter-next { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 3.05rem; }
  .route-heading { display: grid; }
  .chain { grid-template-columns: 1fr; }
  .chain li { min-height: 0; }
}

/* Page-scoped GSAP documentary motion. Content stays visible when JavaScript is absent. */
.hero {
  isolation: isolate;
}

.hero-art {
  z-index: 0;
  transform-origin: 68% 46%;
}

.hero-copy {
  z-index: 3;
}

.hero-motion-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-atmosphere,
.hero-warm-light,
.hero-paper-veil,
.hero-door-line,
.hero-clay-moon,
.hero-pond-glint,
.hero-autumn-leaf {
  position: absolute;
  display: block;
  pointer-events: none;
}

.hero-clay-moon {
  top: 9%;
  right: 7%;
  width: clamp(82px, 10vw, 158px);
  aspect-ratio: 1;
  border-radius: 51% 49% 47% 53%;
  opacity: 0.34;
  background: radial-gradient(circle at 35% 31%, #fff4d9, #d9ad79 55%, #b37c61 100%);
  box-shadow: inset 10px 8px 17px rgba(255, 250, 228, 0.32), inset -12px -14px 22px rgba(106, 65, 48, 0.17), 0 0 44px rgba(245, 205, 143, 0.3);
  mix-blend-mode: screen;
}

.hero-pond-glint {
  right: 2%;
  bottom: 5%;
  width: 58%;
  height: 22%;
  opacity: 0.38;
  background: repeating-linear-gradient(176deg, transparent 0 12px, rgba(255, 226, 174, 0.32) 13px 15px, transparent 16px 27px);
  clip-path: polygon(2% 14%, 100% 0, 96% 86%, 18% 100%);
  filter: blur(0.6px);
  transform-origin: right center;
}

.hero-autumn-leaf {
  width: clamp(22px, 3vw, 42px);
  aspect-ratio: 0.82;
  border-radius: 82% 12% 78% 14%;
  opacity: 0.74;
  background: linear-gradient(135deg, #c58264, #a75c4d 55%, #e2aa6d);
  box-shadow: inset 5px 4px 7px rgba(255, 224, 190, 0.25), 0 8px 15px rgba(67, 43, 35, 0.13);
}

.hero-autumn-leaf--one { top: 18%; left: 15%; transform: rotate(28deg); }
.hero-autumn-leaf--two { top: 34%; left: 46%; width: clamp(16px, 2vw, 30px); transform: rotate(78deg); }
.hero-autumn-leaf--three { top: 12%; left: 60%; width: clamp(18px, 2.4vw, 34px); transform: rotate(-26deg); }

.hero-atmosphere {
  inset: -8%;
  opacity: 0.7;
  background:
    radial-gradient(circle at 84% 39%, rgba(244, 207, 141, 0.42), transparent 18%),
    radial-gradient(circle at 63% 62%, rgba(164, 181, 171, 0.2), transparent 32%),
    linear-gradient(112deg, rgba(50, 61, 58, 0.18), transparent 48%);
  mix-blend-mode: screen;
  transform-origin: 82% 40%;
}

.hero-warm-light {
  top: 19%;
  right: 5%;
  width: clamp(190px, 25vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0.64;
  background: radial-gradient(circle, rgba(255, 220, 157, 0.46) 0, rgba(240, 197, 127, 0.14) 38%, transparent 70%);
  filter: blur(7px);
  mix-blend-mode: screen;
  transform-origin: 50% 50%;
}

.hero-paper-veil {
  top: -7%;
  bottom: -7%;
  width: 34%;
  opacity: 0.25;
  filter: drop-shadow(0 0 24px rgba(35, 42, 40, 0.2));
}

.hero-paper-veil--left {
  left: -4%;
  border-right: 1px solid rgba(255, 249, 236, 0.35);
  background: linear-gradient(90deg, rgba(46, 56, 53, 0.68), rgba(114, 126, 119, 0.1));
  clip-path: polygon(0 0, 74% 0, 100% 50%, 74% 100%, 0 100%);
}

.hero-paper-veil--right {
  right: -4%;
  border-left: 1px solid rgba(255, 249, 236, 0.28);
  background: linear-gradient(270deg, rgba(63, 69, 66, 0.56), rgba(155, 143, 130, 0.08));
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 26% 100%, 0 50%);
}

.hero-door-line {
  top: 13%;
  bottom: 9%;
  border: 1px solid rgba(255, 242, 216, 0.42);
  border-bottom-color: rgba(255, 242, 216, 0.16);
  border-radius: 46% 46% 4px 4px;
  opacity: 0.64;
  box-shadow: inset 0 0 28px rgba(255, 230, 185, 0.04), 0 0 22px rgba(41, 47, 45, 0.12);
  transform-origin: center bottom;
}

.hero-door-line--one {
  left: 57%;
  width: clamp(78px, 11vw, 180px);
}

.hero-door-line--two {
  top: 17%;
  bottom: 13%;
  left: 68.5%;
  width: clamp(70px, 9vw, 150px);
}

.hero-door-line--three {
  top: 21%;
  bottom: 17%;
  left: 78.5%;
  width: clamp(62px, 7.5vw, 126px);
}

.motion-controls {
  position: absolute;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.2rem, env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(47, 55, 52, 0.48);
  box-shadow: 0 12px 30px rgba(29, 35, 33, 0.18);
  backdrop-filter: blur(14px);
}

.motion-control {
  min-height: 44px;
  padding: 0.5rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  font: 750 0.76rem/1.2 system-ui, -apple-system, "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.motion-control:hover,
.motion-control:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
}

.motion-control--replay {
  background: rgba(255, 255, 255, 0.09);
}

.story-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2147483646;
  height: 4px;
  overflow: hidden;
  background: rgba(248, 244, 235, 0.28);
  pointer-events: none;
}

.story-progress__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--ochre) 48%, var(--rose));
  box-shadow: 0 0 14px rgba(183, 154, 107, 0.42);
  transform: scaleX(0);
  transform-origin: left center;
}

.paper {
  --paper-shape-y1: 0px;
  --paper-shape-y2: 0px;
}

.paper::before {
  transform: translate3d(0, var(--paper-shape-y1), 0) rotate(18deg);
}

.paper::after {
  transform: translate3d(0, var(--paper-shape-y2), 0) rotate(-25deg);
}

.section-label,
.subsection-label {
  --motion-label-line: 1;
  position: relative;
}

.section-label::after,
.subsection-label::after {
  content: "";
  position: absolute;
  bottom: -0.08rem;
  left: 0;
  width: min(4.8rem, 82%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rose), var(--ochre));
  transform: scaleX(var(--motion-label-line));
  transform-origin: left center;
}

.paper > section > h2 {
  transition: color 500ms ease, text-shadow 500ms ease;
}

.paper > section:not(.closing) {
  isolation: isolate;
}

.section-motion-stage {
  position: absolute;
  top: -1.2rem;
  right: -2rem;
  z-index: -1;
  width: min(260px, 34vw);
  height: 150px;
  overflow: hidden;
  opacity: 0.78;
  border-radius: 62% 38% 56% 44%;
  pointer-events: none;
}

.section-paper-ribbon,
.section-clay-leaf,
.section-light-wash {
  position: absolute;
  display: block;
}

.section-paper-ribbon {
  inset: 18% 3% 12% 16%;
  border: 1px solid rgba(122, 140, 132, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(148, 166, 156, 0.15));
  clip-path: polygon(1% 26%, 34% 5%, 66% 18%, 98% 0, 87% 83%, 48% 72%, 18% 100%);
  filter: drop-shadow(0 14px 15px rgba(70, 79, 75, 0.08));
}

.section-clay-leaf {
  top: 25%;
  right: 18%;
  width: 58px;
  aspect-ratio: 0.78;
  border-radius: 78% 16% 72% 22%;
  background: linear-gradient(145deg, rgba(209, 153, 126, 0.7), rgba(156, 102, 82, 0.58));
  box-shadow: inset 6px 5px 9px rgba(255, 224, 203, 0.24), 0 10px 16px rgba(89, 61, 48, 0.08);
}

.section-light-wash {
  inset: 4% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 217, 168, 0.28), transparent 68%);
  transform-origin: center;
}

.paper > section.is-motion-active > h2 {
  color: #3f4d49;
  text-shadow: 0 12px 30px rgba(74, 86, 83, 0.09);
}

.motion-ready .fluorescent {
  background-repeat: no-repeat;
  background-position: left calc(100% - 0.08em);
  background-size: 0% var(--fluorescent-height);
}

.timeline {
  --timeline-progress: 0;
}

.timeline::after {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 154px;
  z-index: 1;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(var(--ochre), var(--rose));
  box-shadow: 0 0 10px rgba(183, 154, 107, 0.34);
  transform: scaleY(var(--timeline-progress));
  transform-origin: center top;
}

.timeline li,
.timeline li::before {
  z-index: 2;
}

.qa-grid article,
.evidence-grid article,
.questions article,
.change-grid article,
.accountability-loop article,
.poster-grid figure,
.closing-manifest article,
.route,
.chapter-next a {
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

@media (max-width: 780px) {
  .hero-door-line--one { left: 47%; }
  .hero-door-line--two { left: 64%; }
  .hero-door-line--three { left: 79%; }

  .hero-paper-veil { width: 44%; }
  .hero-clay-moon { right: -2%; }
  .hero-pond-glint { width: 72%; }
  .section-motion-stage { right: -0.5rem; width: 42vw; opacity: 0.56; }

  .motion-ready .hero-copy {
    padding-bottom: 7.4rem;
  }

  .motion-controls {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.72rem, env(safe-area-inset-bottom));
    max-width: calc(100% - 1.5rem);
  }

  .motion-control {
    padding-inline: 0.68rem;
    font-size: 0.7rem;
  }

  .story-progress { height: 3px; }
  .timeline::after { left: 8px; }

  .closing {
    min-height: clamp(620px, 78svh, 780px);
    padding: 5.2rem 0.65rem 5.4rem;
    border-radius: 24px;
  }

  .closing-motion-stage {
    inset: 2% -2%;
    border-radius: 22px;
  }

  .closing-paper-frame { inset: 4% 1.5% 5%; }
  .closing-glow { inset: 12% 14% 13%; }
  .closing-paper-fold { width: 19%; }
  .closing-paper-fold--left { left: 7%; }
  .closing-paper-fold--right { right: 7%; }
  .closing-door { width: 48%; }
  .closing-door--left { left: 2%; }
  .closing-door--right { right: 2%; }
  .closing-threshold { right: 8%; left: 8%; }

  .closing-motion-replay {
    margin-top: 1.1rem;
    padding-inline: 0.85rem;
    font-size: 0.72rem;
  }
}

@media print {
  body { background: #fff; }
  body::before,
  .preview-bar,
  .hero-link,
  .hero-motion-stage,
  .section-motion-stage,
  .closing-motion-stage,
  .closing-motion-replay,
  .motion-controls,
  .story-progress { display: none !important; }
  .hero { min-height: 0; }
  .hero-art { opacity: 0.2; }
  .hero-copy { padding: 3rem 0; color: #111; }
  .paper { width: 100%; margin: 0; padding: 2rem 0; border: 0; box-shadow: none; }
  .motion-ready .hero-copy,
  .motion-ready .hero-copy > *,
  .motion-ready .paper,
  .motion-ready .paper > section,
  .motion-ready .paper > section *,
  .motion-printing .hero-copy,
  .motion-printing .paper > section,
  .motion-printing .paper > section * {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    transform: none !important;
    clip-path: none !important;
  }
  .comparison-table,
  .knowledge-table { overflow: visible; }
  .comparison-table table,
  .knowledge-table table {
    min-width: 0;
    table-layout: fixed;
  }
  .qa-grid article,
  .change-grid article,
  .accountability-loop article,
  .poster-grid figure,
  .closing-manifest article,
  .comparison-table tbody tr,
  .knowledge-table tbody tr { break-inside: avoid; }
  .fluorescent {
    background-image: none;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: currentColor;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.15em;
    text-decoration-skip-ink: auto;
  }
}

@media (forced-colors: active) {
  .hero-motion-stage,
  .section-motion-stage,
  .closing-motion-stage,
  .closing-motion-replay,
  .story-progress { display: none; }

  .fluorescent {
    background: transparent;
    text-decoration: underline 3px Highlight;
    text-underline-offset: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-motion-stage,
  .section-motion-stage,
  .closing-motion-stage,
  .closing-motion-replay,
  .motion-controls,
  .story-progress { display: none !important; }

  .paper > section > h2,
  .motion-control {
    transition: none;
  }

  .motion-ready .hero-art,
  .motion-ready .hero-copy,
  .motion-ready .paper,
  .motion-ready .paper > section,
  .motion-ready .paper > section * {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    transform: none !important;
    clip-path: none !important;
  }

  .motion-ready .fluorescent { background-size: 100% var(--fluorescent-height) !important; }
}
