/* ============================================================
   THE SUPREME VOICE — style.css v2.0
   Clean headlines · Live markets · Ad banners
   ============================================================ */

:root {
  --black:      #0a0a0a;
  --red:        #c0111f;
  --red-dark:   #8b0d18;
  --off-white:  #f5f3ef;
  --warm-gray:  #d8d4cc;
  --mid-gray:   #888480;
  --light-gray: #e8e5e0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--off-white); color: var(--black); font-family: 'Source Serif 4', Georgia, serif; min-height: 100vh; display: flex; flex-direction: column; }
body > main, body > .page-content { flex: 1; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── TOP BAR ─────────────────────────────────────────────── */
#tsv-topbar {
  background: var(--black); color: var(--off-white);
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 32px; font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
}
.topbar-left { display: flex; align-items: center; gap: 8px; opacity: .75; }
.topbar-sep { opacity: .3; }
.w-city-mini { color: #aaa; }
#live-time { font-weight: 700; color: white; }
#w-temp { font-weight: 700; }
.topbar-links a { color: var(--off-white); opacity: .7; margin-left: 16px; transition: opacity .2s; }
.topbar-links a:hover { opacity: 1; color: var(--red); }

/* ── MARKETS BAR ─────────────────────────────────────────── */
#tsv-markets {
  background: #111; display: flex; align-items: center;
  padding: 0 32px; height: 32px; overflow: hidden;
  border-bottom: 1px solid #1a1a1a;
}
.market-label {
  background: #1a1a1a; color: #888; font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 0 12px; height: 32px; line-height: 32px; margin-right: 20px;
  flex-shrink: 0; border-right: 1px solid #222;
}
.market-items { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.mkt-item { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.mkt-name { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #666; }
.mkt-val { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; }
.mkt-up { color: #22c55e; }
.mkt-down { color: #ef4444; }
.mkt-flat { color: #888; }
.mkt-sep { color: #333; font-size: 14px; }

/* ── BREAKING TICKER ─────────────────────────────────────── */
#tsv-ticker {
  background: #0a0a0a; display: flex; align-items: center;
  padding: 0 0 0 32px; overflow: hidden; height: 34px;
}
.ticker-label {
  background: var(--red); color: white; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 0 14px; height: 34px; line-height: 34px; white-space: nowrap;
  margin-right: 20px; flex-shrink: 0;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-content {
  display: inline-block; white-space: nowrap;
  animation: tsv-ticker 45s linear infinite;
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px;
  letter-spacing: .5px; color: #bbb; line-height: 34px;
}
.ticker-content span { margin: 0 36px; }
.ticker-content span::before { content: '◆ '; color: var(--red); font-size: 9px; }
@keyframes tsv-ticker { from { transform: translateX(60vw); } to { transform: translateX(-100%); } }

/* ── AD BANNER TOP ───────────────────────────────────────── */
#tsv-ad-top { background: #f0ede8; padding: 10px 0; text-align: center; border-bottom: 1px solid var(--warm-gray); }
.ad-slot { cursor: pointer; transition: opacity .2s; }
.ad-leaderboard { max-width: 728px; height: 90px; margin: 0 auto; border: 1px dashed #bbb; background: white; display: flex; align-items: center; justify-content: center; }
.ad-inner { text-align: center; }
.ad-label { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #bbb; margin-bottom: 4px; }
.ad-placeholder-text { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 1px; color: #ccc; }
.ad-cta { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: var(--red); margin-top: 4px; letter-spacing: .5px; }
.ad-slot:hover .ad-placeholder-text { color: var(--red); }

/* AD SIDEBAR (300x250) */
.ad-sidebar { width: 300px; min-height: 250px; border: 1px dashed #bbb; background: white; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.ad-sidebar .ad-placeholder-text { font-size: 12px; }

/* AD INLINE (468x60) */
.ad-inline { max-width: 468px; height: 60px; border: 1px dashed #bbb; background: white; display: flex; align-items: center; justify-content: center; margin: 24px auto; cursor: pointer; }

/* ── HEADER ──────────────────────────────────────────────── */
#tsv-header { background: white; border-bottom: 3px solid var(--black); }
.header-inner { max-width: 1300px; margin: 0 auto; padding: 22px 32px 0; }
.masthead { display: flex; flex-direction: column; align-items: center; padding-bottom: 16px; }
.masthead-logo-img { height: 82px; object-fit: contain; cursor: pointer; transition: opacity .2s; }
.masthead-logo-img:hover { opacity: .85; }
.masthead-tagline { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.masthead-tagline .mline { width: 60px; height: 1px; background: var(--black); }
.masthead-tagline span { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--red); font-weight: 600; }

/* ── NAV ─────────────────────────────────────────────────── */
#tsv-nav { border-top: 1px solid var(--black); display: flex; justify-content: center; overflow-x: auto; scrollbar-width: none; }
#tsv-nav::-webkit-scrollbar { display: none; }
#tsv-nav a { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--black); padding: 10px 15px; border-right: 1px solid var(--warm-gray); transition: background .2s, color .2s; white-space: nowrap; }
#tsv-nav a:first-child { border-left: 1px solid var(--warm-gray); }
#tsv-nav a:hover { background: var(--black); color: white; }
#tsv-nav a.active { background: var(--red); color: white; }

/* ── HEADLINES — READABLE (Playfair not Gothic) ──────────── */
.headline-xl { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; font-weight: 900; }
.headline-lg { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.25; font-weight: 700; }
.headline-md { font-family: 'Playfair Display', Georgia, serif; font-size: 20px; line-height: 1.3; font-weight: 700; }
.headline-sm { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; line-height: 1.35; font-weight: 700; }
a:hover .headline-xl, a:hover .headline-lg, a:hover .headline-md, a:hover .headline-sm { color: var(--red); }

/* ── SECTION LABEL ───────────────────────────────────────── */
.section-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); border-bottom: 2px solid var(--red); padding-bottom: 5px; margin-bottom: 20px; margin-top: 36px; display: inline-block; }
.cat-tag { display: inline-block; background: var(--red); color: white; font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 3px 10px; }
.badge-breaking { display: inline-block; background: var(--red); color: white; font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 2px 8px; margin-right: 6px; }
.cat-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.byline { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--mid-gray); }
.byline strong { color: var(--black); }

/* ── HOMEPAGE LAYOUT ─────────────────────────────────────── */
main { max-width: 1300px; margin: 0 auto; padding: 0 32px 60px; }

/* Hero — with sidebar ad */
.hero-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 24px; margin-top: 28px; }
.hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 1px; background: var(--warm-gray); border: 1px solid var(--warm-gray); }
.hero-main { background: white; grid-row: 1/3; padding: 28px; }
.hero-img { width: 100%; height: 280px; object-fit: cover; margin-bottom: 20px; }
.hero-img-placeholder { width: 100%; height: 260px; background: linear-gradient(135deg, #1a1a1a, #3d3d3d); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.hero-img-placeholder span { font-family: 'Barlow Condensed', sans-serif; color: rgba(255,255,255,.2); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }
.hero-main .deck { font-size: 16px; line-height: 1.7; color: #333; max-width: 580px; margin: 12px 0 16px; font-weight: 300; }

.sidebar-panel { background: white; padding: 20px; }
.sidebar-panel + .sidebar-panel { border-top: 1px solid var(--warm-gray); }
.sidebar-story { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--light-gray); }
.sidebar-story:last-child { margin: 0; padding: 0; border: 0; }
.sidebar-story .time { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: var(--mid-gray); margin-top: 4px; }

/* Mid grid */
.mid-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--warm-gray); border: 1px solid var(--warm-gray); margin-top: 1px; }
.mid-card { background: white; padding: 22px; }
.mid-card p { font-size: 14px; line-height: 1.65; color: #444; font-weight: 300; margin-top: 8px; }
.mid-card .meta { display: flex; justify-content: space-between; margin-top: 12px; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: var(--mid-gray); text-transform: uppercase; letter-spacing: .5px; }

/* Full width layout with sidebar ad */
.content-with-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 32px; margin-top: 28px; align-items: start; }
.sidebar-ad-col { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }

/* Bottom strip */
.bottom-strip { display: grid; grid-template-columns: 2fr 1fr; gap: 1px; background: var(--warm-gray); border: 1px solid var(--warm-gray); }
.bottom-left { background: white; padding: 26px; }
.bottom-right { background: #111; padding: 26px; color: var(--off-white); }
.story-item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--light-gray); align-items: start; }
.story-item:last-child { border: 0; }
.story-item .num { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 900; color: var(--warm-gray); line-height: 1; }

/* Opinion */
.opinion-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--warm-gray); border: 1px solid var(--warm-gray); }
.opinion-card { background: var(--black); color: var(--off-white); padding: 24px 20px; position: relative; }
.opinion-card::before { content: '"'; font-family: 'UnifrakturMaguntia', cursive; font-size: 80px; color: var(--red); opacity: .15; position: absolute; top: 0; left: 12px; line-height: 1; pointer-events: none; }
.opinion-card .avi { width: 40px; height: 40px; border-radius: 50%; background: #2a2a2a; border: 2px solid var(--red); display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; color: var(--warm-gray); margin-bottom: 10px; }
.opinion-card h4 { font-family: 'Playfair Display', serif; font-style: italic; font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.opinion-card .auth { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--red); }

/* Weather widget */
.w-title { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 14px; }
.w-city { font-family: 'Playfair Display', serif; font-size: 16px; margin-bottom: 3px; }
.w-temp-big { font-family: 'Barlow Condensed', sans-serif; font-size: 44px; font-weight: 900; line-height: 1; color: var(--red); }
.w-desc { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #666; margin-top: 3px; }
.w-divider { border-top: 1px solid #222; margin: 12px 0; padding-top: 12px; }

/* Donate banner */
.donate-banner { background: linear-gradient(135deg, #0a0a0a, #1c0204); border: 1px solid var(--red); padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; position: relative; overflow: hidden; }
.donate-banner::before { content: '◆'; position: absolute; right: -20px; top: -20px; font-size: 140px; color: var(--red); opacity: .06; pointer-events: none; }
.donate-banner h3 { font-family: 'UnifrakturMaguntia', cursive; font-size: 26px; color: white; margin-bottom: 6px; }
.donate-banner p { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; color: #aaa; letter-spacing: .5px; max-width: 580px; line-height: 1.7; }
.donate-btn { background: var(--red); color: white; border: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; padding: 13px 28px; cursor: pointer; white-space: nowrap; transition: background .2s; text-decoration: none; display: inline-block; }
.donate-btn:hover { background: var(--red-dark); }

/* ── ARTICLE PAGE ─────────────────────────────────────────── */
.article-outer { display: grid; grid-template-columns: 1fr 300px; gap: 32px; max-width: 1200px; margin: 0 auto; padding: 32px 32px 80px; align-items: start; }
.article-container { min-width: 0; }
.article-headline { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(28px, 3.5vw, 48px); line-height: 1.15; font-weight: 900; margin: 16px 0 20px; }
.article-deck { font-size: 19px; line-height: 1.7; color: #333; font-weight: 300; margin-bottom: 20px; border-left: 3px solid var(--red); padding-left: 18px; }
.article-meta { display: flex; gap: 16px; flex-wrap: wrap; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--mid-gray); padding: 14px 0; border-top: 1px solid var(--light-gray); border-bottom: 1px solid var(--light-gray); margin-bottom: 26px; }
.article-meta strong { color: var(--black); }
.article-featured-img { width: 100%; max-height: 460px; object-fit: cover; margin-bottom: 26px; }
.article-body { font-size: 17px; line-height: 1.9; }
.article-body p { margin-bottom: 20px; }
.article-body h2 { font-family: 'Playfair Display', serif; font-size: 24px; margin: 32px 0 14px; }
.article-body blockquote { border-left: 3px solid var(--red); padding-left: 20px; margin: 24px 0; font-style: italic; color: #444; }

/* ── CATEGORY PAGE ────────────────────────────────────────── */
.category-container { max-width: 1300px; margin: 0 auto; padding: 0 32px 60px; }
.cat-hero { padding: 28px 0; border-bottom: 2px solid var(--black); margin-bottom: 28px; }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--warm-gray); border: 1px solid var(--warm-gray); }
.news-card { background: white; padding: 22px; }
.news-card h2 { font-family: 'Playfair Display', serif; font-size: 18px; line-height: 1.35; font-weight: 700; margin: 8px 0; }
.news-card h2 a:hover { color: var(--red); }
.news-card p { font-size: 14px; line-height: 1.6; color: #444; font-weight: 300; }
.news-card .meta { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: var(--mid-gray); margin-top: 10px; text-transform: uppercase; letter-spacing: .5px; }

/* ── FORM PAGES ───────────────────────────────────────────── */
.form-page { max-width: 860px; margin: 0 auto; padding: 44px 32px 80px; }
.page-hero { text-align: center; margin-bottom: 44px; padding-bottom: 32px; border-bottom: 2px solid var(--black); }
.page-hero .eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.page-hero h1 { font-family: 'UnifrakturMaguntia', cursive; font-size: clamp(36px, 6vw, 68px); line-height: 1; margin-bottom: 14px; }
.page-hero p { font-size: 16px; line-height: 1.7; color: #444; font-weight: 300; max-width: 540px; margin: 0 auto; }
.tsv-form { background: white; border: 1px solid var(--warm-gray); padding: 32px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--black); margin-bottom: 7px; }
.form-row label .req { color: var(--red); }
.form-row input, .form-row select, .form-row textarea { width: 100%; border: 1px solid var(--warm-gray); font-family: 'Source Serif 4', serif; font-size: 15px; padding: 12px 14px; outline: none; background: var(--off-white); transition: border-color .2s, background .2s; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--red); background: white; }
.form-row textarea { min-height: 180px; resize: vertical; }
.form-row small { display: block; margin-top: 4px; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: var(--mid-gray); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tsv-btn { background: var(--red); color: white; border: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; padding: 14px 32px; cursor: pointer; transition: background .2s; }
.tsv-btn:hover { background: var(--red-dark); }
.tsv-btn-full { width: 100%; }
.alert-success { background: #dcfce7; border: 1px solid #86efac; color: #166534; padding: 13px 16px; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; margin-bottom: 18px; }
.alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; padding: 13px 16px; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; margin-bottom: 18px; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pill { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 15px; border: 1px solid var(--warm-gray); cursor: pointer; transition: all .2s; background: none; color: var(--mid-gray); }
.cat-pill:hover, .cat-pill.selected { background: var(--red); color: white; border-color: var(--red); }
.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 36px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.step-circle { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; background: var(--light-gray); color: var(--mid-gray); transition: all .3s; }
.step.active .step-circle { background: var(--red); color: white; }
.step.done .step-circle { background: #166534; color: white; }
.step-label { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mid-gray); white-space: nowrap; }
.step.active .step-label { color: var(--black); }
.step-line { width: 80px; height: 1px; background: var(--warm-gray); margin: 0 8px; margin-bottom: 20px; }

/* ── ADMIN ────────────────────────────────────────────────── */
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 36px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 2px solid var(--black); }
.admin-topbar h1 { font-family: 'UnifrakturMaguntia', cursive; font-size: 34px; }
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
.stat-box { background: white; border: 1px solid var(--warm-gray); padding: 22px; text-align: center; }
.stat-box .num { font-family: 'UnifrakturMaguntia', cursive; font-size: 44px; color: var(--red); line-height: 1; }
.stat-box .lbl { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid-gray); margin-top: 5px; }
.tabs { display: flex; margin-bottom: 24px; border-bottom: 2px solid var(--warm-gray); }
.tab-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; padding: 10px 22px; border: none; cursor: pointer; background: none; color: var(--mid-gray); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.tab-btn.active { color: var(--black); border-bottom-color: var(--red); }
.tab-btn:hover { color: var(--black); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.news-table { width: 100%; border-collapse: collapse; background: white; font-size: 14px; }
.news-table th { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 12px 13px; background: var(--black); color: var(--off-white); text-align: left; }
.news-table td { padding: 12px 13px; border-bottom: 1px solid var(--light-gray); vertical-align: middle; }
.news-table tr:hover td { background: #faf9f7; }
.badge { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 2px 8px; margin-right: 3px; }
.badge-red { background: var(--red); color: white; }
.badge-green { background: #166534; color: white; }
.badge-yellow { background: #92400e; color: white; }
.badge-gray { background: #ddd; color: #555; }
.action-btn { background: #333; color: white; border: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 5px 11px; cursor: pointer; margin-right: 3px; text-decoration: none; display: inline-block; }
.action-btn:hover { background: var(--red); }
.action-btn.del:hover { background: #7f1d1d; }
.submission-card { background: white; border: 1px solid var(--warm-gray); padding: 22px; margin-bottom: 14px; }
.sub-meta { display: flex; gap: 10px; flex-wrap: wrap; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 10px; }
.sub-actions { display: flex; gap: 10px; margin-top: 14px; }

/* ── FOOTER ──────────────────────────────────────────────── */
#tsv-footer { background: var(--black); color: var(--off-white); padding: 44px 32px 26px; }
.footer-inner { max-width: 1300px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 28px; border-bottom: 1px solid #1a1a1a; margin-bottom: 20px; }
.footer-brand .footer-logo { height: 52px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-brand p { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; color: #555; letter-spacing: .3px; line-height: 1.8; }
.footer-col h5 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; border-bottom: 1px solid #1a1a1a; padding-bottom: 7px; }
.footer-col a { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; color: #555; margin-bottom: 7px; transition: color .2s; }
.footer-col a:hover { color: var(--off-white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: #444; letter-spacing: .5px; }
.footer-links-bottom { display: flex; gap: 18px; }
.footer-links-bottom a { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: #444; transition: color .2s; }
.footer-links-bottom a:hover { color: var(--red); }

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 28px; }
.pagination a, .pagination span { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; padding: 8px 16px; border: 1px solid var(--warm-gray); color: var(--black); transition: all .2s; }
.pagination a:hover { background: var(--red); color: white; border-color: var(--red); }
.pagination .current { background: var(--black); color: white; border-color: var(--black); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .content-with-sidebar, .article-outer { grid-template-columns: 1fr; }
  .sidebar-ad-col { position: static; flex-direction: row; flex-wrap: wrap; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (max-width: 768px) {
  #tsv-topbar, #tsv-ticker, #tsv-markets { padding-left: 14px; padding-right: 14px; }
  .header-inner, main, .category-container, .article-outer, .form-page, .admin-wrap { padding-left: 14px; padding-right: 14px; }
  .masthead-logo-img { height: 60px; }
  .hero-grid, .mid-grid, .opinion-strip, .bottom-strip, .news-grid, .hero-wrap { grid-template-columns: 1fr; }
  .hero-main { grid-row: auto; }
  .opinion-strip { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .donate-banner { flex-direction: column; text-align: center; padding: 22px; }
  #tsv-footer { padding: 28px 14px 18px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .ad-leaderboard { max-width: 320px; height: 50px; }
  .market-items { gap: 8px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .opinion-strip { grid-template-columns: 1fr; }
}

/* ══ SPLASH POPUP ════════════════════════════════════════════ */
#tsv-splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.splash-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.75);
}
.splash-box {
  position: relative; background: white; width: 92%; max-width: 440px;
  padding: 32px 28px 28px; z-index: 1; animation: splashIn .35s ease;
  max-height: 92vh; overflow-y: auto;
}
@keyframes splashIn { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
.splash-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 18px; cursor: pointer; color: #888; line-height: 1;
}
.splash-close:hover { color: var(--red); }
.splash-logo { text-align: center; margin-bottom: 16px; }
.splash-logo img { height: 52px; object-fit: contain; }
.splash-tabs { display: flex; border-bottom: 2px solid var(--warm-gray); margin-bottom: 20px; }
.stab {
  flex: 1; background: none; border: none; font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--mid-gray); padding: 10px 0; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s;
}
.stab.active { color: var(--black); border-bottom-color: var(--red); }
.splash-panel { display: none; }
.splash-panel.active { display: block; }
.splash-h { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.splash-p { font-family: 'Source Serif 4', serif; font-size: 14px; line-height: 1.7; color: #555; margin-bottom: 20px; }
.donate-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.dam {
  flex: 1; background: none; border: 1px solid var(--warm-gray);
  font-family: 'Barlow Condensed', sans-serif; font-size: 16px; font-weight: 700;
  padding: 10px 0; cursor: pointer; color: var(--mid-gray); transition: all .2s; min-width: 60px;
}
.dam.active, .dam:hover { background: var(--red); border-color: var(--red); color: white; }
.splash-upi-box {
  background: #f5f3ef; border: 1px solid var(--warm-gray); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.upi-row { display: flex; flex-direction: column; gap: 3px; }
.upi-lbl { font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--mid-gray); }
.upi-id { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 700; color: var(--black); }
.upi-copy {
  background: var(--black); color: white; border: none;
  font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 7px 14px; cursor: pointer;
}
.splash-btn {
  width: 100%; background: none; border: 1px solid var(--warm-gray); color: var(--mid-gray);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 11px; cursor: pointer; margin-top: 4px;
}
.splash-btn-red {
  width: 100%; background: var(--red); color: white; border: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; padding: 14px; cursor: pointer;
  transition: background .2s; margin-top: 4px;
}
.splash-btn-red:hover { background: var(--red-dark); }
.sp-field { margin-bottom: 12px; }
.sp-field input {
  width: 100%; border: 1px solid var(--warm-gray); background: var(--off-white);
  font-family: 'Source Serif 4', serif; font-size: 15px; padding: 12px 14px; outline: none;
}
.sp-field input:focus { border-color: var(--red); background: white; }

/* ══ MOBILE BOTTOM NAV ═══════════════════════════════════════ */
#mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 500;
  background: white; border-top: 1px solid var(--warm-gray);
  height: 62px; align-items: stretch; justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  padding-bottom: env(safe-area-inset-bottom);
}
.mnav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; padding: 8px 0; color: #888;
  text-decoration: none; transition: color .2s; font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
}
.mnav-item.mnav-active { color: var(--red); }
.mnav-item:hover { color: var(--red); }
.mnav-center { position: relative; }
.mnav-plus {
  width: 44px; height: 44px; background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 26px; font-weight: 300; margin-top: -16px;
  box-shadow: 0 2px 12px rgba(192,17,31,.4);
}

/* ══ CONTENT MAX WIDTH FIX ═══════════════════════════════════ */
main { max-width: 1200px; margin: 0 auto; padding: 0 28px 80px; }
.category-container { max-width: 1200px; margin: 0 auto; padding: 0 28px 80px; }
.article-outer { max-width: 1100px; margin: 0 auto; padding: 28px 28px 80px; }
.form-page { max-width: 820px; margin: 0 auto; padding: 40px 28px 80px; }
.admin-wrap { max-width: 1160px; margin: 0 auto; padding: 32px 28px; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 22px 28px 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
#tsv-topbar, #tsv-markets, #tsv-ticker, #tsv-ad-top { padding-left: 28px; padding-right: 28px; }

/* Body padding for mobile nav */
@media (max-width: 768px) {
  #mobile-nav { display: flex; }
  body { padding-bottom: 62px; }
  main, .category-container, .article-outer, .form-page { padding-left: 14px; padding-right: 14px; }
  #tsv-topbar, #tsv-markets, #tsv-ticker { padding-left: 14px; padding-right: 14px; }
  .header-inner { padding: 16px 14px 0; }
}

/* ══ CRITICAL FIXES v3.1 ════════════════════════════════════ */

/* Logo — bigger */
.masthead-logo-img {
  height: 100px !important;
  object-fit: contain;
  cursor: pointer;
  transition: opacity .2s;
}

/* Nav — show ALL items, scrollable, Home visible */
#tsv-nav {
  display: flex !important;
  justify-content: flex-start !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  border-top: 1px solid var(--black);
}
#tsv-nav::-webkit-scrollbar { display: none !important; }
#tsv-nav a {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  padding: 11px 14px;
  border-right: 1px solid var(--warm-gray);
  transition: background .2s, color .2s;
  text-decoration: none;
}
#tsv-nav a:first-child {
  border-left: 1px solid var(--warm-gray);
}
#tsv-nav a:hover { background: var(--black); color: white; }
#tsv-nav a.active { background: var(--red); color: white; }
#tsv-nav a.nav-submit { background: var(--red); color: white !important; }

/* Header inner — full width properly */
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 24px 20px 0;
  overflow: hidden;
}

/* Masthead centered */
.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 16px;
  text-align: center;
}
.masthead-tagline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  justify-content: center;
}
.masthead-tagline .mline { width: 60px; height: 1px; background: var(--black); }
.masthead-tagline span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

/* Topbar fix — time correct spacing */
#tsv-topbar {
  background: var(--black);
  color: var(--off-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 24px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-wrap: nowrap;
  overflow: hidden;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .85;
  flex-shrink: 0;
  white-space: nowrap;
}
.topbar-links {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.topbar-links a {
  color: var(--off-white);
  opacity: .7;
  margin-left: 14px;
  text-decoration: none;
  transition: opacity .2s;
  white-space: nowrap;
}
.topbar-links a:hover { opacity: 1; color: var(--red); }

/* Markets bar fix */
#tsv-markets {
  background: #111;
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 30px;
  overflow: hidden;
  border-bottom: 1px solid #1a1a1a;
  white-space: nowrap;
}

/* Main content max width */
main { max-width: 1280px; margin: 0 auto; padding: 0 24px 80px; }
.category-container { max-width: 1280px; margin: 0 auto; padding: 0 24px 80px; }
.article-outer { max-width: 1100px; margin: 0 auto; padding: 28px 24px 80px; }
.form-page { max-width: 820px; margin: 0 auto; padding: 40px 24px 80px; }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 32px 24px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
#tsv-footer { padding: 44px 24px 30px; }

/* Mobile fixes */
@media (max-width: 768px) {
  .masthead-logo-img { height: 72px !important; }
  #tsv-topbar { padding: 5px 12px; font-size: 10px; }
  #tsv-markets { padding: 0 12px; }
  main, .category-container, .article-outer, .form-page, .admin-wrap { padding-left: 12px; padding-right: 12px; }
  .header-inner { padding: 16px 12px 0; }
  #tsv-footer { padding: 28px 12px 20px; }
  .topbar-left { gap: 5px; font-size: 10px; }
}

/* ══ MOBILE SPACE OPTIMIZATION v3.2 ════════════════════════ */
@media (max-width: 768px) {

  /* Hide top ad on mobile — saves 90px */
  #tsv-ad-top { display: none !important; }

  /* Topbar — compact single line */
  #tsv-topbar {
    padding: 4px 12px !important;
    font-size: 10px !important;
    gap: 0;
  }
  .topbar-left {
    gap: 5px !important;
    font-size: 10px !important;
  }
  .topbar-sep { display: none !important; }
  /* Hide date on mobile, keep time + weather only */
  .topbar-left span:first-child { display: none !important; }

  /* Markets bar — compact */
  #tsv-markets {
    height: 26px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
  }
  .market-label {
    font-size: 9px !important;
    padding: 0 8px !important;
    height: 26px !important;
    line-height: 26px !important;
    margin-right: 10px !important;
  }
  .mkt-name { font-size: 9px !important; }
  .mkt-val  { font-size: 10px !important; }
  .mkt-sep  { display: none !important; }
  /* Show only SENSEX and NIFTY on mobile */
  #m-gold, #m-usd, #m-crude { display: none !important; }
  .mkt-item:nth-child(n+4) { display: none !important; }

  /* Breaking ticker — compact */
  #tsv-ticker { height: 28px !important; }
  .ticker-label {
    font-size: 9px !important;
    padding: 0 10px !important;
    height: 28px !important;
    line-height: 28px !important;
    margin-right: 12px !important;
  }
  .ticker-content {
    font-size: 11px !important;
    line-height: 28px !important;
  }

  /* Logo — smaller on mobile */
  .masthead { padding-bottom: 8px !important; }
  .masthead-logo-img { height: 52px !important; }

  /* Tagline — hide on mobile, save space */
  .masthead-tagline { display: none !important; }

  /* Header padding tight */
  .header-inner {
    padding: 10px 12px 0 !important;
  }

  /* Nav — tighter */
  #tsv-nav a {
    padding: 8px 11px !important;
    font-size: 10px !important;
    letter-spacing: 1px !important;
  }

  /* Hide topbar login/register on mobile — they're in bottom nav */
  .topbar-links a:not([href*="donate"]) { display: none !important; }
  .topbar-links a[href*="donate"] {
    display: inline !important;
    font-size: 10px !important;
    margin-left: 8px !important;
  }
}

/* Extra small screens */
@media (max-width: 400px) {
  .masthead-logo-img { height: 44px !important; }
  #tsv-markets { display: none !important; } /* hide markets on very small */
}

/* ══ LEGAL PAGES ════════════════════════════════════════════ */
.legal-page { max-width: 860px; margin: 0 auto; padding: 48px 28px 80px; }
.legal-header { border-bottom: 3px solid var(--black); padding-bottom: 28px; margin-bottom: 40px; }
.legal-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.legal-title { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.1; margin-bottom: 12px; }
.legal-meta { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--mid-gray); }
.legal-intro { font-size: 18px; line-height: 1.75; color: #333; font-weight: 300; border-left: 3px solid var(--red); padding-left: 20px; margin-bottom: 36px; }
.legal-body section { margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--light-gray); }
.legal-body section:last-child { border-bottom: none; }
.legal-body h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.legal-body h3 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; margin: 20px 0 10px; }
.legal-body p { font-size: 16px; line-height: 1.8; margin-bottom: 14px; color: #333; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin-bottom: 14px; }
.legal-body li { font-size: 15px; line-height: 1.75; margin-bottom: 8px; color: #333; }
.legal-body a { color: var(--red); }
.legal-body code { background: var(--light-gray); padding: 2px 6px; font-family: monospace; font-size: 13px; border-radius: 3px; }
.legal-toc { background: var(--off-white); border: 1px solid var(--warm-gray); padding: 20px 24px; margin-bottom: 32px; }
.toc-title { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.legal-toc ol { padding-left: 20px; }
.legal-toc li { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: .5px; margin-bottom: 6px; }
.legal-toc a { color: var(--black); text-decoration: none; }
.legal-toc a:hover { color: var(--red); }
.legal-contact-box { background: var(--black); color: var(--off-white); padding: 24px 28px; margin-top: 16px; line-height: 2; font-size: 15px; }
.legal-contact-box a { color: var(--red); }

/* Cookie table */
.cookie-table-wrap { overflow-x: auto; margin: 16px 0; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cookie-table th { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 10px 12px; background: var(--black); color: var(--off-white); text-align: left; }
.cookie-table td { padding: 12px 12px; border-bottom: 1px solid var(--light-gray); vertical-align: top; line-height: 1.6; }
.cookie-table tr:hover td { background: #faf9f7; }
.cookie-badge { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; }
.cookie-badge.essential  { background: #166534; color: white; }
.cookie-badge.functional { background: #1d4ed8; color: white; }
.cookie-badge.analytics  { background: #92400e; color: white; }

/* Cookie preferences widget */
.cookie-pref-box { background: white; border: 1px solid var(--warm-gray); padding: 24px; margin-top: 20px; }
.cpref-title { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
.cpref-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--light-gray); gap: 20px; }
.cpref-row:last-of-type { border-bottom: none; }
.cpref-name { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .5px; margin-bottom: 3px; }
.cpref-desc { font-size: 13px; color: var(--mid-gray); }
.always-on { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #166534; flex-shrink: 0; }
.toggle-switch { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; cursor: pointer; inset: 0; background: #ccc; border-radius: 26px; transition: .3s; }
.toggle-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .3s; }
input:checked + .toggle-slider { background: var(--red); }
input:checked + .toggle-slider:before { transform: translateX(22px); }

/* ══ COOKIE CONSENT BANNER ══════════════════════════════════ */
#tsv-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8888;
  background: var(--black); color: var(--off-white);
  padding: 18px 32px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  transform: translateY(100%); transition: transform .4s ease;
}
#tsv-cookie-banner.show { transform: translateY(0); }
.cookie-banner-text { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: .3px; color: #bbb; max-width: 680px; line-height: 1.6; }
.cookie-banner-text a { color: var(--red); }
.cookie-banner-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cb-accept { background: var(--red); color: white; border: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; padding: 10px 22px; cursor: pointer; transition: background .2s; }
.cb-accept:hover { background: var(--red-dark); }
.cb-decline { background: none; color: #888; border: 1px solid #333; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; padding: 10px 22px; cursor: pointer; transition: all .2s; }
.cb-decline:hover { color: white; border-color: #666; }
@media (max-width: 768px) {
  #tsv-cookie-banner { padding: 14px 16px; bottom: 62px; }
  .cookie-banner-text { font-size: 12px; }
}

/* ══ POWER DYNAMIC HEADER REDESIGN v3.3 ════════════════════ */

/* Remove top ad — kills power dynamic */
#tsv-ad-top { display: none !important; }

/* TOPBAR — ultra slim, premium feel */
#tsv-topbar {
  background: var(--black) !important;
  padding: 5px 32px !important;
  font-size: 10px !important;
  letter-spacing: 1.5px !important;
  border-bottom: 1px solid #1a1a1a !important;
}

/* HEADER — Logo takes full command */
#tsv-header {
  background: white !important;
  border-bottom: 3px solid var(--black) !important;
  position: relative !important;
}

.header-inner {
  max-width: 1300px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  min-height: 120px !important;
  overflow: visible !important;
}

/* LEFT — Ad space (discreet, not dominant) */
.header-ad-left {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-ad-left .ad-slot-small {
  width: 200px;
  height: 80px;
  border: 1px dashed #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s;
}
.header-ad-left .ad-slot-small:hover { border-color: var(--red); }
.ad-slot-small .ad-label { font-family: 'Barlow Condensed', sans-serif; font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: #ccc; margin-bottom: 3px; }
.ad-slot-small .ad-size  { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; color: #bbb; }
.ad-slot-small .ad-email { font-family: 'Barlow Condensed', sans-serif; font-size: 9px; color: var(--red); margin-top: 2px; }

/* CENTER — Logo commanding, no competition */
.masthead {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px 0 !important;
  text-align: center !important;
}
.masthead-logo-img {
  height: 90px !important;
  object-fit: contain !important;
  display: block !important;
  transition: opacity .2s !important;
}
.masthead-logo-img:hover { opacity: .85 !important; }
.masthead-tagline {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 6px !important;
  justify-content: center !important;
}
.masthead-tagline .mline { width: 50px !important; height: 1px !important; background: var(--black) !important; }
.masthead-tagline span {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  color: var(--red) !important;
  font-weight: 600 !important;
}

/* RIGHT — Ad space mirror of left */
.header-ad-right {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* NAV — Full width, bold, commanding */
#tsv-nav {
  border-top: 2px solid var(--black) !important;
  border-bottom: none !important;
  display: flex !important;
  justify-content: center !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  background: white !important;
}
#tsv-nav::-webkit-scrollbar { display: none !important; }
#tsv-nav a {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  color: var(--black) !important;
  padding: 12px 18px !important;
  border-right: 1px solid var(--warm-gray) !important;
  transition: background .15s, color .15s !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
}
#tsv-nav a:first-child { border-left: 1px solid var(--warm-gray) !important; }
#tsv-nav a:hover { background: var(--black) !important; color: white !important; }
#tsv-nav a.active { background: var(--red) !important; color: white !important; }
#tsv-nav a.nav-submit { background: var(--red) !important; color: white !important; }

/* MOBILE — Keep ad slots hidden */
@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .header-ad-left, .header-ad-right { display: none !important; }
  .masthead { padding: 14px 0 10px !important; }
  .masthead-logo-img { height: 58px !important; }
  .masthead-tagline { display: none !important; }
}

/* ══ SIDEBAR THUMBNAIL STORIES ══════════════════════════════ */
.sidebar-story-thumb {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light-gray);
}
.sidebar-story-thumb:last-child {
  margin: 0; padding: 0; border: 0;
}
.sb-thumb-link {
  flex-shrink: 0;
  display: block;
  width: 72px;
  height: 56px;
  overflow: hidden;
  border-radius: 2px;
}
.sb-thumb-img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.sb-thumb-link:hover .sb-thumb-img {
  transform: scale(1.06);
}
.sb-thumb-placeholder {
  width: 72px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.sb-thumb-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 6px,
    rgba(255,255,255,.04) 6px, rgba(255,255,255,.04) 12px
  );
}
.sb-thumb-placeholder span {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 28px;
  color: rgba(255,255,255,.5);
  position: relative;
  z-index: 1;
  line-height: 1;
}
.sb-thumb-content {
  flex: 1;
  min-width: 0;
}
.sb-thumb-content .cat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.sb-thumb-content .headline-sm {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 4px;
}
.sb-thumb-content .headline-sm a:hover { color: var(--red); }
.sb-thumb-content .time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  color: var(--mid-gray);
  letter-spacing: .5px;
}

/* Mid grid thumbnails too */
.mid-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 14px;
  display: block;
}
.mid-card-placeholder {
  width: 100%;
  height: 140px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.mid-card-placeholder span {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 48px;
  color: rgba(255,255,255,.2);
}

/* ══ UX FIXES v4 ══════════════════════════════════════════════ */

/* ── SEARCH ICON IN HEADER ── */
.search-trigger {
  background: none; border: none; cursor: pointer;
  font-size: 18px; padding: 8px 10px;
  color: var(--black); transition: color .2s;
  display: flex; align-items: center;
}
.search-trigger:hover { color: var(--red); }

/* ── SEARCH OVERLAY ── */
#search-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.7);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
#search-overlay.search-open {
  opacity: 1; pointer-events: all;
}
.search-box {
  background: white; width: 100%; max-width: 640px;
  margin: 0 16px;
  transform: translateY(-10px);
  transition: transform .2s;
  max-height: 80vh; overflow-y: auto;
}
#search-overlay.search-open .search-box { transform: translateY(0); }
.search-header {
  display: flex; align-items: center;
  border-bottom: 2px solid var(--black); padding: 0;
}
#search-input {
  flex: 1; border: none; outline: none;
  font-family: 'Playfair Display', serif;
  font-size: 20px; padding: 18px 20px;
  background: white; color: var(--black);
}
#search-input::placeholder { color: #bbb; }
.search-close {
  background: none; border: none; font-size: 20px;
  padding: 18px 20px; cursor: pointer; color: #888;
  line-height: 1;
}
.search-close:hover { color: var(--red); }
.search-result-item {
  display: block; padding: 14px 20px;
  border-bottom: 1px solid var(--light-gray);
  text-decoration: none; color: var(--black);
  transition: background .15s;
}
.search-result-item:hover { background: var(--off-white); }
.sr-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red); margin-bottom: 4px;
}
.sr-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 700; line-height: 1.35; margin-bottom: 3px;
}
.sr-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; color: var(--mid-gray);
}
.search-loading, .search-empty {
  padding: 24px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; color: var(--mid-gray); letter-spacing: .5px;
}

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed; bottom: 80px; right: 20px; z-index: 800;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--black); color: white;
  border: none; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, background .2s;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
#back-to-top.btt-visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: var(--red); }
@media (max-width: 768px) {
  #back-to-top { bottom: 72px; right: 14px; width: 38px; height: 38px; font-size: 16px; }
}

/* ── WHATSAPP SHARE ON CARDS ── */
.card-wa-share {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #25D366;
  text-decoration: none; transition: opacity .2s;
}
.card-wa-share:hover { opacity: .75; }
.sb-wa-share {
  display: inline-flex; align-items: center;
  margin-top: 4px; color: #25D366;
  text-decoration: none; opacity: .7; transition: opacity .2s;
}
.sb-wa-share:hover { opacity: 1; }

/* ── LOAD MORE BUTTON ── */
#load-more-wrap {
  text-align: center; margin-top: 28px;
}
#load-more-btn {
  background: none; border: 2px solid var(--black);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; padding: 13px 40px;
  cursor: pointer; color: var(--black);
  transition: background .2s, color .2s;
}
#load-more-btn:hover { background: var(--black); color: white; }
#load-more-btn:disabled { opacity: .4; cursor: not-allowed; }

/* Load more cards area */
#more-articles {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--warm-gray);
  border: 1px solid var(--warm-gray);
  border-top: none; margin-top: 0;
}
.more-card { background: white; padding: 20px; }
.more-card .cat-label { font-family: 'Barlow Condensed',sans-serif; font-size:10px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--red); margin-bottom:6px; }
.more-card h3 { font-family:'Playfair Display',serif; font-size:16px; font-weight:700; line-height:1.3; margin-bottom:8px; }
.more-card h3 a:hover { color:var(--red); }
.more-card p { font-size:13px; line-height:1.6; color:#555; font-weight:300; }
.more-card .meta { font-family:'Barlow Condensed',sans-serif; font-size:11px; color:var(--mid-gray); margin-top:10px; text-transform:uppercase; }
.more-card img { width:100%; height:130px; object-fit:cover; margin-bottom:12px; }
.more-card .thumb-ph { width:100%; height:130px; display:flex; align-items:center; justify-content:center; margin-bottom:12px; }

/* ── SEARCH ICON IN TOPBAR ── */
.topbar-search {
  color: var(--off-white); opacity: .7; margin-left: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 14px; padding: 0; transition: opacity .2s;
}
.topbar-search:hover { opacity: 1; color: var(--red); }

/* ── TICKER SPEED FIX ── */
.ticker-content { animation-duration: 70s !important; }

/* ── ARTICLE MOBILE LINE-HEIGHT ── */
@media (max-width: 768px) {
  .article-body { font-size: 16px !important; line-height: 1.9 !important; }
  #more-articles { grid-template-columns: 1fr; }
}

/* ══ STICKY HEADER — SMOOTH & READER FRIENDLY ══════════════ */

/* Header base — always in flow */
#tsv-header {
  background: white !important;
  border-bottom: 3px solid var(--black) !important;
  transition: box-shadow .3s ease, transform .3s ease !important;
  will-change: transform;
}

/* Sticky state — applied by JS */
#tsv-header.is-sticky {
  position: sticky !important;
  top: 0 !important;
  z-index: 300 !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.12) !important;
}

/* When scrolling DOWN — shrink logo for space */
#tsv-header.is-sticky .masthead-logo-img {
  height: 48px !important;
  transition: height .3s ease !important;
}
#tsv-header.is-sticky .masthead-tagline {
  display: none !important;
}
#tsv-header.is-sticky .masthead {
  padding: 8px 0 !important;
}

/* Normal state — logo full size */
#tsv-header:not(.is-sticky) .masthead-logo-img {
  transition: height .3s ease !important;
}

/* Hide topbar/ticker/markets on scroll — saves space */
#tsv-topbar, #tsv-markets, #tsv-ticker, #tsv-ad-top {
  transition: max-height .3s ease, opacity .3s ease !important;
  overflow: hidden !important;
}
.header-hidden-on-scroll {
  max-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Smooth scroll behavior */
html { scroll-behavior: smooth; }

/* Reading comfort — body padding when sticky */
.sticky-spacer { display: none; }

/* ══ MOBILE AD SLOT FIX ══════════════════════════════════════ */

/* Desktop — ad slots dono sides pe */
@media (min-width: 901px) {
  .header-ad-left,
  .header-ad-right {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px;
  }
  .header-ad-left img,
  .header-ad-right img {
    width: 200px !important;
    height: 80px !important;
    object-fit: cover;
    display: block;
    max-width: 200px !important;
  }
}

/* Mobile — ad slots completely hide karo */
/* Logo center mein clean dikhega */
@media (max-width: 900px) {
  .header-ad-left,
  .header-ad-right {
    display: none !important;
  }

  /* Header inner — mobile pe sirf logo center */
  .header-inner {
    grid-template-columns: 1fr !important;
    justify-items: center;
    min-height: auto !important;
    padding: 12px 0 0 !important;
  }

  /* Masthead — tight on mobile */
  .masthead {
    padding: 0 0 8px !important;
    width: 100%;
    text-align: center;
  }

  .masthead-logo-img {
    height: 52px !important;
    width: auto !important;
    max-width: 200px !important;
  }

  .masthead-tagline {
    display: none !important;
  }

  /* Nav — scrollable on mobile */
  #tsv-nav {
    overflow-x: auto !important;
    white-space: nowrap !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }
  #tsv-nav::-webkit-scrollbar { display: none !important; }

  #tsv-nav a {
    padding: 10px 14px !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    flex-shrink: 0;
    display: inline-block;
  }

  /* Topbar — 1 line compact */
  #tsv-topbar {
    padding: 5px 12px !important;
    font-size: 10px !important;
  }
  .topbar-left span:first-child { display: none !important; }
  .topbar-sep:first-of-type { display: none !important; }

  /* Markets — only SENSEX NIFTY */
  #m-gold, #m-usd, #m-crude,
  .mkt-sep:nth-child(n+3) { display: none !important; }
  .mkt-item:nth-child(n+6) { display: none !important; }

  /* Ticker compact */
  #tsv-ticker {
    height: 28px !important;
  }
  .ticker-content {
    font-size: 11px !important;
    line-height: 28px !important;
  }
  .ticker-label {
    font-size: 9px !important;
    padding: 0 10px !important;
    height: 28px !important;
    line-height: 28px !important;
  }
}