/**
 * Clay (陶土) theme handwritten CSS.
 *
 * Warm dusty-terracotta editorial skin: masthead, lead hero, two-up cards.
 * Loaded via <link> from routes/_app.tsx (asset()). Served from static/; not
 * processed by Vite. Author for WeChat / Baidu-class WebViews
 * (see .cursor/rules/legacy-frontend.mdc): no @layer, oklch(), color-mix(),
 * native nesting, :has(), flex/grid gap, aspect-ratio, dvh, or media range
 * syntax. Core layout must work without @supports.
 *
 * Image boxes stay locked: catalog 1280px, reading 768px,
 * carousel 560×315, card icon 96, topic cover 384×216; topic detail 560×315.
 */
:root {
  --bg: #f6f0ea;
  --surface: #efe4db;
  --ink: #3f3530;
  --muted: #7a6c64;
  --accent: #b08472;
  --accent-ink: #f6f0ea;
  --border: #d4c4b8;
  --link: #8a5a4a;
  --chip: #e8d8cc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2d2724;
    --surface: #3d342f;
    --ink: #ebe3dc;
    --muted: #b5a59a;
    --accent: #c49a86;
    --accent-ink: #2d2724;
    --border: #5a4e47;
    --link: #d4b4a4;
    --chip: #4a403a;
  }
}

[data-scheme="light"] {
  --bg: #f6f0ea;
  --surface: #efe4db;
  --ink: #3f3530;
  --muted: #7a6c64;
  --accent: #b08472;
  --accent-ink: #f6f0ea;
  --border: #d4c4b8;
  --link: #8a5a4a;
  --chip: #e8d8cc;
}

[data-scheme="dark"] {
  --bg: #2d2724;
  --surface: #3d342f;
  --ink: #ebe3dc;
  --muted: #b5a59a;
  --accent: #c49a86;
  --accent-ink: #2d2724;
  --border: #5a4e47;
  --link: #d4b4a4;
  --chip: #4a403a;
}

.site-canvas {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.site-canvas-reading {
  max-width: 768px;
  margin-left: auto;
  margin-right: auto;
}

.site-header,
.site-footer,
.site-main {
  padding: 12px 16px;
}

.site-header {
  display: flex;
  align-items: center;
}

.site-nav {
  margin-left: 24px;
}

.site-nav-group {
  position: relative;
  display: inline-block;
  margin-right: 16px;
  vertical-align: top;
}

.site-main {
  min-height: 50vh;
}

.site-footer {
  margin-top: 24px;
  text-align: center;
}

.site-footer-nav a {
  margin-right: 12px;
}

.site-logo {
  display: inline-block;
}

.site-logo-mark {
  width: 2em;
  height: 2em;
  vertical-align: middle;
  margin-right: 8px;
}

.site-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

.site-page {
  display: flex;
  flex-direction: column;
}

.site-sections,
.site-stack {
  margin-top: 16px;
}

.site-section {
  margin-bottom: 16px;
}

.site-section-title {
  margin: 0 0 12px;
}

.site-section-head {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
}

.site-section-head .site-section-title {
  margin: 0;
}

.site-section-head [data-tag-refresh] {
  margin-left: auto;
}

.site-card-list,
.site-topic-card-list,
.popular-row,
.popular-grid,
.home-list,
.site-crumbs ul,
.site-badge-list,
.site-tag-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-card-list > li {
  display: inline-block;
  vertical-align: top;
  width: 24%;
  margin-right: 1%;
  margin-bottom: 16px;
}

.site-card-list > li:nth-child(4n) {
  margin-right: 0;
}

.site-topic-card-list > li {
  display: inline-block;
  vertical-align: top;
  width: 384px;
  margin-right: 64px;
  margin-bottom: 16px;
}

.site-topic-card-list > li:nth-child(3n) {
  margin-right: 0;
}

.site-card {
  padding: 8px;
  overflow: hidden;
}

.site-topic-card-list .site-card {
  padding: 0;
}

.site-card-icon {
  float: left;
  width: 96px;
  height: 96px;
  margin-right: 8px;
}

.site-card-icon img,
.site-card-icon span {
  display: block;
  width: 96px;
  height: 96px;
}

.site-card-body h3 {
  margin: 0 0 4px;
}

.site-card-meta {
  margin: 0 0 8px;
}

.site-topic-cover {
  display: block;
  width: 384px;
  height: 216px;
  object-fit: cover;
  object-position: center;
}

.site-topic-cover-wide {
  display: block;
  width: 800px;
  height: 450px;
  object-fit: cover;
  object-position: center;
}

.site-topic-cover-empty {
  text-align: center;
  line-height: 216px;
}

.site-topic-cover-wide.site-topic-cover-empty {
  line-height: 450px;
}

.site-crumbs li {
  display: inline;
}

.site-pager a,
.site-pager span {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 6px;
}

.site-status {
  padding: 8px;
}

.site-hero {
  padding: 12px;
  margin-bottom: 16px;
}

.site-hero-icon img {
  max-width: 100%;
  height: auto;
}

.site-stat-list {
  margin: 12px 0 0;
}

.site-stat-list > div {
  margin-bottom: 8px;
}

.site-disclose {
  padding: 8px;
  margin-top: 8px;
}

.site-dl dt {
  margin-top: 8px;
}

.site-dl dd {
  margin-left: 0;
}

.site-prompt {
  padding: 8px;
  margin-bottom: 12px;
}

.site-pre {
  white-space: pre-wrap;
  overflow-x: auto;
}

.site-badge-row {
  clear: both;
  margin: 0;
  white-space: nowrap;
}

.site-badge-row a,
.site-badge-list a,
.site-badge {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 4px;
  padding: 1px 6px;
}

.site-tag-cloud {
  text-align: center;
}

.site-tag-cloud li {
  display: inline-block;
  margin: 0 4px 8px;
  vertical-align: top;
}

.site-tag-cloud li[hidden] {
  display: none;
}

.popular-row {
  overflow-x: auto;
  white-space: nowrap;
}

.popular-row > li,
.popular-grid > li {
  display: inline-block;
  vertical-align: top;
  margin-right: 12px;
  margin-bottom: 8px;
}

.popular-item {
  display: inline-block;
  width: 80px;
  text-align: center;
  white-space: normal;
}

.popular-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 4px;
}

