/*
Theme Name: NewsLite Pro
Theme URI: https://example.com/newslite-pro
Author: NewsLite Pro Team
Author URI: https://example.com
Description: Lightweight, responsive editorial news theme with readable headlines and article layouts. Companion plugin adds ad placements, sharing, subscriptions and integrations.
Version: 1.1.3
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newslite-pro
Tags: news, blog, custom-logo, custom-menu, featured-images, accessibility-ready, responsive-layout
*/
:root{--nl-accent:#c62828;--nl-text:#171717;--nl-muted:#666;--nl-border:#e5e5e5;--nl-bg:#fff;--nl-soft:#f5f6f7;--nl-width:1180px;--nl-reading:760px;--nl-body-size:18px;--nl-line:1.75;--nl-radius:8px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--nl-bg);color:var(--nl-text);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:var(--nl-body-size);line-height:var(--nl-line);overflow-wrap:anywhere}img{max-width:100%;height:auto}a{color:var(--nl-accent);text-decoration:none}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #1769aa;outline-offset:3px}.nl-skip{position:absolute;left:-9999px;top:0;background:#fff;padding:10px;z-index:999}.nl-skip:focus{left:10px}.nl-wrap{width:min(calc(100% - 32px),var(--nl-width));margin-inline:auto}.nl-topline{background:#202124;color:#fff;font-size:13px}.nl-topline .nl-wrap{display:flex;gap:14px;align-items:center;padding:5px 0}.nl-topline a{color:#fff}.nl-header{border-bottom:1px solid var(--nl-border);background:#fff}.nl-head-inner{display:flex;align-items:center;gap:28px;min-height:82px}.nl-brand{display:flex;align-items:center;gap:12px;min-width:190px;color:var(--nl-text);font-size:27px;font-weight:850;letter-spacing:-.8px;line-height:1.1}.nl-brand img{max-height:58px;width:auto}.nl-brand:hover{text-decoration:none}.nl-nav{flex:1}.nl-nav ul{display:flex;flex-wrap:wrap;gap:20px;list-style:none;margin:0;padding:0}.nl-nav a{font-size:15px;font-weight:700;color:#242424}.nl-search{display:flex;gap:6px}.nl-search input{width:145px;min-width:0;padding:8px;border:1px solid var(--nl-border);border-radius:5px}.nl-search button,.nl-button{border:0;background:var(--nl-accent);color:#fff;padding:9px 13px;border-radius:5px;cursor:pointer;font-weight:700}.nl-mobile-toggle{display:none}.nl-breaking{background:var(--nl-accent);color:#fff;font-size:14px}.nl-breaking .nl-wrap{display:flex;gap:12px;padding:7px 0}.nl-breaking strong{text-transform:uppercase;white-space:nowrap}.nl-breaking a{color:#fff}.nl-main{min-height:55vh;padding:28px 0 50px}.nl-page-title{font-size:28px;line-height:1.2;margin:0 0 22px;letter-spacing:-.4px}.nl-featured{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr);gap:24px;margin-bottom:34px;padding-bottom:28px;border-bottom:1px solid var(--nl-border)}.nl-featured .nl-card-title{font-size:clamp(26px,3vw,38px)}.nl-featured img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:var(--nl-radius)}.nl-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:36px}.nl-post-list{display:grid;gap:24px}.nl-card{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;padding-bottom:23px;border-bottom:1px solid var(--nl-border)}.nl-card img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:6px}.nl-card-title{font-size:clamp(21px,2vw,28px);line-height:1.25;letter-spacing:-.35px;margin:4px 0 8px;font-weight:800}.nl-card-title a{color:inherit}.nl-kicker{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--nl-accent)}.nl-meta{font-size:13px;color:var(--nl-muted);line-height:1.5}.nl-excerpt{font-size:16px;line-height:1.6;color:#444;margin:8px 0}.nl-sidebox{border:1px solid var(--nl-border);border-radius:var(--nl-radius);padding:17px;margin-bottom:22px}.nl-sidebox h2,.nl-sidebox h3{font-size:19px;line-height:1.3;margin:0 0 12px}.nl-sidebox ul{margin:0;padding-left:20px}.nl-sidebox li{margin:8px 0;font-size:15px}.nl-single{max-width:var(--nl-reading);margin-inline:auto}.nl-breadcrumbs{font-size:13px;color:var(--nl-muted);margin-bottom:13px}.nl-breadcrumbs a{color:inherit}.nl-article-title{font-size:clamp(32px,4.2vw,48px);line-height:1.13;letter-spacing:-1.2px;margin:8px 0 14px;font-weight:850}.nl-deck{font-size:21px;line-height:1.5;color:#454545;margin:0 0 18px}.nl-byline{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;color:var(--nl-muted);font-size:13px;margin:15px 0 20px}.nl-hero{margin:0 0 25px}.nl-hero img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:var(--nl-radius)}.nl-hero figcaption{font-size:13px;color:var(--nl-muted);margin-top:7px}.nl-content{font-size:19px;line-height:1.8}.nl-content p{margin:0 0 1.35em}.nl-content h2{font-size:clamp(25px,3vw,32px);line-height:1.25;letter-spacing:-.5px;margin:1.45em 0 .55em}.nl-content h3{font-size:23px;line-height:1.3;margin:1.35em 0 .5em}.nl-content ul,.nl-content ol{padding-left:1.5em;margin-bottom:1.4em}.nl-content blockquote{border-left:4px solid var(--nl-accent);margin:1.5em 0;padding:8px 20px;color:#444;background:var(--nl-soft)}.nl-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}.nl-content th,.nl-content td{border:1px solid var(--nl-border);padding:9px;text-align:left}.nl-content iframe{max-width:100%}.nl-tags{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0}.nl-tags a{background:var(--nl-soft);padding:4px 9px;border-radius:4px;font-size:13px;color:#333}.nl-related{margin-top:38px;padding-top:25px;border-top:1px solid var(--nl-border)}.nl-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.nl-related img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:5px}.nl-related h3{font-size:18px;line-height:1.35;margin:8px 0}.nl-pagination{display:flex;gap:8px;flex-wrap:wrap;margin:28px 0}.nl-pagination .page-numbers{padding:7px 12px;border:1px solid var(--nl-border);border-radius:4px}.nl-pagination .current{background:var(--nl-accent);color:#fff}.nl-footer{background:#171819;color:#f3f3f3;padding:38px 0 18px;font-size:15px}.nl-footer a{color:#fff}.nl-footer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}.nl-footer h2,.nl-footer h3{font-size:18px;margin:0 0 12px}.nl-footer ul{list-style:none;margin:0;padding:0}.nl-footer li{margin:7px 0}.nl-footer-bottom{border-top:1px solid #444;margin-top:25px;padding-top:14px;font-size:13px;color:#ccc}.nl-footer-bottom .nl-wrap{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.nl-empty{padding:28px;background:var(--nl-soft);border-radius:var(--nl-radius)}
@media(max-width:900px){.nl-head-inner{gap:14px;flex-wrap:wrap;padding:13px 0}.nl-brand{flex:1}.nl-mobile-toggle{display:block;background:#fff;border:1px solid var(--nl-border);border-radius:5px;padding:8px 10px}.nl-nav{display:none;flex-basis:100%;order:3}.nl-nav.is-open{display:block}.nl-nav ul{display:block}.nl-nav li{padding:7px 0;border-top:1px solid var(--nl-border)}.nl-search{order:2}.nl-grid{grid-template-columns:minmax(0,1fr)}.nl-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.nl-featured{grid-template-columns:1fr}.nl-featured .nl-card-title{font-size:30px}}
@media(max-width:600px){:root{--nl-body-size:17px}.nl-wrap{width:min(calc(100% - 24px),var(--nl-width))}.nl-head-inner{min-height:66px}.nl-brand{font-size:23px;min-width:0}.nl-brand img{max-height:46px}.nl-search{width:100%;order:4}.nl-search input{flex:1;width:0}.nl-card{grid-template-columns:112px minmax(0,1fr);gap:12px;padding-bottom:17px}.nl-card-title{font-size:20px;line-height:1.25}.nl-excerpt{font-size:14px;line-height:1.45}.nl-featured .nl-card-title{font-size:27px}.nl-article-title{font-size:34px;letter-spacing:-.7px}.nl-deck{font-size:18px}.nl-content{font-size:18px;line-height:1.75}.nl-content h2{font-size:26px}.nl-sidebar{display:block}.nl-related-grid{grid-template-columns:1fr}.nl-footer-grid{grid-template-columns:1fr;gap:22px}.nl-breaking .nl-wrap{align-items:flex-start}.nl-main{padding-top:20px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* NewsLite Pro editorial refinements */
.nl-section-heading{font-size:27px;line-height:1.2;margin:0 0 20px;padding-bottom:12px;border-bottom:2px solid var(--nl-text)}.nl-home-latest{max-width:900px;margin:0 auto}.nl-home-post-list{grid-template-columns:1fr;gap:0}.nl-home-card{grid-template-columns:240px minmax(0,1fr);padding:20px 0;gap:20px}.nl-home-card img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.nl-home-card .nl-card-title{font-size:24px}.nl-home-newsletter{max-width:900px;margin:34px auto 0}.nl-author-box{display:flex;align-items:flex-start;gap:18px;margin:32px 0;padding:22px;border:1px solid var(--nl-border);border-radius:10px;background:var(--nl-soft)}.nl-author-avatar img{width:72px;height:72px;border-radius:50%}.nl-author-info h2{font-size:20px;margin:0 0 8px}.nl-author-info p{font-size:15px;line-height:1.6;margin:0 0 8px}.nl-author-links{font-weight:700}.nl-featured-image{display:block}.nl-featured img,.nl-hero img{background:#f2f2f2}.nl-home-newsletter .nl-subscribe{max-width:none}.newslite-ad{display:block;max-width:100%;margin:16px auto;text-align:center;min-width:0}.newslite-ad img{max-width:100%;height:auto}@media(max-width:600px){.nl-home-card{grid-template-columns:112px minmax(0,1fr);gap:12px}.nl-home-card .nl-card-title{font-size:19px}.nl-author-box{padding:15px;gap:12px}.nl-author-avatar img{width:54px;height:54px}}
/* Explicit single-column homepage cards: image first, headline directly below */
.nl-home-post-list .nl-home-card{display:block;max-width:900px;margin:0 auto;padding:24px 0}.nl-home-post-list .nl-home-card .nl-card-image{display:block;width:100%;margin:0 0 12px}.nl-home-post-list .nl-home-card .nl-card-image img{display:block;width:100%;max-height:430px;aspect-ratio:16/9;object-fit:cover}.nl-home-post-list .nl-home-card .nl-card-title{margin:5px 0 8px;font-size:clamp(22px,2.5vw,30px)}
@media(max-width:600px){.nl-home-post-list .nl-home-card{padding:18px 0}.nl-home-post-list .nl-home-card .nl-card-title{font-size:22px}}

/* Homepage layout aligned with Chipuko-style latest-story feed: full-width image, title below, then author/date and excerpt. */
.nl-home-latest{width:100%;max-width:900px;margin-inline:auto}
.nl-home-post-list{display:flex;flex-direction:column;gap:0}
.nl-home-post-list .nl-home-card{display:block;width:100%;max-width:none;margin:0;padding:24px 0;border-bottom:1px solid var(--nl-border)}
.nl-home-post-list .nl-home-card .nl-card-image{display:block;width:100%;margin:0 0 13px;overflow:hidden;border-radius:var(--nl-radius);background:#f2f2f2}
.nl-home-post-list .nl-home-card .nl-card-image img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:16/9;object-fit:cover;border-radius:var(--nl-radius)}
.nl-home-post-list .nl-home-card .nl-card-title{display:block;margin:0 0 8px;font-size:clamp(22px,2.5vw,30px);line-height:1.25;letter-spacing:-.4px}
.nl-home-post-list .nl-home-card .nl-meta{margin-bottom:8px}
.nl-home-post-list .nl-home-card .nl-excerpt{font-size:16px;line-height:1.65;margin:8px 0 10px;color:#454545}
.nl-home-read-more{margin:8px 0 0;font-weight:750;font-size:15px}
.nl-home-read-more a{color:var(--nl-accent)}
.nl-home-newsletter{width:100%;max-width:900px;margin:32px auto 0}
@media(max-width:600px){.nl-home-post-list .nl-home-card{padding:18px 0}.nl-home-post-list .nl-home-card .nl-card-title{font-size:22px}.nl-home-post-list .nl-home-card .nl-excerpt{font-size:15px;line-height:1.55}}
