/*
Theme Name: TrendEdge v14
Description: America's Premier News Source — Bloomberg-class design
Version: 14.0
Author: TrendEdge Editorial
*/

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ═══════════════════════════════════════
   TOKENS
═══════════════════════════════════════ */
:root {
  --red:       #c41e3a;
  --dark:      #0a0a14;
  --gray:      #6b7280;
  --light:     #f8f9fa;
  --border:    #e5e7eb;
  --serif:     Georgia, 'Times New Roman', serif;
  --sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --wrap:      1240px;
  --pad:       20px;
}

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.te-header { background: #fff; border-bottom: 3px solid var(--dark); position: sticky; top: 0; z-index: 100; }

.te-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  max-width: var(--wrap);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.te-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.te-logo-mark {
  background: var(--red);
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.te-logo-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--dark);
  line-height: 1;
}
.te-logo-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}
.te-header-meta {
  text-align: right;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.6;
}
.te-header-meta strong { color: var(--dark); }

/* NAV */
.te-nav {
  background: var(--dark);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.te-nav::-webkit-scrollbar { display: none; }
.te-nav-inner {
  display: flex;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  gap: 0;
  white-space: nowrap;
}
.te-nav-link {
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 12px 14px;
  display: block;
  transition: color .15s, background .15s;
  border-bottom: 3px solid transparent;
}
.te-nav-link:hover, .te-nav-link.active {
  color: #fff;
  border-bottom-color: var(--red);
}
.te-nav-link.hot { color: #fca5a5; }

/* ═══════════════════════════════════════
   BREAKING TICKER
═══════════════════════════════════════ */
.te-ticker {
  background: var(--red);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}
.te-ticker-label {
  background: #a01628;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.te-ticker-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.te-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.te-ticker-scroll {
  display: flex;
  animation: scroll-left 40s linear infinite;
  gap: 0;
}
.te-ticker-scroll:hover { animation-play-state: paused; }
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.te-ticker-item {
  font-size: 12px;
  font-weight: 600;
  padding: 0 24px;
  white-space: nowrap;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  height: 36px;
  transition: background .15s;
}
.te-ticker-item:hover { background: rgba(255,255,255,.1); }
.te-ticker-item::before { content: '▸'; margin-right: 8px; font-size: 10px; }

/* ═══════════════════════════════════════
   HERO — Bloomberg style
═══════════════════════════════════════ */
.te-hero { padding: 24px 0; border-bottom: 1px solid var(--border); }

.te-hero-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
}

/* Main story */
.te-hero-main {
  border-right: 1px solid var(--border);
  padding-right: 24px;
  display: block;
}
.te-hero-main:hover .te-hero-title { color: var(--red); }
.te-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #e8eaed;
  min-height: 300px;
}
.te-hero-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.te-hero-label::before {
  content: '';
  display: inline-block;
  width: 4px; height: 14px;
  background: var(--red);
}
.te-hero-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.5px;
  color: var(--dark);
  margin-bottom: 12px;
  transition: color .15s;
}
.te-hero-deck {
  font-size: 16px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 14px;
}
.te-hero-byline {
  font-size: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.te-hero-byline strong { color: var(--dark); font-weight: 600; }

/* Hero sidebar: top stories list */
.te-hero-side {
  padding-left: 24px;
}
.te-side-header {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--dark);
  margin-bottom: 0;
}
.te-side-story {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity .15s;
}
.te-side-story:hover { opacity: .7; }
.te-side-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.te-side-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 4px;
}
.te-side-meta {
  font-size: 11px;
  color: var(--gray);
}

/* ═══════════════════════════════════════
   SECTION ROW — 3 or 4 stories
═══════════════════════════════════════ */
.te-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.te-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--dark);
}
.te-section-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.te-section-more {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--red);
  text-transform: uppercase;
}
.te-section-more:hover { text-decoration: underline; }

/* Card grid */
.te-grid { display: grid; gap: 24px; }
.te-grid-3 { grid-template-columns: repeat(3, 1fr); }
.te-grid-4 { grid-template-columns: repeat(4, 1fr); }
.te-grid-featured { grid-template-columns: 2fr 1fr 1fr; }

/* Story Card */
.te-card { display: block; }
.te-card:hover .te-card-title { color: var(--red); }
.te-card-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 12px;
}
.te-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.te-card:hover .te-card-img-wrap img { transform: scale(1.03); }
.te-card-cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.te-card-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 8px;
  transition: color .15s;
}
.te-card-title-lg { font-size: 22px; }
.te-card-excerpt {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 10px;
}
.te-card-meta {
  font-size: 11px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 6px;
}
.te-card-meta strong { color: var(--dark); font-weight: 600; }
.te-sep::before { content: '·'; }

/* Featured card (large left) */
.te-card-featured .te-card-title { font-size: 24px; }
.te-card-featured .te-card-excerpt { display: block; }

/* Small list items inside a section */
.te-list-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.te-list-item:last-child { border-bottom: none; }
.te-list-img {
  width: 90px;
  height: 64px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f0f0f0;
}
.te-list-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
}
.te-list-title:hover { color: var(--red); }

/* ═══════════════════════════════════════
   MAIN + SIDEBAR LAYOUT
═══════════════════════════════════════ */
.te-content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 28px 0;
}
.te-sidebar { border-left: 1px solid var(--border); padding-left: 28px; }

/* Sidebar widget */
.te-widget { margin-bottom: 32px; }
.te-widget-hd {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--dark);
  margin-bottom: 14px;
  color: var(--dark);
}

