:root {
  --bg: #f7f3e9;
  --paper: #fffdf6;
  --paper-solid: #fff;
  --paper-warm: #fbf6ea;
  --ink: #2c3531;
  --ink-soft: #4a5751;
  --muted: #8a8678;
  --line: #ece3d0;
  --dash: #ddd0b5;
  --green: #6fa67c;
  --green-deep: #4f8862;
  --green-soft: #d8e8d2;
  --green-leaf: #8ab98d;
  --yellow: #f0bd4d;
  --yellow-soft: #f7d97e;
  --orange: #ec9b5b;
  --orange-soft: #f4c79a;
  --pink-soft: #f1c8c1;
  --blue: #6fa9d9;
  --violet: #9c8feb;
  --tape-yellow: rgba(238,201,110,0.72);
  --tape-pink: rgba(232,168,158,0.62);
  --tape-green: rgba(143,192,152,0.62);
  --tape-blue: rgba(111,169,217,0.58);
  --shadow: 0 18px 38px rgba(82,64,38,0.13);
  --small-shadow: 0 10px 22px rgba(82,64,38,0.1);
  --soft-shadow: 0 4px 14px rgba(82,64,38,0.08);
  color-scheme: light;
}
.dark-mode {
  --bg: #1f2427;
  --paper: #2b3132;
  --paper-solid: #313737;
  --paper-warm: #2e3434;
  --ink: #f1ebde;
  --ink-soft: #d8d2c5;
  --muted: #a39d8e;
  --line: #4f4a40;
  --dash: #6a6258;
  --green: #82bf90;
  --green-deep: #6ba87c;
  --green-soft: #354a3a;
  --green-leaf: #94c89a;
  --yellow: #e8c065;
  --yellow-soft: #c6a04f;
  --orange: #e09b66;
  --orange-soft: #a87a4d;
  --pink-soft: #a8746a;
  --tape-yellow: rgba(214,168,80,0.5);
  --tape-pink: rgba(196,130,118,0.45);
  --tape-green: rgba(120,168,130,0.5);
  --tape-blue: rgba(111,169,217,0.42);
  --shadow: 0 18px 45px rgba(0,0,0,0.35);
  --small-shadow: 0 10px 22px rgba(0,0,0,0.26);
  --soft-shadow: 0 4px 14px rgba(0,0,0,0.2);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  background: var(--bg);
}
.dark-mode body {
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
}
button {
  font-family: inherit;
}
.page-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image: linear-gradient(rgba(70,50,30,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(70,50,30,0.025) 1px, transparent 1px);
  background-size: 18px 18px, 22px 22px;
  mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 92%, transparent);
}
.site-header,
.paper-shell,
.site-footer {
  width: min(94vw, 1300px);
  margin-inline: auto;
}
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  z-index: 19;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 60%, transparent 100%);
  pointer-events: none;
}
.dark-mode body::before {
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 60%, transparent 100%);
}
.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  margin-top: 28px;
  padding: 12px 24px;
  border: 2px dashed var(--dash);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--small-shadow);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--green-deep);
  background: var(--green-soft);
}
.brand-mark .lucide {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}
.dark-mode .brand-mark {
  color: var(--green-leaf);
  background: rgba(130,191,144,0.18);
}
.brand-text {
  color: var(--ink);
}
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 60px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-card {
  display: none;
}
.icon-button.drawer-close {
  display: none;
}
.site-nav a .lucide {
  width: 15px;
  height: 15px;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--green-deep);
  background: var(--green-soft);
}
.dark-mode .site-nav a.active,
.dark-mode .site-nav a:hover {
  color: var(--green-leaf);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px dashed var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--paper-warm);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.icon-button:hover {
  color: var(--green-deep);
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-1px);
}
.dark-mode .icon-button {
  background: rgba(255,255,255,0.04);
}
.lucide {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 1.8;
  vertical-align: middle;
}
.icon-button .lucide {
  width: 17px;
  height: 17px;
}
.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px dashed var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--paper-warm);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  color: var(--green-deep);
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-1px);
}
.theme-toggle .theme-icon {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
}
.theme-toggle .theme-icon .lucide {
  width: 17px;
  height: 17px;
}
.theme-toggle .theme-icon--moon {
  display: none;
}
.dark-mode .theme-toggle {
  color: var(--ink-soft);
  background: rgba(255,255,255,0.04);
}
.dark-mode .theme-toggle:hover {
  color: var(--green-leaf);
  border-color: var(--green);
  background: rgba(130,191,144,0.12);
}
.dark-mode .theme-toggle .theme-icon--sun {
  display: none;
}
.dark-mode .theme-toggle .theme-icon--moon {
  display: inline-grid;
}
.tape {
  position: absolute;
  z-index: 4;
  width: 86px;
  height: 22px;
  background: var(--tape-yellow);
  filter: saturate(0.88);
}
.tape--top-left {
  top: -10px;
  left: 24px;
  transform: rotate(-6deg);
}
.tape--top-right {
  top: -10px;
  right: 32px;
  width: 70px;
  background: var(--tape-pink);
  transform: rotate(7deg);
}
.tape--center {
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--tape-green);
}
.tape-disabled .tape,
.tape-disabled .categories-card::before,
.tape-disabled .tag-card::before,
.tape-disabled .toc-card::before {
  display: none;
}
.paper-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 28px;
  margin-top: 28px;
  align-items: start;
}
.paper-shell:not(.paper-shell--article) > .paper-sidebar--left,
.paper-shell:not(.paper-shell--article) > .paper-sidebar--right {
  position: sticky;
  top: 110px;
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.paper-shell:not(.paper-shell--article) > .paper-sidebar--left::-webkit-scrollbar,
.paper-shell:not(.paper-shell--article) > .paper-sidebar--right::-webkit-scrollbar {
  width: 6px;
}
.paper-shell:not(.paper-shell--article) > .paper-sidebar--left::-webkit-scrollbar-thumb,
.paper-shell:not(.paper-shell--article) > .paper-sidebar--right::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
.paper-shell:not(.paper-shell--article) > .paper-sidebar--left::-webkit-scrollbar-track,
.paper-shell:not(.paper-shell--article) > .paper-sidebar--right::-webkit-scrollbar-track {
  background: transparent;
}
.paper-shell--article {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: stretch;
}
.paper-shell--article .paper-sidebar {
  align-content: start;
  height: 100%;
}
.paper-main {
  min-width: 0;
  display: grid;
  gap: 24px;
}
.paper-sidebar {
  display: grid;
  gap: 22px;
}
.paper-shell--article .paper-sidebar .toc-card {
  position: sticky;
  top: 110px;
  max-height: calc(100dvh - 130px);
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.paper-shell--article .paper-sidebar .toc-card > h2 {
  flex-shrink: 0;
}
.paper-shell--article .paper-sidebar .toc-content {
  flex: 1;
  min-height: 0;
  max-height: none;
}
.side-card,
.welcome-card,
.featured-paper,
.post-card,
.article-paper,
.archive-paper,
.taxonomy-paper,
.empty-paper {
  position: relative;
  border: 2px dashed var(--dash);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--small-shadow);
}
.side-card {
  padding: 20px 22px;
}
.side-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}
.side-card h2 > .lucide {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}
.dark-mode .side-card h2 > .lucide {
  color: var(--green-leaf);
}
.green-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 24px;
  padding: 18px 0 0;
  background-image: linear-gradient(to right, var(--dash) 60%, transparent 60%);
  background-size: 18px 1px;
  background-repeat: repeat-x;
  background-position: top left;
  color: var(--muted);
  font-size: 12px;
}
.site-footer__left {
  text-align: left;
}
.site-footer__right {
  text-align: right;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 4px 4px;
}
.section-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.section-head h2 .lucide {
  width: 16px;
  height: 16px;
  color: var(--green);
}
.dark-mode .section-head h2 .lucide {
  color: var(--green-leaf);
}
.section-head a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.15s ease;
}
.section-head a:hover {
  color: var(--green-deep);
}
.paper-thumb {
  position: relative;
  width: 100%;
  height: 110px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #d5e7d4 0%, #ecf3d8 100%);
}
.paper-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  transition: transform 0.45s ease;
}
.paper-thumb--cover {
  background: var(--paper-warm);
}
.post-card:hover .paper-thumb__img,
.featured-paper:hover .paper-thumb__img {
  transform: scale(1.04);
}
.paper-thumb--cover::after {
  display: none;
}
.paper-thumb--cover .sun,
.paper-thumb--cover .cloud,
.paper-thumb--cover .mountain,
.paper-thumb--cover .screen,
.paper-thumb--cover .camera {
  display: none;
}
.paper-thumb--large {
  height: 100%;
  min-height: 160px;
  border-radius: 10px;
}
.paper-thumb--small {
  width: 76px;
  min-width: 76px;
  height: 56px;
  border-radius: 8px;
}
.paper-thumb::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 0 50%, rgba(219,201,176,0.55) 51% 100%);
  box-shadow: -3px -3px 8px rgba(75,60,42,0.1);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.paper-thumb--small::after {
  width: 22px;
  height: 22px;
}
.sun {
  position: absolute;
  top: 18px;
  left: 22%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 2px 0 rgba(180,130,40,0.12);
}
.paper-thumb--small .sun {
  top: 10px;
  width: 16px;
  height: 16px;
}
.mountain {
  position: absolute;
  bottom: -1px;
  width: 56%;
  height: 50%;
  background: linear-gradient(135deg, rgba(95,158,110,0.95), rgba(125,188,132,0.75));
  clip-path: polygon(0 100%, 52% 0, 100% 100%);
}
.mountain-a {
  left: -8%;
}
.mountain-b {
  right: 0;
  height: 62%;
}
.mountain-c {
  left: 26%;
  bottom: -8%;
  height: 36%;
  opacity: 0.65;
}
.cloud {
  position: absolute;
  width: 46px;
  height: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before {
  width: 20px;
  height: 20px;
  left: 8px;
  bottom: 6px;
}
.cloud::after {
  width: 28px;
  height: 28px;
  right: 6px;
  bottom: 4px;
}
.cloud-a {
  right: 10%;
  top: 30px;
}
.cloud-b {
  left: 8%;
  top: 56px;
  transform: scale(0.7);
}
.paper-thumb-1 {
  background: linear-gradient(180deg, #ffd8af, #f7b276);
}
.paper-thumb-1 .mountain,
.paper-thumb-1 .cloud,
.paper-thumb-1 .sun {
  display: none;
}
.screen {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 50px;
  padding: 10px 12px;
  border-radius: 4px;
  background: #273942;
  transform: translate(-50%, -55%);
  box-shadow: 0 14px 0 -10px #526e78, 0 18px 0 -14px #263942;
}
.screen i {
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 5px;
  border-radius: 99px;
  background: #efbe64;
}
.screen i:nth-child(2) {
  width: 30px;
  background: #76b986;
}
.screen i:nth-child(3) {
  width: 48px;
  background: #6fb1df;
}
.paper-thumb-2 {
  background: linear-gradient(180deg, #d8efd8, #a9d5af);
}
.paper-thumb-2 .mountain,
.paper-thumb-2 .cloud,
.paper-thumb-2 .sun {
  display: none;
}
.camera {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 50px;
  border-radius: 10px;
  background: #56755f;
  transform: translate(-50%, -48%);
  box-shadow: inset 0 -10px 0 rgba(30,55,44,0.22);
}
.camera::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -10px;
  width: 32px;
  height: 14px;
  border-radius: 6px 6px 0 0;
  background: #56755f;
}
.camera i {
  position: absolute;
  left: 24px;
  top: 10px;
  width: 28px;
  height: 28px;
  border: 6px solid #263a36;
  border-radius: 50%;
  background: #8eb99a;
}
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.pager-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 2px dashed var(--dash);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  background: var(--paper);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pager-link .lucide {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
a.pager-link:hover {
  color: var(--green-deep);
  background: var(--green-soft);
  border-color: var(--green);
  transform: translateY(-1px);
}
a.pager-link--prev:hover .lucide {
  transform: translateX(-2px);
}
a.pager-link--next:hover .lucide {
  transform: translateX(2px);
}
.pager-link.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: var(--muted);
}
.pager-pages {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.section-meta {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.welcome-card {
  padding: 18px;
  overflow: hidden;
}
.welcome-thumb {
  position: relative;
  height: 110px;
  margin-bottom: 18px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #d5e7d4 0%, #ecf3d8 100%);
}
.welcome-thumb .sun {
  top: 16px;
  left: 26%;
  width: 28px;
  height: 28px;
}
.welcome-thumb .mountain {
  bottom: -2px;
}
.welcome-thumb .mountain-a {
  left: -8%;
  width: 70%;
  height: 70%;
}
.welcome-thumb .mountain-b {
  right: -6%;
  width: 60%;
  height: 55%;
}
.welcome-thumb .cloud {
  transform: scale(0.55);
}
.welcome-thumb .cloud-a {
  right: 12%;
  top: 14px;
}
.welcome-thumb .cloud-b {
  left: 8%;
  top: 36px;
}
.welcome-card .hello {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0 4px;
  color: var(--green-deep);
  font-weight: 700;
  font-size: 13px;
}
.welcome-card h1 {
  position: relative;
  display: inline;
  margin: 0;
  padding: 0 4px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
}
.welcome-card h1::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 1px;
  z-index: -1;
  height: 8px;
  background: rgba(241,193,84,0.4);
}
.welcome-card .welcome-text {
  margin: 12px 4px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.welcome-cta,
.read-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 0 4px 0 auto;
  padding: 8px 18px;
  border: 2px dashed var(--dash);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  background: var(--paper);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.welcome-cta:hover,
.read-more:hover {
  color: var(--green-deep);
  background: var(--green-soft);
  border-color: var(--green);
  transform: translateY(-1px);
}
.welcome-cta .lucide,
.read-more .lucide {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.welcome-cta:hover .lucide,
.read-more:hover .lucide {
  transform: translateX(2px);
}
.categories-card::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 18px;
  z-index: 2;
  width: 70px;
  height: 20px;
  background: var(--tape-blue);
  filter: saturate(0.9);
  transform: rotate(8deg);
}
.categories-card a {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.categories-card a:last-child {
  border-bottom: 0;
}
.categories-card strong {
  font-weight: 600;
}
.categories-card em,
.archive-item em,
.taxonomy-card em,
.related-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}
.dot-0 {
  background: var(--green);
}
.dot-1 {
  background: var(--blue);
}
.dot-2 {
  background: var(--orange);
}
.dot-3 {
  background: var(--violet);
}
.toc-card {
  padding: 18px 18px 14px;
}
.toc-card::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 18px;
  z-index: 4;
  width: 70px;
  height: 20px;
  background: var(--tape-green);
  filter: saturate(0.9);
  transform: rotate(7deg);
}
.toc-card > h2 {
  margin-bottom: 14px;
}
.toc-content {
  position: relative;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-left: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.toc-content::-webkit-scrollbar {
  width: 6px;
}
.toc-content::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
.toc-content::-webkit-scrollbar-track {
  background: transparent;
}
.toc-content ol,
.toc-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  counter-reset: toc-item;
}
.toc-content li {
  position: relative;
  margin: 0;
  counter-increment: toc-item;
}
.toc-content a {
  position: relative;
  display: block;
  padding: 5px 8px 5px 10px;
  margin: 2px 0;
  border-radius: 6px;
  color: var(--muted);
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, padding-left 0.18s ease;
}
.toc-content a:hover {
  color: var(--ink);
  background: var(--paper-warm);
}
.toc-content a.is-active {
  color: var(--green-deep);
  background: var(--green-soft);
  font-weight: 600;
}
.dark-mode .toc-content a.is-active {
  color: var(--green-leaf);
}
.toc-content a.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 999px;
  background: var(--green);
}
.dark-mode .toc-content a.is-active::before {
  background: var(--green-leaf);
}
.toc-content ol ol,
.toc-content ul ul {
  padding-left: 14px;
  margin-top: 2px;
  margin-bottom: 2px;
  font-size: 12.5px;
}
.toc-content ol ol a,
.toc-content ul ul a {
  color: var(--muted);
  padding: 4px 8px 4px 10px;
}
.toc-content ol ol ol,
.toc-content ul ul ul {
  font-size: 12px;
}
.featured-carousel {
  position: relative;
  margin-bottom: 16px;
}
.featured-carousel.has-multiple {
  margin-bottom: 28px;
}
.featured-track {
  position: relative;
  display: grid;
}
.featured-track > .featured-paper {
  grid-area: 1/1;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1), visibility 0s linear 0.4s;
  pointer-events: none;
}
.featured-track > .featured-paper.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1), visibility 0s linear 0s;
  pointer-events: auto;
}
.featured-carousel .carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px dashed var(--dash);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--paper);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  box-shadow: var(--soft-shadow);
}
.featured-carousel .carousel-arrow:hover {
  color: var(--green-deep);
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-50%) scale(1.05);
}
.featured-carousel .carousel-prev {
  left: -16px;
}
.featured-carousel .carousel-next {
  right: -16px;
}
.featured-carousel .carousel-arrow .lucide {
  width: 16px;
  height: 16px;
}
.featured-carousel .carousel-dots {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 8px;
  z-index: 4;
}
.featured-carousel .carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dash);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, width 0.3s ease;
}
.featured-carousel .carousel-dot:hover {
  background: var(--green);
}
.featured-carousel .carousel-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--green);
}
.featured-paper {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(170px, 0.9fr);
  gap: 24px;
  align-items: stretch;
  padding: 26px 28px;
  overflow: visible;
}
.featured-paper > .tape {
  z-index: 5;
}
.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.label-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 24px;
  padding: 0 12px;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #7cba8c, #5a9970);
  box-shadow: 0 4px 10px rgba(89,151,103,0.24);
}
.featured-paper h1 {
  margin: 14px 0 10px;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0;
}
.featured-paper h1 a {
  background-image: linear-gradient(180deg, transparent 62%, rgba(241,193,84,0.45) 62%);
}
.featured-paper p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}
.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-tags {
  flex-wrap: wrap;
  gap: 6px 8px;
}
.meta-tag-link,
.meta-cat-link {
  color: inherit;
  transition: color 0.15s ease;
}
.meta-tag-link:hover,
.meta-cat-link:hover {
  color: var(--green-deep);
}
.dark-mode .meta-tag-link:hover,
.dark-mode .meta-cat-link:hover {
  color: var(--green-leaf);
}
.meta-line .lucide {
  display: block;
  width: 13px;
  height: 13px;
  opacity: 0.75;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.meta-line .lucide-folder,
.meta-line .lucide-tag {
  transform: translateY(1px);
}
.read-more {
  margin-left: auto;
  font-size: 12px;
}
.featured-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 160px;
}
.featured-thumb .paper-thumb,
.featured-thumb .paper-thumb--large {
  width: 100%;
  height: 100%;
  min-height: 160px;
  border-radius: 10px;
}
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.post-card {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-radius: 14px;
  background: var(--paper);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.post-thumb-link {
  display: block;
  margin: -14px -14px 14px;
}
.post-thumb-link .paper-thumb {
  height: 130px;
  border-radius: 14px 14px 0 0;
}
.post-thumb-link .paper-thumb::after {
  display: none;
}
.post-card-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}
.post-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.post-card h3 a:hover {
  color: var(--green-deep);
}
.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .meta-line {
  margin-top: 8px;
  font-size: 11px;
}
.profile-card {
  text-align: center;
  padding: 22px 20px;
}
.profile-card h2 {
  justify-content: center;
}
.avatar {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 4px auto 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f4f9ff 0%, #e6f4f3 100%);
  overflow: visible;
}
.avatar::before,
.avatar::after,
.avatar span,
.avatar i,
.avatar em,
.avatar b {
  position: absolute;
  display: block;
}
.avatar::before {
  content: "";
  left: 14px;
  top: 8px;
  width: 56px;
  height: 38px;
  border-radius: 50% 50% 42% 42%;
  background: #58c7c0;
  box-shadow: -10px 22px 0 -2px #58c7c0, 10px 22px 0 -2px #58c7c0;
/* right pigtail bulb */
  z-index: 1;
}
.avatar::after {
  content: "";
  left: 22px;
  top: 26px;
  width: 40px;
  height: 38px;
  border-radius: 46% 46% 50% 50%;
  background: #fbeee1;
  z-index: 2;
}
.avatar span {
  left: 20px;
  top: 24px;
  width: 44px;
  height: 18px;
  border-radius: 50% 50% 60% 60%/60% 60% 100% 100%;
  background: #4eb6af;
  z-index: 3;
}
.avatar i {
  left: 28px;
  top: 40px;
  width: 6px;
  height: 8px;
  border-radius: 50%;
  background: #2d6f6a;
  z-index: 4;
  box-shadow: 18px 0 0 0 #2d6f6a, -8px 8px 0 -2px #ffb3a8, 26px 8px 0 -2px #ffb3a8;
}
.avatar em {
  left: 36px;
  bottom: 0;
  width: 12px;
  height: 14px;
  background: #f4a3b8;
  clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%);
  z-index: 5;
}
.avatar b {
  left: 29px;
  top: 41px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 18px 0 0 0 #fff;
  z-index: 5;
}
.dark-mode .avatar {
  background: linear-gradient(180deg, #2a3640 0%, #1f3030 100%);
}
.avatar--image {
  background: var(--paper-warm);
  border: 1px dashed var(--dash);
}
.avatar--image::before,
.avatar--image::after {
  content: none;
}
.avatar--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-card h3 {
  margin: 4px 0 2px;
  font-size: 18px;
  font-weight: 700;
}
.profile-role {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}
.profile-card p:last-of-type {
  margin: 0 auto 16px;
  max-width: 220px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px dashed var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--paper-warm);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.socials a .lucide {
  width: 15px;
  height: 15px;
}
.socials a:hover {
  color: var(--green-deep);
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-1px);
}
.dark-mode .socials a {
  background: rgba(255,255,255,0.06);
}
.tag-card {
  overflow: visible;
}
.tag-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.tag-card__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.tag-card__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.15s ease;
}
.tag-card__more .lucide {
  width: 12px;
  height: 12px;
}
.tag-card__more:hover {
  color: var(--green-deep);
}
.dark-mode .tag-card__more:hover {
  color: var(--green-leaf);
}
.tag-card::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 16px;
  width: 70px;
  height: 20px;
  background: var(--tape-pink);
  transform: rotate(10deg);
  z-index: 2;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.tag-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 13px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--tape-green);
  box-shadow: 0 2px 5px rgba(82,64,38,0.08);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, color 0.2s ease, filter 0.2s ease;
  will-change: transform;
}
.tag-chip:hover {
  transform: translateY(-3px) scale(1.03) rotate(0deg);
  box-shadow: 0 10px 20px -6px rgba(82,64,38,0.22), 0 4px 8px -2px rgba(82,64,38,0.12);
  filter: saturate(1.1);
}
.tag-chip:active {
  transform: translateY(-1px) scale(1.01);
  transition-duration: 0.1s;
}
.dark-mode .tag-chip {
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.dark-mode .tag-chip:hover {
  box-shadow: 0 10px 22px -6px rgba(0,0,0,0.5), 0 4px 10px -2px rgba(0,0,0,0.3);
}
.tag-chip-0 {
  background: var(--tape-green);
  color: #4f8862;
  transform: rotate(-1deg);
}
.tag-chip-1 {
  background: var(--tape-blue);
  color: #4d7eb0;
  transform: rotate(1.2deg);
}
.tag-chip-2 {
  background: var(--tape-yellow);
  color: #9a6f24;
  transform: rotate(-0.6deg);
}
.tag-chip-3 {
  background: var(--tape-green);
  color: #5b8a5f;
  transform: rotate(0.8deg);
}
.tag-chip-4 {
  background: rgba(156,143,235,0.45);
  color: #6e5cb6;
  transform: rotate(-1.2deg);
}
.tag-chip-5 {
  background: var(--tape-pink);
  color: #b16454;
  transform: rotate(1deg);
}
.dark-mode .tag-chip {
  color: #c8d8c5;
}
.dark-mode .tag-chip-1 {
  color: #aabfd8;
}
.dark-mode .tag-chip-2 {
  color: #e6c993;
}
.dark-mode .tag-chip-3 {
  color: #c2d4bf;
}
.dark-mode .tag-chip-4 {
  background: rgba(156,143,235,0.32);
  color: #c8bee0;
}
.dark-mode .tag-chip-5 {
  color: #e0b8a8;
}
.tag-size-1 {
  min-height: 24px;
  padding: 0 11px;
  font-size: 12px;
}
.tag-size-2 {
  min-height: 28px;
  padding: 0 13px;
  font-size: 14px;
}
.tag-size-3 {
  min-height: 32px;
  padding: 0 15px;
  font-size: 16px;
}
.tag-size-4 {
  min-height: 36px;
  padding: 0 18px;
  font-size: 18px;
  font-weight: 700;
}
.tag-chip[class*='tag-size-'].tag-chip-0 {
  color: #2f6649;
}
.tag-chip[class*='tag-size-'].tag-chip-1 {
  color: #1f4e83;
}
.tag-chip[class*='tag-size-'].tag-chip-2 {
  color: #6f4d0e;
}
.tag-chip[class*='tag-size-'].tag-chip-3 {
  color: #2e5e3a;
}
.tag-chip[class*='tag-size-'].tag-chip-4 {
  color: #443289;
}
.tag-chip[class*='tag-size-'].tag-chip-5 {
  color: #893f30;
}
.dark-mode .tag-chip[class*='tag-size-'].tag-chip-0 {
  color: #d9e8d5;
}
.dark-mode .tag-chip[class*='tag-size-'].tag-chip-1 {
  color: #c2d4ec;
}
.dark-mode .tag-chip[class*='tag-size-'].tag-chip-2 {
  color: #f1d9a8;
}
.dark-mode .tag-chip[class*='tag-size-'].tag-chip-3 {
  color: #d4e1cf;
}
.dark-mode .tag-chip[class*='tag-size-'].tag-chip-4 {
  color: #dad2f0;
}
.dark-mode .tag-chip[class*='tag-size-'].tag-chip-5 {
  color: #f0cabb;
}
.tag-style-pill .tag-chip {
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 500;
  transform: none;
  background: var(--green-soft);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 2px 6px rgba(82,64,38,0.06);
}
.tag-style-pill .tag-chip:hover {
  transform: translateY(-3px) scale(1.04);
}
.tag-style-pill .tag-chip-0 {
  background: #d8e8d2;
  color: #4f8862;
}
.tag-style-pill .tag-chip-1 {
  background: #dbe9fb;
  color: #4d7eb0;
}
.tag-style-pill .tag-chip-2 {
  background: #fce4be;
  color: #b67e3e;
}
.tag-style-pill .tag-chip-3 {
  background: #dbe9d8;
  color: #5b8a5f;
}
.tag-style-pill .tag-chip-4 {
  background: #e4dbf9;
  color: #6e5cb6;
}
.tag-style-pill .tag-chip-5 {
  background: #fbd9d0;
  color: #c4795f;
}
.dark-mode.tag-style-pill .tag-chip {
  background: #3f5244;
  color: #c8d8c5;
}
.dark-mode.tag-style-pill .tag-chip-1 {
  background: #35475c;
  color: #aabfd8;
}
.dark-mode.tag-style-pill .tag-chip-2 {
  background: #61533a;
  color: #e6c993;
}
.dark-mode.tag-style-pill .tag-chip-3 {
  background: #3f4f45;
  color: #c2d4bf;
}
.dark-mode.tag-style-pill .tag-chip-4 {
  background: #47405b;
  color: #c8bee0;
}
.dark-mode.tag-style-pill .tag-chip-5 {
  background: #5a403a;
  color: #e0b8a8;
}
.recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.recent-list li + li {
  border-top: 1px dashed var(--line);
}
.recent-item {
  display: block;
  padding: 10px 4px;
  border-radius: 6px;
  color: var(--ink-soft);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.recent-item:hover {
  color: var(--green-deep);
  transform: translateX(2px);
}
.dark-mode .recent-item:hover {
  color: var(--green-leaf);
}
.recent-item strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.recent-item em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
.article-reactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px -64px 0;
  padding: 18px 64px;
  border-top: 1px dashed var(--line);
}
.reaction-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reaction-group .reaction + .reaction-label {
  margin-left: -2px;
  margin-right: 6px;
}
.reaction-group .reaction-label:last-child {
  margin-right: 0;
}
.reaction-group--right {
  margin-left: auto;
}
.reaction {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px dashed var(--dash);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--paper-warm);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.reaction:hover {
  color: var(--green-deep);
  border-color: var(--green);
  transform: translateY(-1px);
}
.reaction--like:hover {
  color: #d4716c;
  border-color: #d4716c;
}
.reaction .lucide {
  width: 16px;
  height: 16px;
}
.reaction--like:hover .lucide {
  fill: #d4716c;
}
.reaction-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.article-actions {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 -64px;
  border-top: 1px dashed var(--line);
  border-radius: 0 0 14px 14px;
}
.article-action--next {
  border-left: 1px dashed var(--line);
}
.article-action {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 14px 24px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.article-action .lucide {
  grid-row: 1/3;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.article-action .action-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.article-action .action-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-action--prev {
  text-align: left;
  border-bottom-left-radius: 14px;
}
.article-action--next {
  text-align: right;
  grid-template-columns: 1fr auto;
  border-bottom-right-radius: 14px;
}
.article-action--next .lucide {
  grid-column: 2;
  grid-row: 1/3;
}
.article-action--next .action-label,
.article-action--next .action-title {
  grid-column: 1;
}
a.article-action:hover {
  background: var(--paper-warm);
}
a.article-action:hover .action-title {
  color: var(--green-deep);
}
a.article-action--prev:hover .lucide {
  color: var(--green-deep);
  transform: translateX(-3px);
}
a.article-action--next:hover .lucide {
  color: var(--green-deep);
  transform: translateX(3px);
}
.article-action.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.article-action.is-disabled .action-title,
.article-action.is-disabled .action-label {
  color: var(--muted);
}
.article-action.is-disabled .lucide {
  opacity: 0.6;
}
.dark-mode a.article-action:hover .action-title,
.dark-mode a.article-action:hover .lucide {
  color: var(--green-leaf);
}
.related-paper {
  padding: 26px 28px 28px;
  border: 2px dashed var(--dash);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--small-shadow);
}
.related-paper__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.related-paper__head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.related-paper__head h2 .lucide {
  width: 18px;
  height: 18px;
  color: var(--green-deep);
}
.dark-mode .related-paper__head h2 .lucide {
  color: var(--green-leaf);
}
.related-paper__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.15s ease;
}
.related-paper__more .lucide {
  width: 13px;
  height: 13px;
}
.related-paper__more:hover {
  color: var(--green-deep);
}
.related-paper__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.related-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid transparent;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: var(--small-shadow);
}
.related-card__thumb {
  display: block;
}
.related-card__thumb .paper-thumb {
  height: 110px;
  border-radius: 12px 12px 0 0;
}
.related-card__thumb .paper-thumb::after {
  display: none;
}
.related-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
}
.related-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.related-card:hover .related-card__title {
  color: var(--green-deep);
}
.dark-mode .related-card:hover .related-card__title {
  color: var(--green-leaf);
}
.related-card__date {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}
body.no-scroll {
  overflow: hidden;
}
.search-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
}
.search-panel.is-open {
  display: flex;
  animation: search-fade 0.18s ease-out;
}
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46,36,22,0.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}
.dark-mode .search-backdrop {
  background: rgba(0,0,0,0.55);
}
.search-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: 26px 28px 22px;
  border: 2px dashed var(--dash);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 26px 60px rgba(60,44,22,0.22);
  animation: search-pop 0.22s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}
