:root {
  --ink: #1d241f;
  --ink-soft: #3d4740;
  --muted: #58625b;
  --paper: #f6f6f2;
  --surface: #fffefa;
  --surface-warm: #f0eee7;
  --line: #d7dbd5;
  --line-strong: #b3bbb4;
  --green: #155e4a;
  --green-dark: #0d4739;
  --orange: #9b4d21;
  --blue: #2d5384;
  --violet: #654d76;
  --olive: #63552d;
  --red: #933d35;
  --gold: #82591e;
  --max-width: 1200px;
  --font-ui:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
  --font-reading:
    "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-ui);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  color: var(--surface);
  background: var(--green);
}

.masthead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 84px;
  margin: 0 auto;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid var(--line-strong);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-note {
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-nav a {
  position: relative;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.top-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 1px;
  left: 12px;
  height: 1px;
  background: transparent;
  content: "";
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--ink);
}

.top-nav a.active::after {
  background: var(--green);
}

.utility-nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.utility-nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

#app {
  width: min(var(--max-width), calc(100% - 48px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 60px 0 96px;
  overflow-x: hidden;
  overflow-x: clip;
}

.section-kicker,
.article-kicker,
.aside-label {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.aside-label {
  display: block;
  color: var(--muted);
}

.loading-state {
  display: grid;
  min-height: 50vh;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.loading-state span::after {
  display: inline-block;
  width: 22px;
  overflow: hidden;
  vertical-align: bottom;
  animation: loading-dots 1.4s steps(4, end) infinite;
  content: "…";
}

@keyframes loading-dots {
  from {
    width: 0;
  }
}

.error-state {
  max-width: 620px;
  padding: 32px 0;
}

.error-state h1 {
  margin-top: 14px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 38px;
  font-weight: 500;
}

.error-state p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.empty-state {
  padding: 56px 0;
  color: var(--muted);
  font-size: 15px;
}

.text-link {
  color: var(--green);
  font-size: 13px;
  font-weight: 650;
}

.text-link:hover {
  color: var(--green-dark);
}

.archive-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.45fr);
  gap: 72px;
  align-items: end;
  padding-bottom: 46px;
}

.archive-title h1 {
  max-width: 780px;
  margin-top: 16px;
  font-family: var(--font-reading);
  font-size: 54px;
  font-weight: 500;
  line-height: 1.08;
}

.archive-title p {
  max-width: 670px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.archive-note {
  padding-top: 16px;
  border-top: 3px solid var(--ink);
}

.archive-note span {
  display: block;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.archive-note strong {
  display: block;
  margin-top: 14px;
  font-family: var(--font-reading);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.55;
}

.archive-note small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.module-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.module-index-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  min-height: 96px;
  padding: 19px 17px 18px;
  align-items: center;
  gap: 9px;
  border-right: 1px solid var(--line);
  transition:
    background 140ms ease,
    color 140ms ease;
}

.module-index-item:last-child {
  border-right: 0;
}

.module-index-item::before {
  position: absolute;
  inset: -1px 15px auto;
  height: 2px;
  background: transparent;
  content: "";
}

.module-index-item:hover {
  background: rgba(255, 255, 255, 0.52);
}

.module-index-item.active::before {
  background: var(--green);
}

.module-number {
  align-self: start;
  padding-top: 2px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.module-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.module-copy small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.module-arrow {
  color: var(--muted);
  font-size: 16px;
  transition: transform 140ms ease;
}

.module-index-item:hover .module-arrow,
.module-index-item.active .module-arrow {
  color: var(--green);
  transform: translateX(2px);
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 58px;
  margin-top: 64px;
}

.library-main,
.article-list,
.article-row-copy {
  min-width: 0;
}

.library-head,
.research-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.library-head h2,
.research-toolbar h2 {
  margin-top: 9px;
  font-family: var(--font-reading);
  font-size: 32px;
  font-weight: 500;
}

.article-count {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.library-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.filter-list {
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-list::-webkit-scrollbar {
  display: none;
}

.filter-button {
  padding: 0 0 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
  color: var(--ink);
  border-bottom-color: var(--green);
}

.search-box {
  display: flex;
  width: 236px;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}

.search-box:focus-within {
  color: var(--green);
  border-color: var(--green);
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #69736c;
}

.article-list {
  display: grid;
}

.article-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 82px;
  gap: 24px;
  padding: 30px 0 28px;
  border-bottom: 1px solid var(--line);
}

.article-row:hover h3 {
  color: var(--green);
}

.article-index {
  padding-top: 3px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.article-category::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pillar-color);
  content: "";
}

.article-row h3 {
  margin-top: 9px;
  font-family: var(--font-reading);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.42;
  transition: color 120ms ease;
}

.article-row p {
  max-width: 760px;
  margin-top: 11px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.article-date {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-style: normal;
}

.article-date span {
  font-size: 11px;
}

.article-date strong {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.library-aside {
  align-self: start;
  padding-top: 18px;
  border-top: 3px solid var(--ink);
}

.library-aside h3 {
  margin-top: 13px;
  font-family: var(--font-reading);
  font-size: 23px;
  font-weight: 500;
}

.library-aside > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.aside-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.aside-stat:first-of-type {
  margin-top: 17px;
}

.aside-stat strong {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
}

.page-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 38px;
}

.page-heading h1 {
  margin-top: 13px;
  font-family: var(--font-reading);
  font-size: 45px;
  font-weight: 500;
  line-height: 1.08;
}

.page-heading > div > p {
  max-width: 700px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.page-heading-aside {
  padding-top: 13px;
  border-top: 3px solid var(--ink);
}

.page-heading-aside span,
.page-heading-aside small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.page-heading-aside strong {
  display: block;
  margin: 10px 0 9px;
  font-family: var(--font-reading);
  font-size: 33px;
  font-weight: 500;
  line-height: 1.1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.asset-subnav {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.asset-subnav a {
  position: relative;
  padding: 0 1px 11px;
  color: var(--muted);
  font-size: 13px;
}

.asset-subnav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.asset-subnav a:hover,
.asset-subnav a.active {
  color: var(--ink);
}

.asset-subnav a.active::after {
  background: var(--green);
}

.latest-section {
  margin-top: 34px;
}

.latest-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 17px;
  border-bottom: 2px solid var(--ink);
}

.latest-section-head h2 {
  margin-top: 8px;
  font-family: var(--font-reading);
  font-size: 30px;
  font-weight: 500;
}

.latest-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.latest-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.latest-table th {
  padding: 12px 10px 10px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: left;
}

.latest-table th:nth-child(1) {
  width: 180px;
}

.latest-table th:nth-child(2) {
  width: auto;
}

.latest-table th:nth-child(3) {
  width: 104px;
}

.latest-table th:nth-child(4) {
  width: 70px;
  text-align: right;
}

.latest-table td {
  padding: 18px 10px 18px 0;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.latest-table td:last-child {
  padding-right: 0;
  text-align: right;
}

.latest-asset {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.latest-asset strong,
.latest-asset small {
  display: block;
}

.latest-asset strong {
  font-size: 13px;
  font-weight: 650;
}

.latest-asset small {
  margin-top: 3px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.latest-title {
  display: block;
  font-family: var(--font-reading);
  font-size: 20px;
  line-height: 1.45;
}

.latest-title:hover {
  color: var(--green);
}

.latest-table td:nth-child(2) > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.latest-table time {
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.latest-read {
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}

.latest-empty {
  margin-top: 0;
}

.asset-workbench {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  margin-top: 48px;
}

.asset-rail {
  align-self: start;
  padding-top: 15px;
  border-top: 3px solid var(--ink);
}

.asset-rail h2,
.guide-sidebar h2 {
  margin-top: 10px;
  font-family: var(--font-reading);
  font-size: 24px;
  font-weight: 500;
}

.asset-nav {
  margin-top: 16px;
}

.asset-nav-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.asset-nav-item:hover strong,
.asset-nav-item.active strong {
  color: var(--green);
}

.asset-nav-item.active {
  padding-left: 9px;
  border-left: 2px solid var(--green);
}

.asset-code {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--asset-accent);
  border: 1px solid color-mix(in srgb, var(--asset-accent) 42%, transparent);
  border-radius: 2px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.asset-nav-item strong,
.asset-nav-item small {
  display: block;
}

.asset-nav-item strong {
  font-size: 13px;
  font-weight: 650;
}

.asset-nav-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.asset-nav-arrow {
  color: var(--muted);
  font-size: 13px;
}

.asset-detail {
  min-width: 0;
}

.asset-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.42fr);
  gap: 48px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--ink);
}

.asset-identity {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.asset-monogram {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--asset-accent);
  border: 1px solid color-mix(in srgb, var(--asset-accent) 45%, var(--line));
  font-family: Georgia, serif;
  font-size: 20px;
}

.asset-identity h2 {
  margin-top: 8px;
  font-family: var(--font-reading);
  font-size: 38px;
  font-weight: 500;
}

.asset-identity p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.asset-meta-grid {
  display: grid;
  align-content: start;
}

.asset-meta-grid > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.asset-meta-grid span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.asset-meta-grid strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.asset-method-note {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.asset-method-note span {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.asset-method-note p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.market-ledger-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 38px;
  gap: 18px;
  padding: 15px 0 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.market-entry {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 38px;
  gap: 18px;
  padding: 24px 0;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.market-entry:hover h3 {
  color: var(--green);
}

.market-date {
  font-style: normal;
}

.market-date strong,
.market-date span {
  display: block;
}

.market-date strong {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 500;
}

.market-date span {
  margin-top: 3px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.market-label {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.market-copy h3 {
  margin-top: 8px;
  font-family: var(--font-reading);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
}

.market-copy p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.market-arrow {
  padding-top: 20px;
  color: var(--muted);
  font-size: 15px;
  text-align: right;
}

.market-entry:hover .market-arrow {
  color: var(--green);
}

.asset-empty {
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.empty-code {
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.asset-empty h2 {
  margin-top: 12px;
  font-family: var(--font-reading);
  font-size: 27px;
  font-weight: 500;
}

.asset-empty p {
  max-width: 480px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.guide-workbench {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr) 188px;
  gap: 38px;
  margin-top: 48px;
  align-items: start;
}

.guide-sidebar {
  padding-top: 15px;
  border-top: 3px solid var(--ink);
}

.guide-tree-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.guide-tree-list .guide-tree-list {
  margin-top: 2px;
}

.guide-tree-link {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 7px;
  padding: 7px 0 7px calc(var(--depth) * 10px);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.guide-tree-link:hover {
  color: var(--ink);
}

.guide-tree-link.active {
  color: var(--green);
  font-weight: 700;
}

.tree-mark {
  padding-top: 1px;
  color: var(--line-strong);
  font-size: 9px;
}

.guide-tree-link.active .tree-mark {
  color: var(--green);
}

.in-path > .guide-tree-link {
  color: var(--ink-soft);
}

.wiki-document {
  min-width: 0;
  padding-top: 2px;
}

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.guide-breadcrumb a:hover {
  color: var(--green);
}

.wiki-header {
  margin-top: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.wiki-header h1 {
  margin-top: 12px;
  font-family: var(--font-reading);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.16;
}

.wiki-header p {
  margin-top: 13px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.wiki-content {
  padding-top: 30px;
  color: var(--ink-soft);
  font-family: var(--font-reading);
  font-size: 18px;
  line-height: 2;
  overflow-wrap: break-word;
}

.wiki-content h1 {
  display: none;
}

.wiki-content h2,
.wiki-content h3 {
  color: var(--ink);
  line-height: 1.4;
}

.wiki-content h2 {
  margin: 2em 0 0.7em;
  font-size: 28px;
  font-weight: 600;
}

.wiki-content h3 {
  margin: 1.7em 0 0.6em;
  font-size: 21px;
  font-weight: 650;
}

.wiki-content p {
  margin: 1.1em 0;
}

.wiki-content ul,
.wiki-content ol {
  margin: 1.15em 0;
  padding-left: 1.75em;
}

.wiki-content li {
  margin: 0.5em 0;
}

.wiki-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.wiki-link::after {
  margin-left: 3px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7em;
  text-decoration: none;
  content: "↗";
}

.wiki-content blockquote {
  margin: 1.8em 0;
  padding: 14px 18px;
  color: var(--ink-soft);
  background: rgba(21, 94, 74, 0.055);
  border-left: 3px solid var(--green);
}

.wiki-content code {
  padding: 2px 5px;
  background: #e9ece7;
  border-radius: 2px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82em;
}

.guide-aside {
  position: sticky;
  top: 24px;
  padding-top: 2px;
}

.guide-home-link {
  display: block;
  padding: 10px 0;
  color: var(--green);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
}

.guide-aside-block {
  margin-top: 24px;
}

.guide-related-list {
  margin-top: 10px;
}

.guide-related-list a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
}

.guide-related-list a:hover {
  color: var(--green);
}

.guide-related-list strong {
  color: var(--muted);
  font-weight: 400;
}

.guide-aside-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.guide-meta dl {
  margin: 10px 0 0;
}

.guide-meta dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.guide-meta dt {
  color: var(--muted);
}

.guide-meta dd {
  margin: 0;
  text-align: right;
}

.research-library {
  margin-top: 48px;
}

.research-filters {
  display: flex;
  gap: 5px;
}

.research-filters button {
  padding: 8px 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 13px;
  cursor: pointer;
}

.research-filters button span {
  margin-left: 3px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.research-filters button:hover,
.research-filters button.active {
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
}

.research-filters button.active span {
  color: #c8d0c9;
}

.research-list {
  margin-top: 2px;
}

.research-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 54px;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.research-item.featured {
  background: linear-gradient(90deg, rgba(23, 107, 85, 0.055), transparent 52%);
}

.research-kind {
  padding-top: 2px;
}

.research-kind > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--green);
  border: 1px solid var(--line-strong);
  font-family: Georgia, serif;
  font-size: 13px;
}

.research-kind small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.research-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.research-meta span:last-child {
  color: var(--orange);
}

.research-copy h2 {
  max-width: 760px;
  margin-top: 9px;
  font-family: var(--font-reading);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.35;
}

.research-authors {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 13px;
}

.research-summary {
  max-width: 780px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.research-tags span {
  padding: 4px 7px;
  color: var(--ink-soft);
  background: rgba(23, 32, 25, 0.045);
  border-radius: 2px;
  font-size: 11px;
}

.research-open {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: space-between;
  padding: 2px 0;
  color: var(--muted);
}

.research-open span {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.research-open strong {
  color: var(--green);
  font-size: 16px;
  font-weight: 400;
}

.research-open:hover strong {
  transform: translate(2px, -2px);
}

.article-shell {
  max-width: 900px;
  margin: 0 auto;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.article-back:hover {
  color: var(--green);
}

.article-header {
  max-width: 820px;
  margin: 46px auto 0;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line-strong);
}

.article-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.article-asset-chip {
  padding: 5px 9px;
  color: var(--green);
  border: 1px solid rgba(23, 107, 85, 0.28);
  border-radius: 2px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.article-asset-chip:hover {
  color: var(--surface);
  background: var(--green);
}

.article-header h1 {
  margin-top: 17px;
  font-family: var(--font-reading);
  font-size: 50px;
  font-weight: 500;
  line-height: 1.22;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.article-content {
  max-width: 740px;
  margin: 50px auto 0;
  padding: 0 4px;
  color: var(--ink-soft);
  font-family: var(--font-reading);
  font-size: 19px;
  line-height: 2;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  color: var(--ink);
  line-height: 1.35;
}

.article-content h1 {
  margin: 2.15em 0 0.8em;
  font-size: 34px;
  font-weight: 600;
}

.article-content h2 {
  margin: 2.05em 0 0.75em;
  font-size: 29px;
  font-weight: 600;
}

.article-content h3 {
  margin: 1.85em 0 0.65em;
  font-size: 23px;
  font-weight: 650;
}

.article-content p {
  margin: 1.08em 0;
}

.article-content ul,
.article-content ol {
  margin: 1.2em 0;
  padding-left: 1.8em;
}

.article-content li {
  margin: 0.55em 0;
  padding-left: 0.2em;
}

.article-content li::marker {
  color: var(--green);
  font-weight: 700;
}

.article-content blockquote {
  margin: 1.9em 0;
  padding: 16px 20px;
  color: var(--ink-soft);
  background: rgba(21, 94, 74, 0.06);
  border-left: 3px solid var(--green);
}

.article-content hr {
  margin: 3em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-content a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-content strong {
  color: var(--ink);
  font-weight: 700;
}

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
}

.article-content code {
  padding: 3px 6px;
  background: #e7ebe6;
  border-radius: 2px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82em;
}

.article-content pre {
  overflow-x: auto;
  padding: 18px;
  background: #202720;
  border-radius: 3px;
}

.article-content pre code {
  padding: 0;
  color: #eef2ec;
  background: transparent;
}

.article-related {
  max-width: 740px;
  margin: 64px auto 0;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.article-related h2 {
  margin-top: 10px;
  font-family: var(--font-reading);
  font-size: 25px;
  font-weight: 500;
}

.article-related > a {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 16px;
  gap: 14px;
  padding: 15px 0;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.article-related > a span {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.article-related > a strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.article-related > a i {
  color: var(--muted);
  font-style: normal;
}

.article-related > a:hover strong,
.article-related > a:hover i {
  color: var(--green);
}

.article-footer {
  display: flex;
  max-width: 740px;
  margin: 54px auto 0;
  padding-top: 22px;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.article-footer a {
  color: var(--green);
  font-size: 14px;
}

.site-footer {
  display: flex;
  width: min(var(--max-width), calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line-strong);
  font-size: 12px;
}

.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 13px;
}

.footer-brand span,
.footer-disclaimer {
  color: var(--muted);
}

.footer-links a {
  color: var(--ink-soft);
}

@media (max-width: 1060px) {
  .masthead {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .utility-nav {
    display: none;
  }

  .top-nav {
    justify-content: flex-end;
  }

  .guide-workbench {
    grid-template-columns: 204px minmax(0, 1fr);
  }

  .guide-aside {
    display: none;
  }

  .asset-header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .asset-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .asset-meta-grid > div {
    display: block;
  }

  .asset-meta-grid strong {
    display: block;
    margin-top: 6px;
    text-align: left;
  }
}

@media (max-width: 820px) {
  #app,
  .masthead,
  .site-footer {
    width: calc(100% - 36px);
  }

  #app {
    padding-top: 42px;
  }

  .archive-intro,
  .page-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .archive-title h1 {
    font-size: 46px;
  }

  .archive-note,
  .page-heading-aside {
    max-width: 320px;
  }

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

  .module-index-item:nth-child(2) {
    border-right: 0;
  }

  .module-index-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .library-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .library-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }

  .library-aside .aside-label,
  .library-aside h3,
  .library-aside > p {
    grid-column: 1 / -1;
  }

  .asset-workbench {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .asset-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .asset-rail h2 {
    font-size: 21px;
  }

  .guide-workbench {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .guide-sidebar {
    position: relative;
  }

  .guide-tree-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
  }

  .guide-tree-list .guide-tree-list {
    grid-column: 1 / -1;
    padding-left: 12px;
  }

  .research-item {
    grid-template-columns: 54px minmax(0, 1fr) 36px;
    gap: 16px;
  }
}

@media (max-width: 620px) {
  #app,
  .masthead,
  .site-footer {
    width: calc(100% - 28px);
  }

  .masthead {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
  }

  .brand-note {
    display: none;
  }

  .brand-name {
    font-size: 19px;
  }

  .top-nav {
    gap: 1px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav a {
    padding: 7px 7px;
    font-size: 12px;
  }

  .top-nav a::after {
    right: 7px;
    left: 7px;
  }

  #app {
    padding: 32px 0 58px;
  }

  .archive-title h1,
  .page-heading h1 {
    font-size: 38px;
  }

  .archive-title p,
  .page-heading > div > p {
    font-size: 15px;
  }

  .module-index {
    grid-template-columns: 1fr;
  }

  .module-index-item,
  .module-index-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .module-index-item:last-child {
    border-bottom: 0;
  }

  .library-layout,
  .asset-workbench,
  .research-library {
    margin-top: 38px;
  }

  .library-head,
  .research-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

  .article-row {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
  }

  .article-row h3 {
    font-size: 22px;
  }

  .article-date {
    display: none;
  }

  .library-aside {
    grid-template-columns: 1fr;
  }

  .library-aside .aside-label,
  .library-aside h3,
  .library-aside > p {
    grid-column: auto;
  }

  .asset-nav {
    grid-template-columns: 1fr;
  }

  .asset-identity {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .asset-monogram {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .asset-identity h2 {
    font-size: 31px;
  }

  .asset-meta-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .asset-meta-grid > div {
    display: flex;
  }

  .asset-meta-grid strong {
    display: inline;
    margin-top: 0;
  }

  .asset-method-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .market-ledger-head {
    grid-template-columns: 66px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .market-entry {
    grid-template-columns: 66px minmax(0, 1fr) 20px;
    gap: 10px;
  }

  .market-date strong {
    font-size: 16px;
  }

  .market-copy h3 {
    font-size: 20px;
  }

  .market-arrow {
    padding-top: 15px;
  }

  .guide-tree-list {
    grid-template-columns: 1fr;
  }

  .wiki-header {
    margin-top: 26px;
  }

  .wiki-header h1 {
    font-size: 32px;
  }

  .wiki-content {
    font-size: 17px;
    line-height: 1.95;
  }

  .wiki-content h2 {
    font-size: 24px;
  }

  .research-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .research-item {
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 11px;
  }

  .research-kind > span {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }

  .research-copy h2 {
    font-size: 22px;
  }

  .research-meta {
    gap: 8px;
  }

  .article-header {
    margin-top: 32px;
  }

  .article-header h1 {
    font-size: 34px;
  }

  .article-content {
    margin-top: 34px;
    padding: 0;
    font-size: 18px;
    line-height: 1.95;
  }

  .article-content h1 {
    font-size: 29px;
  }

  .article-content h2 {
    font-size: 25px;
  }

  .article-related > a {
    grid-template-columns: 65px minmax(0, 1fr) 12px;
    gap: 8px;
  }

  .article-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 18px 0;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

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