.popular-icon-empty {
  line-height: 48px;
  text-align: center;
}

.featured-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin-right: 8px;
}

.home-list-row {
  display: flex;
  align-items: center;
  padding: 4px 0;
}

.home-list-text {
  display: flex;
  align-items: center;
  flex: 1;
  width: 0;
}

.home-list-text span {
  flex: 1;
  width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-list-text time {
  margin-left: 12px;
  flex-shrink: 0;
}

.home-hero {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.home-hero > * + * {
  margin-left: 16px;
}

.home-hero-col {
  flex: 1;
  width: 0;
}

.home-hero-carousel {
  width: 560px;
  flex-shrink: 0;
}

.home-hero .site-section {
  margin-bottom: 0;
}

.home-carousel-wrap {
  position: relative;
  width: 560px;
  margin-bottom: 0;
}

.carousel {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.carousel-item {
  display: inline-block;
  vertical-align: top;
  margin-right: 8px;
}

.home-carousel {
  width: 560px;
  height: 315px;
  overflow: hidden;
}

.home-carousel::-webkit-scrollbar,
.screenshots .carousel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.home-carousel .carousel-item,
.home-carousel img {
  width: 560px;
  height: 315px;
  margin-right: 0;
}

.carousel-dots a {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 6px;
}

.screenshots {
  position: relative;
}

.screenshots .carousel {
  overflow: hidden;
}

.screenshots .carousel-item img {
  max-width: 100%;
  height: auto;
}

.rt-center {
  text-align: center;
}

.rt-right {
  text-align: right;
}

.rt-justify {
  text-align: justify;
}

.rt-figure,
.rt-figure-center,
.rt-figure-right {
  margin-top: 16px;
  margin-bottom: 16px;
  max-width: 100%;
}

.rt-figure-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.rt-figure-right {
  margin-left: auto;
  text-align: right;
}

.rt-upload {
  height: auto;
  max-width: 560px;
  width: auto;
}

.rt-table-wrap {
  margin-top: 16px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.rt-check input {
  margin-right: 8px;
}

.rt-rel,
.rt-link {
  max-width: 100%;
}

.rt-text-red {
  color: #ef4444;
}
.rt-text-orange {
  color: #f97316;
}
.rt-text-yellow {
  color: #eab308;
}
.rt-text-green {
  color: #22c55e;
}
.rt-text-blue {
  color: #3b82f6;
}
.rt-text-purple {
  color: #a855f7;
}
.rt-text-pink {
  color: #ec4899;
}

.rt-bg-red {
  background-color: #ef4444;
}
.rt-bg-orange {
  background-color: #f97316;
}
.rt-bg-yellow {
  background-color: #eab308;
}
.rt-bg-green {
  background-color: #22c55e;
}
.rt-bg-blue {
  background-color: #3b82f6;
}
.rt-bg-purple {
  background-color: #a855f7;
}
.rt-bg-pink {
  background-color: #ec4899;
}

html {
  height: 100%;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", Tahoma, sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(63, 53, 48, 0.035),
    rgba(63, 53, 48, 0.035) 1px,
    transparent 1px,
    transparent 5px
  );
  color: var(--ink);
}

html[data-scheme="dark"] body {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(235, 227, 220, 0.03),
    rgba(235, 227, 220, 0.03) 1px,
    transparent 1px,
    transparent 5px
  );
}

@media (prefers-color-scheme: dark) {
  html:not([data-scheme]) body {
    background-image: repeating-linear-gradient(
      0deg,
      rgba(235, 227, 220, 0.03),
      rgba(235, 227, 220, 0.03) 1px,
      transparent 1px,
      transparent 5px
    );
  }
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  min-height: 0;
}

.site-section {
  margin-bottom: 28px;
}

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

.site-header,
.site-footer {
  background: var(--surface);
}

.site-header-masthead {
  position: relative;
  z-index: 2;
  display: block;
  padding: 20px 16px 0;
  border-bottom: 1px solid var(--border);
}

.site-masthead {
  display: flex;
  align-items: center;
}

.site-logo-word {
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 28px;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.site-folio {
  height: 0;
  margin: 16px 0 0;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--accent);
}

.site-header-masthead .site-nav {
  position: static;
  left: auto;
  display: block;
  margin: 0;
  padding: 12px 0;
  text-align: center;
  border-top: 0;
  -webkit-transform: none;
  transform: none;
}

.site-header-masthead .site-nav-group + .site-nav-group::before {
  content: "\00b7";
  display: inline-block;
  margin-right: 16px;
  color: var(--muted);
}

.site-nav-trigger {
  padding: 0 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.site-nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 3;
  min-width: 88px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  box-shadow: inset 0 1px 0 var(--accent), 0 2px 8px rgba(63, 53, 48, 0.1);
}

.site-header-masthead .site-nav-group + .site-nav-group .site-nav-menu {
  left: 20px;
}

.site-nav-group:hover .site-nav-menu {
  display: block;
}

.site-nav-menu li {
  margin: 0;
}

.site-nav-menu a {
  display: block;
  padding: 8px 18px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-footer-colophon {
  position: relative;
  text-align: left;
  padding: 36px 16px 32px;
  border-top: 3px solid var(--ink);
  color: var(--muted);
}

.site-footer-colophon::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 6px;
  border-top: 1px solid var(--accent);
}

.site-footer-colophon .site-brand {
  display: block;
  margin-bottom: 16px;
}

.site-footer-colophon .site-footer-nav {
  margin-bottom: 16px;
}

.site-footer-colophon .site-footer-nav a {
  margin-right: 16px;
}

.site-footer-colophon .site-footer-nav a + a::before {
  content: "\00b7";
  margin-right: 16px;
  color: var(--muted);
}

.site-footer-colophon aside {
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 13px;
}

.site-footer-colophon aside p {
  margin: 0 0 8px;
}

.site-brand,
.site-nav-group > a,
.site-section-title a,
.site-crumbs a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav-group:hover > a,
.site-nav-group:hover .site-nav-trigger,
.site-brand:hover,
.site-section-title a:hover,
a:hover {
  color: var(--accent);
}

.site-nav-menu a:hover,
.site-nav-menu a:focus {
  color: var(--accent);
  background: var(--chip);
}

.site-section-title,
.site-page-heading,
.site-hero-reading h1,
.site-topic-masthead h1,
.site-news-card h3 {
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-weight: normal;
}

.site-section-title {
  position: relative;
  font-size: 22px;
  padding-bottom: 8px;
  padding-right: 20px;
  border-bottom: 2px solid var(--accent);
}

.site-section-title::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 12px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.site-page-heading {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.3;
}

.site-scheme-toggle {
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}

.site-scheme-icon {
  display: block;
  width: 24px;
  height: 24px;
}

.home-hero-lead > .home-hero-carousel + .home-hero-rail {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.home-hero-lead .home-hero-rail {
  flex: 1;
  width: 0;
}

.home-hero-lead .home-hero-rail .site-section {
  margin-bottom: 16px;
}

.home-hero-lead .home-hero-rail .site-section:last-child {
  margin-bottom: 0;
}

.home-hero-tabs {
  position: relative;
}

.home-hero-tab-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.home-hero-tab-bar {
  display: flex;
  align-items: flex-end;
  position: relative;
  margin: 0 0 8px;
  padding-right: 20px;
  border-bottom: 2px solid var(--accent);
}

.home-hero-tab-bar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 12px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.home-hero-tab {
  display: flex;
  align-items: center;
  margin: 0 20px -2px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.3;
  color: var(--muted);
  cursor: pointer;
}

.home-hero-tab:last-child {
  margin-right: 0;
}

.home-hero-tab:hover {
  color: var(--accent);
}

.home-hero-tab-featured {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

#home-hero-tab-news:checked ~ .home-hero-tab-bar .home-hero-tab-featured {
  color: var(--muted);
  border-bottom-color: transparent;
}

#home-hero-tab-featured:checked ~ .home-hero-tab-bar .home-hero-tab-featured,
#home-hero-tab-news:checked ~ .home-hero-tab-bar .home-hero-tab-news {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

#home-hero-tab-featured:focus ~ .home-hero-tab-bar .home-hero-tab-featured,
#home-hero-tab-news:focus ~ .home-hero-tab-bar .home-hero-tab-news {
  outline: 1px dotted var(--ink);
}

.home-hero-tab-panel {
  display: none;
}

.home-hero-tab-panel-featured {
  display: block;
}

#home-hero-tab-news:checked ~ .home-hero-tab-panel-featured {
  display: none;
}

#home-hero-tab-featured:checked ~ .home-hero-tab-panel-featured,
#home-hero-tab-news:checked ~ .home-hero-tab-panel-news {
  display: block;
}

