/*
Theme Name: V59 News
Theme URI: https://example.com/
Author: V59 News
Description: V59 News mobile-first Telugu news WordPress theme.
Version: 1.1.0
Text Domain: v59-news
*/
:root{
 --red:#d71920;--red2:#b80000;--blue:#0757a8;--ink:#181818;--muted:#777;
 --bg:#f1f1f1;--card:#fff;--line:#e5e5e5;--header:55px;--nav:38px
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Noto Sans Telugu","Noto Sans",Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}img{display:block;max-width:100%;height:auto}
button{font-family:inherit}
.mj-app{width:100%;max-width:760px;margin:auto;background:#fff;min-height:100vh}

/* fixed app header */
.mj-fixed{position:fixed;top:0;left:0;right:0;z-index:99999;background:#fff;box-shadow:0 1px 8px rgba(0,0,0,.14)}
.mj-fixed-inner{width:min(760px,100%);margin:auto}
.mj-head{height:var(--header);display:flex;align-items:center;padding:4px 9px;gap:7px}
.mj-btn{width:40px;height:40px;border:0;background:#fff;border-radius:50%;display:grid;place-items:center;font-size:24px;color:#444}
.mj-brand{flex:1;text-align:center;display:flex;align-items:center;justify-content:center;height:43px}
.mj-brand-text{display:inline-flex;align-items:center;justify-content:center;min-width:150px;max-width:220px;height:43px;padding:0 16px;border-radius:9px;background:var(--red);color:#fff;font-size:18px;line-height:1;font-weight:950;letter-spacing:.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mj-nav{height:var(--nav);background:linear-gradient(#1267ad,#064b84);color:#fff;display:flex;align-items:center;overflow-x:auto;gap:0;scrollbar-width:none}
.mj-nav::-webkit-scrollbar{display:none}
.mj-nav a{height:38px;display:flex;align-items:center;padding:0 16px;border-right:1px solid rgba(255,255,255,.5);font-size:12px;font-weight:950;white-space:nowrap}
.mj-nav a:first-child{padding-left:12px}
.mj-spacer{height:93px}

/* breaking */
.mj-breaking{height:35px;background:#fff;border-bottom:1px solid #ddd;display:flex;align-items:center;overflow:hidden}
.mj-breaking b{height:35px;background:var(--red);color:#fff;display:flex;align-items:center;padding:0 13px;font-size:11px;white-space:nowrap}
.mj-ticker{overflow:hidden;white-space:nowrap;font-size:12px;font-weight:800;padding-left:12px}
.mj-ticker span{margin-right:30px}

/* home */
.mj-main{padding:10px 10px 78px}
.mj-section{margin-bottom:15px}
.mj-title-row{display:flex;justify-content:space-between;align-items:center;margin:2px 0 8px}
.mj-title-row h2{margin:0;font-size:18px;font-weight:950}
.mj-more{color:var(--red);font-size:10px;font-weight:950}
.mj-latest{display:flex;gap:9px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.mj-latest::-webkit-scrollbar{display:none}
.mj-slide{min-width:88%;scroll-snap-align:start;background:#fff;border:1px solid #ddd;border-radius:10px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.08)}
.mj-slide img{width:100%;height:210px;object-fit:cover}
.mj-slide-body{padding:9px 11px 11px}
.mj-slide-title{margin:0;color:#111;font-size:19px;line-height:1.38;font-weight:950}
.mj-slide-title a{color:inherit}
.mj-meta{font-size:9px;color:var(--muted);margin-top:4px}
.mj-dots{display:flex;justify-content:center;gap:7px;margin:7px 0}
.mj-dot{width:8px;height:5px;border-radius:5px;background:#cfcfcf}
.mj-dot:first-child{background:var(--red);width:15px}
.mj-cats{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.mj-cats::-webkit-scrollbar{display:none}
.mj-cat{min-width:76px;height:63px;border-radius:8px;border:1px solid #ddd;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.mj-cat strong{font-size:20px}.mj-cat span{font-size:9px;font-weight:900;white-space:nowrap}
.mj-category-block{margin-bottom:18px}
.mj-category-head{display:flex;align-items:center;justify-content:space-between;border-left:4px solid var(--red);padding-left:8px;margin-bottom:5px}
.mj-category-head h2{margin:0;font-size:18px;font-weight:950}
.mj-feed{border-top:1px solid var(--line)}
.mj-card{display:grid;grid-template-columns:112px 1fr;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.mj-card img,.mj-placeholder{width:112px;height:78px;border-radius:8px;object-fit:cover;background:#eee}
.mj-placeholder{display:grid;place-items:center;color:var(--red);font-weight:950}
.mj-card h3{font-size:14px;line-height:1.45;margin:0;font-weight:900}
.mj-category{font-size:9px;color:var(--red);font-weight:950;margin-bottom:2px}

/* fixed bottom app bar */
.mj-bottom{position:fixed;left:0;right:0;bottom:0;height:62px;z-index:99999;background:#fff;border-top:1px solid #ddd;display:grid;grid-template-columns:repeat(5,1fr);box-shadow:0 -2px 12px rgba(0,0,0,.1)}
.mj-bottom a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:9px;color:#666;font-weight:700}
.mj-bottom b{font-size:20px;line-height:1}.mj-bottom a.active{color:var(--red)}

/* single post - mobile reading card */
.mj-reader-page{background:var(--bg);padding:10px 8px 80px;min-height:calc(100vh - 93px)}
.mj-post-card{background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 1px 5px rgba(0,0,0,.08)}
.mj-post-cover-wrap{position:relative;background:#ddd}
.mj-post-cover{width:100%;height:auto;max-height:430px;object-fit:cover}
.mj-post-content{padding:17px 15px 15px}
.mj-post-cat{color:var(--red);font-size:11px;font-weight:950;margin-bottom:5px}
.mj-post-title{font-size:25px;line-height:1.38;margin:0 0 9px;font-weight:950;color:#222}
.mj-post-intro{font-size:18px;line-height:1.78;color:#444;margin:0 0 14px;font-weight:450}
.mj-post-body{font-size:17px;line-height:1.9;color:#222;word-break:break-word}
.mj-post-body p{margin:0 0 16px}
.mj-post-body h2,.mj-post-body h3{font-size:20px;line-height:1.5;color:var(--red);margin:20px 0 8px}
.mj-post-body img{width:100%;height:auto;border-radius:8px;margin:14px 0}
.mj-post-body blockquote{border-left:4px solid var(--red);margin:15px 0;padding:6px 12px;background:#fafafa}
.mj-post-info{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #eee;margin-top:15px;padding-top:13px;color:#777;font-size:10px}
.mj-actions{display:flex;gap:8px;margin-top:12px}
.mj-action{flex:1;height:45px;border:0;border-radius:8px;background:var(--red);color:#fff;font-size:12px;font-weight:950}
.mj-related{margin-top:12px;background:#fff;border-radius:18px;padding:13px 12px}
.mj-related h2{margin:0 0 7px;font-size:18px}
.mj-related .mj-card{grid-template-columns:100px 1fr}
.mj-related .mj-card img,.mj-related .mj-placeholder{width:100px;height:70px}

/* category/archive */
.mj-archive{padding:10px 10px 80px}
.mj-archive-title{font-size:20px;color:var(--red);font-weight:950;margin:3px 0 10px}

/* desktop */
@media(min-width:761px){
 body{background:#e8e8e8}
 .mj-app{box-shadow:0 0 25px rgba(0,0,0,.1)}
 .mj-fixed{left:50%;right:auto;transform:translateX(-50%);width:min(760px,100%)}
 .mj-bottom{position:static;max-width:760px;margin:auto}
 .mj-post-title{font-size:30px}
}

/* v6: strict mobile single-post viewport */
html,body{width:100%;max-width:100%;overflow-x:hidden}
body{min-width:0}
.mj-app{width:100%;max-width:760px;overflow-x:hidden}
.mj-reader-page{width:100%;max-width:100%;overflow-x:hidden;padding-left:6px;padding-right:6px}
.mj-post-card{width:100%;max-width:100%;margin:0 auto;border-radius:18px;overflow:hidden}
.mj-post-cover-wrap,.mj-post-content,.mj-post-body{width:100%;max-width:100%;min-width:0}
.mj-post-cover{display:block;width:100%;height:auto;max-width:100%;object-fit:cover}
.mj-post-content{padding:14px 12px 14px}
.mj-post-title{font-size:clamp(21px,6vw,29px);line-height:1.42;letter-spacing:-.15px;overflow-wrap:anywhere;word-break:normal}
.mj-post-intro{font-size:clamp(16px,4.7vw,19px);line-height:1.72;overflow-wrap:anywhere}
.mj-post-body{font-size:clamp(15.5px,4.5vw,18px);line-height:1.82;overflow-wrap:anywhere;word-break:normal}
.mj-post-body p{margin:0 0 13px}
.mj-post-body h2,.mj-post-body h3{font-size:clamp(18px,5vw,22px);line-height:1.45}
.mj-post-body table{display:block;width:100%;max-width:100%;overflow-x:auto}
.mj-post-body pre,.mj-post-body code{white-space:pre-wrap;overflow-wrap:anywhere}
.mj-post-body iframe,.mj-post-body video{width:100%;max-width:100%;height:auto}
.mj-actions{position:sticky;bottom:68px;background:#fff;padding:7px 0;z-index:20}
.mj-action{min-width:0}
@media(max-width:380px){
 .mj-post-title{font-size:21px;line-height:1.4}
 .mj-post-intro{font-size:16px;line-height:1.7}
 .mj-post-body{font-size:15.5px;line-height:1.78}
 .mj-post-content{padding-left:10px;padding-right:10px}
}

/* v7 image fallback */
.mj-slide img{width:100%;height:210px;object-fit:cover}
.mj-card img{width:112px;height:78px;object-fit:cover}
.mj-post-cover{width:100%;height:auto;max-height:460px;object-fit:cover}
.mj-placeholder{font-size:12px}

/* Mobile JPG capture - clean news layout */
.mj-capture-a4{
 position:absolute;left:-10000px;top:0;
 width:390px;min-height:0;height:auto;box-sizing:border-box;
 padding:20px 14px 28px;background:#fff;color:#111;
 font-family:"Noto Sans Telugu","Noto Sans",Arial,sans-serif;
 text-align:left!important;white-space:normal;overflow:visible;
}
.mj-capture-site-title{
 text-align:center!important;color:#d71920;font-size:27px;line-height:1.2;
 font-weight:900;margin:0 0 8px;white-space:nowrap;overflow:hidden;
}
.mj-capture-rule{height:3px;background:#d71920;margin:0 0 13px}
.mj-capture-category{color:#d71920;font-size:14px;font-weight:900;margin-bottom:7px;text-align:left!important}
.mj-capture-a4 h1{
 margin:0 0 8px;color:#d71920!important;font-size:25px;line-height:1.38;
 font-weight:900;text-align:left!important;white-space:normal;
 word-break:normal;overflow-wrap:break-word;letter-spacing:normal!important;
}
.mj-capture-date{
 color:#777;font-size:13px;line-height:1.35;margin:0 0 13px;
 white-space:nowrap!important;word-spacing:normal!important;letter-spacing:normal!important;
 text-align:left!important;
}
.mj-capture-image{
 display:block!important;width:100%!important;height:auto!important;
 max-width:100%!important;margin:0 0 14px!important;object-fit:contain!important;
}
.mj-capture-body{
 width:100%;display:block!important;font-size:17px!important;
 line-height:1.72!important;text-align:left!important;
 white-space:normal!important;word-spacing:normal!important;
 letter-spacing:normal!important;word-break:normal!important;
 overflow-wrap:break-word!important;
}
.mj-capture-body *{
 text-align:left!important;word-spacing:normal!important;letter-spacing:normal!important;
 max-width:100%!important;
}
.mj-capture-body p{
 display:block!important;margin:0 0 13px!important;width:100%!important;
 font-size:inherit!important;line-height:inherit!important;
 white-space:normal!important;text-align:left!important;
 word-spacing:normal!important;letter-spacing:normal!important;
}
.mj-capture-body br{display:block}
.mj-capture-body img{display:block!important;max-width:100%!important;height:auto!important;margin:10px auto!important}
.mj-capture-body h2,.mj-capture-body h3{line-height:1.4!important;margin:16px 0 7px!important}
.mj-capture-body table{width:100%!important;border-collapse:collapse!important}

/* JPG download button */
.mj-actions{display:block;margin-top:14px}
.mj-download-jpg{
 display:block;width:100%;height:46px;border:0;border-radius:9px;
 background:var(--red);color:#fff;font-size:14px;font-weight:900;
 cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.12)
}
.mj-download-jpg:disabled{opacity:.65;cursor:wait}
