/* ======== LEFT SIDEBAR SCROLLBAR ======== */
#left-sidebar nav::-webkit-scrollbar { width: 3px; }
#left-sidebar nav::-webkit-scrollbar-track { background: transparent; }
#left-sidebar nav::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* ======== RIGHT SIDEBAR SCROLLBAR ======== */
#right-sidebar::-webkit-scrollbar { width: 4px; }
#right-sidebar::-webkit-scrollbar-track { background: transparent; }
#right-sidebar::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }

/* ======== MAIN CONTENT SCROLLBAR ======== */
#main-content::-webkit-scrollbar { width: 6px; }
#main-content::-webkit-scrollbar-track { background: #f4f5f7; }
#main-content::-webkit-scrollbar-thumb { background: #c1c5ca; border-radius: 6px; }
#main-content::-webkit-scrollbar-thumb:hover { background: #a0a5aa; }

/* ======== LINE CLAMP ======== */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ======== ARTICLE CONTENT ======== */
.article-content { font-size: 16px; line-height: 1.85; color: #333; }
.article-content p { margin-bottom: 1.2em; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.article-content h2 { font-size: 1.4em; font-weight: 700; margin: 1.5em 0 0.6em; color: #1a1a1a; }
.article-content h3 { font-size: 1.2em; font-weight: 700; margin: 1.2em 0 0.5em; }
.article-content blockquote { border-left: 3px solid #1e6fff; padding-left: 16px; color: #666; margin: 1em 0; background: #f0f5ff; padding: 12px 16px; border-radius: 0 8px 8px 0; }
.article-content a { color: #1e6fff; text-decoration: underline; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.article-content li { margin-bottom: 0.3em; }

/* ======== PAGINATION ======== */
.pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.pagination > li { list-style: none; }
.pagination > li > a,
.pagination > li > span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 500; transition: all .15s; border: 1px solid #e5e7eb; color: #6b7280; background: white; }
.pagination > .active > span { background: #1e6fff; color: white; border-color: #1e6fff; }
.pagination > li > a:hover { border-color: #1e6fff; color: #1e6fff; background: #e8f0fe; }
.pagination > .disabled > span { opacity: 0.4; cursor: default; }

/* ======== SELECTION ======== */
::selection { background: #1e6fff; color: white; }

/* ======== MOBILE OVERLAY TRANSITION ======== */
#nav-overlay { transition: opacity 0.3s; }

/* ======== SIDENAV SUBMENU ON MOBILE (FORCE SHOW) ======== */
@media (max-width: 1023px) {
    .group\/sidenav .hidden { display: none; }
    .group\/sidenav.open\:sub .hidden { display: block; }
}
