/* OpenVibe.Blog — readable, theme-token driven (openvibe-shared presets). No JavaScript needed. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg-primary, #0a0f1c); color: var(--text-primary, #e6edf7); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-light, #60a5fa); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent, #3b82f6); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg-card, #131c2e); padding: 8px 12px; z-index: 10; }
.account-bar { max-width: 760px; margin: 0 auto; padding: 6px 16px 0; text-align: right; font-size: 14px; color: var(--text-secondary, #96a7c2); }
.page { max-width: 760px; margin: 0 auto; padding: 16px 16px 64px; min-height: 60vh; }
.blog-surface { background: var(--bg-primary); color: var(--text-primary); border-radius: 12px; }
body.editor .page { max-width: 900px; }
h1 { font-size: 2.1rem; line-height: 1.2; margin: 1.2rem 0 .6rem; }
h2 { font-size: 1.35rem; margin: 1.6rem 0 .5rem; }
.lede { color: var(--text-secondary, #96a7c2); font-size: 1.1rem; }
.meta, .byline, .empty { color: var(--text-muted, #7386a3); font-size: .9rem; }
.badge { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border-light, #2c3d5c); color: var(--text-secondary); vertical-align: middle; }
.post-list, .comment-list, .replies { list-style: none; padding: 0; }
.post-item { padding: 14px 0; border-bottom: 1px solid var(--border, #1f2d47); }
.post-item-title { margin: 0 0 4px; font-size: 1.3rem; }
.post-item-title a { color: var(--text-primary); text-decoration: none; }
.post-item-title a:hover { text-decoration: underline; }
.summary { margin: 6px 0; }
.tags a, .categories a { margin-right: 6px; }
.post-body img, .ov-media img { max-width: 100%; height: auto; border-radius: 8px; }
.post-body pre { overflow-x: auto; background: var(--bg-tertiary, #172238); padding: 12px; border-radius: 8px; }
.post-body blockquote { border-left: 3px solid var(--accent, #3b82f6); margin: 0; padding-left: 14px; color: var(--text-secondary); }
.ov-media { margin: 1.2rem 0; }
.ov-media figcaption { font-size: .9rem; color: var(--text-muted); }
.ov-media-missing { padding: 28px 16px; border: 1px dashed var(--border-light, #2c3d5c); border-radius: 8px; text-align: center; color: var(--text-secondary); background: var(--bg-tertiary, #172238); }
.disclosure { border: 1px solid var(--warning, #f59e0b); border-radius: 8px; padding: 8px 12px; }
.series { border: 1px solid var(--border, #1f2d47); border-radius: 8px; padding: 8px 14px; margin: 12px 0; font-size: .95rem; }
.sources ol { padding-left: 1.2rem; }
.ov-breadcrumbs ol { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; }
.ov-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--text-muted); }
.ov-pagination { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.comments { margin-top: 40px; border-top: 1px solid var(--border, #1f2d47); }
.comment { padding: 10px 0; border-bottom: 1px solid var(--border, #1f2d47); }
.replies { margin-left: 22px; }
.notice { border-left: 3px solid var(--info, #38bdf8); padding: 6px 12px; background: var(--bg-card, #131c2e); }
.notice.error { border-color: var(--danger, #ef4444); }
.card { border: 1px solid var(--border, #1f2d47); border-radius: 10px; padding: 12px 16px; margin: 16px 0; background: var(--bg-card, #131c2e); }
label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: .95rem; }
label input[type=checkbox] { margin-right: 6px; }
input, textarea, select { width: 100%; font: inherit; color: var(--text-primary); background: var(--bg-input, #0d1424); border: 1px solid var(--border-light, #2c3d5c); border-radius: 6px; padding: 8px 10px; }
input[type=checkbox] { width: auto; }
textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; }
button, .button { display: inline-block; margin-top: 10px; font: inherit; font-weight: 600; background: var(--accent, #3b82f6); color: var(--on-accent, #fff); border: 0; border-radius: 6px; padding: 8px 16px; cursor: pointer; text-decoration: none; }
button.danger { background: var(--danger, #ef4444); }
form.inline { display: inline; }
form.inline button { margin: 0 0 0 8px; padding: 2px 10px; font-size: .85rem; }
.actions form { margin: 10px 0; }
table.posts { width: 100%; border-collapse: collapse; }
table.posts th, table.posts td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border, #1f2d47); }
.ov-diff ins { background: rgba(34,197,94,.25); text-decoration: none; }
.ov-diff del { background: rgba(239,68,68,.25); }
.ov-diff { white-space: pre-wrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 600px) { h1 { font-size: 1.7rem; } body { font-size: 16px; } }