.home-hero-split {
  display: block;
}

.home-hero-split .home-hero-rail {
  display: flex;
  width: 100%;
  margin-left: 0;
}

.home-hero-split .home-hero-rail .site-section {
  flex: 1;
  width: 0;
  margin-bottom: 0;
}

.home-hero-split .home-hero-rail .site-section + .site-section {
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.site-post-card-list {
  display: flex;
  flex-wrap: wrap;
}

.site-post-card-list > li {
  width: 384px;
  flex-shrink: 0;
  margin-right: 64px;
}

.site-post-card-list > li:nth-child(4n) {
  margin-right: 64px;
}

.site-post-card-list > li:nth-child(3n) {
  margin-right: 0;
}

.site-card-editorial {
  padding: 16px;
  background: var(--bg);
}

.site-card-editorial:hover {
  box-shadow: 0 4px 14px rgba(63, 53, 48, 0.16);
}

.site-card-top {
  display: flex;
  align-items: flex-start;
}

.site-card-top .site-card-icon {
  float: none;
}

.site-card-body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.site-card-body h3,
.site-card-body .site-card-meta {
  margin: 0;
}

.site-card-body h3 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.4;
}

.site-card-byline {
  margin-bottom: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.site-card .site-badge-row {
  white-space: normal;
  text-align: left;
  margin-top: 8px;
}

.site-card .site-badge-row a {
  width: auto;
  margin-right: 8px;
  margin-bottom: 4px;
  text-align: center;
  box-sizing: border-box;
}

.site-card .site-badge-row a:last-child {
  margin-right: 0;
}

.site-news-card-list > li {
  display: block;
  width: 100%;
  margin-right: 0;
  margin-bottom: 16px;
}

.site-news-card {
  padding: 16px 20px;
}

.site-news-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.4;
}

