@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,650&family=Inter:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: 9 11 17;
  --surface: 22 26 36;
  --surface-2: 32 38 52;
  --line: 62 70 86;
  --text: 240 243 248;
  --text-dim: 166 176 192;
  --text-faint: 112 121 138;
  --signal: 10 132 255;
  --signal-dim: 64 120 192;
  --money-pos: 48 209 88;
  --money-neg: 255 96 92;
  --warn: 255 159 10;
  --effect: 191 144 255;
  --verify: 100 210 255;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  --max: 1180px;
  --content: 760px;
  --font-sans: var(--gh-font-body, "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif);
  --font-identity: "Fraunces", Georgia, serif;
  --font-heading: var(--gh-font-heading, var(--font-identity));
}

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

html {
  min-height: 100%;
  background: rgb(var(--bg));
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: rgb(var(--text));
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  background-color: rgb(var(--bg));
  background-image:
    radial-gradient(1100px 700px at 12% -10%, rgba(10, 132, 255, 0.08), transparent 60%),
    radial-gradient(900px 600px at 95% 0%, rgba(191, 144, 255, 0.045), transparent 55%),
    radial-gradient(1000px 800px at 50% 115%, rgba(100, 210, 255, 0.035), transparent 60%);
  background-attachment: fixed;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

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

a:hover {
  color: rgb(var(--text));
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  color: rgb(var(--text));
  background: rgb(var(--signal) / 0.35);
}

:focus-visible {
  outline: 2px solid rgb(var(--signal));
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 12px;
  color: white;
  background: rgb(var(--signal));
  border-radius: var(--radius-sm);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgb(var(--signal)), rgb(var(--verify)), rgb(var(--money-pos)));
  transform: scaleX(0);
  transform-origin: left center;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

code,
kbd,
samp,
pre {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}

.glass,
.glass-pill {
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    rgba(22, 26, 36, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    var(--shadow);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 54px;
  margin-top: 10px;
  padding: 8px 10px 8px 14px;
  border-radius: 14px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  color: rgb(var(--text));
  font-family: var(--font-sans);
  font-size: clamp(0.96rem, 1.2vw, 1.08rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-logo-image {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.18);
}

.site-nav {
  justify-self: center;
}

.site-nav ul,
.site-nav .nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  color: rgb(var(--text-dim));
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav .nav-current a {
  color: rgb(var(--text));
  background: rgba(255, 255, 255, 0.075);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  color: rgb(var(--text-dim));
  font-size: 0.86rem;
  font-weight: 700;
}

.site-header .subscribe-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  max-width: 9rem;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 12px !important;
  overflow: hidden;
  color: rgb(var(--text-dim)) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  appearance: none;
}

.site-header .subscribe-link svg,
.site-header .subscribe-link img,
.site-header .subscribe-link::before,
.site-header .subscribe-link::after {
  display: none !important;
  content: none !important;
}

.site-header .subscribe-link:hover {
  color: rgb(var(--text)) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body > .gh-portal-triggerbtn-wrapper,
body > .gh-portal-triggerbtn-container,
body > [class*="gh-portal-trigger"],
body > [id*="gh-portal-trigger"],
body > iframe[title*="portal" i][title*="trigger" i],
body > iframe[src*="portal" i][src*="trigger" i],
body > iframe[src*="portal" i][src*="button" i] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  content: "";
  background: rgb(var(--text-dim));
  border-radius: 2px;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.site-main {
  padding: 34px 0 24px;
}

.home-brief,
.archive-header,
.error-shell {
  border-radius: 0;
}

.home-brief {
  padding: 14px 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.095);
}

.archive-header h1,
.article-header h1,
.error-shell h1 {
  max-width: 960px;
  margin: 14px 0 0;
  color: rgb(var(--text));
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

.home-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.home-line h1 {
  min-width: 0;
  margin: -0.05em 0 -0.08em;
  padding: 0.05em 0 0.12em;
  overflow: hidden;
  color: rgb(var(--text));
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 650;
  line-height: 1.14;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-line > span {
  flex: 0 0 auto;
  padding-top: 0.52em;
  color: rgb(var(--text-faint));
  font-size: 0.78rem;
}

.home-brief p,
.archive-header p,
.article-excerpt,
.error-shell p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgb(var(--text-dim));
  font-size: clamp(1.04rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.home-brief p,
.article-excerpt {
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-excerpt {
  white-space: nowrap;
}

.home-brief p {
  max-width: 860px;
  margin-top: 10px;
  white-space: nowrap;
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: rgb(var(--text-faint));
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgb(var(--money-pos));
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.14), 0 0 18px rgba(48, 209, 88, 0.42);
}

.status-dot-warn {
  background: rgb(var(--warn));
  box-shadow: 0 0 0 4px rgba(255, 159, 10, 0.14), 0 0 18px rgba(255, 159, 10, 0.42);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgb(var(--text-faint));
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.metric-stack {
  display: grid;
  gap: 8px;
}

.metric-row {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
}

.metric-row span {
  color: rgb(var(--text-faint));
  font-size: 0.76rem;
}

.metric-row strong {
  min-width: 0;
  color: rgb(var(--text-dim));
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
}

.topic-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topic-strip::-webkit-scrollbar {
  display: none;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 10px;
  color: rgb(var(--text-dim));
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.topic-pill span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-pill:hover {
  color: rgb(var(--text));
  background: rgba(255, 255, 255, 0.1);
}

.topic-pill span:last-child {
  color: rgb(var(--text-faint));
  font-size: 0.72rem;
}

.post-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: 28px;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 180px;
  overflow: hidden;
  padding: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
    rgba(22, 26, 36, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 8px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  opacity: 1;
  transform: translateY(0);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.post-card.no-image {
  grid-template-columns: 1fr;
}

.post-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(22, 26, 36, 0.34);
  transform: translateY(-2px);
}

.post-index.is-ready .post-card {
  animation: grid-settle 0.42s ease both;
  animation-delay: calc(var(--card-index, 0) * 42ms);
}

.post-card-image {
  min-height: 0;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.032);
  border-radius: 9px;
  overflow: hidden;
}

.post-card-image img {
  width: 100%;
  height: 188px;
  min-height: 170px;
  max-height: 188px;
  object-fit: cover;
}

.post-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 2px;
}

.post-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin-bottom: 10px;
  overflow: hidden;
  white-space: nowrap;
}

.post-card-topline > span:last-child {
  flex: 0 0 auto;
  color: rgb(var(--text-faint));
  font-size: 0.74rem;
  white-space: nowrap;
}

.post-card h2 {
  margin: 0;
  color: rgb(var(--text));
  font-size: clamp(1.05rem, 1.4vw, 1.32rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.post-card h2 a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-card h2 a:hover {
  color: rgb(var(--verify));
}

.post-card p {
  margin: 8px 0 0;
  overflow: hidden;
  color: rgb(var(--text-dim));
  font-size: 0.9rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 981px) {
  .post-card:first-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    min-height: 0;
    gap: 18px;
  }

  .post-card:first-child .post-card-image {
    margin-bottom: 0;
  }

  .post-card:first-child .post-card-image img {
    height: 100%;
    min-height: 168px;
    max-height: 220px;
  }

  .post-card:first-child .post-card-body {
    justify-content: center;
  }

  .post-card:first-child h2 {
    font-size: clamp(1.18rem, 1.8vw, 1.58rem);
  }

  .post-card:last-child:nth-child(even) {
    grid-column: 1 / -1;
  }

  .post-card:last-child:nth-child(even):not(.no-image) {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    min-height: 0;
    gap: 18px;
  }

  .post-card:last-child:nth-child(even):not(.no-image) .post-card-image {
    margin-bottom: 0;
  }

  .post-card:last-child:nth-child(even):not(.no-image) .post-card-image img {
    height: 100%;
    min-height: 168px;
    max-height: 220px;
  }

  .post-card:last-child:nth-child(even):not(.no-image) .post-card-body {
    justify-content: center;
  }
}

.entry-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  margin-top: auto;
  padding-top: 14px;
  overflow: hidden;
  color: rgb(var(--text-faint));
  font-size: 0.76rem;
  font-weight: 650;
  white-space: nowrap;
}

.entry-meta > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-meta > * + *::before {
  margin-right: 8px;
  color: rgb(var(--line));
  content: "/";
}

.entry-author:hover {
  color: rgb(var(--verify));
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 8px 0;
  border-radius: var(--radius);
}

.pagination-link {
  min-height: 42px;
  padding: 10px 14px;
  color: rgb(var(--text-dim));
  font-weight: 650;
  text-align: center;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.pagination-link:hover {
  color: rgb(var(--text));
  background: rgba(255, 255, 255, 0.07);
}

.pagination-link-disabled {
  color: rgb(var(--text-faint) / 0.55);
}

.pagination-state {
  color: rgb(var(--text-faint));
  font-size: 0.78rem;
  white-space: nowrap;
}

.article-shell {
  padding-bottom: 32px;
}

.article-header {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 0;
}

.article-kicker {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  min-width: 0;
  margin-bottom: 14px;
  overflow: hidden;
  white-space: nowrap;
}

.article-kicker > span:last-child {
  color: rgb(var(--text-faint));
  font-size: 0.78rem;
}

.article-header h1 {
  max-width: 900px;
  font-size: clamp(2.15rem, 5.8vw, 4.8rem);
  line-height: 1.1;
}

.article-header .entry-meta {
  justify-content: flex-start;
  margin-top: 4px;
  padding-top: 20px;
}

.article-feature {
  width: min(920px, calc(100% - 32px));
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
}

.article-feature img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.article-feature figcaption {
  padding: 10px 14px;
  color: rgb(var(--text-faint));
  font-size: 0.82rem;
  text-align: center;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--content));
  gap: 0;
  align-items: start;
  justify-content: center;
  margin-top: 32px;
}

.page-layout {
  grid-template-columns: minmax(0, var(--content));
}

.article-footer {
  width: min(var(--content), calc(100% - 32px));
  margin-top: 34px;
}

.tag-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
  overflow-x: auto;
}

.post-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.nav-card {
  display: grid;
  gap: 5px;
  min-height: 0;
  padding: 14px 0 0;
  border-radius: 0;
}

.nav-card span {
  color: rgb(var(--text-faint));
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav-card strong {
  overflow: hidden;
  color: rgb(var(--text));
  font-size: 1.05rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-card:hover {
  color: rgb(var(--verify));
  background: transparent;
}

.archive-header,
.error-shell {
  padding: 14px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.095);
}

.archive-header {
  display: grid;
  gap: 6px;
}

.author-archive {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.author-avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.error-shell {
  max-width: 760px;
  text-align: left;
}

@keyframes grid-settle {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 10px 14px;
  color: white;
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 50%),
    rgb(var(--signal));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(10, 132, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button-primary:hover {
  filter: brightness(1.1);
}

.gh-content {
  min-width: 0;
  color: rgb(var(--text));
  font-size: clamp(1.04rem, 1.1vw, 1.16rem);
  line-height: 1.78;
}

.gh-content img,
.kg-image {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.gh-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

.gh-content > * + * {
  margin-top: 1.35em;
}

.gh-content p,
.gh-content li {
  color: rgb(var(--text-dim));
}

.gh-content strong {
  color: rgb(var(--text));
  font-weight: 780;
}

.gh-content a {
  color: rgb(var(--verify));
  text-decoration: underline;
  text-decoration-color: rgb(var(--verify) / 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.gh-content a:hover {
  color: rgb(var(--text));
  text-decoration-color: rgb(var(--signal));
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
  color: rgb(var(--text));
  font-family: var(--font-heading);
  line-height: 1.16;
  letter-spacing: 0;
}

.gh-content h2 {
  margin-top: 2.2em;
  font-size: clamp(1.85rem, 3.5vw, 3rem);
}

.gh-content h3 {
  margin-top: 2em;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.gh-content h4 {
  margin-top: 1.7em;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.gh-content ul,
.gh-content ol {
  padding-left: 1.35em;
}

.gh-content li + li {
  margin-top: 0.45em;
}

.gh-content blockquote {
  padding: 20px 22px;
  color: rgb(var(--text));
  background:
    linear-gradient(90deg, rgba(10, 132, 255, 0.13), transparent 38%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid rgb(var(--signal));
  border-radius: var(--radius);
}

.gh-content blockquote p {
  color: rgb(var(--text));
}

.gh-content hr {
  height: 1px;
  margin: 2.2em 0;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
}

.gh-content code {
  padding: 0.16em 0.34em;
  color: rgb(var(--verify));
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
}

.gh-content pre {
  position: relative;
  overflow: auto;
  padding: 20px;
  color: rgb(var(--text));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(12, 15, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gh-content pre code {
  display: block;
  padding: 0;
  color: inherit;
  font-size: 0.88rem;
  line-height: 1.72;
  white-space: pre;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.copy-code {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 30px;
  padding: 5px 9px;
  color: rgb(var(--text-dim));
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  cursor: pointer;
}

.copy-code:hover {
  color: rgb(var(--text));
  background: rgba(255, 255, 255, 0.1);
}

.gh-content table {
  width: 100%;
  overflow: hidden;
  font-size: 0.92rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
}

.gh-content th,
.gh-content td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gh-content th {
  color: rgb(var(--text));
  font-size: 0.74rem;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.055);
  letter-spacing: 0;
}

.gh-content tr:last-child td {
  border-bottom: 0;
}

.gh-content td {
  color: rgb(var(--text-dim));
}

.kg-width-wide,
.kg-width-full {
  width: min(1040px, calc(100vw - 32px));
  max-width: min(1040px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-full {
  width: calc(100vw - 32px);
  max-width: 1280px;
}

.kg-image-card,
.kg-gallery-card,
.kg-video-card,
.kg-embed-card,
.kg-bookmark-card,
.kg-file-card,
.kg-product-card,
.kg-callout-card,
.kg-toggle-card {
  margin-top: 1.7em;
}

.kg-image,
.kg-gallery-image img,
.kg-video-card video {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.kg-card figcaption {
  margin-top: 10px;
  color: rgb(var(--text-faint));
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.kg-bookmark-card a.kg-bookmark-container,
.kg-file-card-container,
.kg-product-card-container,
.kg-callout-card,
.kg-toggle-card {
  overflow: hidden;
  color: rgb(var(--text));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(22, 26, 36, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.kg-bookmark-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  min-height: 150px;
}

.kg-bookmark-content {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.kg-bookmark-title {
  color: rgb(var(--text));
  font-weight: 700;
}

.kg-bookmark-description,
.kg-bookmark-metadata {
  color: rgb(var(--text-dim));
  font-size: 0.9rem;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kg-callout-card {
  padding: 18px;
}

.kg-callout-card .kg-callout-text {
  color: rgb(var(--text-dim));
}

.kg-toggle-card {
  padding: 16px 18px;
}

.kg-toggle-heading-text {
  color: rgb(var(--text));
  font-weight: 700;
}

.kg-toggle-content {
  color: rgb(var(--text-dim));
}

.kg-product-card-container {
  padding: 20px;
}

.kg-product-card-title {
  color: rgb(var(--text));
}

.kg-product-card-description {
  color: rgb(var(--text-dim));
}

.kg-product-card-button {
  color: white;
  background: rgb(var(--signal));
  border-radius: var(--radius-sm);
}

.kg-file-card-container {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.kg-file-card-title {
  color: rgb(var(--text));
}

.kg-file-card-caption,
.kg-file-card-metadata {
  color: rgb(var(--text-dim));
}

.kg-header-card {
  border-radius: var(--radius);
}

.kg-header-card h2,
.kg-header-card h3 {
  margin-top: 0;
}

.kg-nft-card,
.kg-audio-card {
  color: rgb(var(--text));
  background: rgba(255, 255, 255, 0.045);
  border-radius: var(--radius);
}

.gh-content .metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gh-content .metric-card,
.gh-content .signal-note,
.gh-content .ledger-table {
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.gh-content .metric-card strong {
  display: block;
  color: rgb(var(--money-pos));
  font-family: var(--font-sans);
  font-size: 1.45rem;
  line-height: 1.1;
}

.gh-content .metric-card span {
  display: block;
  margin-top: 6px;
  color: rgb(var(--text-faint));
  font-size: 0.74rem;
}

.gh-content .metric-card.is-negative strong {
  color: rgb(var(--money-neg));
}

.gh-content .metric-card.is-warning strong {
  color: rgb(var(--warn));
}

.site-footer {
  padding: 24px 0 34px;
}

.footer-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0;
}

.footer-logo {
  font-size: 1.08rem;
}

.footer-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
  overflow: hidden;
  color: rgb(var(--text-faint));
  font-size: 0.74rem;
  white-space: nowrap;
}

.footer-meta > * {
  overflow: hidden;
  text-overflow: ellipsis;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav ul,
  .site-nav .nav {
    display: grid;
    justify-content: stretch;
  }

  .site-nav a {
    width: 100%;
  }

  .site-header .subscribe-link {
    justify-self: end;
  }

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

  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .shell,
  .article-header,
  .article-feature {
    width: min(calc(100% - 22px), var(--max));
  }

  .site-header {
    top: 8px;
    gap: 10px;
    margin-top: 8px;
    padding: 9px;
  }

  .site-logo {
    font-size: 1.08rem;
  }

  .site-header .subscribe-link {
    display: none !important;
  }

  .post-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .post-card-image img {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
  }

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

  .kg-width-wide,
  .kg-width-full {
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
  }

  .kg-bookmark-container {
    grid-template-columns: 1fr;
  }

  .kg-bookmark-thumbnail {
    min-height: 160px;
  }

  .gh-content .metric-grid {
    grid-template-columns: 1fr;
  }

  .author-archive {
    grid-template-columns: 1fr;
  }

  .footer-panel {
    align-items: center;
    flex-direction: row;
  }

  .footer-meta {
    justify-content: flex-end;
  }
}

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

@media print {
  body {
    color: #111;
    background: #fff;
  }

  .site-header,
  .site-footer,
  .reading-progress,
  .copy-code {
    display: none !important;
  }

  .article-layout,
  .page-layout {
    display: block;
  }

  .gh-content {
    max-width: none;
    color: #111;
  }

  .gh-content p,
  .gh-content li {
    color: #222;
  }
}
