/* DayuDocs 1.1.0 — B 卡片资源库 */

:root {
  --dd-bg: #F5F7FB;
  --dd-surface: #ffffff;
  --dd-text: #1E293B;
  --dd-muted: #64748B;
  --dd-border: #E2E8F0;
  --dd-primary: #0D9488;
  --dd-primary-hover: #0F766E;
  --dd-primary-soft: #CCFBF1;
  --dd-primary-tint: #F0FDFA;
  --dd-accent: #0D9488;
  --dd-radius: 14px;
  --dd-radius-sm: 10px;
  --dd-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --dd-shadow-hover: 0 4px 8px rgba(15, 23, 42, 0.06), 0 16px 32px rgba(13, 148, 136, 0.12);
  --dd-font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --dd-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --dd-max: 1160px;
  --dd-header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--dd-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dd-text);
  background: var(--dd-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--dd-primary);
  text-decoration: none;
}

a:hover {
  color: var(--dd-primary-hover);
}

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

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 8px 14px;
  background: var(--dd-primary);
  color: #fff;
  border-radius: 8px;
}

.container {
  width: min(100% - 2rem, var(--dd-max));
  margin-inline: auto;
}

.container.narrow {
  max-width: 760px;
}

.site-main {
  flex: 1;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-sticky {
  border-bottom-color: var(--dd-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--dd-header-h);
}

.site-branding .site-title,
.site-branding .custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dd-text);
  text-decoration: none;
}

.site-branding .site-title::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.35);
  flex-shrink: 0;
}

.site-branding img {
  max-height: 40px;
  width: auto;
}

.primary-nav {
  flex: 1;
}