.site-news-card p {
  margin: 0 0 8px;
  line-height: 1.6;
}

.site-news-card time {
  display: block;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-news-card:hover {
  box-shadow: 0 4px 14px rgba(63, 53, 48, 0.16);
}

.site-topic-cover-wide {
  width: 560px;
  height: 315px;
}

.site-topic-cover-wide.site-topic-cover-empty {
  line-height: 315px;
}

.site-topic-card-list .site-card h3 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  padding: 8px 12px 12px;
}

.site-topic-masthead {
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(63, 53, 48, 0.1);
}

.site-topic-masthead h1 {
  margin: 0 0 8px;
  padding-bottom: 8px;
  font-size: 32px;
  line-height: 1.3;
  border-bottom: 1px solid var(--border);
}

.site-topic-split {
  display: flex;
  align-items: flex-start;
  margin-top: 16px;
}

.site-topic-split-cover {
  flex-shrink: 0;
  margin-right: 24px;
}

.site-topic-split-copy {
  flex: 1;
  min-width: 0;
}

.site-topic-split-copy time {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
}

.site-topic-slogan {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.site-topic-seo {
  margin: 0;
  line-height: 1.6;
}

.site-hero-row {
  display: flex;
  align-items: flex-start;
}

.site-hero-copy {
  flex: 1;
  min-width: 0;
}

.site-hero-reading {
  padding: 24px 28px;
}

.site-hero-reading h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.3;
}

