/**
 * Clay (陶土) theme handwritten CSS.
 *
 * Warm dusty-terracotta editorial skin: masthead, lead hero, editorial 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.
 *
 * Phone single column. Do not add desktop breakpoints. Home carousel is
 * full-width 16:9. Topic / detail covers are full-width 16:9 with crop.
 * Card icon 96.
 */
: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,
.site-canvas-reading {
  width: 100%;
}

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

.site-header {
  display: block;
}

.site-kind-nav {
  display: flex;
  margin-top: 6px;
  margin-bottom: 4px;
}

.site-kind-tab {
  flex: 1;
  text-align: center;
}

.site-nav-pop {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.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,
.site-topic-card-list > li {
  display: block;
  width: 100%;
  margin-bottom: 16px;
}

.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,
.site-topic-cover-wide {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.site-topic-cover > img,
.site-topic-cover-wide > img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-topic-cover-empty > span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.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 {
  margin-bottom: 16px;
}

.home-hero-col,
.home-hero-carousel,
.home-hero-rail {
  margin-bottom: 16px;
}

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

.home-carousel-wrap {
  position: relative;
  margin-bottom: 16px;
}

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

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

.home-carousel {
  width: 100%;
  font-size: 0;
}

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

.home-carousel .carousel-item {
  width: 100%;
  margin-right: 0;
}

.home-carousel-frame {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
}

.home-carousel-frame > a,
.home-carousel-frame > img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.home-carousel-frame img {
  display: block;
  width: 100%;
  height: 100%;
}

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

.screenshots {
  position: relative;
}

.screenshots .carousel {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

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

.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: 100%;
  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-masthead .site-logo {
  display: flex;
  align-items: center;
}

.site-masthead .site-logo-mark {
  width: 40px;
  height: 40px;
  margin-right: 8px;
}

.site-logo-word {
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 28px;
  font-weight: normal;
  line-height: 1;
  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-kind-tab {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--chip);
  color: var(--muted);
  text-decoration: none;
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 0 var(--border),
    0 3px 5px rgba(63, 53, 48, 0.16);
}

.site-kind-tab + .site-kind-tab {
  margin-left: 8px;
}

.site-kind-tab:hover,
.site-kind-tab:focus {
  color: var(--ink);
  background: var(--surface);
}

.site-kind-tab.is-current {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 3px 0 rgba(63, 53, 48, 0.28),
    0 5px 8px rgba(63, 53, 48, 0.2);
}

.site-kind-tab:active {
  box-shadow: inset 0 2px 4px rgba(63, 53, 48, 0.28);
}

.site-nav-pop-trigger,
.site-nav-pop-close {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}

.site-nav-pop-trigger {
  padding: 4px;
}

.site-nav-pop-icon {
  display: block;
  width: 28px;
  height: 28px;
}

.site-nav-pop-close {
  padding: 4px 12px;
}

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

.site-nav-pop-layer {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 180;
}

.site-nav-pop-toggle:checked + .site-nav-pop-layer {
  display: block;
}

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

.site-nav-pop-panel {
  position: relative;
  margin: 24px 16px 0;
  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-nav-pop-head {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.site-nav-pop-title {
  flex: 1;
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
  font-size: 22px;
  font-weight: normal;
}

.site-nav-pop-close {
  margin-left: 12px;
}

.site-nav-pop-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-pop-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.site-nav-pop-row-icon {
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
  line-height: 0;
}

.site-nav-pop-row-icon .site-icon {
  display: block;
  margin-right: 0;
}

.site-nav-pop-label {
  flex: 1;
  color: var(--ink);
  font-family: Georgia, "Songti SC", "STSong", "SimSun", serif;
}

.site-nav-pop-link {
  display: inline-block;
  margin-left: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--chip);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 0 var(--border),
    0 3px 4px rgba(63, 53, 48, 0.12);
}

.site-nav-pop-link:hover,
.site-nav-pop-link:focus {
  color: var(--ink);
  background: var(--surface);
}

.site-nav-pop-link.is-current {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 0 rgba(63, 53, 48, 0.28);
}

.site-nav-pop-link:active {
  box-shadow: inset 0 2px 4px rgba(63, 53, 48, 0.28);
}

.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-section-title a,
.site-crumbs a {
  color: var(--ink);
  text-decoration: none;
}

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

.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: 8px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}

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

.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-split .home-hero-rail .site-section {
  margin-bottom: 16px;
}

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

.site-post-card-list > li {
  display: block;
  width: auto;
  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: 0;
}

.site-news-card > a {
  display: block;
  padding: 16px 20px;
  color: inherit;
  text-decoration: none;
}

.site-news-card > a:hover {
  color: inherit;
}

.site-news-card > a:hover h3 {
  color: var(--accent);
}

.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-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 {
  margin-top: 16px;
}

.site-topic-split-cover {
  margin-bottom: 16px;
}

.site-topic-split-copy {
  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: block;
}

.site-hero-copy {
  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: block;
  margin: 16px 0 0;
}

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

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

.site-hero-identity .site-stat-list {
  flex: 1;
  min-width: 0;
}

.site-hero-aside {
  margin: 16px 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;
  width: 100%;
  box-sizing: border-box;
  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: auto;
  margin: 24px 16px 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,
.site-page-heading {
  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 button,
.site-download-row a {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  margin-right: 0;
  margin-bottom: 8px;
  padding: 0 14px;
  line-height: 30px;
  font-family: inherit;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 0 rgba(63, 53, 48, 0.22),
    0 3px 5px rgba(63, 53, 48, 0.16);
  letter-spacing: 0.04em;
}

.site-download-row > :last-child {
  margin-bottom: 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 {
  width: 100%;
  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);
}
