/* layer-2.wiki */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f8fafc; color: #1e293b; font-family: 'Inter', sans-serif; line-height: 1.7; }
.hero { max-width: 700px; margin: 0 auto; padding: 3rem 1.5rem; text-align: center; }
.brand-row { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.book-icon { display: flex; gap: 2px; }
.book-l, .book-r { width: 10px; height: 14px; background: #2563eb; border-radius: 2px; }
.book-r { background: #93c5fd; }
.brand { font-weight: 600; font-size: 1.5rem; }
.search-bar { max-width: 600px; margin: 0 auto 1rem; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 8px; background: #ffffff; display: flex; align-items: center; gap: 0.5rem; }
.search-icon { font-size: 0.9rem; }
.search-placeholder { font-size: 0.9rem; color: #94a3b8; }
.subtitle { font-size: 0.85rem; color: #64748b; margin-bottom: 1rem; }
.categories { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.cat-btn { font-size: 0.75rem; padding: 0.3rem 0.8rem; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; color: #2563eb; }
.wiki-content { max-width: 900px; margin: 0 auto; padding: 0 1.5rem 2rem; display: flex; gap: 2rem; }
.sidebar { width: 200px; flex-shrink: 0; padding-top: 1rem; }
.nav-heading { font-size: 0.65rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin: 1rem 0 0.3rem; }
.nav-link { font-size: 0.8rem; color: #1e293b; display: block; padding: 0.2rem 0 0.2rem 0.75rem; border-left: 2px solid transparent; cursor: pointer; }
.nav-link.active { color: #2563eb; border-left-color: #2563eb; }
.article { flex: 1; background: #ffffff; border-radius: 8px; padding: 2rem; border: 1px solid #e2e8f0; }
.breadcrumb { font-size: 0.7rem; color: #94a3b8; margin-bottom: 1rem; }
.article-title { font-weight: 600; font-size: 1.5rem; margin-bottom: 1rem; }
.article-body { font-size: 0.9rem; margin-bottom: 1rem; }
.callout { background: #eff6ff; border-left: 3px solid #2563eb; padding: 1rem; border-radius: 0 8px 8px 0; margin-bottom: 1rem; }
.callout-text { font-size: 0.85rem; color: #1e40af; }
.inline-code { background: #f1f5f9; font-family: 'Fira Code', monospace; font-size: 0.8rem; padding: 0.1rem 0.4rem; border-radius: 4px; }
.timestamp { font-size: 0.7rem; color: #94a3b8; display: block; margin-top: 1rem; }
.related { max-width: 700px; margin: 0 auto; padding: 2rem 1.5rem; }
.related-title { font-weight: 600; font-size: 1rem; margin-bottom: 1rem; }
.related-cards { display: flex; gap: 1rem; }
.related-card { flex: 1; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1rem; }
.rc-title { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.3rem; }
.rc-desc { font-size: 0.75rem; color: #64748b; }
.contribute { max-width: 700px; margin: 0 auto; padding: 2rem 1.5rem; text-align: center; }
.edit-link { font-size: 0.8rem; color: #2563eb; cursor: pointer; }
.contribute-brand { font-size: 0.6rem; color: #94a3b8; display: block; margin-top: 0.5rem; }
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
