html.dark .post-content,html.light .post-content{font-family:Inter,sans-serif;line-height:1.8;text-align:justify;font-size:16px}html.dark .post-content a,html.light .post-content a{text-decoration:none;transition:color .3s ease-in-out}html.light .post-content{color:#333}html.light .post-content h1{font-size:28px;font-weight:700;color:#222;margin-bottom:16px}html.light .post-content h2{font-size:24px;font-weight:700;color:#333;margin-top:24px;margin-bottom:12px}html.light .post-content h3{font-size:20px;font-weight:700;color:#444;margin-top:20px;margin-bottom:10px}html.light .post-content p{margin-bottom:16px}html.light .post-content a{color:#4154f1;font-weight:500}html.light .post-content a:hover{color:#2737ca;text-decoration:underline}html.dark .post-content ol,html.dark .post-content ul,html.light .post-content ol,html.light .post-content ul{margin:16px 0;padding-left:20px}html.dark .post-content ul,html.light .post-content ul{list-style-type:disc}html.dark .post-content ol,html.light .post-content ol{list-style-type:decimal}html.dark .post-content li,html.light .post-content li{margin-bottom:8px}html.light .post-content blockquote{font-style:italic;color:#555;border-left:4px solid #4154f1;padding-left:16px;margin:20px 0}html.dark .post-content img,html.light .post-content img{max-width:100%;height:auto;border-radius:8px;display:block;margin:16px auto}html.light .post-content pre{background:#f4f4f4;padding:12px;border-radius:6px;overflow-x:auto}html.light .post-content code{font-family:'Courier New',monospace;font-size:14px;background:#f4f4f4;padding:2px 4px;border-radius:4px}html.light .post-content table{width:100%;border-collapse:collapse;margin-top:16px}html.light .post-content table td,html.light .post-content table th{border:1px solid #ddd;padding:10px;text-align:left}html.light .post-content table th{background:#4154f1;color:#fff;font-weight:700}html.light .post-content table tr:nth-child(2n){background:#f9f9f9}html.dark .post-content{color:#ddd}html.dark .post-content h1{font-size:28px;font-weight:700;color:#fff;margin-bottom:16px}html.dark .post-content h2{font-size:24px;font-weight:700;color:#ddd;margin-top:24px;margin-bottom:12px}html.dark .post-content h3{font-size:20px;font-weight:700;color:#bbb;margin-top:20px;margin-bottom:10px}html.dark .post-content p{margin-bottom:16px;color:#ccc}html.dark .post-content a{color:#4c9aff;font-weight:500}html.dark .post-content a:hover{color:#72baff;text-decoration:underline}html.dark .post-content blockquote{font-style:italic;color:#bbb;border-left:4px solid #4c9aff;padding-left:16px;margin:20px 0}html.dark .post-content pre{background:#1e1e1e;padding:12px;border-radius:6px;overflow-x:auto;color:#ddd}html.dark .post-content code{font-family:'Courier New',monospace;font-size:14px;background:#2b2b2b;padding:2px 4px;border-radius:4px;color:#ddd}html.dark .post-content table{width:100%;border-collapse:collapse;margin-top:16px;background:#222}html.dark .post-content table td,html.dark .post-content table th{border:1px solid #444;padding:10px;text-align:left;color:#ddd}html.dark .post-content table th{background:#4c9aff;color:#fff;font-weight:700}html.dark .post-content table tr:nth-child(2n){background:#333}html.light .post-content li[data-list=bullet]{list-style-type:disc;margin-left:20px;font-family:Poppins,sans-serif;font-size:16px;color:#333}html.dark .post-content li[data-list=bullet]{list-style-type:circle;margin-left:20px;font-family:Poppins,sans-serif;font-size:16px;color:#f0f0f0}/* ── Tiptap text-align ────────────────────────────────────── */
.post-content [style*="text-align:left"],.post-content [style*="text-align: left"]{text-align:left}
.post-content [style*="text-align:center"],.post-content [style*="text-align: center"]{text-align:center}
.post-content [style*="text-align:right"],.post-content [style*="text-align: right"]{text-align:right}
.post-content [style*="text-align:justify"],.post-content [style*="text-align: justify"]{text-align:justify}
/* ── Tiptap columns layout ────────────────────────────────── */
.post-content [data-columns]{display:grid;gap:1.25rem;margin:1.25rem 0}
.post-content [data-columns="2"]{grid-template-columns:repeat(2,1fr)}
.post-content [data-columns="3"]{grid-template-columns:repeat(3,1fr)}
.post-content [data-columns="4"]{grid-template-columns:repeat(4,1fr)}
@media(max-width:640px){.post-content [data-columns]{grid-template-columns:1fr}}
.post-content [data-col]{min-width:0}
/* ── Tiptap CTA buttons ───────────────────────────────────── */
.post-content .cta-btn{display:inline-block;padding:10px 24px;border-radius:6px;font-weight:600;text-decoration:none;cursor:pointer;transition:opacity .2s}
.post-content .cta-btn:hover{opacity:.85;text-decoration:none}
/* ── Tiptap h4-h6 ─────────────────────────────────────────── */
html.light .post-content h4{font-size:17px;font-weight:700;color:#444;margin-top:16px;margin-bottom:8px}html.dark .post-content h4{font-size:17px;font-weight:700;color:#aaa;margin-top:16px;margin-bottom:8px}
html.light .post-content h5{font-size:15px;font-weight:700;color:#555;margin-top:14px;margin-bottom:6px}html.dark .post-content h5{font-size:15px;font-weight:700;color:#999;margin-top:14px;margin-bottom:6px}
html.light .post-content h6{font-size:13px;font-weight:700;color:#666;margin-top:12px;margin-bottom:4px}html.dark .post-content h6{font-size:13px;font-weight:700;color:#888;margin-top:12px;margin-bottom:4px}
/* ── Tiptap hr ────────────────────────────────────────────── */
html.light .post-content hr{border:none;border-top:2px solid #e5e7eb;margin:24px 0}html.dark .post-content hr{border:none;border-top:2px solid #374151;margin:24px 0}
/* ── Image modal ──────────────────────────────────────────── */
.image-modal{position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.8);display:flex;justify-content:center;align-items:center;overflow:hidden}.image-modal img{max-width:90%;max-height:90%;border-radius:8px;box-shadow:0 4px 10px rgba(255,255,255,.2)}.close-modal{position:absolute;top:20px;right:30px;font-size:40px;color:#fff;cursor:pointer}
/* ── Sidebar layout ───────────────────────────────────────── */
.sidebar-layout{display:grid;gap:2rem;grid-template-columns:1fr}
@media(min-width:1024px){.sidebar-layout{grid-template-columns:3fr 1fr}}
/* ── Sidebar sticky ───────────────────────────────────────── */
.sidebar-sticky{position:sticky;top:80px}
/* ── Sidebar widgets ──────────────────────────────────────── */
.sb-widget{background:#fff;border-radius:6px;box-shadow:0 1px 4px rgba(0,0,0,.08);padding:20px;margin-bottom:0}
html.dark .sb-widget{background:#0f172a;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.sb-widget-title{font-size:16px;font-weight:700;color:#1e293b;margin-bottom:16px}
html.dark .sb-widget-title{color:#f1f5f9}
/* search input */
.sb-search-wrap{position:relative}
.sb-search-input{width:100%;border:1px solid #e2e8f0;border-radius:6px;background:transparent;padding:8px 40px 8px 14px;font-size:14px;color:#334155;outline:none;transition:border-color .2s;box-sizing:border-box}
.sb-search-input::placeholder{color:#94a3b8}
.sb-search-input:focus{border-color:#4f46e5}
html.dark .sb-search-input{border-color:#334155;color:#cbd5e1}
html.dark .sb-search-input::placeholder{color:#64748b}
html.dark .sb-search-input:focus{border-color:#6366f1}
.sb-search-btn{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:#4f46e5;font-size:18px;line-height:1;padding:0}
/* recent posts list */
.sb-posts{list-style:none;margin:0;padding:0}
.sb-posts li+li{margin-top:16px}
.sb-post-link{display:flex;gap:12px;align-items:flex-start;text-decoration:none}
.sb-post-thumb{width:60px;height:60px;border-radius:6px;object-fit:cover;flex-shrink:0}
.sb-post-thumb-placeholder{width:60px;height:60px;border-radius:6px;flex-shrink:0;background:rgba(79,70,229,.1);display:flex;align-items:center;justify-content:center}
html.dark .sb-post-thumb-placeholder{background:rgba(99,102,241,.2)}
.sb-post-thumb-placeholder i{font-size:22px;color:rgba(79,70,229,.5)}
.sb-post-info{flex:1;min-width:0}
.sb-post-title{font-size:13px;font-weight:600;color:#334155;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .2s}
html.dark .sb-post-title{color:#e2e8f0}
.sb-post-link:hover .sb-post-title{color:#4f46e5}
html.dark .sb-post-link:hover .sb-post-title{color:#818cf8}
.sb-post-date{font-size:12px;color:#94a3b8;margin-top:4px;display:block}
/* about widget */
.sb-about-logo{height:36px;display:block;margin:0 auto 10px}
.sb-about-desc{font-size:13px;color:#64748b;line-height:1.6;text-align:center}
html.dark .sb-about-desc{color:#94a3b8}
.sb-about-link{display:inline-block;margin-top:12px;font-size:13px;font-weight:600;color:#4f46e5;text-decoration:none;transition:color .2s}
.sb-about-link:hover{color:#3730a3}
html.dark .sb-about-link{color:#818cf8}
html.dark .sb-about-link:hover{color:#a5b4fc}
.sb-gap{display:flex;flex-direction:column;gap:20px}