/*
Theme Name: TM Lite
Theme URI: https://tamilminutes.com
Author: Tamil Minutes
Description: Lightweight, mobile-first WordPress news theme for Tamil Minutes.
Version: 2.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: tm-lite
*/
:root{--navy:#071526;--red:#d71920;--text:#15191e;--muted:#6b7280;--line:#e5e7eb;--bg:#fff;--soft:#f5f7fa;--max:1180px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,"Segoe UI","Noto Sans Tamil",sans-serif;line-height:1.6}img{max-width:100%;height:auto;display:block}a{color:inherit;text-decoration:none}.container{width:min(calc(100% - 32px),var(--max));margin:auto}
.site-header{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:20}.header-inner{min-height:68px;display:flex;align-items:center;gap:22px}.site-brand{font-size:25px;font-weight:800;color:var(--red);letter-spacing:-.5px}.site-brand span{color:var(--navy)}.menu-toggle{margin-left:auto;border:0;background:transparent;font-size:24px;cursor:pointer}.primary-nav{display:none}.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:20px;font-weight:650}
.breaking{background:var(--navy);color:#fff}.breaking-inner{display:flex;align-items:center;gap:12px;min-height:38px;font-size:14px}.breaking-label{background:var(--red);padding:4px 9px;font-weight:800;white-space:nowrap}.breaking-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-main{padding:22px 0 48px}.hero{display:grid;gap:18px;margin-bottom:28px}.hero-card{position:relative;overflow:hidden;border-radius:12px;background:#111}.hero-card img{width:100%;aspect-ratio:16/9;object-fit:cover}.hero-card .overlay{position:absolute;inset:auto 0 0;padding:70px 20px 20px;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.85))}.hero-card h1{margin:0;font-size:clamp(25px,5vw,42px);line-height:1.15}.section-title{font-size:21px;margin:28px 0 14px;border-left:5px solid var(--red);padding-left:10px}.news-grid{display:grid;grid-template-columns:1fr;gap:16px}.news-card{display:grid;grid-template-columns:120px 1fr;gap:14px;padding-bottom:16px;border-bottom:1px solid var(--line)}.news-card img{width:120px;height:82px;object-fit:cover;border-radius:8px}.news-card h2{font-size:18px;line-height:1.35;margin:0 0 5px}.meta{font-size:12px;color:var(--muted)}.category{font-size:12px;color:var(--red);font-weight:750}
.article{max-width:820px;margin:auto}.article h1{font-size:clamp(30px,6vw,52px);line-height:1.12;margin:8px 0 12px}.article .featured{margin:22px 0;border-radius:12px;overflow:hidden}.article-content{font-size:18px;line-height:1.85}.article-content p{margin:0 0 1.15em}.article-content h2,.article-content h3{line-height:1.3;margin-top:1.5em}.article-content blockquote{border-left:4px solid var(--red);padding-left:18px;margin-left:0;color:#444}.related{margin-top:42px;padding-top:20px;border-top:1px solid var(--line)}
.site-footer{background:var(--navy);color:#fff;padding:36px 0}.footer-grid{display:grid;gap:22px}.footer-title{font-weight:800;margin-bottom:8px}.footer-links{display:flex;flex-wrap:wrap;gap:12px;color:#dbe2ea;font-size:14px}.copyright{margin-top:24px;color:#aab4c0;font-size:13px}
.ad-slot{min-height:90px;background:var(--soft);border:1px dashed #d5d9df;display:grid;place-items:center;color:#8a929d;font-size:12px;margin:18px 0}
@media (min-width:760px){.menu-toggle{display:none}.primary-nav{display:block;margin-left:auto}.hero{grid-template-columns:2fr 1fr}.news-grid{grid-template-columns:repeat(2,1fr)}.news-card{grid-template-columns:140px 1fr}.news-card img{width:140px;height:96px}.footer-grid{grid-template-columns:2fr 1fr 1fr}}
@media (min-width:1040px){.site-main .content-layout{display:grid;grid-template-columns:minmax(0,820px) 300px;gap:40px}.news-grid{grid-template-columns:repeat(2,1fr)}}

.author-box{display:flex;gap:15px;align-items:center;margin:34px 0;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--soft)}
.author-avatar{width:64px;height:64px;flex:0 0 64px;border-radius:50%;overflow:hidden}.author-avatar img{width:64px;height:64px;border-radius:50%;object-fit:cover;display:block}
.author-info{min-width:0}.author-name{font-size:18px;font-weight:800;margin:0 0 3px}.author-role{font-size:13px;color:var(--muted);margin:0}.author-bio{font-size:14px;color:#4b5563;margin:5px 0 0}
@media(max-width:480px){.author-box{align-items:flex-start}.author-avatar{width:54px;height:54px;flex-basis:54px}.author-avatar img{width:54px;height:54px}}

.featured{background:#f3f4f6}.featured img{width:100%;height:auto;aspect-ratio:auto}.widget{margin-bottom:24px}
.rank-math-breadcrumb{font-size:13px;color:var(--muted);margin-bottom:8px}.rank-math-breadcrumb a{color:inherit}

.article-meta{display:flex;flex-wrap:wrap;gap:8px 14px;color:var(--muted);font-size:13px;margin:0 0 18px}.article-meta span+span{position:relative;padding-left:14px}.article-meta span+span:before{content:"·";position:absolute;left:0;color:#a1a1aa}.article-meta a{color:var(--text);font-weight:650}.article-meta a:hover{text-decoration:underline}

/* TM Lite 1.3 performance/layout improvements */
.site-header{contain:layout style}.hero-card img,.featured img{content-visibility:auto}
.news-card img{aspect-ratio:16/9;object-fit:cover;background:#f3f4f6}
@media(max-width:759px){.site-header{position:sticky;top:0}.header-inner{min-height:58px}.site-brand{font-size:22px}.site-main{padding-top:16px}.hero-card{border-radius:10px}.news-card{grid-template-columns:105px 1fr;gap:12px}.news-card img{width:105px;height:70px}.news-card h2{font-size:16px}.article-content{font-size:17px}.article h1{font-size:32px}}
@media(min-width:760px){.news-card img{aspect-ratio:16/9}}

.category-nav{border-bottom:1px solid var(--line);background:#fff}.category-nav-inner{display:flex;gap:18px;align-items:center;overflow-x:auto;white-space:nowrap;scrollbar-width:none;min-height:42px}.category-nav-inner::-webkit-scrollbar{display:none}.category-nav a{font-size:13px;font-weight:650;color:#30363d;padding:10px 0}.category-nav a:hover{color:var(--red)}
.trending-list{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff}.trending-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);font-weight:650;line-height:1.4}.trending-item:last-child{border-bottom:0}.trending-number{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:var(--soft);color:var(--red);font-size:12px;font-weight:800;flex:0 0 24px}
@media(max-width:759px){.category-nav-inner{gap:15px}.category-nav a{font-size:12px}.trending-item{font-size:14px;padding:11px 12px}}


.home-section{margin-top:34px}.home-section-header{display:flex;align-items:center;justify-content:space-between;gap:15px}.home-section-header .section-title{margin:0 0 14px}.home-section-more{font-size:13px;color:var(--red);font-weight:700}.home-section-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:760px){.home-section-grid{grid-template-columns:repeat(2,1fr)}}


/* TM Lite 1.5.1: visual three-line headline clamp */
.news-card h2,.post-card h2,.article-card h2,.related h3,.search-card h2{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  text-overflow:ellipsis;
}
@media(max-width:759px){
  .news-card h2,.post-card h2,.article-card h2,.search-card h2{ -webkit-line-clamp:3; }
}

/* TM Lite 1.6.0 article readability */
.article-content{font-size:18px;line-height:1.8;letter-spacing:0}
.article-content p{margin:0 0 1.15em}
.article-content h2{font-size:25px;line-height:1.35;margin:1.6em 0 .6em}
.article-content h3{font-size:21px;line-height:1.4;margin:1.4em 0 .55em}
.article-content ul,.article-content ol{padding-left:1.35em;margin:0 0 1.15em}
.article-content li{margin:.35em 0}
.article-content blockquote{margin:1.5em 0;padding:12px 18px;border-left:4px solid var(--red);background:var(--soft);font-size:19px}
.related{margin-top:38px}

/* TM Lite 1.7.0 image presentation: preserve Discover-friendly large images */
.article-content img,.featured img{height:auto;max-width:100%}
.article-content figure{margin:1.4em 0}
.article-content figcaption{font-size:13px;line-height:1.5;color:var(--muted);margin-top:6px}
.news-card img{display:block}

/* TM Lite 1.8.1 author & publisher UX */
.author-box{display:flex;gap:16px;align-items:flex-start;margin:36px 0;padding:20px;border:1px solid var(--line);border-radius:12px;background:#fff}
.author-box-avatar{width:72px;height:72px;border-radius:50%;overflow:hidden;flex:0 0 72px}.author-box-avatar img{width:100%;height:100%;object-fit:cover}
.author-box-name{font-size:20px;font-weight:800;margin:0 0 5px}.author-box-bio{font-size:15px;line-height:1.65;color:var(--muted);margin:0 0 8px}.author-box-link{font-size:13px;font-weight:700;color:var(--red)}
.author-archive-header{display:flex;gap:18px;align-items:center;padding:24px 0;border-bottom:1px solid var(--line);margin-bottom:24px}.author-archive-avatar{width:84px;height:84px;border-radius:50%;overflow:hidden;flex:0 0 84px}.author-archive-avatar img{width:100%;height:100%;object-fit:cover}.author-archive-name{font-size:30px;margin:0 0 6px}.author-archive-bio{margin:0;color:var(--muted);line-height:1.65}
.site-footer{margin-top:50px;border-top:1px solid var(--line);padding:30px 0 22px;background:#fff}.footer-inner{display:flex;justify-content:space-between;gap:24px;align-items:flex-start}.footer-brand{font-size:20px;font-weight:800;margin-bottom:7px}.footer-description{color:var(--muted);font-size:14px;line-height:1.6;max-width:520px}.footer-links{display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end}.footer-links a{font-size:13px;font-weight:650;color:#30363d}.footer-copy{margin-top:20px;padding-top:14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
@media(max-width:759px){.author-box{padding:16px}.author-box-avatar{width:60px;height:60px;flex-basis:60px}.author-box-name{font-size:18px}.author-archive-header{align-items:flex-start}.author-archive-name{font-size:25px}.footer-inner{display:block}.footer-links{justify-content:flex-start;margin-top:16px}}

/* TM Lite 2.0.0 performance/accessibility */
:focus-visible{outline:2px solid currentColor;outline-offset:3px}
img{max-width:100%;height:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* TM Lite 2.2 media stability */
.post-content img,.entry-content img{max-width:100%;height:auto}

/* TM Lite 2.3.0 mobile UX / layout stability */
html{overflow-x:hidden}
body{overflow-wrap:break-word}
img{display:block;max-width:100%}
.site-main{min-width:0}
@media(max-width:759px){
.site-main{width:100%;padding-left:16px;padding-right:16px}
.post-content,.entry-content{font-size:18px;line-height:1.8}
.post-content p,.entry-content p{margin:0 0 1.15em}
.post-content h2,.entry-content h2{line-height:1.3;margin-top:1.5em}
.post-content h3,.entry-content h3{line-height:1.35;margin-top:1.35em}
}