.primary-nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav .menu a {
  color: var(--dd-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.15s;
}

.primary-nav .menu a:hover,
.primary-nav .menu .current-menu-item > a {
  color: var(--dd-primary);
}

.header-search .search-form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.search-field {
  width: 200px;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--dd-border);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9rem;
  background: var(--dd-bg);
  color: var(--dd-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-field:focus {
  outline: none;
  border-color: var(--dd-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.search-submit,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.search-submit {
  background: var(--dd-primary);
  border-color: var(--dd-primary);
  color: #fff;
  padding: 0.5rem 1rem;
}

.search-submit:hover {
  background: var(--dd-primary-hover);
  color: #fff;
}

.btn-primary {
  background: var(--dd-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background: var(--dd-primary-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--dd-surface);
  border-color: var(--dd-border);
  color: var(--dd-text);
}

.btn-secondary:hover {
  border-color: var(--dd-primary);
  color: var(--dd-primary);
  text-decoration: none;
}

.btn-ghost {
  background: var(--dd-primary-tint);
  color: var(--dd-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--dd-primary-soft);
  color: var(--dd-primary-hover);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--dd-border);
  border-radius: 10px;
  background: var(--dd-surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--dd-text);
  border-radius: 1px;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 3.25rem 0 2.75rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(13, 148, 136, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 5% 80%, rgba(56, 189, 248, 0.1), transparent 50%),
    linear-gradient(180deg, #EEF6F5 0%, var(--dd-bg) 100%);
  border-bottom: 1px solid var(--dd-border);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dd-primary);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--dd-primary-soft);
  border-radius: 999px;
}

.hero-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--dd-text);
}

.hero-title .accent {
  color: var(--dd-primary);
}

.hero-desc {
  margin: 0 0 1.5rem;
  color: var(--dd-muted);
  font-size: 1.05rem;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-filters a,
.filter-chips a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  border: 1px solid var(--dd-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--dd-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.hero-filters a:hover,
.hero-filters a.is-active,
.filter-chips a:hover,
.filter-chips a.is-active {
  background: var(--dd-primary);
  border-color: var(--dd-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
}

/* —— Sections —— */
.section {
  padding: 2.75rem 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.section-sub {
  margin: 0.25rem 0 0;
  color: var(--dd-muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.section-more {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--dd-primary);
}

.section-more:hover {
  color: var(--dd-primary-hover);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.quick-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.35rem 1.4rem;
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  box-shadow: var(--dd-shadow);
  color: var(--dd-text);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.quick-card:hover {
  border-color: var(--dd-primary);
  transform: translateY(-2px);
  box-shadow: var(--dd-shadow-hover);
  text-decoration: none;
  color: var(--dd-text);
}

.quick-card strong {
  font-size: 1.05rem;
}

.quick-card span {
  color: var(--dd-muted);
  font-size: 0.88rem;
}

.quick-card .quick-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  background: var(--dd-primary-tint);
  color: var(--dd-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

/* —— Docs list —— */
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.docs-item {
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  box-shadow: var(--dd-shadow);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.docs-item:hover {
  border-color: #99F6E4;
  box-shadow: var(--dd-shadow-hover);
  transform: translateY(-1px);
}

.docs-item-link {
  display: block;
  padding: 1.05rem 1.25rem;
  color: inherit;
  text-decoration: none;
}

.docs-item-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.docs-item-excerpt {
  margin: 0 0 0.5rem;
  color: var(--dd-muted);
  font-size: 0.92rem;
}

.docs-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--dd-muted);
}

.docs-item-cat {
  color: var(--dd-primary);
  font-weight: 600;
}

/* —— Asset marketplace cards —— */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.asset-card {
  display: flex;
  flex-direction: column;
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  overflow: hidden;
  box-shadow: var(--dd-shadow);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.asset-card:hover {
  transform: translateY(-4px);
  border-color: #99F6E4;
  box-shadow: var(--dd-shadow-hover);
}

.asset-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  flex: 1;
}

.asset-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #E2E8F0 0%, #F1F5F9 50%, #CCFBF1 100%);
  overflow: hidden;
}

.asset-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.asset-card:hover .asset-card-thumb img {
  transform: scale(1.04);
}

.asset-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  background:
    radial-gradient(circle at 30% 40%, rgba(13, 148, 136, 0.18), transparent 45%),
    repeating-linear-gradient(
      -45deg,
      #EEF2F7,
      #EEF2F7 10px,
      #E4E9F0 10px,
      #E4E9F0 20px
    );
}

.asset-card-placeholder.large {
  min-height: 300px;
  border-radius: var(--dd-radius);
}

.asset-card-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dd-primary);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.asset-card-body {
  padding: 0.95rem 1.05rem 0.35rem;
}

.asset-card-title {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asset-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.asset-card-type,
.asset-card-ver {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.asset-card-type {
  color: var(--dd-primary);
  background: var(--dd-primary-tint);
}

.asset-card-ver {
  color: var(--dd-muted);
  background: var(--dd-bg);
}

.asset-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.75rem 1.05rem 1.05rem;
  border-top: 1px solid transparent;
}

.asset-card-stats {
  font-size: 0.78rem;
  color: var(--dd-muted);
  white-space: nowrap;
}

.asset-card-stats strong {
  color: var(--dd-text);
  font-weight: 650;
}

.asset-card-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--dd-primary);
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 650;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.28);
  transition: background 0.15s, transform 0.15s;
}

.asset-card-cta:hover {
  background: var(--dd-primary-hover);
  transform: translateY(-1px);
}

/* —— Docs layout —— */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 1.5rem 0 3rem;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--dd-header-h) + 1rem);
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  padding: 1.1rem;
  box-shadow: var(--dd-shadow);
}

.widget-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.docs-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-cat-list li + li {
  margin-top: 0.3rem;
}

.docs-cat-list a {
  display: flex;
  justify-content: space-between;
  color: var(--dd-text);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
}

.docs-cat-list a:hover {
  background: var(--dd-primary-tint);
  color: var(--dd-primary);
}

.docs-cat-list .count {
  color: var(--dd-muted);
  font-size: 0.85rem;
}

.content-wrap {
  padding: 1.5rem 0 3rem;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--dd-muted);
}

.breadcrumb a {
  color: var(--dd-muted);
}

.breadcrumb a:hover {
  color: var(--dd-primary);
}

.breadcrumb .sep {
  margin: 0 0.35rem;
}

.breadcrumb .current {
  color: var(--dd-text);
}

.page-header {
  margin-bottom: 1.5rem;
}

.page-title {
  margin: 0 0 0.65rem;
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.entry-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--dd-muted);
}

.entry-content {
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--dd-shadow);
}

