/* TeleTronicHub — Article Body Styles (Light Theme) */

/* ===== Light theme overrides for article pages ===== */
body.article-page { background: #ffffff !important; color: #333 !important; }
body.article-page header { background: rgba(255,255,255,0.97) !important; border-bottom: 1px solid #e5e7eb !important; }
body.article-page .logo { color: #222 !important; }
body.article-page .logo span { color: #0d9488 !important; }
body.article-page .logo-icon { background: linear-gradient(135deg, #0d9488, #d97706) !important; }
body.article-page .main-nav a { color: #555 !important; }
body.article-page .main-nav a:hover { color: #0d9488 !important; background: rgba(13,148,136,0.06) !important; }
body.article-page .nav-more .dropdown { background: #fff !important; border: 1px solid #e5e7eb !important; box-shadow: 0 8px 24px rgba(0,0,0,.08) !important; }
body.article-page .nav-more .dropdown a { color: #555 !important; }
body.article-page .nav-more .dropdown a:hover { color: #0d9488 !important; background: rgba(13,148,136,0.04) !important; }
body.article-page .mobile-menu-toggle { border-color: #ccc !important; color: #0d9488 !important; }
body.article-page h1, body.article-page h2, body.article-page h3, body.article-page h4, body.article-page h5 { color: #1a1a1a !important; }

/* Footer light */
body.article-page .site-footer { background: #f8f9fa !important; border-top: 1px solid #e5e7eb !important; }
body.article-page .footer-brand .logo { color: #222 !important; }
body.article-page .footer-brand .logo span { color: #0d9488 !important; }
body.article-page .footer-brand p { color: #666 !important; }
body.article-page .footer-col h4 { color: #0d9488 !important; }
body.article-page .footer-col a { color: #555 !important; }
body.article-page .footer-col a:hover { color: #0d9488 !important; }
body.article-page .footer-bottom { border-top-color: #e5e7eb !important; color: #888 !important; }

/* ===== Article wrap ===== */
.article-wrap { max-width: 820px; margin: 0 auto; padding: 40px 20px 60px; }
.article-wrap .article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; font-size: 14px; color: #666; }
.article-wrap .article-meta .tag { display: inline-block; background: rgba(13,148,136,0.08); color: #0d9488; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .5px; }
.article-wrap .article-meta .author-link { color: #0d9488; font-weight: 500; }
.article-wrap .article-meta time { color: #888; }

/* ===== Article content ===== */
.article-content { font-size: 16.5px; line-height: 1.85; color: #333; }
.article-content h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; line-height: 1.2; color: #1a1a1a; font-family: 'JetBrains Mono', monospace; }
.article-content h2 { font-size: 24px; font-weight: 700; margin-top: 40px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; color: #1a1a1a; }
.article-content h3 { font-size: 20px; font-weight: 600; margin-top: 32px; margin-bottom: 12px; color: #222; }
.article-content h4 { font-size: 17px; font-weight: 600; margin-top: 24px; margin-bottom: 8px; color: #b45309; }
.article-content p { margin-bottom: 18px; }
.article-content a { color: #0d9488; text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: #b45309; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 24px 0; border: 1px solid #e5e7eb; }
.article-content ul, .article-content ol { margin: 0 0 18px 24px; }
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content li::marker { color: #0d9488; }

.article-content blockquote { border-left: 4px solid #d97706; background: #fefce8; padding: 16px 20px; margin: 24px 0; border-radius: 0 8px 8px 0; color: #555; font-style: italic; }
.article-content code { background: #f3f4f6; color: #0d9488; padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.article-content pre { background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; margin: 24px 0; overflow-x: auto; }
.article-content pre code { background: none; padding: 0; color: #333; font-size: 14px; line-height: 1.6; }

.article-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article-content th { background: #f3f4f6; color: #0d9488; padding: 12px 16px; text-align: left; border: 1px solid #e5e7eb; font-family: 'JetBrains Mono', monospace; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.article-content td { padding: 10px 16px; border: 1px solid #e5e7eb; }
.article-content tr:nth-child(even) { background: #f9fafb; }

.article-content hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, #d1d5db, transparent); margin: 32px 0; }

/* ===== Related Articles ===== */
.related-section { max-width: 820px; margin: 0 auto; padding: 0 20px 60px; }
.related-section h3 { font-size: 18px; margin-bottom: 20px; color: #222; padding-top: 24px; border-top: 1px solid #e5e7eb; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.related-card { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; transition: all .2s; text-decoration: none; color: inherit; }
.related-card:hover { transform: translateY(-2px); border-color: #0d9488; box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.related-card img { width: 100%; height: 140px; object-fit: cover; }
.related-card .rc-body { padding: 14px; }
.related-card h4 { font-size: 14px; line-height: 1.4; margin-bottom: 6px; color: #222; }
.related-card time { font-size: 12px; color: #888; }

/* ===== Breadcrumb ===== */
.breadcrumb { max-width: 820px; margin: 0 auto; padding: 20px 20px 0; font-size: 13px; color: #888; font-family: 'JetBrains Mono', monospace; }
.breadcrumb a { color: #888; text-decoration: none; }
.breadcrumb a:hover { color: #0d9488; }
.breadcrumb span { margin: 0 6px; color: #ccc; }

/* ===== Sidebar TOC (desktop) ===== */
.article-with-toc { display: flex; max-width: 1200px; margin: 0 auto; gap: 32px; padding: 20px; }
.article-main { flex: 1; min-width: 0; }
.article-sidebar { width: 260px; flex-shrink: 0; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; }
.toc-wrap { background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px; }
.toc-wrap h4 { font-size: 13px; color: #0d9488; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.toc-wrap a { display: block; font-size: 13px; color: #555; padding: 4px 0; border-left: 2px solid transparent; padding-left: 10px; transition: all .2s; text-decoration: none; }
.toc-wrap a:hover { color: #0d9488; border-left-color: #0d9488; }
@media(max-width:1024px) { .article-sidebar { display: none; } .article-with-toc { padding: 0; } }
@media(max-width:600px) { .article-wrap { padding: 24px 16px 40px; } .article-content h1 { font-size: 24px; } .article-content h2 { font-size: 20px; } }