.site-hero-lead {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.site-hero-toolbar {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  margin-left: 24px;
}

.site-hero-icon {
  margin: 0 16px 0 0;
  flex-shrink: 0;
}

.site-hero-meta {
  flex-shrink: 0;
}

.site-hero-aside {
  margin: 8px 0 0;
  width: auto;
}

.site-hero .site-badge-list {
  margin: 0;
}

.site-hero .site-badge-list li {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 4px;
}

.site-hero .site-stat-list {
  margin: 0;
}

.site-hero .site-stat-list > div {
  display: block;
  margin-right: 0;
  margin-bottom: 4px;
}

.site-hero .site-stat-list dt,
.site-hero .site-stat-list dd {
  display: inline;
  margin: 0;
}

.site-hero .site-stat-list dt {
  margin-right: 6px;
}

.site-hero-aside .site-modal-trigger {
  display: block;
  text-align: center;
}

.site-post-tech .site-dl,
.site-modal-panel .site-dl {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.site-post-tech .site-dl .site-dl-row,
.site-modal-panel .site-dl .site-dl-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.site-post-tech .site-dl .site-dl-row:last-child,
.site-modal-panel .site-dl .site-dl-row:last-child {
  border-bottom: 0;
}

.site-post-tech .site-dl dt,
.site-post-tech .site-dl dd,
.site-modal-panel .site-dl dt,
.site-modal-panel .site-dl dd {
  box-sizing: border-box;
  margin: 0;
  padding: 10px 14px;
}

.site-post-tech .site-dl dt,
.site-modal-panel .site-dl dt {
  width: 200px;
  flex-shrink: 0;
  color: var(--muted);
  background: var(--chip);
}

.site-post-tech .site-dl dd,
.site-modal-panel .site-dl dd {
  flex: 1;
  width: 0;
  min-width: 0;
  border-left: 1px solid var(--border);
  word-break: break-all;
}

.site-post-tech .site-dl .site-modal-root {
  display: inline;
}

.site-post-tech .site-dl .site-modal-trigger {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--link);
  text-decoration: underline;
}

.site-changelog .site-disclose {
  padding: 0;
  margin-top: 0;
  margin-bottom: 8px;
}

.site-changelog .site-disclose:last-child {
  margin-bottom: 0;
}

.site-changelog summary {
  position: relative;
  padding: 12px 36px 12px 16px;
  cursor: pointer;
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 18px;
}

.site-changelog summary::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border: 1px solid var(--accent);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.site-changelog .site-disclose-body {
  padding: 0 16px 16px;
}

.site-modal-toggle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-modal {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
}

.site-modal-toggle:checked + .site-modal {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-modal-backdrop {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}

.site-modal-panel {
  position: relative;
  z-index: 1;
  width: 640px;
  margin: 0;
  max-height: 70vh;
  overflow: auto;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(63, 53, 48, 0.12);
}

.site-modal-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.site-modal-head h3 {
  flex: 1;
  margin: 0;
}

.site-modal-close {
  margin-left: 12px;
  cursor: pointer;
  color: var(--link);
}

.site-modal-sr,
.site-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-modal-trigger {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--chip);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}

.site-modal-trigger-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(246, 240, 234, 0.55),
    0 2px 6px rgba(63, 53, 48, 0.16);
  letter-spacing: 0.04em;
}