.docs-body {
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 1.75em;
  scroll-margin-top: calc(var(--dd-header-h) + 1rem);
}

.entry-content pre,
.entry-content code {
  font-family: var(--dd-mono);
  font-size: 0.9em;
}

.entry-content pre {
  overflow-x: auto;
  padding: 1rem;
  background: #F1F5F9;
  border-radius: 10px;
}

/* —— Download box —— */
.download-box {
  margin-bottom: 1.1rem;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(160deg, var(--dd-primary-tint) 0%, #fff 70%);
  border: 1px solid #99F6E4;
  border-radius: var(--dd-radius);
  box-shadow: var(--dd-shadow);
}

.download-box-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
}

.download-meta {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: var(--dd-muted);
}

.btn-download {
  width: 100%;
  border-radius: 999px;
}

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--dd-border);
  font-size: 0.95rem;
}

/* —— Asset single (marketplace detail) —— */
.asset-single-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.asset-preview {
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  overflow: hidden;
  box-shadow: var(--dd-shadow);
}

.asset-preview img {
  width: 100%;
  border-radius: 0;
  border: 0;
  background: var(--dd-surface);
}

.asset-info {
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  padding: 1.4rem;
  box-shadow: var(--dd-shadow);
  align-self: start;
  position: sticky;
  top: calc(var(--dd-header-h) + 1rem);
}

.asset-meta-list {
  flex-direction: column;
  gap: 0.45rem;
}

.meta-row strong {
  color: var(--dd-text);
}

.asset-type-pill {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--dd-primary-tint);
  color: var(--dd-primary);
  font-size: 0.8rem;
  font-weight: 700;
}

.filter-pills,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.filter-pills a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--dd-border);
  border-radius: 999px;
  background: var(--dd-surface);
  color: var(--dd-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-pills a.is-active,
.filter-pills a:hover {
  border-color: var(--dd-primary);
  color: #fff;
  background: var(--dd-primary);
}

.archive-hero {
  margin-bottom: 0.5rem;
}

.archive-hero .page-desc {
  margin: 0;
  color: var(--dd-muted);
  max-width: 36em;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item {
  padding: 1.05rem 1.2rem;
  background: var(--dd-surface);
  border: 1px solid var(--dd-border);
  border-radius: var(--dd-radius);
  box-shadow: var(--dd-shadow);
}

.post-item-title {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.1rem;
}

.post-type-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--dd-primary);
  background: var(--dd-primary-tint);
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
}

.empty-hint {
  color: var(--dd-muted);
  padding: 2rem;
  text-align: center;
  background: var(--dd-surface);
  border: 1px dashed var(--dd-border);
  border-radius: var(--dd-radius);
}

.error-404 {
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.error-404 .search-form {
  justify-content: center;
  margin-top: 1.5rem;
}

.navigation.pagination {
  margin-top: 1.75rem;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.navigation.pagination a,
.navigation.pagination span {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--dd-border);
  border-radius: 999px;
  background: var(--dd-surface);
  color: var(--dd-text);
  text-decoration: none;
  font-size: 0.9rem;
}

.navigation.pagination .current {
  background: var(--dd-primary);
  border-color: var(--dd-primary);
  color: #fff;
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  padding: 2.25rem 0;
  border-top: 1px solid var(--dd-border);
  background: #fff;
  color: var(--dd-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--dd-muted);
}

.footer-nav a:hover {
  color: var(--dd-primary);
}

.copyright {
  margin: 0;
}

.copyright a {
  color: var(--dd-text);
  font-weight: 600;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .asset-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .asset-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .docs-sidebar {
    position: static;
  }

  .asset-single-grid {
    grid-template-columns: 1fr;
  }

  .asset-info {
    position: static;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: var(--dd-header-h);
    left: 0;
    right: 0;
    background: var(--dd-surface);
    border-bottom: 1px solid var(--dd-border);
    padding: 0.75rem 1rem 1rem;
    box-shadow: var(--dd-shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav .menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .header-inner {
    flex-wrap: wrap;
    position: relative;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .header-search .search-field {
    flex: 1;
    width: auto;
  }

  .asset-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.25rem 0 2rem;
  }
}
