/* ==========================================================================
   SkyNext content fixes — thay các plugin vá lẻ (nạp từ inc/content-fixes.php)
   ========================================================================== */

/* Thanh chuyên mục tin tức + nút "⋯ Thêm" (thay plugin Góc Tư Vấn Tabs Repair) */
.sn-news-navbar{display:flex;align-items:stretch;border-top:1px solid #edf2f7}
.sn-news-navbar .sn-news-nav{flex:1 1 auto;min-width:0;border-top:0}
.sn-news-more{position:relative;flex:0 0 auto}
.sn-news-more summary{display:flex;height:100%;min-height:46px;align-items:center;gap:5px;padding:0 0 0 16px;color:#4d596b;font-size:.79rem;font-weight:650;white-space:nowrap;cursor:pointer;list-style:none}
.sn-news-more summary::-webkit-details-marker{display:none}
.sn-news-more summary:hover,.sn-news-more[open] summary,.sn-news-more.is-active summary{color:var(--sk-dark)}
.sn-news-more.is-active summary{box-shadow:inset 0 -2px 0 var(--sk-secondary)}
.sn-news-more__menu{position:absolute;top:100%;right:0;z-index:60;min-width:270px;max-width:calc(100vw - 24px);padding:8px;border:1px solid rgba(8,45,91,.12);border-radius:12px;background:#fff;box-shadow:0 16px 40px rgba(8,45,91,.18)}
.sn-news-more__menu a{display:block;padding:10px 12px;border-radius:8px;color:#17375e;font-size:.86rem;font-weight:600;line-height:1.4}
.sn-news-more__menu a:hover,.sn-news-more__menu a.is-active{background:#eef5ff;color:var(--sk-primary)}

/* Bảng và khối <pre> trong bài viết (thay các plugin Mobile Repair) */
.content-prose{overflow-wrap:break-word}
.sk-table-scroll{width:100%;max-width:100%;margin:28px 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.sk-table-scroll>table{margin:0}
.sk-pre-scroll{max-width:100%;margin:24px 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.sk-pre-scroll>pre{width:max-content;min-width:100%;margin:0;overflow:visible;white-space:pre}
.content-prose img,.content-prose video{max-width:100%;height:auto}
.content-prose iframe{max-width:100%}
.content-prose figure,.content-prose .wp-caption{max-width:100%}
@media(max-width:767px){
	.sk-table-scroll>table{width:auto;min-width:640px}
	.sk-table-scroll th,.sk-table-scroll td{min-width:120px;padding:10px 12px;white-space:normal;word-break:normal;overflow-wrap:break-word;vertical-align:top;line-height:1.45}
	.sk-table-scroll::before,.sk-pre-scroll::before{position:sticky;left:0;display:block;margin-bottom:8px;padding:7px 10px;border-radius:8px;background:#f3f6fa;color:#4d596b;font-size:.8rem;content:"Vuốt ngang để xem đầy đủ →"}
	.content-prose ul,.content-prose ol{padding-left:24px}
}