/* Prediction bars */
.te-poll-item { margin-bottom: 14px; cursor: pointer; }
.te-poll-item:hover { opacity: .8; }
.te-poll-q {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}
.te-poll-pct { color: var(--red); font-weight: 700; flex-shrink: 0; margin-left: 8px; }
.te-poll-bar { height: 4px; background: #e5e7eb; border-radius: 2px; }
.te-poll-fill { height: 4px; background: var(--red); border-radius: 2px; transition: width .5s ease; }

/* Stats widget */
.te-stat { padding: 12px 0; border-bottom: 1px solid var(--border); }
.te-stat:last-child { border-bottom: none; }
.te-stat-num { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--red); line-height: 1; }
.te-stat-label { font-size: 13px; font-weight: 700; color: var(--dark); margin-top: 2px; }
.te-stat-note { font-size: 11px; color: var(--gray); }

/* Most Read */
.te-ranked { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.te-ranked:last-child { border-bottom: none; }
.te-ranked-n { font-family: var(--serif); font-size: 24px; font-weight: 700; color: #d1d5db; width: 28px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.te-ranked-t { font-family: var(--serif); font-size: 13px; font-weight: 700; color: var(--dark); line-height: 1.35; }
.te-ranked-t:hover { color: var(--red); }

/* ═══════════════════════════════════════
   DARK EXCLUSIVE BAND
═══════════════════════════════════════ */
.te-exclusive-band {
  background: var(--dark);
  padding: 40px 0;
}
.te-exclusive-band .te-section-name { color: #fff; }
.te-exclusive-band .te-section-hd { border-bottom-color: var(--red); }
.te-ex-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  display: block;
  transition: border-color .2s;
}
.te-ex-card:hover { border-color: var(--red); }
.te-ex-card:hover .te-ex-title { color: #fca5a5; }
.te-ex-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.te-ex-body { padding: 16px; }
.te-ex-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #d97706;
  margin-bottom: 6px;
  display: block;
}
.te-ex-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
  transition: color .15s;
}
.te-ex-meta { font-size: 11px; color: rgba(255,255,255,.4); }

/* ═══════════════════════════════════════
   EXPERT ANALYSIS BAND
═══════════════════════════════════════ */
.te-experts-band {
  background: var(--light);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.te-expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); }
.te-expert-card {
  background: #fff;
  padding: 20px;
}
.te-expert-q {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  font-style: italic;
  margin-bottom: 12px;
}
.te-expert-q::before { content: '\201C'; color: var(--red); font-size: 20px; line-height: 0; vertical-align: -4px; }
.te-expert-name { font-size: 13px; font-weight: 700; color: var(--dark); }
.te-expert-role { font-size: 11px; color: var(--gray); }

/* ═══════════════════════════════════════
   CONTENT TYPE BADGES
═══════════════════════════════════════ */
.te-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 6px;
}
.te-badge-red { background: var(--red); color: #fff; }
.te-badge-purple { background: #7c3aed; color: #fff; }
.te-badge-blue { background: #1d4ed8; color: #fff; }
.te-badge-gold { background: #d97706; color: #fff; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.te-footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 40px 0 24px;
  margin-top: 40px;
}
.te-footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 24px;
}
.te-footer-logo { font-family: var(--serif); font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.te-footer-tagline { font-size: 12px; }
.te-footer-col-title { font-size: 10px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 12px; }
.te-footer-links { list-style: none; }
.te-footer-links li { margin-bottom: 8px; }
.te-footer-links a { font-size: 13px; color: rgba(255,255,255,.6); transition: color .15s; }
.te-footer-links a:hover { color: #fff; }
.te-footer-bottom { font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.te-footer-copyright a { color: var(--red); }

/* ═══════════════════════════════════════
   SINGLE ARTICLE
═══════════════════════════════════════ */
.te-article-header { padding: 32px 0; border-bottom: 1px solid var(--border); }
.te-article-cat { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.te-article-title { font-family: var(--serif); font-size: clamp(28px, 4vw, 46px); font-weight: 700; line-height: 1.1; letter-spacing: -1px; color: var(--dark); margin-bottom: 16px; }
.te-article-deck { font-size: 18px; line-height: 1.6; color: #374151; margin-bottom: 16px; }
.te-article-byline { font-size: 13px; color: var(--gray); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.te-article-byline strong { color: var(--dark); }
.te-article-hero { margin: 24px 0; }
.te-article-hero img { width: 100%; max-height: 520px; object-fit: cover; }
.te-article-body { font-family: var(--serif); font-size: 18px; line-height: 1.8; color: #1f2937; max-width: 720px; }
.te-article-body p { margin-bottom: 1.4em; }
.te-article-body h2 { font-size: 24px; font-weight: 700; margin: 2em 0 .6em; letter-spacing: -.3px; }
.te-article-body h3 { font-size: 20px; font-weight: 700; margin: 1.5em 0 .5em; }
.te-article-body blockquote { border-left: 4px solid var(--red); padding: 12px 0 12px 20px; margin: 1.5em 0; font-style: italic; color: var(--gray); font-size: 20px; }
.te-article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; padding: 32px 0; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .te-hero-layout { grid-template-columns: 1fr; }
  .te-hero-main { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 24px; margin-bottom: 24px; }
  .te-hero-side { padding-left: 0; }
  .te-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .te-content-wrap { grid-template-columns: 1fr; }
  .te-sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 28px; }
  .te-expert-grid { grid-template-columns: repeat(2, 1fr); }
  .te-article-layout { grid-template-columns: 1fr; }
  .te-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .te-grid-3, .te-grid-featured { grid-template-columns: 1fr; }
  .te-expert-grid { grid-template-columns: 1fr; }
  .te-hero-title { font-size: 26px; }
  .te-nav-link { padding: 10px 10px; font-size: 11px; }
  .te-logo-name { font-size: 22px; }
  .te-footer-top { grid-template-columns: 1fr; }
}