.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.search-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.search-head .icon-button {
  width: 32px;
  height: 32px;
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 48px;
  border: 2px dashed var(--dash);
  border-radius: 999px;
  background: var(--paper-warm);
  transition: border-color 0.2s ease;
}
.search-field:focus-within {
  border-color: var(--green);
  background: var(--paper-solid);
}
.search-field > .lucide {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.search-input::placeholder {
  color: var(--muted);
}
.search-results {
  margin-top: 16px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}
.search-empty {
  margin: 24px 0 8px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--ink);
  background: var(--paper-warm);
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.search-result:hover {
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-1px);
}
.search-result strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.search-result span {
  align-self: start;
  color: var(--muted);
  font-size: 12px;
}
.search-result p {
  grid-column: 1/-1;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(241,193,84,0.45);
  color: inherit;
}
.dark-mode .search-result mark {
  background: rgba(241,193,84,0.32);
}
@media (max-width: 600px) {
  .search-panel {
    padding: 8vh 14px 14px;
  }
  .search-dialog {
    padding: 22px 20px 18px;
  }
  .search-results {
    max-height: 60vh;
  }
}
@-moz-keyframes search-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes search-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-o-keyframes search-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes search-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-moz-keyframes search-pop {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@-webkit-keyframes search-pop {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@-o-keyframes search-pop {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes search-pop {
  from {
    transform: translateY(-12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.flatpaper-note {
  --note-accent: #8a8678;
  --note-bg: rgba(138,134,120,0.08);
  --note-border: rgba(138,134,120,0.35);
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  margin: 22px 0;
  padding: 14px 18px 14px 16px;
  border-left: 4px solid var(--note-accent);
  border-radius: 0 10px 10px 0;
  background: var(--note-bg);
  color: var(--ink);
}
.flatpaper-note > .flatpaper-note__body > :first-child {
  margin-top: 0;
}
.flatpaper-note > .flatpaper-note__body > :last-child {
  margin-bottom: 0;
}
.flatpaper-note__icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--note-accent);
  color: #fff;
  flex-shrink: 0;
}
.flatpaper-note__icon::before {
  content: "i";
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}
.flatpaper-note--default {
  --note-accent: #8a8678;
  --note-bg: rgba(138,134,120,0.1);
  --note-border: rgba(138,134,120,0.4);
}
.flatpaper-note--primary {
  --note-accent: #9c8feb;
  --note-bg: rgba(156,143,235,0.1);
  --note-border: rgba(156,143,235,0.45);
}
.flatpaper-note--success {
  --note-accent: #6fa67c;
  --note-bg: rgba(111,166,124,0.12);
  --note-border: rgba(111,166,124,0.45);
}
.flatpaper-note--info {
  --note-accent: #6fa9d9;
  --note-bg: rgba(111,169,217,0.12);
  --note-border: rgba(111,169,217,0.45);
}
.flatpaper-note--warning {
  --note-accent: #f0bd4d;
  --note-bg: rgba(240,189,77,0.14);
  --note-border: rgba(240,189,77,0.5);
}
.flatpaper-note--danger {
  --note-accent: #d4716c;
  --note-bg: rgba(212,113,108,0.13);
  --note-border: rgba(212,113,108,0.5);
}
.flatpaper-note--success .flatpaper-note__icon::before {
  content: "✓";
  font-family: inherit;
  font-style: normal;
  font-size: 13px;
}
.flatpaper-note--warning .flatpaper-note__icon::before {
  content: "!";
  font-family: inherit;
  font-style: normal;
  font-size: 14px;
}
.flatpaper-note--danger .flatpaper-note__icon::before {
  content: "!";
  font-family: inherit;
  font-style: normal;
  font-size: 14px;
}
.flatpaper-note--primary .flatpaper-note__icon::before {
  content: "★";
  font-family: inherit;
  font-style: normal;
  font-size: 12px;
}
.flatpaper-note__body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.flatpaper-note__body p {
  margin: 6px 0;
}
.flatpaper-note__body code {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.06);
  color: var(--note-accent);
}
.dark-mode .flatpaper-note__body code {
  background: rgba(255,255,255,0.08);
}
details.flatpaper-note {
  display: block;
  padding: 0;
}
details.flatpaper-note > .flatpaper-note__title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--note-accent);
  user-select: none;
}
details.flatpaper-note > .flatpaper-note__title::-webkit-details-marker {
  display: none;
}
details.flatpaper-note > .flatpaper-note__title::marker {
  content: "";
}
details.flatpaper-note > .flatpaper-note__title .flatpaper-note__icon {
  margin-top: 0;
}
details.flatpaper-note .flatpaper-note__label {
  flex: 1;
}
details.flatpaper-note .flatpaper-note__chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.7;
}
details.flatpaper-note[open] .flatpaper-note__chevron {
  transform: rotate(225deg);
}
details.flatpaper-note > .flatpaper-note__body {
  padding: 12px 18px 14px 48px;
  border-top: 1px dashed var(--note-border);
}
details.flatpaper-note > .flatpaper-note__title:hover {
  background: rgba(0,0,0,0.03);
}
.dark-mode details.flatpaper-note > .flatpaper-note__title:hover {
  background: rgba(255,255,255,0.04);
}
.flatpaper-tabs {
  margin: 22px 0;
  border: 2px dashed var(--dash);
  border-radius: 12px;
  background: var(--paper);
  overflow: hidden;
}
.flatpaper-tabs__intro {
  padding: 12px 16px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}
