.language-switcher {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 24px;
  font:
    500 13px/1.4 system-ui,
    sans-serif;
}
.language-switcher a {
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 24px;
  color: #345346;
  text-decoration: none;
  white-space: nowrap;
}
.language-switcher a[aria-current="page"] {
  background: #e8efdf;
  border-color: #ccd9bc;
  color: #193e32;
  font-weight: 700;
}
.language-switcher a:hover,
.language-switcher a:focus-visible {
  border-color: #557b3f;
  outline-offset: 3px;
}
html:lang(zh-CN) body {
  font-family:
    "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
html:lang(zh-CN) h1,
html:lang(zh-CN) h2 {
  letter-spacing: -0.025em;
  line-height: 1.3;
}
html:lang(es) .hero h1 {
  font-size: clamp(36px, 5.5vw, 68px);
}
.locale-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}
.locale-steps strong {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dee9c8;
  color: #22442d;
}
.locale-steps p {
  margin: 0.5em 0;
  font-size: 15px;
}
.guide-card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin: 40px 0;
}
.guide-card {
  padding: 22px;
  border: 1px solid #dce5d4;
  border-radius: 22px;
  background: #fff;
}
.article details {
  padding: 18px 0;
  border-bottom: 1px solid #dfe6da;
}
.article details summary {
  font-weight: 700;
  cursor: pointer;
  line-height: 1.5;
}
#preview-cover {
  display: block;
  margin-top: 12px;
}
@media (max-width: 640px) {
  .language-switcher {
    justify-content: center;
    padding: 8px 14px;
  }
  .language-switcher a {
    padding: 6px 10px;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .locale-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-header {
    flex-wrap: wrap;
    gap: 14px;
  }
  .site-header nav {
    flex-wrap: wrap;
    gap: 12px;
  }
  html:lang(es) .header {
    gap: 12px;
  }
  html:lang(es) .header .button {
    font-size: 13px;
    padding: 10px 14px;
  }
  html:lang(es) .hero h1 {
    font-size: 39px;
  }
  html:lang(zh-CN) .hero h1 {
    font-size: 34px;
  }
}
