:root {
    --bg: #0a0e17;
    --surface: #111827;
    --surface2: #1a2332;
    --border: #1e293b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent: #f97316;
    --accent2: #ea580c;
    --green: #10b981;
    --red: #ef4444;
    --blue: #3b82f6;
    --radius: 10px;
    --font: 'Noto Sans Gujarati', 'Noto Sans Devanagari', -apple-system, sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box}
/* --- Ad slots: reserved, invisible until an ad is placed inside --- */
.ad-slot{max-width:1200px;margin:0 auto;padding:0}
.ad-slot:empty{display:none}
.ad-slot[data-slot="ticker"]:empty{display:none}
.ad-slot-label{font-size:10px;letter-spacing:.05em;text-transform:uppercase;color:var(--text-dim);text-align:center;margin-bottom:4px}
body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.7;font-size:15px}
a{color:inherit;text-decoration:none}

/* HEADER */
.hdr{background:var(--surface);border-bottom:2px solid var(--accent);position:sticky;top:0;z-index:100;backdrop-filter:blur(12px)}
.hdr-inner{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:12px 20px;flex-wrap:wrap;gap:10px}
.logo-link{display:flex;align-items:center;gap:10px}
.logo{font-size:28px;font-weight:900;color:#fff;letter-spacing:-0.5px}
.logo span{color:var(--accent)}
.tagline{font-size:11px;color:var(--text-dim);margin-top:-2px}
.nav{display:flex;gap:4px;flex-wrap:wrap;align-items:center}
.nav a,.nav .nav-drop{font-size:13px;font-weight:600;color:var(--text-muted);padding:7px 14px;border-radius:6px;transition:all .2s;white-space:nowrap}
.nav a:hover,.nav .nav-drop:hover{color:#fff;background:var(--surface2)}
.nav a.active{color:var(--accent);background:rgba(249,115,22,0.1)}
.nav-drop{position:relative;cursor:pointer}
.nav-drop-menu{display:none;position:absolute;top:100%;left:0;background:var(--surface2);border:1px solid var(--border);border-radius:8px;min-width:160px;padding:6px;z-index:200;box-shadow:0 10px 30px rgba(0,0,0,0.5)}
.nav-drop:hover .nav-drop-menu{display:block}
.nav-drop-menu a{display:block;padding:8px 12px;font-size:12px;margin:1px 0}

/* CONTAINER */
.container{max-width:1200px;margin:0 auto;padding:20px}

/* CARDS */
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;transition:all .25s}
.card:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 8px 25px rgba(249,115,22,0.1)}
.card-img{width:100%;height:180px;object-fit:contain;background:var(--surface2);display:block}
.card-img-fb{background:linear-gradient(135deg,var(--surface2),var(--surface));display:flex;align-items:center;justify-content:center;color:var(--text-dim);font-size:12px;text-align:center;padding:15px}
.card-body{padding:15px}
.card-cat{display:inline-block;padding:3px 10px;border-radius:4px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}
.card-title{font-size:16px;font-weight:700;line-height:1.4;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.card-summary{font-size:13px;color:var(--text-muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-meta{display:flex;align-items:center;gap:12px;margin-top:10px;font-size:11px;color:var(--text-dim)}
.card-pipe{font-size:10px;padding:2px 6px;border-radius:3px;font-weight:600}
.pipe-hard{background:rgba(59,130,246,0.15);color:var(--blue)}
.pipe-life{background:rgba(16,185,129,0.15);color:var(--green)}
.pipe-ed{background:rgba(249,115,22,0.15);color:var(--accent)}

/* GRID LAYOUTS */
.grid-featured{display:grid;grid-template-columns:2fr 1fr;gap:20px;margin-bottom:25px}
.grid-featured .card:first-child .card-img{height:380px}
.grid-featured .card:first-child .card-title{font-size:24px}
.grid-2x2{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:25px}
.grid-3col{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:25px}
.grid-4col{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:25px}
.grid-list{display:grid;grid-template-columns:1fr;gap:15px}

/* ARTICLE PAGE */
.article-layout{display:grid;grid-template-columns:1fr 300px;gap:30px}
.article-main{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:30px}
.article-main h1{font-size:32px;font-weight:800;line-height:1.3;margin-bottom:15px;color:#fff}
.article-meta{display:flex;align-items:center;gap:15px;padding-bottom:20px;border-bottom:1px solid var(--border);margin-bottom:20px;font-size:13px;color:var(--text-muted);flex-wrap:wrap}
.article-hero{width:100%;max-height:450px;object-fit:contain;background:var(--surface2);border-radius:8px;margin-bottom:20px}
.article-content{font-size:16px;line-height:1.9;color:var(--text)}
.article-content p{margin-bottom:1.2em}
.article-content h2{font-size:22px;font-weight:700;margin:1.5em 0 0.8em;color:#fff}
.article-content h3{font-size:18px;font-weight:700;margin:1.2em 0 0.6em;color:#fff}

/* SHARE BUTTONS */
.share-bar{display:flex;align-items:center;gap:10px;margin-top:25px;padding-top:20px;border-top:1px solid var(--border);flex-wrap:wrap}
.share-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 16px;border-radius:6px;font-size:12px;font-weight:600;transition:all .2s;border:none;cursor:pointer;color:#fff}
.share-btn:hover{opacity:.85;transform:translateY(-1px)}
.share-wa{background:#25D366}
.share-fb{background:#1877F2}
.share-tw{background:#000}
.share-tg{background:#0088cc}
.share-copy{background:var(--surface2);border:1px solid var(--border)}

/* LIKE BUTTON — ONLY LIFESTYLE */
.like-bar{display:flex;align-items:center;gap:8px;margin-top:20px;padding:15px 20px;background:var(--surface2);border-radius:8px;border:1px solid var(--border)}
.like-btn{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;border-radius:50px;font-size:14px;font-weight:600;border:none;cursor:pointer;background:var(--surface);color:var(--text-muted);transition:all .2s}
.like-btn:hover{color:var(--accent);border-color:var(--accent)}
.like-btn.liked{color:var(--accent);background:rgba(249,115,22,0.1)}
.like-count{font-size:13px;color:var(--text-muted)}

/* CITY NAV */
.city-nav{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:15px 20px;margin-bottom:25px}
.city-nav h3{font-size:13px;color:var(--text-dim);text-transform:uppercase;letter-spacing:2px;margin-bottom:10px}
.city-grid{display:flex;flex-wrap:wrap;gap:8px}
.city-chip{padding:5px 14px;border-radius:20px;font-size:12px;font-weight:600;background:var(--surface2);color:var(--text-muted);transition:all .2s}
.city-chip:hover{background:var(--accent);color:#fff}

/* CATEGORY TICKER - replaces the old homepage city chips, which
   duplicated the header's city dropdown right above them. Content
   is doubled in the markup and the animation runs to exactly -50%,
   which is the standard pure-CSS trick for a seamless infinite
   loop with no JS. */
.cat-ticker{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:13px 0;margin-bottom:25px;overflow-x:auto;scrollbar-width:none}
.cat-ticker::-webkit-scrollbar{display:none}
.cat-ticker-track{display:inline-flex;white-space:nowrap;gap:30px;padding-left:30px;}
.cat-ticker-track a{font-size:13px;font-weight:600;color:var(--text-muted);text-decoration:none}
.cat-ticker-track a:hover{color:var(--accent)}
@keyframes cat-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* SECTIONS */
.section-title{font-size:22px;font-weight:800;color:#fff;margin-bottom:20px;padding-bottom:12px;border-bottom:3px solid var(--accent);display:inline-block}
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;flex-wrap:wrap;gap:10px}
.section-header a{font-size:13px;color:var(--accent);font-weight:600}

/* CATEGORY CHIPS */
.cat-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.cat-chip{padding:6px 16px;border-radius:20px;font-size:12px;font-weight:600;background:var(--surface2);color:var(--text-muted);transition:all .2s}
.cat-chip:hover,.cat-chip.active{background:var(--accent);color:#fff}

/* FOOTER */
.ftr{background:var(--surface);border-top:2px solid var(--accent);margin-top:40px;padding:30px 20px;text-align:center}
.ftr p{color:var(--text-dim);font-size:13px;margin:5px 0}
.ftr-links{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;margin-bottom:10px}
.ftr-links a{font-size:13px;color:var(--text-muted)}
.ftr-links a:hover{color:var(--accent)}

/* BREADCRUMB */
.breadcrumb{padding:10px 0;font-size:12px;color:var(--text-dim);margin-bottom:10px}
.breadcrumb a{color:var(--text-muted)}
.breadcrumb a:hover{color:var(--accent)}
.breadcrumb span{color:var(--text-dim);margin:0 6px}

/* SEARCH */
.search-box{position:relative;margin-bottom:25px}
.search-box input{width:100%;padding:14px 20px;padding-right:50px;background:var(--surface);border:2px solid var(--border);border-radius:var(--radius);color:#fff;font-size:15px;font-family:var(--font);transition:all .2s}
.search-box input:focus{border-color:var(--accent);outline:none}
.search-box input::placeholder{color:var(--text-dim)}
.search-results{display:none;position:absolute;top:100%;left:0;right:0;background:var(--surface2);border:1px solid var(--border);border-radius:8px;max-height:400px;overflow-y:auto;z-index:50;margin-top:5px}
.search-results a{display:block;padding:12px 20px;border-bottom:1px solid var(--border);font-size:13px}
.search-results a:hover{background:var(--surface)}
.search-results .sr-cat{font-size:10px;color:var(--accent);text-transform:uppercase}

/* RESPONSIVE */
.list-card{display:flex;flex-direction:row;align-items:stretch}
.list-card-img{width:240px;height:160px;flex-shrink:0;object-fit:contain;background:var(--surface2)}
.list-card-body{flex:1;min-width:0}
.list-card-body .card-title,.list-card-body .card-summary{overflow-wrap:break-word;word-break:break-word}

@media(max-width:768px){
    .grid-featured{grid-template-columns:1fr}
    .grid-featured .card:first-child .card-img{height:220px}
    .grid-featured .card:first-child .card-title{font-size:18px}
    .grid-2x2{grid-template-columns:1fr}
    .grid-3col{grid-template-columns:1fr}
    .grid-4col{grid-template-columns:1fr}
    .article-layout{grid-template-columns:1fr}
    .hdr-inner{flex-direction:column;align-items:flex-start}
    .nav{overflow-x:auto;width:100%;padding-bottom:5px}
    .nav a{font-size:11px;padding:6px 10px}
    .logo{font-size:22px}
    .article-content{font-size:15px}
    .article-main h1{font-size:24px}
    /* The list-card's fixed 240px image ate almost the whole
       375px mobile width, leaving no room for text - it was
       overflowing off-screen instead of wrapping. */
    .list-card{flex-direction:column}
    .list-card-img{width:100%;height:180px}
    /* City picker was a wrapping grid that stacked all 12 chips
       into ~4 rows on a 375px screen, burying the actual news
       below the fold. Collapse it to one horizontally-scrollable
       strip on mobile instead. */
    .city-nav{padding:12px 15px;margin-bottom:15px}
    .city-grid{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}
    .city-grid::-webkit-scrollbar{display:none}
    .city-chip{flex-shrink:0}
}

/* ─── Mobile navigation drawer ───────────────────────────────────────────
   Mobile only. Below 768px this REPLACES the horizontal-scroll nav rather
   than sitting alongside it - two competing navigation patterns on the
   same screen is worse than either one. Desktop is untouched: the drawer
   and its trigger are display:none above the breakpoint, so none of this
   can affect the desktop layout. */
.menu-trigger{display:none}
.drawer,.drawer-overlay{display:none}

@media(max-width:768px){
    /* Logo left, menu button right - the base rule stacks these in a
       column, which would put the trigger under the tagline. */
    .hdr-inner{flex-direction:row;align-items:center;justify-content:space-between;gap:10px}
    .nav{display:none}

    .menu-trigger{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;
        background:var(--surface2);color:var(--text);border:1px solid var(--border);
        border-radius:8px;padding:8px 12px;font-family:var(--font);font-size:13px;
        font-weight:600;cursor:pointer}
    .menu-trigger-icon{font-size:15px;line-height:1}

    .drawer-overlay{display:block;position:fixed;inset:0;background:rgba(0,0,0,.65);
        z-index:999;opacity:0;pointer-events:none;transition:opacity .25s ease}
    .drawer-overlay.open{opacity:1;pointer-events:auto}

    .drawer{display:flex;flex-direction:column;position:fixed;top:0;right:0;
        height:100%;width:min(86vw,340px);background:var(--surface);
        border-left:1px solid var(--border);z-index:1000;overflow-y:auto;
        visibility:hidden;transform:translateX(100%);
        /* visibility is stepped with a delay rather than eased: on OPEN it
           must flip to visible instantly, because focus() silently fails
           on an element inside a visibility:hidden container - which is
           exactly what stopped focus entering the drawer. On CLOSE it
           stays visible for the full slide-out, then hides. */
        transition:transform .25s ease,visibility 0s linear .25s}
    .drawer.open{visibility:visible;transform:translateX(0);
        transition:transform .25s ease,visibility 0s linear 0s}

    .drawer-head{display:flex;align-items:center;justify-content:space-between;
        padding:16px;border-bottom:1px solid var(--border);position:sticky;top:0;
        background:var(--surface);z-index:1}
    .drawer-title{font-size:15px;font-weight:700;color:var(--text)}
    .drawer-close{background:none;border:none;color:var(--text-muted);font-size:18px;
        cursor:pointer;padding:4px 8px;line-height:1}
    .drawer-close:hover{color:var(--text)}

    .drawer-body{padding:8px 0 28px}
    .drawer-section-title{font-size:11px;text-transform:uppercase;letter-spacing:.06em;
        color:var(--text-dim);font-weight:700;padding:14px 16px 6px}
    .drawer-links{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px}
    .drawer-links a{display:block;padding:8px 12px;font-size:13px;font-weight:600;
        color:var(--text-muted);background:var(--surface2);border-radius:6px}
    .drawer-links a:hover,.drawer-links a:focus{color:#fff;background:var(--border)}
    .drawer-links.stacked{flex-direction:column;flex-wrap:nowrap}
    .drawer-links.stacked a{background:none;padding:10px 4px;
        border-bottom:1px solid var(--border);border-radius:0}

    /* Keeps the page behind from scrolling while the drawer is open. */
    body.drawer-open{overflow:hidden}
}

@media(prefers-reduced-motion:reduce){
    .drawer,.drawer-overlay{transition:none}
}

/* ─── Hero carousel ──────────────────────────────────────────────────────
   One slide visible at a time; slides are stacked and cross-faded rather
   than translated, so a slide's own layout never depends on how many
   siblings it has. A single-slide hero uses the same .hero-slide styling
   with no controls, so static and rotating heroes look identical apart
   from the controls. */
.hero{position:relative;margin-bottom:24px;border-radius:var(--radius);overflow:hidden;
    background:var(--surface);border:1px solid var(--border)}
.hero-track{position:relative}
.hero-slide{display:block;color:inherit}
.hero-img{width:100%;height:380px;object-fit:contain;background:var(--bg);display:block}
.hero-body{padding:18px 20px 20px}
.hero-title{font-size:24px;font-weight:800;line-height:1.35;margin:8px 0 8px;color:var(--text)}

.hero-carousel .hero-slide{position:absolute;top:0;left:0;width:100%;
    opacity:0;visibility:hidden;transition:opacity .45s ease,visibility 0s linear .45s}
.hero-carousel .hero-slide.active{position:relative;opacity:1;visibility:visible;
    transition:opacity .45s ease,visibility 0s linear 0s}

.hero-nav{position:absolute;top:170px;transform:translateY(-50%);z-index:3;
    background:rgba(0,0,0,.55);color:#fff;border:1px solid rgba(255,255,255,.18);
    width:38px;height:38px;border-radius:50%;font-size:22px;line-height:1;cursor:pointer;
    display:flex;align-items:center;justify-content:center}
.hero-nav:hover{background:rgba(0,0,0,.8)}
.hero-prev{left:12px}
.hero-next{right:12px}

.hero-dots{position:absolute;top:340px;left:0;right:0;display:flex;justify-content:center;
    gap:7px;z-index:3}
.hero-dot{width:9px;height:9px;padding:0;border-radius:50%;cursor:pointer;
    background:rgba(255,255,255,.45);border:1px solid rgba(0,0,0,.35)}
.hero-dot.active{background:var(--accent);border-color:var(--accent)}

@media(max-width:768px){
    .hero-img{height:230px}
    .hero-title{font-size:19px}
    .hero-nav{top:115px;width:32px;height:32px;font-size:18px}
    .hero-dots{top:198px}
}

/* Auto-advance is disabled in JS under reduced motion; this also drops the
   cross-fade so slide changes are instant rather than animated. */
@media(prefers-reduced-motion:reduce){
    .hero-carousel .hero-slide{transition:none}
}

/* ─── Compact header actions (search icon + dropdown) ────────────────────
   The permanent search box cost ~80px of every visit for a feature most
   visits never use; none of the benchmarked sites (BBC, Al Jazeera, Mint)
   keep one on mobile. The box now drops down from the header on demand. */
.hdr-actions{display:flex;align-items:center;gap:8px;margin-left:auto;margin-right:8px}
.search-trigger{background:var(--surface2);border:1px solid var(--border);color:var(--text);
    border-radius:8px;padding:8px 11px;font-size:14px;line-height:1;cursor:pointer}
.search-trigger[aria-expanded="true"]{border-color:var(--accent);color:var(--accent)}
.search-drop{display:none;max-width:1200px;margin:0 auto;padding:0 20px 12px}
.search-drop.open{display:block}
.search-drop .search-box{margin:0}

/* On desktop the nav sits between logo and actions; keep order sane. */
.hdr-inner{flex-wrap:nowrap}
.nav{margin-left:auto}
.hdr-actions{margin-left:12px}

/* ─── Trending strip (Al Jazeera pattern) ────────────────────────────────
   Real story headlines, horizontally scrollable by hand - deliberately
   NOT auto-scrolling: readers scan and tap it, and text that moves under
   a finger fights the tap. The category ticker below the hero keeps the
   ambient-motion job. */
.trend-strip{display:flex;align-items:center;gap:10px;max-width:1200px;margin:0 auto;
    padding:8px 20px;border-bottom:1px solid var(--border);overflow:hidden}
.trend-label{flex:0 0 auto;font-size:12px;font-weight:800;color:var(--accent);white-space:nowrap}
.trend-items{display:flex;gap:22px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.trend-items::-webkit-scrollbar{display:none}
.trend-items a{flex:0 0 auto;font-size:12.5px;font-weight:600;color:var(--text-muted);white-space:nowrap}
.trend-items a:hover{color:var(--text)}
/* Marquee mode (default; reduced-motion gets the static scrollable list
   above instead). Same doubled-content -50% loop as the other strips;
   duration is set inline by app.js from the item count. */
/* (motion is JS-driven via the shared auto-scroller now) */

/* ─── Market strip ───────────────────────────────────────────────────────
   Same doubled-track -50% loop as the category ticker, faster (ambient
   glanceable data, not reading matter). The as-of stamp keeps hourly
   static data honest. */
.mkt-strip{max-width:1200px;margin:0 auto;padding:6px 0;border-bottom:1px solid var(--border);
    overflow-x:auto;scrollbar-width:none;font-size:12px}
.mkt-strip::-webkit-scrollbar{display:none}
.mkt-track{display:inline-flex;white-space:nowrap;gap:26px;padding-left:20px}
.mkt-q{color:var(--text-muted);font-weight:600}
.mkt-q b{color:var(--text);font-weight:700}
.mkt-up{color:var(--green)}
.mkt-down{color:var(--red)}
.mkt-asof{color:var(--text-dim);font-size:11px}

/* ─── PWA install pill ───────────────────────────────────────────────────
   Bottom, floating, dismissible - NOT a permanent bottom bar (Mint's
   five-button bar is exactly the clutter this redesign removes). Only
   shown when the browser genuinely offers install. */
.install-pill{position:fixed;left:10px;right:10px;bottom:12px;z-index:900;
    display:flex;align-items:center;gap:12px;background:var(--surface);
    border:1px solid var(--accent);border-radius:14px;padding:12px 14px;
    box-shadow:0 12px 44px rgba(0,0,0,.6);animation:pill-up .35s ease}
@keyframes pill-up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.install-pill[hidden]{display:none}
.install-ico{width:42px;height:42px;border-radius:10px;flex:0 0 auto}
.install-txt{flex:1;min-width:0;line-height:1.35}
.install-txt b{display:block;font-size:14px;color:var(--text);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.install-txt span{display:block;font-size:11.5px;color:var(--text-muted)}
.install-yes{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;
    border:none;border-radius:10px;padding:10px 18px;font-weight:800;font-size:13px;
    font-family:var(--font);cursor:pointer;flex:0 0 auto;white-space:nowrap}
.install-yes:active{transform:scale(.97)}
.install-no{background:none;border:none;color:var(--text-dim);font-size:15px;
    cursor:pointer;padding:4px 6px;flex:0 0 auto}
@media(min-width:769px){
    .install-pill{left:auto;right:24px;bottom:24px;max-width:400px}
}
@media(prefers-reduced-motion:reduce){.install-pill{animation:none}}

/* ─── Mobile: single-row header ─────────────────────────────────────────
   Tagline is desktop-only; on a phone it costs a row the news should
   have. Logo shrinks a step; actions stay tappable (>=40px targets). */
@media(max-width:768px){
    /* Tagline stays, small - a 2003 masthead's motto belongs under the
       brand on every screen (user's call: સત્ય. સાહસ. સંકલ્પ., small is fine). */
    .tagline{font-size:9.5px;margin-top:-1px;letter-spacing:.02em}
    .logo{font-size:20px}
    .hdr-inner{padding:10px 14px}
    .trend-strip{padding:7px 14px}
    .trend-items a{font-size:12px}
    .search-drop{padding:0 14px 10px}
}

/* ─── Reader signup card (post-install welcome) ──────────────────────────
   Bottom sheet on mobile, floating card on desktop. Always closable -
   the ask is soft by design. */
.signup-card{position:fixed;inset:auto 0 0 0;z-index:950;display:flex;justify-content:center;
    padding:0 12px 12px}
.signup-inner{position:relative;background:var(--surface);border:1px solid var(--border);
    border-radius:14px;padding:20px 18px 16px;width:min(100%,420px);
    box-shadow:0 -8px 40px rgba(0,0,0,.55)}
.signup-inner h3{font-size:17px;font-weight:800;color:var(--text);margin-bottom:4px}
.signup-inner p{font-size:13px;color:var(--text-muted);margin-bottom:12px}
.signup-inner input{display:block;width:100%;margin-bottom:8px;background:var(--surface2);
    border:1px solid var(--border);border-radius:8px;padding:10px 12px;color:var(--text);
    font-family:var(--font);font-size:14px}
.signup-inner input:focus{outline:none;border-color:var(--accent)}
.signup-hp{position:absolute;left:-9999px;height:1px;width:1px;opacity:0}
.signup-go{width:100%;background:var(--accent);color:#fff;border:none;border-radius:8px;
    padding:11px;font-weight:700;font-size:14px;cursor:pointer;font-family:var(--font)}
.signup-go:hover{background:var(--accent2)}
.signup-close{position:absolute;top:10px;right:12px;background:none;border:none;
    color:var(--text-dim);font-size:16px;cursor:pointer;padding:4px}
.signup-note{font-size:11px;color:var(--text-dim);text-align:center;margin-top:8px}
@media(min-width:769px){
    .signup-card{inset:auto 24px 24px auto;padding:0}
}

/* Star separator between trending headlines - the eye's cue for where one
   story ends and the next begins in a moving strip. */
.trend-sep{color:var(--accent);font-size:11px;flex:0 0 auto;align-self:center}

/* Weekend/holiday badge in the market strip - shown only when every
   tracked market has gone quiet; the as-of stamp carries the last trading
   day's date, which sticks until the next open replaces it. */
.mkt-closed{color:var(--red);font-weight:800;font-size:11px;letter-spacing:.03em;
    border:1px solid var(--red);border-radius:4px;padding:1px 6px;align-self:center}

/* ─── Story thread (developing-news history on the latest update) ──────── */
.story-newer{display:block;background:rgba(249,115,22,.08);border:1px solid var(--accent);
    border-radius:8px;padding:10px 14px;font-size:13px;color:var(--text);margin-bottom:16px}
.story-newer:hover{background:rgba(249,115,22,.15)}
.story-thread{margin:22px 0;padding:14px 16px;background:var(--surface2);
    border-left:3px solid var(--accent);border-radius:8px}
.story-thread h3{font-size:13px;color:var(--text-dim);text-transform:uppercase;margin-bottom:8px}
.story-thread a{display:block;padding:7px 0;font-size:13.5px;color:var(--text-muted);
    border-bottom:1px solid var(--border)}
.story-thread a:last-child{border-bottom:none}
.story-thread a:hover{color:var(--text)}
.story-time{display:block;font-size:11px;color:var(--text-dim)}

/* ─── Related-news thumbnail carousel (below the article) ─────────────── */
.related-carousel{margin-top:26px;padding-top:18px;border-top:1px solid var(--border)}
.related-carousel h3{font-size:14px;color:var(--text-dim);text-transform:uppercase;margin-bottom:12px}
.rc-track{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.rc-track::-webkit-scrollbar{display:none}
.rc-card{flex:0 0 150px;background:var(--surface2);border:1px solid var(--border);
    border-radius:8px;overflow:hidden;transition:border-color .2s}
.rc-card:hover{border-color:var(--accent)}
.rc-card img{width:100%;height:88px;object-fit:cover;display:block;background:var(--bg)}
.rc-card span{display:block;padding:8px 10px;font-size:12px;line-height:1.45;
    color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}


/* ─── Today page (middle navigation tier) ──────────────────────────────── */
.today-head{display:flex;align-items:flex-start;justify-content:space-between;
    gap:14px;flex-wrap:wrap;margin-bottom:22px}
.today-head h1{font-size:26px;font-weight:800;color:var(--text)}
.today-date{color:var(--text-muted);font-size:13.5px;margin-top:4px}
.btn-archive{display:inline-block;background:var(--surface2);border:1px solid var(--border);
    color:var(--text-muted);border-radius:8px;padding:9px 16px;font-size:13px;font-weight:700}
.btn-archive:hover{border-color:var(--accent);color:var(--text)}

/* ─── Mobile-width containment for inner pages ───────────────────────────
   The related carousel's doubled track (~2600px of cards) was forcing
   .article-main's min-content width open - grid/flex items default to
   min-width:auto, so one wide scroller inside dragged EVERY inner page
   out to desktop width on phones (measured live: 2661px scrollWidth on a
   375px viewport). min-width:0 lets the layout column shrink to the
   viewport and the scroller scroll inside it, which was the design. */
.article-layout > *{min-width:0}
.related-carousel{max-width:100%}
.rc-track{max-width:100%}
/* Belt and braces: nothing inside an article may widen the page itself -
   anything genuinely wider (tables, embeds) scrolls within its own box. */
.article-main{overflow-x:clip}
.trend-items a{max-width:80vw;overflow:hidden;text-overflow:ellipsis}