.flatpaper-tabs__intro > :first-child {
  margin-top: 0;
}
.flatpaper-tabs__intro > :last-child {
  margin-bottom: 0;
}
.flatpaper-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px 8px 0;
  background: var(--paper-warm);
  border-bottom: 1px dashed var(--line);
}
.flatpaper-tabs__nav-item {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.flatpaper-tabs__nav-item:hover {
  color: var(--ink);
  background: rgba(0,0,0,0.03);
}
.dark-mode .flatpaper-tabs__nav-item:hover {
  background: rgba(255,255,255,0.04);
}
.flatpaper-tabs__nav-item.is-active {
  color: var(--green-deep);
  background: var(--paper);
  box-shadow: inset 0 2px 0 var(--green);
}
.dark-mode .flatpaper-tabs__nav-item.is-active {
  color: var(--green-leaf);
}
.flatpaper-tabs__panels {
  padding: 16px 18px;
}
.flatpaper-tabs__panel > :first-child {
  margin-top: 0;
}
.flatpaper-tabs__panel > :last-child {
  margin-bottom: 0;
}
.flatpaper-tabs__panel[hidden] {
  display: none;
}
.friends-page {
  padding-bottom: 32px;
}
.friends-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.friends-intro {
  margin-top: 32px;
  padding: 22px 0 4px;
  font-size: 14px;
  background-image: linear-gradient(to right, var(--line) 60%, transparent 60%);
  background-size: 18px 1px;
  background-repeat: repeat-x;
  background-position: top left;
}
.friends-intro > :first-child {
  margin-top: 0;
}
.friends-intro > :last-child {
  margin-bottom: 0;
}
.friends-group {
  margin-top: 28px;
}
.friends-group__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 16px;
}
.friends-group__head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.friends-group__desc {
  color: var(--muted);
  font-size: 12px;
}
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.friend-card {
  position: relative;
}
.friend-card__rss {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.friend-card__rss .lucide {
  width: 13px;
  height: 13px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.friend-card__rss::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0;
  pointer-events: none;
}
.friend-card:hover .friend-card__rss {
  color: #d97757;
  background: rgba(217,119,87,0.12);
}
.friend-card:hover .friend-card__rss .lucide {
  animation: flatpaper-rss-wiggle 0.7s ease;
}
.friend-card:hover .friend-card__rss::before {
  animation: flatpaper-rss-pulse 1.1s ease-out;
}
.friend-card__rss:hover {
  transform: scale(1.1);
}
.dark-mode .friend-card:hover .friend-card__rss {
  color: #e89870;
  background: rgba(232,152,112,0.16);
}
.friend-card__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--dash);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.friend-card__link:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: var(--small-shadow);
}
.friend-card__avatar {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 700;
  font-size: 18px;
}
.dark-mode .friend-card__avatar--text {
  color: var(--green-leaf);
}
.friend-card__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.friend-card__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-card__link:hover .friend-card__name {
  color: var(--green-deep);
}
.dark-mode .friend-card__link:hover .friend-card__name {
  color: var(--green-leaf);
}
.friend-card__desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@-moz-keyframes flatpaper-rss-wiggle {
  0% {
    transform: rotate(0) scale(1);
  }
  25% {
    transform: rotate(-8deg) scale(1.08);
  }
  50% {
    transform: rotate(6deg) scale(1.12);
  }
  75% {
    transform: rotate(-3deg) scale(1.06);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}
@-webkit-keyframes flatpaper-rss-wiggle {
  0% {
    transform: rotate(0) scale(1);
  }
  25% {
    transform: rotate(-8deg) scale(1.08);
  }
  50% {
    transform: rotate(6deg) scale(1.12);
  }
  75% {
    transform: rotate(-3deg) scale(1.06);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}
@-o-keyframes flatpaper-rss-wiggle {
  0% {
    transform: rotate(0) scale(1);
  }
  25% {
    transform: rotate(-8deg) scale(1.08);
  }
  50% {
    transform: rotate(6deg) scale(1.12);
  }
  75% {
    transform: rotate(-3deg) scale(1.06);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}
@keyframes flatpaper-rss-wiggle {
  0% {
    transform: rotate(0) scale(1);
  }
  25% {
    transform: rotate(-8deg) scale(1.08);
  }
  50% {
    transform: rotate(6deg) scale(1.12);
  }
  75% {
    transform: rotate(-3deg) scale(1.06);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}
@-moz-keyframes flatpaper-rss-pulse {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}
@-webkit-keyframes flatpaper-rss-pulse {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}
@-o-keyframes flatpaper-rss-pulse {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}
@keyframes flatpaper-rss-pulse {
  0% {
    opacity: 0.45;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}
.article-paper {
  padding: 44px 64px 0;
  min-width: 0;
  overflow-x: clip;
}
.article-header {
  position: relative;
  padding-bottom: 18px;
  background-image: linear-gradient(to right, var(--line) 60%, transparent 60%);
  background-size: 18px 1px;
  background-repeat: repeat-x;
  background-position: bottom left;
}
.article-header .label-pill {
  margin-bottom: 14px;
}
.article-header h1 {
  margin: 4px 0 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0;
}
.meta-line--article {
  margin-top: 14px;
}
.article-content {
  padding: 8px 0 28px;
  font-size: 15px;
  line-height: 1.85;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.article-content > * {
  max-width: 100%;
  min-width: 0;
}
.article-content > * {
  margin-top: 1em;
  margin-bottom: 1em;
}
.article-content h2,
.article-content h3,
.article-content h4 {
  position: relative;
  margin-top: 28px;
  margin-bottom: 12px;
  line-height: 1.4;
  font-weight: 700;
}
.article-content h2 {
  font-size: 20px;
}
.article-content h3 {
  font-size: 17px;
}
.article-content .heading-anchor {
  position: absolute;
  display: inline-block;
  background-color: var(--green);
  opacity: 0.45;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><line x1='4' x2='20' y1='9' y2='9'/><line x1='4' x2='20' y1='15' y2='15'/><line x1='10' x2='8' y1='3' y2='21'/><line x1='16' x2='14' y1='3' y2='21'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><line x1='4' x2='20' y1='9' y2='9'/><line x1='4' x2='20' y1='15' y2='15'/><line x1='10' x2='8' y1='3' y2='21'/><line x1='16' x2='14' y1='3' y2='21'/></svg>");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}
.article-content h2 .heading-anchor {
  top: 6px;
  left: -26px;
  width: 18px;
  height: 18px;
}
.article-content h3 .heading-anchor {
  top: 5px;
  left: -22px;
  width: 14px;
  height: 14px;
  opacity: 0.38;
}
.article-content h2:hover .heading-anchor,
.article-content h3:hover .heading-anchor {
  opacity: 1;
  background-color: var(--green-deep);
  transform: translateX(-2px);
}
.article-content .heading-anchor:hover {
  opacity: 1;
  background-color: var(--green-deep);
}
.article-content .heading-anchor:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.article-content :is(h2,
h3):target {
  scroll-margin-top: 90px;
}
.article-content :is(h2,
h3):target {
  animation: flatpaper-anchor-flash 1.4s ease-out;
  border-radius: 6px;
  padding-right: 6px;
}
.dark-mode .article-content .heading-anchor {
  background-color: var(--green-leaf);
}
.dark-mode .article-content h2:hover .heading-anchor,
.dark-mode .article-content h3:hover .heading-anchor,
.dark-mode .article-content .heading-anchor:hover {
  background-color: var(--green);
}
.article-content h4 {
  font-size: 15px;
}
.article-content p {
  color: var(--ink-soft);
}
.article-content a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(79,136,98,0.32);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.article-content a:hover {
  color: var(--orange);
  text-decoration-color: currentColor;
}
.article-content ul,
.article-content ol {
  padding-left: 22px;
}
.article-content li {
  margin: 6px 0;
}
.article-content hr {
  height: 1px;
  margin: 28px 0;
  border: 0;
  background-image: linear-gradient(to right, var(--line) 60%, transparent 60%);
  background-size: 18px 1px;
  background-repeat: repeat-x;
  background-position: left center;
}
.article-content blockquote {
  margin: 18px 0;
  padding: 8px 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: rgba(111,176,131,0.1);
  color: var(--ink-soft);
}
.article-content blockquote > :first-child {
  margin-top: 0;
}
.article-content blockquote > :last-child {
  margin-bottom: 0;
}
.article-content blockquote p {
  margin: 6px 0;
}
.article-content sup {
  margin-left: 2px;
  font-size: 0.78em;
  line-height: 0;
}
.article-content sup a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  color: var(--green-deep);
  background: rgba(111,166,124,0.14);
  text-decoration: none;
}
.article-content .footnotes {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px dashed var(--dash);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.article-content .footnotes ol {
  margin: 0;
  padding-left: 22px;
}
.article-content .footnotes li {
  padding-left: 4px;
}
.article-content .footnote-backref {
  margin-left: 6px;
  color: var(--orange);
  text-decoration: none;
}
@-moz-keyframes flatpaper-anchor-flash {
  0% {
    background-color: rgba(241,193,84,0.35);
  }
  100% {
    background-color: transparent;
  }
}
@-webkit-keyframes flatpaper-anchor-flash {
  0% {
    background-color: rgba(241,193,84,0.35);
  }
  100% {
    background-color: transparent;
  }
}
@-o-keyframes flatpaper-anchor-flash {
  0% {
    background-color: rgba(241,193,84,0.35);
  }
  100% {
    background-color: transparent;
  }
}
@keyframes flatpaper-anchor-flash {
  0% {
    background-color: rgba(241,193,84,0.35);
  }
  100% {
    background-color: transparent;
  }
}
.archive-paper {
  padding: 32px 36px;
}
.taxonomy-paper,
.empty-paper {
  padding: 24px 28px;
}
.archive-paper h1,
.taxonomy-paper h1,
.empty-paper h1 {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 800;
}
.archive-list {
  display: grid;
  gap: 0;
}
.archive-item {
  display: grid;
  grid-template-columns: 110px 1fr 16px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.archive-item:last-child {
  border-bottom: 0;
}
.archive-item strong {
  font-size: 15px;
  font-weight: 600;
}
.archive-item span {
  color: var(--muted);
  font-size: 13px;
}
.archive-item em {
  width: 8px;
  height: 8px;
  border-top: 1.6px solid var(--muted);
  border-right: 1.6px solid var(--muted);
  transform: rotate(45deg);
}
.taxonomy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.taxonomy-grid .taxonomy-card {
  flex: 0 0 auto;
  min-width: 160px;
}
.taxonomy-card {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 16px;
  border: 2px dashed var(--line);
  border-radius: 10px;
  background: var(--paper-warm);
  font-size: 14px;
}
.taxonomy-paper > .tag-cloud {
  gap: 14px;
}
.taxonomy-paper > .tag-cloud .tag-chip:nth-child(3n) {
  transform: rotate(-1.5deg);
}
.taxonomy-paper > .tag-cloud .tag-chip:nth-child(3n + 1) {
  transform: rotate(1deg);
}
.taxonomy-paper > .tag-cloud .tag-chip:nth-child(5n) {
  transform: rotate(-0.5deg);
}
.taxonomy-paper > .tag-cloud .tag-chip:hover {
  transform: translateY(-3px) scale(1.05) rotate(0deg);
}
.article-content pre,
.article-content code,
.article-content .highlight,
.article-content .highlight table,
.article-content .highlight pre {
  font-family: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", "Cascadia Code", monospace;
  font-feature-settings: "liga" 1, "calt" 1;
}
.article-content :not(pre) > code {
  padding: 2px 7px;
  margin: 0 2px;
  border-radius: 5px;
  font-size: 0.86em;
  font-weight: 500;
  color: var(--green-deep);
  background: rgba(111,176,131,0.13);
  border: 1px solid rgba(111,176,131,0.22);
  white-space: break-spaces;
}
.dark-mode .article-content :not(pre) > code {
  color: var(--green-leaf);
  background: rgba(130,191,144,0.14);
  border-color: rgba(130,191,144,0.28);
}
.article-content > pre {
  position: relative;
  overflow: auto;
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #e9e3d4;
  background: #232a2c;
  box-shadow: var(--small-shadow);
}
.article-content > pre code {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}
.article-content .highlight {
  position: relative;
  margin: 22px 0;
  padding-top: 38px;
  border-radius: 12px;
  background: #232a2c;
  color: #e9e3d4;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: var(--small-shadow);
  overflow: hidden;
}
.article-content .highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 0;
}
.article-content .highlight::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 18px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff6058;
  box-shadow: 18px 0 0 #febc2e, 36px 0 0 #28c840;
  opacity: 0.92;
  z-index: 1;
}
.article-content .highlight figcaption {
  position: absolute;
  top: 0;
  left: 70px;
  right: 56px;
  height: 38px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: #b8b1a0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  z-index: 2;
  pointer-events: none;
}
.article-content .highlight figcaption a {
  pointer-events: auto;
}
.article-content .highlight .code-bar {
  position: absolute;
  top: 0;
  left: 70px;
  right: 10px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  z-index: 3;
}
.article-content .highlight .code-lang {
  margin-right: auto;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #cfc8b6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.article-content .highlight .code-action {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: #b8b1a0;
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.article-content .highlight .code-action:hover {
  color: #e9e3d4;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.16);
}
.article-content .highlight .code-copy.is-copied {
  color: var(--green-leaf);
  border-color: rgba(130,191,144,0.45);
  background: rgba(130,191,144,0.16);
}
.article-content .highlight .code-fold .lucide {
  transition: transform 0.22s ease;
}
.article-content .highlight.is-folded .code-fold .lucide {
  transform: rotate(180deg);
}
.article-content .highlight.is-folded table {
  display: none;
}
.article-content .highlight.is-folded {
  padding-top: 38px;
}
.article-content .highlight .code-copy .lucide {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}
.article-content .highlight figcaption a {
  color: var(--green-leaf);
}
.article-content .highlight figcaption a:hover {
  text-decoration: underline;
}
.article-content .highlight table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  border-radius: 0;
  table-layout: fixed;
}
.article-content .highlight tr,
.article-content .highlight td {
  background: transparent;
  border: 0;
  padding: 0;
  vertical-align: top;
}
.article-content .highlight td.gutter {
  width: 48px;
  padding: 14px 0;
  text-align: right;
  user-select: none;
  background: rgba(255,255,255,0.025);
  border-right: 1px solid rgba(255,255,255,0.06);
}
.article-content .highlight td.gutter pre {
  margin: 0;
  padding: 0 14px 0 18px;
  background: transparent;
  color: #6f6a5d;
  font: inherit;
  line-height: inherit;
}
.article-content .highlight td.code {
  width: calc(100% - 48px);
  padding: 14px 0;
}
.article-content .highlight td.code pre {
  margin: 0;
  padding: 0 20px;
  overflow-x: auto;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
}
.article-content .highlight .line {
  padding: 0;
}
.article-content .highlight pre br {
  line-height: 0;
}
.article-content .highlight pre * {
  vertical-align: baseline;
}
.article-content .highlight .comment,
.article-content .highlight .quote {
  color: #7e8a83;
  font-style: italic;
}
.article-content .highlight .keyword,
.article-content .highlight .selector-tag,
.article-content .highlight .literal,
.article-content .highlight .built_in {
  color: #c594c5;
}
.article-content .highlight .string,
.article-content .highlight .regexp,
.article-content .highlight .meta-string {
  color: #a3be8c;
}
.article-content .highlight .number,
.article-content .highlight .symbol,
.article-content .highlight .bullet {
  color: #f0bd4d;
}
.article-content .highlight .title,
.article-content .highlight .name,
.article-content .highlight .selector-id,
.article-content .highlight .selector-class {
  color: #8ab9d8;
}
.article-content .highlight .attr,
.article-content .highlight .variable,
.article-content .highlight .template-variable {
  color: #ec9b5b;
}
.article-content .highlight .params {
  color: #d8d2c5;
}
.article-content .highlight .tag,
.article-content .highlight .doctag {
  color: #c594c5;
}
.article-content .highlight .property,
.article-content .highlight .attribute {
  color: #8ab9d8;
}
.article-content .highlight .type,
.article-content .highlight .class {
  color: #f0bd4d;
}
.article-content .highlight .deletion {
  color: #d4716c;
}
.article-content .highlight .addition {
  color: #8ab98d;
}
.article-content .highlight td.code pre::-webkit-scrollbar,
.article-content > pre::-webkit-scrollbar {
  height: 8px;
}
.article-content .highlight td.code pre::-webkit-scrollbar-thumb,
.article-content > pre::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
}
.article-content .highlight td.code pre::-webkit-scrollbar-track,
.article-content > pre::-webkit-scrollbar-track {
  background: transparent;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}
.article-content th,
.article-content td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.article-content th {
  background: rgba(111,176,131,0.14);
  font-weight: 700;
}
.article-content img {
  display: block;
  margin: 22px auto;
  border-radius: 8px;
  box-shadow: var(--small-shadow);
}
body[data-code-theme="sand"] .article-content .highlight {
  background: #f7efdb;
  color: #2c3531;
  box-shadow: var(--small-shadow);
}
body[data-code-theme="sand"] .article-content > pre {
  background: #f7efdb;
  color: #2c3531;
}
body[data-code-theme="sand"] .article-content .highlight::before {
  background: rgba(60,50,25,0.06);
  border-bottom: 1px solid rgba(60,50,25,0.1);
}
body[data-code-theme="sand"] .article-content .highlight .code-lang {
  background: rgba(60,50,25,0.08);
  color: var(--ink-soft);
}
body[data-code-theme="sand"] .article-content .highlight .code-action {
  color: var(--muted);
  background: rgba(60,50,25,0.04);
  border-color: rgba(60,50,25,0.12);
}
body[data-code-theme="sand"] .article-content .highlight .code-action:hover {
  color: var(--ink);
  background: rgba(60,50,25,0.1);
  border-color: rgba(60,50,25,0.2);
}
body[data-code-theme="sand"] .article-content .highlight .code-copy.is-copied {
  color: var(--green-deep);
  border-color: rgba(111,166,124,0.45);
  background: rgba(111,166,124,0.16);
}
body[data-code-theme="sand"] .article-content .highlight td.gutter {
  background: rgba(60,50,25,0.04);
  border-right-color: rgba(60,50,25,0.08);
}
body[data-code-theme="sand"] .article-content .highlight td.gutter pre {
  color: rgba(60,50,25,0.4);
}
body[data-code-theme="sand"] .article-content .highlight .comment,
body[data-code-theme="sand"] .article-content .highlight .quote {
  color: #8a8678;
  font-style: italic;
}
body[data-code-theme="sand"] .article-content .highlight .keyword,
body[data-code-theme="sand"] .article-content .highlight .selector-tag,
body[data-code-theme="sand"] .article-content .highlight .literal,
body[data-code-theme="sand"] .article-content .highlight .built_in {
  color: #8a6cb8;
}
body[data-code-theme="sand"] .article-content .highlight .string,
body[data-code-theme="sand"] .article-content .highlight .regexp,
body[data-code-theme="sand"] .article-content .highlight .meta-string {
  color: #4f8862;
}
body[data-code-theme="sand"] .article-content .highlight .number,
body[data-code-theme="sand"] .article-content .highlight .symbol,
body[data-code-theme="sand"] .article-content .highlight .bullet {
  color: #b68528;
}
body[data-code-theme="sand"] .article-content .highlight .title,
body[data-code-theme="sand"] .article-content .highlight .name,
body[data-code-theme="sand"] .article-content .highlight .selector-id,
body[data-code-theme="sand"] .article-content .highlight .selector-class {
  color: #4d7eb0;
}
body[data-code-theme="sand"] .article-content .highlight .attr,
body[data-code-theme="sand"] .article-content .highlight .variable,
body[data-code-theme="sand"] .article-content .highlight .template-variable {
  color: #c47438;
}
body[data-code-theme="sand"] .article-content .highlight .params {
  color: #4a5751;
}
body[data-code-theme="sand"] .article-content .highlight .tag,
body[data-code-theme="sand"] .article-content .highlight .doctag {
  color: #8a6cb8;
}
body[data-code-theme="sand"] .article-content .highlight .property,
body[data-code-theme="sand"] .article-content .highlight .attribute {
  color: #4d7eb0;
}
body[data-code-theme="sand"] .article-content .highlight .type,
body[data-code-theme="sand"] .article-content .highlight .class {
  color: #b68528;
}
body[data-code-theme="sand"] .article-content .highlight .deletion {
  color: #c4564e;
}
body[data-code-theme="sand"] .article-content .highlight .addition {
  color: #4f8862;
}
body[data-code-theme="sand"] .article-content .highlight td.code pre::-webkit-scrollbar-thumb,
body[data-code-theme="sand"] .article-content > pre::-webkit-scrollbar-thumb {
  background: rgba(60,50,25,0.16);
}
.dark-mode body[data-code-theme="sand"] .article-content .highlight,
.dark-mode body[data-code-theme="sand"] .article-content > pre {
  background: #3b403c;
  color: #f1ebde;
}
.dark-mode body[data-code-theme="sand"] .article-content .highlight::before {
  background: rgba(255,255,255,0.04);
  border-bottom-color: rgba(255,255,255,0.08);
}
.dark-mode body[data-code-theme="sand"] .article-content .highlight td.gutter {
  background: rgba(255,255,255,0.03);
  border-right-color: rgba(255,255,255,0.06);
}
.dark-mode body[data-code-theme="sand"] .article-content .highlight td.gutter pre {
  color: rgba(241,235,222,0.4);
}
body[data-code-theme="light"] .article-content .highlight {
  background: #fff;
  color: #24292f;
  box-shadow: var(--small-shadow);
}
body[data-code-theme="light"] .article-content > pre {
  background: #fff;
  color: #24292f;
}
body[data-code-theme="light"] .article-content .highlight::before {
  background: #f6f8fa;
  border-bottom: 1px solid #d8dee4;
}
body[data-code-theme="light"] .article-content .highlight .code-lang {
  background: #eaeef2;
  color: #57606a;
}
body[data-code-theme="light"] .article-content .highlight .code-action {
  color: #57606a;
  background: #f6f8fa;
  border-color: #d8dee4;
}
body[data-code-theme="light"] .article-content .highlight .code-action:hover {
  color: #24292f;
  background: #eef2f6;
  border-color: #afb8c1;
}
body[data-code-theme="light"] .article-content .highlight .code-copy.is-copied {
  color: #1a7f37;
  border-color: rgba(26,127,55,0.35);
  background: rgba(26,127,55,0.1);
}
body[data-code-theme="light"] .article-content .highlight td.gutter {
  background: #f6f8fa;
  border-right-color: #d8dee4;
}
body[data-code-theme="light"] .article-content .highlight td.gutter pre {
  color: #8c959f;
}
body[data-code-theme="light"] .article-content .highlight .comment,
body[data-code-theme="light"] .article-content .highlight .quote {
  color: #6e7781;
  font-style: italic;
}
body[data-code-theme="light"] .article-content .highlight .keyword,
body[data-code-theme="light"] .article-content .highlight .selector-tag,
body[data-code-theme="light"] .article-content .highlight .literal,
body[data-code-theme="light"] .article-content .highlight .built_in {
  color: #cf222e;
}
body[data-code-theme="light"] .article-content .highlight .string,
body[data-code-theme="light"] .article-content .highlight .regexp,
body[data-code-theme="light"] .article-content .highlight .meta-string {
  color: #0a3069;
}
body[data-code-theme="light"] .article-content .highlight .number,
body[data-code-theme="light"] .article-content .highlight .symbol,
body[data-code-theme="light"] .article-content .highlight .bullet {
  color: #0550ae;
}
body[data-code-theme="light"] .article-content .highlight .title,
body[data-code-theme="light"] .article-content .highlight .name,
body[data-code-theme="light"] .article-content .highlight .selector-id,
body[data-code-theme="light"] .article-content .highlight .selector-class {
  color: #8250df;
}
body[data-code-theme="light"] .article-content .highlight .attr,
body[data-code-theme="light"] .article-content .highlight .variable,
body[data-code-theme="light"] .article-content .highlight .template-variable {
  color: #953800;
}
body[data-code-theme="light"] .article-content .highlight .params {
  color: #24292f;
}
body[data-code-theme="light"] .article-content .highlight .tag,
body[data-code-theme="light"] .article-content .highlight .doctag {
  color: #116329;
}
body[data-code-theme="light"] .article-content .highlight .property,
body[data-code-theme="light"] .article-content .highlight .attribute {
  color: #0550ae;
}
body[data-code-theme="light"] .article-content .highlight .type,
body[data-code-theme="light"] .article-content .highlight .class {
  color: #8250df;
}
body[data-code-theme="light"] .article-content .highlight .deletion {
  color: #cf222e;
}
body[data-code-theme="light"] .article-content .highlight .addition {
  color: #116329;
}
body[data-code-theme="light"] .article-content .highlight td.code pre::-webkit-scrollbar-thumb,
body[data-code-theme="light"] .article-content > pre::-webkit-scrollbar-thumb {
  background: rgba(84,96,108,0.24);
}
.dark-mode body[data-code-theme="light"] .article-content .highlight,
.dark-mode body[data-code-theme="light"] .article-content > pre {
  background: #f7f9fb;
  color: #24292f;
}
.dark-mode body[data-code-theme="light"] .article-content .highlight::before {
  background: #eef2f6;
  border-bottom-color: #d0d7de;
}
.dark-mode body[data-code-theme="light"] .article-content .highlight td.gutter {
  background: #eef2f6;
  border-right-color: #d0d7de;
}
.dark-mode body[data-code-theme="light"] .article-content .highlight td.gutter pre {
  color: #8c959f;
}
@media (max-width: 1200px) {
  .paper-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .paper-sidebar--left {
    display: none;
  }
}
.sidebar-toggle {
  display: none;
}
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(46,36,22,0.36);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  pointer-events: none;
}
.sidebar-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease, visibility 0s linear 0s;
  pointer-events: auto;
}
.dark-mode .sidebar-backdrop {
  background: rgba(0,0,0,0.55);
}
@media (max-width: 960px) {
  .site-header,
  .paper-shell,
  .site-footer {
    width: min(94vw, 760px);
  }
  body::before {
    display: none;
  }
  .paper-shell--article .paper-sidebar {
    max-height: none;
    overflow: visible;
  }
  .site-header {
    position: static;
/* Drawer toggle on the left mirrors the slide-in direction; brand center-left, tools right. */
    grid-template-columns: auto 1fr auto;
    margin-top: 22px;
    padding: 16px 20px;
  }
  .site-nav {
    display: none;
  }
  .sidebar-toggle {
    display: inline-grid;
  }
  .icon-button.drawer-close {
    display: inline-grid;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1;
  }
  .nav-card {
    display: block;
    padding: 12px 10px;
  }
  .site-nav-drawer {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .site-nav-drawer a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .site-nav-drawer a .lucide {
    width: 17px;
    height: 17px;
    color: var(--muted);
    transition: color 0.2s ease;
  }
  .site-nav-drawer a:hover,
  .site-nav-drawer a.active {
    color: var(--green-deep);
    background: var(--green-soft);
  }
  .site-nav-drawer a:hover .lucide,
  .site-nav-drawer a.active .lucide {
    color: var(--green-deep);
  }
  .dark-mode .site-nav-drawer a:hover,
  .dark-mode .site-nav-drawer a.active {
    color: var(--green-leaf);
  }
  .dark-mode .site-nav-drawer a:hover .lucide,
  .dark-mode .site-nav-drawer a.active .lucide {
    color: var(--green-leaf);
  }
  .paper-shell > .paper-sidebar--right,
  .paper-shell:not(.paper-shell--article) > .paper-sidebar--right {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 65;
    width: min(86vw, 320px);
    max-width: 100vw;
    max-height: none;
    padding: 22px 18px 26px;
    background: var(--paper);
    border-right: 2px dashed var(--dash);
    box-shadow: 12px 0 28px rgba(60,44,22,0.18);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .paper-shell > .paper-sidebar--right.is-open,
  .paper-shell:not(.paper-shell--article) > .paper-sidebar--right.is-open {
    transform: translateX(0);
  }
  .paper-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .paper-shell > .paper-sidebar--left {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .featured-paper {
    grid-template-columns: 1fr;
  }
  .featured-thumb {
    min-height: 160px;
  }
  .post-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  .article-paper {
    padding: 28px 26px 0;
  }
  .article-actions,
  .article-reactions {
    margin-inline: -26px;
    padding-inline: 26px;
  }
  .site-footer {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  .article-content h2 {
    padding-left: 24px;
  }
  .article-content h3 {
    padding-left: 20px;
  }
  .article-content h2 .heading-anchor {
    left: 0;
  }
  .article-content h3 .heading-anchor {
    left: 0;
  }
  .site-header {
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
  }
  .brand {
    font-size: 18px;
  }
  .site-nav {
    gap: 4px;
  }
  .site-nav a {
    min-width: auto;
    padding: 6px 12px;
    font-size: 13px;
  }
  .header-tools {
    gap: 8px;
  }
  .icon-button,
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  .featured-paper {
    padding: 22px 20px;
  }
  .featured-paper h1 {
    font-size: 20px;
  }
  .article-paper {
    padding: 24px 20px 0;
  }
  .article-content h2 {
    font-size: 18px;
  }
  .article-actions {
    grid-template-columns: 1fr;
    margin-inline: -20px;
  }
  .article-action--next {
    border-left: 0;
    grid-template-columns: auto 1fr;
    text-align: left;
  }
  .article-action--next .lucide {
    grid-column: 1;
    grid-row: 1/3;
  }
  .article-action--next .action-label,
  .article-action--next .action-title {
    grid-column: 2;
  }
  .article-reactions {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .reaction-group--right {
    justify-content: flex-end;
  }
  .archive-paper,
  .taxonomy-paper,
  .empty-paper {
    padding: 24px 20px;
  }
  .archive-item {
    grid-template-columns: 1fr 14px;
  }
  .archive-item span {
    grid-column: 1/-1;
  }
  .side-card,
  .welcome-card {
    padding: 18px;
  }
}
