/* /documents/ page-specific styles. /styles.css loads FIRST and provides the
   tokens (--ink, --muted, --line-2, --radius, --shadow-sm, --grad-soft, …),
   navbar, footer and .btn — this file only styles the docs list itself. */

.docs-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(14px, 2vw, 22px); text-align: center;
  background: radial-gradient(120% 140% at 50% -20%, var(--grad-soft), transparent 62%); }
.docs-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -.035em; margin: 0 0 14px; scroll-margin-top: 84px; }
.docs-lede { margin: 0 auto; max-width: 640px; }

.docs-body { padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }

.docs-loading { text-align: center; color: var(--muted); padding: 48px 0; font-size: 1.05rem; }

.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.doc-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 22px 22px 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.doc-desc { margin: 0; color: var(--ink); font-weight: 600; font-size: 1.02rem; line-height: 1.45; flex: 1 1 auto;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

.doc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.doc-chip {
  display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
  font-size: .8rem; font-weight: 650; color: var(--violet-2, #2563eb);
  background: var(--grad-soft, rgba(59, 130, 246, .1)); border: 1px solid var(--line-2);
  text-transform: capitalize;
}

.doc-when { margin: 0; color: var(--muted); font-size: .86rem; }

.doc-actions { display: flex; gap: 10px; margin-top: 2px; }
.doc-actions .btn { padding: 10px 18px; font-size: .95rem; }
.doc-actions .btn:disabled { opacity: .6; cursor: progress; }

.docs-empty {
  max-width: 520px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(36px, 5vw, 56px) 28px; box-shadow: var(--shadow-sm);
}
.docs-empty h2 { margin: 0 0 10px; font-size: 1.5rem; letter-spacing: -.02em; }
.docs-empty p { color: var(--muted); margin: 0 0 22px; font-size: 1.02rem; line-height: 1.55; }
