/* Blog publik + logo situs */
.brand-mark.has-logo { background: transparent; border: 0; box-shadow: none; padding: 0; overflow: hidden; }
.brand-mark.has-logo img, .sidebar-brand .brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; border: 0; box-shadow: none; background: transparent; }

.blog-grid { align-items: stretch; }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-cover { display: block; aspect-ratio: 16 / 9; background: var(--card-2); border-bottom: 2px solid var(--border); overflow: hidden; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-cover-empty { display: grid; place-items: center; font-size: 2rem; color: var(--muted); }
.blog-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-body h2 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.blog-card-body h2 a { color: var(--text); }
.blog-card-body h2 a:hover { color: var(--primary); text-decoration: none; }
.blog-card-body p { font-size: 0.86rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-tags a:hover { text-decoration: none; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.78rem; color: var(--muted); margin-top: auto; }
.blog-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; }
.blog-filter .chip:hover { text-decoration: none; }
.blog-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }

.blog-post { max-width: 760px; margin: 0 auto; }
.blog-post header { margin-bottom: 24px; }
.blog-post h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 12px 0; letter-spacing: -0.02em; }
.blog-hero { width: 100%; max-height: 420px; object-fit: cover; border: 2px solid var(--border); border-radius: var(--radius); margin-top: 18px; display: block; }
.blog-content { font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.blog-content > * + * { margin-top: 1.1em; }
.blog-content h2, .blog-content h3, .blog-content h4 { line-height: 1.3; margin-top: 1.8em; letter-spacing: -0.01em; }
.blog-content h2 { font-size: 1.45rem; } .blog-content h3 { font-size: 1.2rem; } .blog-content h4 { font-size: 1.05rem; }
.blog-content a { color: var(--primary); text-decoration: underline; }
.blog-content ul, .blog-content ol { padding-left: 1.4em; }
.blog-content li + li { margin-top: 0.3em; }
.blog-content img { max-width: 100%; height: auto; border: 2px solid var(--border); border-radius: var(--radius-sm); display: block; margin: 0 auto; }
.blog-content blockquote { padding: 10px 16px; border-left: 4px solid var(--pop); background: var(--card-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.blog-content code { padding: 2px 6px; border-radius: 5px; background: var(--card-2); font-size: 0.88em; font-family: ui-monospace, Consolas, monospace; }
.blog-content pre { padding: 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--card-2); overflow-x: auto; }
.blog-content pre code { padding: 0; background: none; }
.blog-content hr { border: 0; border-top: 2px dashed var(--line); margin: 2em 0; }
.blog-related { max-width: 1120px; margin: 56px auto 0; }
.blog-related h2 { font-size: 1.3rem; margin-bottom: 16px; }
.blog-draft { max-width: 760px; margin: 0 auto 18px; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: rgba(251, 191, 36, 0.18); font-size: 0.85rem; font-weight: 600; }

/* Editor admin */
.blog-editor { max-width: 860px; }
.blog-editor textarea.blog-body { min-height: 320px; font-family: ui-monospace, Consolas, monospace; font-size: 0.88rem; line-height: 1.6; }
.img-field { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.img-field .input { flex: 1 1 200px; min-width: 0; }
.img-preview { width: 44px; height: 44px; object-fit: contain; border: 2px solid var(--border); border-radius: 8px; background: var(--card-2); flex: none; }
.img-preview[hidden] { display: none; }
.md-hint { font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.row-title { font-weight: 600; }
.row-title small { display: block; font-weight: 400; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