.site-modal-body button {
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}

.site-card,
.site-hero,
.site-disclose,
.site-prompt,
.site-status {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(63, 53, 48, 0.1);
}

.site-card-editorial {
  background: var(--bg);
}

.site-card-meta,
.site-section-meta,
.site-stat-list {
  color: var(--muted);
}

.site-badge-row a,
.site-badge-list a,
.site-badge {
  background: var(--chip);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
}

.site-pager a,
.site-pager span {
  min-width: 28px;
  box-sizing: border-box;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.site-pager [aria-current="page"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.site-tag-cloud {
  text-align: left;
}

.site-tag-cloud a {
  display: inline-block;
  box-sizing: border-box;
  height: 28px;
  padding: 0 12px;
  line-height: 26px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--chip);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: top;
}

.site-tag-cloud a:hover,
.site-tag-cloud a:focus {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.popular-icon-empty,
.site-topic-cover-empty {
  background: var(--chip);
  color: var(--muted);
}

.home-list-row {
  position: relative;
  border-bottom: 1px solid var(--border);
  padding: 8px 0 8px 12px;
}

.home-list-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 4px;
  height: 4px;
  background: var(--accent);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.home-carousel-wrap .carousel-dots,
.screenshots-folio {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 0 10px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--ink);
  box-shadow: inset 0 1px 0 var(--accent);
}

.home-carousel-wrap .carousel-dots::before,
.home-carousel-wrap .carousel-dots::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  margin: 0 8px;
  vertical-align: middle;
  background: var(--accent);
}

.home-carousel-wrap .carousel-dots a {
  display: inline-block;
  position: relative;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  padding: 0;
  vertical-align: middle;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.home-carousel-wrap .carousel-dots a:last-child {
  margin-right: 0;
}

.home-carousel-wrap .carousel-dots a::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 6px;
  height: 6px;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid var(--accent);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.home-carousel-wrap .carousel-dots a.is-current::after {
  background: var(--accent);
}

.screenshots-folio button {
  display: inline-block;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--link);
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.screenshots-folio button:hover,
.screenshots-folio button:focus {
  color: var(--accent);
}

.screenshots-folio-mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px;
  vertical-align: middle;
  background: var(--accent);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.site-modal-body .site-download-row button,
.site-download-row a {
  display: inline-block;
  box-sizing: border-box;
  width: 112px;
  height: 32px;
  margin-right: 8px;
  margin-bottom: 0;
  padding: 0 14px;
  line-height: 30px;
  font-family: inherit;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(246, 240, 234, 0.55),
    0 2px 6px rgba(63, 53, 48, 0.16);
  letter-spacing: 0.04em;
}

.site-download-row > :last-child {
  margin-right: 0;
}

[data-tag-refresh] {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

[data-tag-refresh]:hover,
[data-tag-refresh]:focus {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.site-back-top-slot {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 32px;
  z-index: 80;
  pointer-events: none;
}

.site-back-top-inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.site-back-top {
  display: none;
  width: 64px;
  height: 64px;
  padding: 0;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 2px 8px rgba(63, 53, 48, 0.16);
  cursor: pointer;
  pointer-events: auto;
}

.site-back-top.is-visible {
  display: flex;
}

.site-back-top[hidden] {
  display: none;
}

.site-back-top-icon {
  width: 32px;
  height: 32px;
  vertical-align: middle;
}

.site-crumb-sep::before {
  content: "\00b7";
  margin: 0 8px;
  color: var(--muted);
}

.site-canvas-reading {
  box-sizing: border-box;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(63, 53, 48, 0.1);
}

.site-canvas-reading h1 {
  margin: 0 0 16px;
  padding-bottom: 8px;
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 32px;
  font-weight: normal;
  line-height: 1.3;
  border-bottom: 1px solid var(--border);
}

.site-canvas-reading header time,
.site-canvas-reading header p {
  color: var(--muted);
}

.site-error {
  max-width: 560px;
  margin: 48px auto;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(63, 53, 48, 0.1);
}

.site-error > p:first-child {
  margin: 0 0 8px;
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 36px;
  font-weight: normal;
  color: var(--accent);
}
