/* MenshlyGlobal Custom CSS - Professional News Theme */

/* === CSS Variables === */
:root {
  --bg: #f5f2ed;
  --bg-white: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent: #c0392b;
  --accent-dark: #a93226;
  --border: #e0ddd8;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --nav-bg: #1a1a1a;
  --radius: 4px;
  --max-width: 1200px;
  --sidebar-width: 300px;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* === Live News Ticker === */
.breaking-bar {
  background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 0;
  font-size: 0.82rem;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  height: 38px;
  border-bottom: 2px solid #e74c3c;
  position: relative;
}
.ticker-left {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #c0392b;
  height: 100%;
  flex-shrink: 0;
  z-index: 2;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.ticker-live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(255,255,255,0); }
}
.ticker-label {
  background: none;
  color: #fff;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  margin: 0;
  display: inline;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.ticker-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
}
.ticker-track.ticker-animate {
  animation: ticker-marquee 90s linear infinite;
}
@keyframes ticker-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  padding: 0 6px;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.ticker-item:hover {
  opacity: 0.8;
  text-decoration: none;
}
.ticker-item.ticker-loading {
  color: rgba(255,255,255,0.6);
  font-style: italic;
}
.ticker-source {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.ticker-text {
  color: #e8e8e8;
  font-size: 0.8rem;
}
.ticker-sep {
  color: rgba(255,255,255,0.3);
  margin: 0 4px;
  font-size: 1.1rem;
}
.ticker-right {
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(0,0,0,0.3);
  height: 100%;
  flex-shrink: 0;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

/* === Breaking Alert === */
.breaking-alert {
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  position: relative;
  text-align: center;
}
.breaking-alert-badge {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  margin-right: 10px;
  display: inline-block;
}
.breaking-alert-text { font-size: 0.85rem; }
.breaking-alert-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
}
.breaking-alert-close:hover { opacity: 1; }

/* === Header === */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
}
.site-logo span { font-weight: 700; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.header-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(231,76,60,0.05);
}
.header-btn svg { flex-shrink: 0; }
.search-shortcut {
  display: none;
  font-size: 0.62rem;
  font-family: var(--font-sans);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--text-muted);
  margin-left: 2px;
}
@media (min-width: 769px) {
  .search-shortcut { display: inline; }
}
.theme-toggle, .mobile-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
}
.theme-toggle:hover { color: var(--accent); background: rgba(231,76,60,0.05); }
.mobile-toggle {
  display: none;
  font-size: 1.4rem;
}

/* === Navigation === */
.nav-bar {
  background: var(--nav-bg);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
}
.nav-inner a {
  color: #fff;
  padding: 12px 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.nav-inner a:hover, .nav-inner a.active {
  background: var(--accent);
}

/* === Search === */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}
.search-overlay.active { display: flex; }
.search-overlay-inner {
  background: var(--bg-white);
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  overflow: hidden;
}
.search-box {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.search-icon { margin-right: 12px; flex-shrink: 0; }
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: var(--font-sans);
}
.search-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
  margin-left: 12px;
}
.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
}
.search-result-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  transition: background 0.2s;
}
.search-result-item:hover { background: var(--bg); }
.search-result-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.search-result-body { flex: 1; min-width: 0; }
.search-result-cat {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.search-result-body h3 {
  font-size: 0.9rem;
  margin: 2px 0;
  line-height: 1.3;
}
.search-result-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-date { font-size: 0.75rem; color: var(--text-muted); }

/* === Main Content Grid === */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 30px;
}
.main-column { min-width: 0; }

/* === Section Header === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}
.section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}
.see-all {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* === CNN Hero Row (Big story + 3 stacked) === */
.cnn-hero-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  margin-bottom: 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}
.cnn-hero-main {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.cnn-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}
.cnn-hero-main:hover img { transform: scale(1.03); }
.cnn-hero-main-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 24px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  z-index: 2;
}
.cnn-hero-main-body h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 6px;
  font-weight: 700;
}
.cnn-hero-main-body p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.cnn-hero-main-body .hero-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

/* Hero Stack (right column) */
.cnn-hero-stack {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.cnn-hero-stack-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
  flex: 1;
  min-height: 0;
}
.cnn-hero-stack-item:last-child { border-bottom: none; }
.cnn-hero-stack-item:hover { background: var(--bg); }
.cnn-hero-stack-item img {
  width: 110px;
  height: 75px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.cnn-stack-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}
.cnn-stack-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}
.cnn-stack-body h3 {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}
.cnn-stack-body span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* === CNN Mid Row (2x2 feature cards) === */
.cnn-mid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.cnn-mid-card {
  display: block;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.cnn-mid-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.cnn-mid-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.cnn-mid-body {
  padding: 12px 14px;
}
.cnn-mid-cat {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
  display: block;
}
.cnn-mid-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Post Cards Grid === */
.posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.post-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.post-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  flex-shrink: 0;
}
.post-card-body {
  padding: 10px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card .meta {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
.post-card h2 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* === Pagination === */
.pagination {
  text-align: center;
  padding: 20px 0;
}
.pagination .current {
  display: inline-block;
  padding: 8px 16px;
  margin-right: 12px;
  background: var(--bg-white);
  border-radius: var(--radius);
  font-size: 0.85rem;
}
.pagination a {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
}
.pagination a:hover { background: var(--accent-dark); }

/* === Sidebar === */
.sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* === Most Read Widget === */
.most-read-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.most-read-item:last-child { border-bottom: none; }
.most-read-item:hover .most-read-body h4 { color: var(--accent); }
.most-read-rank {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  min-width: 24px;
  text-align: center;
}
.most-read-body { flex: 1; min-width: 0; }
.most-read-body h4 {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: color 0.2s;
}
.card-meta { font-size: 0.7rem; color: var(--text-muted); }

/* === Trending Widget === */
.trending-now .sidebar-article {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.trending-now .sidebar-article:last-child { border-bottom: none; }
.sidebar-article h4 {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s;
}
.sidebar-article:hover h4 { color: var(--accent); }

/* === Market Charts Widget === */
.market-charts-widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.widget-header h3 { font-size: 1rem; font-weight: 700; margin: 0; border: none; padding: 0; }
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #e74c3c;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === Footer === */
.site-footer {
  background: var(--nav-bg);
  color: #fff;
  padding: 30px 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}
.footer-brand {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.footer-brand span { font-weight: 700; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 16px;
}
.footer-links a {
  font-size: 0.8rem;
  color: #ccc;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.75rem; color: #999; }

/* === Post Page === */
.post-page { max-width: var(--max-width); margin: 0 auto; padding: 24px 20px; }
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; }
.post-header { margin-bottom: 20px; }
.post-category {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.post-header h1 { font-size: 1.8rem; line-height: 1.3; margin-bottom: 8px; }
.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.post-featured-image { margin-bottom: 24px; }
.post-featured-image img {
  width: 100%;
  border-radius: var(--radius);
}
.post-content {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  line-height: 1.8;
  font-size: 1rem;
}
.post-content h2 { font-size: 1.4rem; margin: 24px 0 12px; }
.post-content h3 { font-size: 1.2rem; margin: 20px 0 10px; }
.post-content p { margin-bottom: 16px; }
.post-content img { border-radius: var(--radius); }

/* === Social Share === */
.social-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  color: #fff;
}
.share-btn:hover { transform: scale(1.1); }
.share-x { background: #000; }
.share-facebook { background: #1877F2; }
.share-whatsapp { background: #25D366; }
.share-linkedin { background: #0A66C2; }
.share-telegram { background: #0088cc; }
.share-email { background: var(--text-secondary); }
.share-copy { background: var(--text-muted); }

/* === Author Bio Card === */
.author-bio-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  margin: 24px 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.author-bio-avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.author-bio-info { flex: 1; min-width: 0; }
.author-bio-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.author-bio-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
}
.author-bio-name:hover { text-decoration: underline; }
.author-bio-role {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 10px;
}
.author-bio-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* === Post Tags === */
.post-tags { margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.tag-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* === Series Nav (Premium) === */
.series-nav-premium {
  margin: 30px 0;
}
.series-nav-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.series-nav-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}
.series-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.series-nav-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.25s ease;
  text-decoration: none;
}
.series-nav-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.series-nav-arrow-prev,
.series-nav-arrow-next {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.25s;
}
.series-nav-card:hover .series-nav-arrow-prev,
.series-nav-card:hover .series-nav-arrow-next {
  background: var(--accent);
  color: #fff;
}
.series-nav-info {
  flex: 1;
  min-width: 0;
}
.series-nav-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 4px;
}
.series-nav-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.series-nav-card:hover .series-nav-title {
  color: var(--accent);
}
.series-nav-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

/* === Cookie Consent === */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  color: #fff;
  padding: 16px 20px;
  z-index: 999;
  display: none;
}
.cookie-consent-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.cookie-text { font-size: 0.8rem; flex: 1; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-accept, .cookie-reject {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: 600;
}
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-reject { background: transparent; color: #fff; border: 1px solid #666; }

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  z-index: 998;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}
.back-to-top:hover { background: var(--accent-dark); }

/* === Static Pages === */
.static-page {
  max-width: 760px;
  margin: 30px auto;
  padding: 0 20px;
}
.static-page h1 {
  font-size: 2rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.static-content h2 {
  font-size: 1.3rem;
  margin: 24px 0 12px;
}
.static-content p { margin-bottom: 16px; line-height: 1.7; }
.static-content a { color: var(--accent); }

.contact-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.contact-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.search-page {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.search-page h1 {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.search-page-box {
  display: flex;
  align-items: center;
  background: var(--bg-white);
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.search-page-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  margin-left: 12px;
}

/* === Video Embed === */
.video-embed { margin: 24px 0; }
.video-placeholder {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
}
.video-placeholder img { width: 100%; display: block; }
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Dark Mode === */
[data-theme="dark"] {
  --bg: #121212;
  --bg-white: #1e1e1e;
  --text-primary: #e8e8e8;
  --text-secondary: #b0b0b0;
  --text-muted: #777777;
  --border: #333333;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.4);
  --nav-bg: #0a0a0a;
}
[data-theme="dark"] .ticker-left { background: #8e1a1a; }
[data-theme="dark"] .breaking-bar { background: linear-gradient(90deg, #0d0d1a 0%, #0e1528 50%, #0a1f3a 100%); border-bottom-color: #8e1a1a; }
[data-theme="dark"] .ticker-right { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .ticker-text { color: #c8c8c8; }
[data-theme="dark"] .search-overlay-inner { background: #1e1e1e; }
[data-theme="dark"] .search-box input { background: #1e1e1e; color: #e8e8e8; }
[data-theme="dark"] .post-content { background: #1e1e1e; }
[data-theme="dark"] .post-content a { color: #e74c3c; }
[data-theme="dark"] .post-content p, [data-theme="dark"] .post-content li { color: #d0d0d0; }
[data-theme="dark"] .hero-article, [data-theme="dark"] .post-card,
[data-theme="dark"] .sidebar-widget, [data-theme="dark"] .series-nav-card { background: #1e1e1e; }
[data-theme="dark"] .search-page-box { background: #1e1e1e; }
[data-theme="dark"] .search-page-box input { background: #1e1e1e; color: #e8e8e8; }
[data-theme="dark"] .contact-form input, [data-theme="dark"] .contact-form textarea { background: #1e1e1e; color: #e8e8e8; border-color: #444; }
[data-theme="dark"] .breaking-alert-badge { background: #1e1e1e; color: #fff; }
[data-theme="dark"] .share-copy { background: #555; }
[data-theme="dark"] .pagination .current { background: #1e1e1e; }
[data-theme="dark"] .cookie-reject { border-color: #555; }
[data-theme="dark"] .tag-pill { border-color: #444; }
[data-theme="dark"] .static-content a { color: #e74c3c; }

[data-theme="dark"] .cnn-hero-main-body .hero-meta { color: rgba(255,255,255,0.5); }
[data-theme="dark"] .cnn-hero-main-body p { color: rgba(255,255,255,0.7); }
[data-theme="dark"] .cnn-hero-stack { border-left-color: #333; }
[data-theme="dark"] .cnn-hero-stack-item { border-bottom-color: #333; }
[data-theme="dark"] .cnn-hero-stack-item:hover { background: rgba(255,255,255,0.05); }



/* === Theme Toggle (icon show/hide) === */
.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

/* === Header Center === */
.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.header-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}
.live-clock {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.live-clock .clock-time { color: var(--accent); }
.live-clock .clock-ampm {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* === Author Page === */
.author-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px;
}
.author-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.author-info h1 { font-size: 1.5rem; margin-bottom: 4px; }
.author-info .author-role { font-size: 0.9rem; color: var(--accent); font-weight: 600; }
.author-info .author-bio { font-size: 0.85rem; color: var(--text-secondary); margin-top: 8px; line-height: 1.6; }


/* === Briefing Room Published Articles === */
.ai-newsroom-published {
  margin-top: 24px;
}
.ai-newsroom-published-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.ai-nr-pub-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
  border: 1px solid var(--border);
}
.ai-nr-pub-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.ai-nr-pub-card img {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.ai-nr-pub-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ai-nr-pub-cat {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}
.ai-nr-pub-body h4 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}
.ai-nr-pub-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}
[data-theme="dark"] .ai-nr-pub-card {
  background: #1e1e1e;
  border-color: #333;
}
[data-theme="dark"] .ai-nr-pub-card:hover { border-color: var(--accent); }
[data-theme="dark"] .related-card { background: #1e1e1e; }
[data-theme="dark"] .related-card:hover { border-color: var(--accent); }

/* Published article card wrapper (for delete button) */
.ai-nr-pub-card-wrap {
  position: relative;
}
.ai-nr-pub-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #dc3545;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
  line-height: 1;
}
.ai-nr-pub-card-wrap:hover .ai-nr-pub-delete-btn {
  opacity: 1;
}
.ai-nr-pub-delete-btn:hover {
  background: #b02a37;
}
.ai-nr-pub-delete-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
[data-theme="dark"] .ai-nr-pub-delete-btn {
  background: #8b2030;
}
[data-theme="dark"] .ai-nr-pub-delete-btn:hover {
  background: #a52838;
}




/* === Reading Progress Bar === */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 10000;
  transition: width 0.1s linear;
  box-shadow: 0 0 4px rgba(192, 57, 43, 0.5);
}

/* === Related Stories Section === */
.related-stories {
  margin: 30px 0;
}
.related-stories-header {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-stories-header::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
}
.related-stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.related-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.related-card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}
.related-card-placeholder {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.related-card-body {
  padding: 10px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.related-card-cat {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}
.related-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 6px;
}
.related-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

@media (max-width: 768px) {
  .related-stories-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .related-stories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* === Taxonomy Grid === */
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

/* === Author Card (taxonomy listing) === */
.author-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  border: 1px solid var(--border);
}
.author-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.author-card-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.author-card-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.author-card-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Category Card (taxonomy listing) === */
.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  border: 1px solid var(--border);
}
.category-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.category-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(192, 57, 43, 0.08);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.category-card-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.category-card-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Tags Cloud === */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.tags-cloud .tag-pill small {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.7rem;
}

/* === Content Calendar === */
.ai-nr-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}
.ai-nr-cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.ai-nr-cal-nav-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.ai-nr-cal-month-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.ai-nr-calendar {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}
.ai-nr-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}
.ai-nr-cal-header span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  padding: 4px 0;
}

.ai-nr-cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.ai-nr-cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: default;
  transition: background 0.15s;
}
.ai-nr-cal-day-num {
  line-height: 1;
}
.ai-nr-cal-other {
  color: var(--text-muted);
  opacity: 0.4;
}

.ai-nr-cal-today {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
}
.ai-nr-cal-today .ai-nr-cal-dot {
  background: #fff;
  color: var(--accent);
}

.ai-nr-cal-has-articles {
  cursor: pointer;
}
.ai-nr-cal-has-articles:hover {
  background: rgba(192, 57, 43, 0.08);
}

.ai-nr-cal-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1;
  padding: 0 4px;
}

/* Calendar Day Detail Panel */
.ai-nr-cal-detail {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  overflow: hidden;
}
.ai-nr-cal-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.ai-nr-cal-detail-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.ai-nr-cal-detail-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}
.ai-nr-cal-detail-close:hover {
  color: var(--accent);
}
.ai-nr-cal-detail-articles {
  padding: 8px;
}
.ai-nr-cal-article {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.ai-nr-cal-article:hover {
  background: var(--bg);
}
.ai-nr-cal-article img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.ai-nr-cal-article-body {
  flex: 1;
  min-width: 0;
}
.ai-nr-cal-article-body h5 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 2px 0;
  color: var(--text-primary);
}
.ai-nr-cal-article:hover h5 {
  color: var(--accent);
}

/* Calendar responsive */
@media (max-width: 768px) {
  .taxonomy-grid {
    grid-template-columns: 1fr;
  }
  .ai-nr-cal-day {
    min-height: 40px;
    font-size: 0.78rem;
  }
  .ai-nr-cal-dot {
    min-width: 16px;
    height: 16px;
    font-size: 0.55rem;
  }
  .ai-nr-cal-article img {
    width: 48px;
    height: 36px;
  }
}

/* Dark mode for taxonomy & calendar */
[data-theme="dark"] .author-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .ai-nr-calendar,
[data-theme="dark"] .ai-nr-cal-detail,
[data-theme="dark"] .tags-cloud {
  background: #1e1e1e;
  border-color: #333;
}
[data-theme="dark"] .author-card:hover,
[data-theme="dark"] .category-card:hover {
  border-color: var(--accent);
}
[data-theme="dark"] .category-card-icon {
  background: rgba(192, 57, 43, 0.15);
}
[data-theme="dark"] .ai-nr-cal-nav-btn {
  background: #1e1e1e;
  border-color: #444;
  color: #ccc;
}
[data-theme="dark"] .ai-nr-cal-has-articles:hover {
  background: rgba(192, 57, 43, 0.12);
}
[data-theme="dark"] .ai-nr-cal-detail-header {
  background: #161616;
  border-bottom-color: #333;
}
[data-theme="dark"] .ai-nr-cal-article:hover {
  background: rgba(255,255,255,0.05);
}

/* === Responsive === */
@media (max-width: 768px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .posts { grid-template-columns: 1fr; }
  .hero-image { height: 200px; }
  .mobile-toggle { display: block; }
  .nav-inner {
    display: none;
    flex-direction: column;
    padding: 0;
  }
  .nav-inner.open { display: flex; }
  .nav-inner a { padding: 14px 20px; border-bottom: 1px solid #333; }
  .post-content { padding: 16px; }
  .cookie-consent-inner { flex-direction: column; text-align: center; }
  .series-nav-grid { grid-template-columns: 1fr; }
  .series-nav-premium { margin: 20px 0; }
  .footer-links { flex-direction: column; gap: 8px; }
  .header-center { display: none; }
  .author-header { flex-direction: column; text-align: center; }
  .ticker-right { display: none; }
  .ticker-left { padding: 0 10px; font-size: 0.65rem; }
  .breaking-bar { height: 34px; }
  .ticker-text { font-size: 0.72rem; }
  .header-btn span { display: none; }
  .header-btn { padding: 6px; }

  .cnn-hero-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .cnn-hero-main {
    position: relative;
    height: 300px;
  }
  .cnn-hero-main img { position: absolute; }
  .cnn-hero-stack {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .cnn-mid-row { grid-template-columns: 1fr; }
  .cnn-mid-card img { height: 160px; }
}

/* === Weather Widget (Premium) === */
.weather-loading, .premium-loading {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 12px 0;
}
.weather-widget-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.weather-header-icon {
  color: #f39c12;
}
.weather-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.weather-city {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 0.78rem;
  transition: background 0.2s;
}
.weather-city:nth-child(2n) { border-right: none; }
.weather-city:last-child,
.weather-city:nth-last-child(1):nth-child(odd) { border-bottom: none; }
.weather-city:hover { background: var(--bg); }
.weather-city-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}
.weather-city-flag {
  font-size: 0.9rem;
}
.weather-city-name {
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}
.weather-temp {
  font-weight: 800;
  color: var(--accent);
  font-size: 0.9rem;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.weather-desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
  margin-top: 2px;
}
.weather-detail {
  display: block;
  color: var(--text-muted);
  font-size: 0.62rem;
  margin-top: 1px;
}
.weather-icon {
  font-size: 1rem;
}
.weather-updated {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
}

/* === Newsletter Widget (Premium) === */
.newsletter-widget-premium {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: none;
}
.newsletter-premium-inner {
  padding: 20px 16px;
  text-align: center;
}
.newsletter-premium-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #f39c12;
}
.newsletter-premium-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  border: none;
  padding: 0;
  letter-spacing: 0.3px;
}
.newsletter-premium-text {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.newsletter-premium-features {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.nl-feature {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.nl-feature svg {
  color: #27ae60;
  flex-shrink: 0;
}
.newsletter-premium-form {
  margin-bottom: 8px;
}
.newsletter-input-wrap {
  display: flex;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color 0.3s;
}
.newsletter-input-wrap:focus-within {
  border-color: rgba(255,255,255,0.4);
}
.newsletter-input-wrap input {
  flex: 1;
  padding: 11px 14px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #fff;
}
.newsletter-input-wrap input::placeholder {
  color: rgba(255,255,255,0.45);
}
.newsletter-input-wrap button {
  padding: 11px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.newsletter-input-wrap button:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}
.newsletter-input-wrap button:disabled {
  background: #27ae60;
  cursor: default;
  transform: none;
}
.newsletter-premium-disclaimer {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
}

/* === Premium News Widget === */
.premium-feed {
  max-height: 420px;
  overflow-y: auto;
}
.premium-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.premium-item:last-child { border-bottom: none; }
.premium-item:hover h4 { color: var(--accent); }
.premium-item img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.premium-item-body { flex: 1; min-width: 0; }
.premium-item-source {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.3px;
}
.premium-item-body h4 {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 2px 0;
  display: -webkit-box;
  -webkit-box-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.premium-item-time {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.premium-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.premium-src-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}
.premium-src {
  font-size: 0.6rem;
  padding: 2px 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  font-weight: 600;
}

/* === Dark Mode Additions === */
[data-theme="dark"] .site-header {
  background: var(--bg-white);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .breaking-alert {
  background: #8b0000;
}
[data-theme="dark"] .newsletter-widget-premium {
  background: linear-gradient(135deg, #0a0a1a 0%, #0f1a2e 50%, #0a1628 100%);
}
[data-theme="dark"] .premium-item img { opacity: 0.85; }
[data-theme="dark"] .premium-src { background: #1a1a1a; border-color: #444; }

/* === AI Market Intelligence Widget === */
.ai-analysis-widget h3 { margin-bottom: 0; padding-bottom: 8px; }
.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.ai-header h3 { border: none; margin: 0; padding: 0; }
.ai-tier-toggle {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border-radius: 3px;
  padding: 2px;
}
.ai-tier-btn {
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  transition: all 0.2s;
}
.ai-tier-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Risk Pulse */
.ai-risk-pulse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.ai-risk-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ai-risk-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.ai-risk-bar {
  flex: 1;
  min-width: 60px;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}
.ai-risk-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.3s;
}
.ai-risk-low { background: #27ae60; }
.ai-risk-mid { background: #f39c12; }
.ai-risk-high { background: #e74c3c; }
.ai-risk-text {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Forex Pairs */
.ai-forex-pairs { margin-bottom: 8px; }
.ai-pair {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.ai-pair:last-child { border-bottom: none; }
.ai-pair-name {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 64px;
  font-variant-numeric: tabular-nums;
}
.ai-sig-icon { font-size: 0.7rem; }
.ai-bull { color: #27ae60; }
.ai-bear { color: #e74c3c; }
.ai-neut { color: #f39c12; }
.ai-pair-sig { font-weight: 600; font-size: 0.72rem; }
.ai-pair-sig.ai-bullish { color: #27ae60; }
.ai-pair-sig.ai-bearish { color: #e74c3c; }
.ai-pair-sig.ai-neutral { color: #f39c12; }
.ai-pair-hits {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Drivers & Watchlist */
.ai-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  padding: 8px 0 4px;
}
.ai-drivers ul, .ai-watchlist ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.ai-drivers li, .ai-watchlist li {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.45;
  padding: 3px 0;
  border-bottom: 1px solid var(--border);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-drivers li:last-child, .ai-watchlist li:last-child { border-bottom: none; }
.ai-watchlist li { font-size: 0.7rem; }

/* Premium: WebLLM */
.ai-premium-intro p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}
.ai-deep-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  border: 1px solid #0f3460;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.ai-deep-btn:hover { background: linear-gradient(135deg, #0f3460, #1a1a2e); }
.ai-model-progress {
  padding: 12px 0;
}
.ai-model-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.ai-progress-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.ai-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #e74c3c);
  border-radius: 3px;
  transition: width 0.3s;
}
.ai-model-info {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.ai-webgpu-fallback p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.ai-fallback-note {
  font-size: 0.7rem;
  color: var(--text-muted);
}
.ai-ai-response {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 8px 0;
}

/* AI Footer */
.ai-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.ai-timestamp {
  font-size: 0.65rem;
  color: var(--text-muted);
}
.ai-refresh-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s;
}
.ai-refresh-btn:hover { border-color: var(--accent); color: var(--accent); }

/* === Categories Widget (Premium) === */
.categories-widget-premium h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.categories-widget-title svg {
  color: var(--accent);
}
.categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.category-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.category-tag-item:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(192,57,43,0.25);
}
.category-tag-item:hover .category-tag-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.category-tag-name {
  white-space: nowrap;
}
.category-tag-count {
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--border);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 10px;
  transition: all 0.2s;
}
.category-tag-all {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.category-tag-all:hover {
  background: var(--accent);
  color: #fff;
}
.category-tag-all .category-tag-count {
  display: none;
}

/* Categories Dark Mode */
[data-theme="dark"] .category-tag-item {
  border-color: #444;
}
[data-theme="dark"] .category-tag-count {
  background: #333;
}

/* Series Nav Dark Mode */
[data-theme="dark"] .series-nav-card {
  border-color: #333;
}
[data-theme="dark"] .series-nav-arrow-prev,
[data-theme="dark"] .series-nav-arrow-next {
  background: #2a2a2a;
}

/* AI Widget Dark Mode */
[data-theme="dark"] .ai-tier-toggle { background: #1a1a1a; }
[data-theme="dark"] .ai-deep-btn { background: linear-gradient(135deg, #0a0a1a, #0f1a2e); }
[data-theme="dark"] .ai-ai-response { color: #b0b0b0; }

/* Weather Dark Mode */
[data-theme="dark"] .weather-city:nth-child(2n) { border-right-color: #333; }
[data-theme="dark"] .weather-city { border-bottom-color: #333; border-right-color: #333; }
[data-theme="dark"] .weather-city:nth-child(2n) { border-right: none; }


/* ================================================================
   AI Newsroom Page
   ================================================================ */
.ai-newsroom-page {
  min-height: 60vh;
}

/* Hero */
.ai-newsroom-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  padding: 48px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ai-newsroom-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(192,57,43,0.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(15,52,96,0.3) 0%, transparent 50%);
  animation: ai-nr-glow 12s ease-in-out infinite alternate;
}
@keyframes ai-nr-glow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, 3%) rotate(2deg); }
}
.ai-newsroom-hero-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}
.ai-newsroom-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: #f39c12;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.1);
}
.ai-newsroom-hero h1 {
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.ai-newsroom-hero-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* Content */
.ai-newsroom-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 20px;
}

/* Generator Panel */
.ai-newsroom-panel {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 30px;
}
.ai-newsroom-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
}
.ai-newsroom-panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f39c12;
  flex-shrink: 0;
}
.ai-newsroom-panel-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.ai-newsroom-panel-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

/* Form Fields */
.ai-newsroom-field {
  margin-bottom: 16px;
}
.ai-newsroom-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ai-newsroom-input-wrap {
  display: flex;
  gap: 8px;
}
.ai-newsroom-input-wrap input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.ai-newsroom-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.ai-newsroom-input-wrap input::placeholder {
  color: var(--text-muted);
}
.ai-newsroom-quick-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ai-newsroom-quick-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Row (Category + Tone + Length) */
.ai-newsroom-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.ai-newsroom-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-primary);
  background: var(--bg);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.ai-newsroom-field select:focus {
  border-color: var(--accent);
}

/* Generate Button */
.ai-newsroom-generate-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--accent), #e74c3c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s;
  letter-spacing: 0.3px;
}
.ai-newsroom-generate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(192,57,43,0.35);
}
.ai-newsroom-generate-btn:active {
  transform: translateY(0);
}
.ai-newsroom-generate-btn:disabled,
.ai-newsroom-generate-btn.ai-nr-generating {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.ai-nr-generating span {
  animation: ai-nr-pulse-text 1.5s ease-in-out infinite;
}
@keyframes ai-nr-pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Status Messages */
.ai-newsroom-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 16px;
  animation: ai-nr-fade-in 0.3s ease;
}
@keyframes ai-nr-fade-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-nr-status-loading {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}
.ai-nr-status-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
}
.ai-nr-status-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}
.ai-nr-status-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
}

/* Spinner */
.ai-nr-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #fbbf24;
  border-top-color: #92400e;
  border-radius: 50%;
  animation: ai-nr-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes ai-nr-spin {
  to { transform: rotate(360deg); }
}

/* Output Panel */
.ai-newsroom-output {
  margin-bottom: 40px;
}

/* Placeholder */
.ai-newsroom-placeholder {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-white);
  border-radius: 10px;
  border: 2px dashed var(--border);
}
.ai-newsroom-placeholder-icon {
  color: var(--border);
  margin-bottom: 16px;
}
.ai-newsroom-placeholder h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.ai-newsroom-placeholder p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 24px;
  line-height: 1.5;
}
.ai-newsroom-placeholder-features {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ai-nr-feat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}
.ai-nr-feat svg {
  color: #27ae60;
}

/* Article Display */
.ai-newsroom-article {
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: ai-nr-article-slide 0.4s ease;
}
@keyframes ai-nr-article-slide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.ai-nr-article-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.ai-nr-article-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.5px;
  background: rgba(192,57,43,0.08);
  padding: 3px 10px;
  border-radius: 4px;
}
.ai-nr-article-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #f39c12;
  background: rgba(243,156,18,0.1);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ai-nr-article-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* Article image */
.ai-nr-article-image {
  margin: 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.ai-nr-article-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.ai-nr-img-credit {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 6px 0 0;
}
.ai-nr-img-credit a { color: var(--text-muted); text-decoration: underline; }

/* Disclaimer badge */
.ai-nr-disclaimer {
  font-size: 0.65rem;
  font-weight: 600;
  color: #e67e22;
  background: rgba(230,126,34,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Library card image */
.ai-library-card-img {
  width: 100%;
  height: 120px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.ai-library-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-nr-article-title {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  padding: 24px 24px 0;
  color: var(--text-primary);
}
.ai-nr-article-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 12px 24px 0;
  font-style: italic;
}
.ai-nr-article-meta {
  display: flex;
  gap: 16px;
  padding: 16px 24px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.ai-nr-article-body {
  padding: 20px 24px 24px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.ai-nr-article-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.ai-nr-article-body p {
  margin-bottom: 14px;
}
.ai-nr-article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin: 16px 0;
  background: var(--bg);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: var(--text-primary);
}

/* Article Actions */
.ai-nr-article-actions {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-wrap: wrap;
}
.ai-nr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ai-nr-action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(192,57,43,0.05);
}
.ai-nr-action-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.ai-nr-action-delete:hover {
  border-color: #e74c3c;
  color: #e74c3c;
  background: rgba(231,76,60,0.05);
}

/* ================================================================
   AI Newsroom Library
   ================================================================ */
.ai-newsroom-library {
  margin-top: 10px;
}
.ai-newsroom-library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}
.ai-newsroom-library-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ai-newsroom-library-header h3 svg {
  color: var(--accent);
}
.ai-newsroom-library-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 12px;
}
.ai-newsroom-library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.ai-newsroom-library-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.ai-newsroom-library-empty svg {
  margin-bottom: 12px;
  opacity: 0.4;
}
.ai-newsroom-library-empty p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.ai-newsroom-library-empty span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Library Card */
.ai-library-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.2s;
}
.ai-library-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.ai-library-card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.ai-library-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-library-card-summary {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.ai-library-card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.ai-library-card-actions {
  display: flex;
  gap: 8px;
}
.ai-lib-view-btn,
.ai-lib-delete-btn {
  flex: 1;
  padding: 7px 0;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  border: none;
}
.ai-lib-view-btn {
  background: var(--accent);
  color: #fff;
}
.ai-lib-view-btn:hover {
  background: var(--accent-dark);
}
.ai-lib-delete-btn {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.ai-lib-delete-btn:hover {
  border-color: #e74c3c;
  color: #e74c3c;
  background: rgba(231,76,60,0.05);
}

/* ================================================================
   AI Newsroom Dark Mode
   ================================================================ */
[data-theme="dark"] .ai-newsroom-hero {
  background: linear-gradient(135deg, #0a0a1a 0%, #0d1a2e 40%, #0a1628 100%);
}
[data-theme="dark"] .ai-newsroom-panel {
  background: var(--bg-white);
  border-color: var(--border);
}
[data-theme="dark"] .ai-newsroom-input-wrap input {
  background: var(--bg);
  color: var(--text-primary);
  border-color: #444;
}
[data-theme="dark"] .ai-newsroom-input-wrap input:focus {
  border-color: var(--accent);
}
[data-theme="dark"] .ai-newsroom-quick-btn {
  background: #2a2a2a;
  border-color: #444;
}
[data-theme="dark"] .ai-newsroom-quick-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}
[data-theme="dark"] .ai-newsroom-field select {
  background-color: var(--bg);
  color: var(--text-primary);
  border-color: #444;
}
[data-theme="dark"] .ai-newsroom-placeholder {
  background: var(--bg-white);
  border-color: #333;
}
[data-theme="dark"] .ai-newsroom-article {
  background: var(--bg-white);
  border-color: #333;
}
[data-theme="dark"] .ai-nr-article-header {
  background: var(--bg);
  border-color: #333;
}
[data-theme="dark"] .ai-nr-article-body blockquote {
  background: var(--bg);
}
[data-theme="dark"] .ai-nr-article-actions {
  background: var(--bg);
  border-color: #333;
}
[data-theme="dark"] .ai-nr-action-btn {
  background: var(--bg-white);
  border-color: #444;
}
[data-theme="dark"] .ai-library-card {
  background: var(--bg-white);
  border-color: #333;
}
[data-theme="dark"] .ai-lib-delete-btn {
  background: var(--bg);
  border-color: #444;
}
[data-theme="dark"] .ai-nr-status-loading {
  background: #422006;
  color: #fbbf24;
  border-color: #92400e;
}
[data-theme="dark"] .ai-nr-status-success {
  background: #064e3b;
  color: #34d399;
  border-color: #065f46;
}
[data-theme="dark"] .ai-nr-status-error {
  background: #450a0a;
  color: #fca5a5;
  border-color: #991b1b;
}

/* ================================================================
   AI Newsroom Tab Switcher
   ================================================================ */
.ai-nr-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  background: var(--bg-white);
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ai-nr-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--bg-white);
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.25s;
  border-bottom: 3px solid transparent;
}
.ai-nr-tab:hover {
  color: var(--text-primary);
  background: var(--bg);
}
.ai-nr-tab-active {
  color: var(--accent) !important;
  background: var(--bg) !important;
  border-bottom-color: var(--accent) !important;
}
.ai-nr-tab-content {
  animation: ai-nr-fade-in 0.3s ease;
}

/* ================================================================
   Manual Post Form
   ================================================================ */
.ai-nr-manual-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.ai-nr-manual-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.ai-nr-manual-input::placeholder {
  color: var(--text-muted);
}

.ai-nr-manual-textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.7;
  resize: vertical;
  min-height: 250px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ai-nr-manual-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.ai-nr-manual-textarea::placeholder {
  color: var(--text-muted);
}

.ai-nr-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.ai-nr-word-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 16px;
}

.ai-nr-img-preview {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.ai-nr-img-preview img {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.ai-nr-remove-img {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ai-nr-remove-img:hover {
  background: #e74c3c;
}

.ai-nr-manual-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.ai-nr-manual-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.ai-nr-manual-preview-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(192,57,43,0.05);
}

.ai-nr-manual-publish-btn {
  flex-shrink: 0;
}

/* Publish result toast */
.ai-nr-publish-result {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: ai-nr-fade-in 0.3s ease;
}
.ai-nr-publish-result a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}
.ai-nr-publish-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
}
.ai-nr-publish-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #f87171;
}
.ai-nr-published span {
  color: #27ae60 !important;
}

/* Manual Post Preview Panel */
.ai-nr-manual-preview-panel {
  margin-top: 24px;
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.ai-nr-manual-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.ai-nr-manual-preview-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}
.ai-nr-close-preview {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.ai-nr-close-preview:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Manual Post Dark Mode */
[data-theme="dark"] .ai-nr-tabs {
  background: var(--bg-white);
  border-color: #333;
}
[data-theme="dark"] .ai-nr-tab {
  background: var(--bg-white);
  color: var(--text-muted);
}
[data-theme="dark"] .ai-nr-tab:hover {
  background: var(--bg);
}
[data-theme="dark"] .ai-nr-tab-active {
  background: var(--bg) !important;
}
[data-theme="dark"] .ai-nr-manual-input {
  background: var(--bg);
  color: var(--text-primary);
  border-color: #444;
}
[data-theme="dark"] .ai-nr-manual-input:focus {
  border-color: var(--accent);
}
[data-theme="dark"] .ai-nr-manual-textarea {
  background: var(--bg);
  color: var(--text-primary);
  border-color: #444;
}
[data-theme="dark"] .ai-nr-manual-textarea:focus {
  border-color: var(--accent);
}
[data-theme="dark"] .ai-nr-manual-preview-btn {
  background: var(--bg-white);
  border-color: #444;
  color: var(--text-secondary);
}
[data-theme="dark"] .ai-nr-manual-preview-panel {
  background: var(--bg-white);
  border-color: #333;
}
[data-theme="dark"] .ai-nr-manual-preview-header {
  background: var(--bg);
  border-color: #333;
}
[data-theme="dark"] .ai-nr-close-preview {
  border-color: #444;
  color: var(--text-muted);
}
[data-theme="dark"] .ai-nr-publish-success {
  background: #064e3b;
  color: #34d399;
  border-color: #065f46;
}
[data-theme="dark"] .ai-nr-publish-error {
  background: #450a0a;
  color: #fca5a5;
  border-color: #991b1b;
}

/* AI Newsroom Responsive */
@media (max-width: 768px) {
  .ai-newsroom-hero { padding: 32px 16px 28px; }
  .ai-newsroom-hero h1 { font-size: 1.6rem; }
  .ai-newsroom-hero-desc { font-size: 0.85rem; }
  .ai-newsroom-content { padding: 20px 16px; }
  .ai-newsroom-row { grid-template-columns: 1fr; }
  .ai-newsroom-library-grid { grid-template-columns: 1fr; }
  .ai-nr-article-title { font-size: 1.3rem; }
  .ai-nr-article-actions { flex-direction: column; }
  .ai-nr-action-btn { justify-content: center; }
  .ai-newsroom-placeholder-features { flex-direction: column; gap: 12px; }
  .ai-nr-tabs { flex-direction: column; }
  .ai-nr-tab { padding: 12px 16px; }
  .ai-nr-manual-actions { flex-direction: column; }
  .ai-nr-manual-actions .ai-newsroom-generate-btn { max-width: 100% !important; }
  .ai-nr-manual-preview-btn { width: 100%; justify-content: center; }
  .ai-nr-manual-textarea { min-height: 180px; }
}

/* Nav: Briefing Room highlight */
.nav-studio-link {
  background: rgba(192,57,43,0.2) !important;
  color: #fff !important;
  font-weight: 700 !important;
}


/* ================================================================
   Pro Analysis Widget
   ================================================================ */
.pro-analysis-widget { padding: 14px; }

.pro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.pro-header h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  padding: 0;
  border: none;
}
.pro-header h3 svg { color: #f39c12; }
.pro-badge {
  font-size: 0.55rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f39c12, #e74c3c);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 1px;
}

/* Market Regime */
.pro-regime {
  margin-bottom: 12px;
}
.pro-regime-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.pro-regime-value {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.pro-regime-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}
.pro-regime-riskon {
  background: rgba(39,174,96,0.1);
  color: #27ae60;
  border: 1px solid rgba(39,174,96,0.2);
}
.pro-regime-riskon .pro-regime-dot { background: #27ae60; }
.pro-regime-optimistic {
  background: rgba(39,174,96,0.08);
  color: #2ecc71;
  border: 1px solid rgba(39,174,96,0.15);
}
.pro-regime-optimistic .pro-regime-dot { background: #2ecc71; }
.pro-regime-cautious {
  background: rgba(243,156,18,0.1);
  color: #e67e22;
  border: 1px solid rgba(243,156,18,0.2);
}
.pro-regime-cautious .pro-regime-dot { background: #e67e22; }
.pro-regime-riskoff {
  background: rgba(231,76,60,0.1);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.2);
}
.pro-regime-riskoff .pro-regime-dot { background: #e74c3c; }
.pro-regime-panic {
  background: rgba(231,76,60,0.15);
  color: #c0392b;
  border: 1px solid rgba(231,76,60,0.3);
}
.pro-regime-panic .pro-regime-dot { background: #c0392b; }

/* Signal Strength */
.pro-strength {
  margin-bottom: 12px;
}
.pro-strength-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.pro-strength-label span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
}
.pro-strength-value {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.pro-strength-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}
.pro-strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.3s;
}
.pro-str-weak { background: #e74c3c; width: 0%; }
.pro-str-moderate { background: #f39c12; }
.pro-str-strong { background: #3498db; }
.pro-str-very-strong { background: #27ae60; }
.pro-strength-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Source Sentiment */
.pro-sources {
  margin-bottom: 12px;
}
.pro-sources-title, .pro-trends-title, .pro-briefing-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.pro-src-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.72rem;
}
.pro-src-name {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 36px;
  font-size: 0.68rem;
}
.pro-src-bar {
  flex: 1;
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}
.pro-src-bull {
  height: 100%;
  background: #27ae60;
  border-radius: 3px;
  transition: width 0.4s;
}
.pro-src-pct {
  font-size: 0.62rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 28px;
  text-align: right;
}
.pro-src-bull-pct { color: #27ae60; }
.pro-src-bias {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  min-width: 48px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.pro-bias-bullish { background: rgba(39,174,96,0.12); color: #27ae60; }
.pro-bias-bearish { background: rgba(231,76,60,0.12); color: #e74c3c; }
.pro-bias-neutral { background: rgba(243,156,18,0.12); color: #f39c12; }

/* Trend Changes */
.pro-trends {
  margin-bottom: 12px;
}
.pro-trend-none {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  padding: 6px 0;
}
.pro-trend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
}
.pro-trend-item:last-child { border-bottom: none; }
.pro-trend-pair {
  font-weight: 700;
  color: var(--text-primary);
  min-width: 60px;
}
.pro-trend-from, .pro-trend-to {
  font-weight: 600;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 3px;
}
.pro-trend-arrow { color: var(--text-muted); }
.pro-up { color: #27ae60; font-weight: 700; }
.pro-down { color: #e74c3c; font-weight: 700; }

/* Market Briefing */
.pro-briefing {
  margin-bottom: 8px;
}
.pro-briefing-body {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}
.pro-briefing-body p { margin: 0; }

.pro-loading-sm {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 8px 0;
  text-align: center;
}

/* ================================================================
   Writing Assistant Widget
   ================================================================ */
.wa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.wa-header h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  padding: 0;
  border: none;
}
.wa-header h3 svg { color: #3498db; }
.wa-badge {
  font-size: 0.55rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #fff;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 1px;
}

/* Tabs */
.wa-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg);
  border-radius: 4px;
  padding: 2px;
  margin-bottom: 12px;
}
.wa-tab {
  flex: 1;
  padding: 6px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  transition: all 0.2s;
  text-align: center;
}
.wa-tab.active {
  background: var(--accent);
  color: #fff;
}
.wa-tab:not(.active):hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-secondary);
}

/* Tab Content */
.wa-tab-content { display: none; }
.wa-tab-content.active { display: block; }
.wa-tab-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.wa-empty {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  padding: 12px 0;
  font-style: italic;
}

/* Trending Topic Items */
.wa-topic-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  border-radius: 4px;
}
.wa-topic-item:last-child { border-bottom: none; }
.wa-topic-item:hover {
  background: var(--bg);
}
.wa-topic-rank {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 20px;
  text-align: center;
}
.wa-topic-body { flex: 1; min-width: 0; }
.wa-topic-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.wa-topic-meta {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.wa-topic-heat { flex-shrink: 0; }
.wa-heat-badge {
  font-size: 0.52rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.wa-heat-hot { background: rgba(231,76,60,0.12); color: #e74c3c; }
.wa-heat-warm { background: rgba(243,156,18,0.12); color: #f39c12; }
.wa-heat-cool { background: rgba(52,152,219,0.12); color: #3498db; }

/* SEO Headlines */
.wa-headline-context {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 4px;
  border-left: 3px solid #3498db;
}
.wa-headline-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.wa-headline-item:last-child { border-bottom: none; }
.wa-headline-item:hover { background: var(--bg); }
.wa-headline-num {
  font-size: 0.65rem;
  font-weight: 800;
  color: #3498db;
  min-width: 16px;
  margin-top: 1px;
}
.wa-headline-text {
  flex: 1;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}
.wa-copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 5px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-copy-btn:hover {
  border-color: #3498db;
  color: #3498db;
  background: rgba(52,152,219,0.05);
}

/* Talking Points */
.wa-talk-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.wa-talk-item:last-child { border-bottom: none; }
.wa-talk-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}
.wa-talk-num {
  font-size: 0.62rem;
  font-weight: 800;
  color: #3498db;
  background: rgba(52,152,219,0.1);
  padding: 1px 5px;
  border-radius: 3px;
}
.wa-talk-theme {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--accent);
}
.wa-talk-point {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================================
   Pro Analysis + Writing Assistant Dark Mode
   ================================================================ */
[data-theme="dark"] .pro-regime-riskon { background: rgba(39,174,96,0.15); border-color: rgba(39,174,96,0.25); }
[data-theme="dark"] .pro-regime-riskoff { background: rgba(231,76,60,0.15); border-color: rgba(231,76,60,0.25); }
[data-theme="dark"] .pro-regime-panic { background: rgba(231,76,60,0.2); border-color: rgba(231,76,60,0.35); }
[data-theme="dark"] .pro-regime-cautious { background: rgba(243,156,18,0.12); border-color: rgba(243,156,18,0.2); }
[data-theme="dark"] .pro-regime-optimistic { background: rgba(39,174,96,0.1); border-color: rgba(39,174,96,0.15); }
[data-theme="dark"] .pro-src-bar { background: #1a1a1a; }
[data-theme="dark"] .pro-briefing-body { background: var(--bg); border-left-color: var(--accent); }
[data-theme="dark"] .pro-trend-from, [data-theme="dark"] .pro-trend-to { background: #1a1a1a; }
[data-theme="dark"] .wa-tab:not(.active):hover { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .wa-topic-item:hover { background: var(--bg); }
[data-theme="dark"] .wa-headline-item:hover { background: var(--bg); }
[data-theme="dark"] .wa-headline-context { background: var(--bg); }
[data-theme="dark"] .wa-copy-btn { border-color: #444; }
[data-theme="dark"] .wa-copy-btn:hover { border-color: #3498db; background: rgba(52,152,219,0.1); }
[data-theme="dark"] .wa-talk-num { background: rgba(52,152,219,0.15); }
[data-theme="dark"] .wa-heat-hot { background: rgba(231,76,60,0.18); }
[data-theme="dark"] .wa-heat-warm { background: rgba(243,156,18,0.18); }
[data-theme="dark"] .wa-heat-cool { background: rgba(52,152,219,0.18); }
[data-theme="dark"] .wa-tabs { background: #1a1a1a; }

/* Pro Analysis Responsive */
@media (max-width: 768px) {
  .pro-src-row { gap: 6px; }
  .pro-trend-item { gap: 4px; }
  .wa-topic-item { gap: 8px; }
}

/* ================================================================
   Newsletter Popup
   ================================================================ */
.nl-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.nl-popup-overlay.nl-popup-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nl-popup {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nl-popup-visible .nl-popup {
  transform: translateY(0) scale(1);
}

/* Close button */
.nl-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #aaa;
  cursor: pointer;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.nl-popup-close:hover {
  color: #fff;
  background: rgba(255,255,255,0.2);
}

/* Visual header area */
.nl-popup-visual {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 32px 24px 24px;
  text-align: center;
  position: relative;
}
.nl-popup-icon-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: #f39c12;
  animation: nl-pulse-ring 2s ease-in-out infinite;
}
@keyframes nl-pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243,156,18,0.3); }
  50% { box-shadow: 0 0 0 12px rgba(243,156,18,0); }
}

/* Body section */
.nl-popup-body {
  padding: 28px 28px 24px;
  text-align: center;
}
.nl-popup-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.nl-popup-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Features list */
.nl-popup-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nl-popup-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.nl-popup-features li svg {
  color: #27ae60;
  flex-shrink: 0;
}

/* Form */
.nl-popup-form {
  margin-bottom: 14px;
}
.nl-popup-input-row {
  display: flex;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nl-popup-input-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.nl-popup-input-row input {
  flex: 1;
  padding: 13px 16px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
}
.nl-popup-input-row input::placeholder {
  color: var(--text-muted);
}

#nlPopupSubmit {
  padding: 13px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}
#nlPopupSubmit:hover {
  background: var(--accent-dark);
}
#nlPopupSubmit:disabled {
  cursor: default;
}

/* Error message */
.nl-popup-error {
  font-size: 0.78rem;
  color: #e74c3c;
  text-align: left;
  margin-top: 8px;
  padding-left: 4px;
}

/* Spinner */
.nl-spinner {
  animation: nl-spin 0.8s linear infinite;
}
@keyframes nl-spin {
  to { transform: rotate(360deg); }
}

/* Dismiss button */
.nl-popup-dismiss {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
  margin-bottom: 10px;
}
.nl-popup-dismiss:hover {
  color: var(--text-primary);
}

/* Trust line */
.nl-popup-trust {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Dark mode for popup */
[data-theme="dark"] .nl-popup {
  background: #1e1e1e;
}
[data-theme="dark"] .nl-popup-visual {
  background: linear-gradient(135deg, #0a0a1a 0%, #0f1a2e 50%, #0a1628 100%);
}
[data-theme="dark"] .nl-popup-title {
  color: #e8e8e8;
}
[data-theme="dark"] .nl-popup-text {
  color: #b0b0b0;
}
[data-theme="dark"] .nl-popup-features li {
  color: #b0b0b0;
}
[data-popup-close .nl-popup-close:hover {
  background: rgba(255,255,255,0.1);
}
[data-theme="dark"] .nl-popup-input-row {
  background: #121212;
  border-color: #444;
}
[data-theme="dark"] .nl-popup-input-row input {
  color: #e8e8e8;
}
[data-theme="dark"] .nl-popup-input-row input::placeholder {
  color: #777;
}
[data-theme="dark"] .nl-popup-dismiss:hover {
  color: #e8e8e8;
}

/* Responsive */
@media (max-width: 540px) {
  .nl-popup-overlay {
    padding: 12px;
  }
  .nl-popup {
    border-radius: 10px;
  }
  .nl-popup-body {
    padding: 20px 20px 18px;
  }
  .nl-popup-visual {
    padding: 24px 20px 20px;
  }
  .nl-popup-title {
    font-size: 1.15rem;
  }
  .nl-popup-input-row {
    flex-direction: column;
    border-radius: 8px;
  }
  .nl-popup-input-row input {
    text-align: center;
    padding: 14px 16px;
  }
  #nlPopupSubmit {
    width: 100%;
    padding: 14px;
    border-radius: 0 0 6px 6px;
  }
}

/* === Briefing Room: Publish Button & Result === */
.ai-nr-action-btn.ai-nr-publish-btn {
  background: #27ae60;
  color: #fff;
  border-color: #27ae60;
}
.ai-nr-action-btn.ai-nr-publish-btn:hover {
  background: #219a52;
  border-color: #219a52;
}
.ai-nr-action-btn.ai-nr-publish-btn.ai-nr-publishing {
  opacity: 0.7;
  cursor: wait;
}
.ai-nr-action-btn.ai-nr-publish-btn.ai-nr-published {
  background: #bdc3c7;
  border-color: #bdc3c7;
  color: #fff;
  cursor: default;
}
[data-theme="dark"] .ai-nr-action-btn.ai-nr-publish-btn {
  background: #27ae60;
  border-color: #27ae60;
}
[data-theme="dark"] .ai-nr-action-btn.ai-nr-publish-btn.ai-nr-published {
  background: #4a5568;
  border-color: #4a5568;
}

/* Publish Result Toast */
.ai-nr-publish-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.5;
}
.ai-nr-publish-result.ai-nr-publish-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.ai-nr-publish-result.ai-nr-publish-success a {
  color: #0b5a2d;
  font-weight: 600;
  text-decoration: underline;
}
.ai-nr-publish-result.ai-nr-publish-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
[data-theme="dark"] .ai-nr-publish-result.ai-nr-publish-success {
  background: #1a3a2a;
  color: #75d992;
  border-color: #27ae60;
}
[data-theme="dark"] .ai-nr-publish-result.ai-nr-publish-success a {
  color: #82e0aa;
}
[data-theme="dark"] .ai-nr-publish-result.ai-nr-publish-error {
  background: #3a1a1a;
  color: #e8a0a5;
  border-color: #c0392b;
}

  /* Edit Post Tab Styles */
  /* ================================================================ */
  .ai-nr-edit-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: auto;
  }
  .ai-nr-edit-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
  }
  .ai-nr-pub-card-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 6px;
    padding: 0 12px 10px;
  }
  .ai-nr-pub-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s;
    font-family: inherit;
  }
  .ai-nr-pub-card-wrap:hover .ai-nr-pub-edit-btn {
    opacity: 1;
    transform: translateY(0);
  }
  .ai-nr-pub-edit-btn:hover {
    background: var(--accent);
    color: #fff;
  }
  #editFormContainer {
    animation: aiNrFadeIn 0.3s ease;
  }
  @keyframes aiNrFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

/* === Share Actions in Publish Result === */
.ai-nr-pub-success-main {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.ai-nr-pub-success-main svg { flex-shrink: 0; color: #27ae60; }
.ai-nr-pub-success-main span { flex: 1; }
.ai-nr-pub-success-main a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.ai-nr-pub-share-actions {
  display: flex;
  gap: 8px;
  padding-left: 26px;
  flex-wrap: wrap;
}
.ai-nr-share-x-btn,
.ai-nr-copy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.ai-nr-share-x-btn:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}
.ai-nr-copy-link-btn:hover {
  background: var(--text-secondary);
  color: #fff;
  border-color: var(--text-secondary);
}
[data-theme="dark"] .ai-nr-share-x-btn,
[data-theme="dark"] .ai-nr-copy-link-btn {
  background: #2a2a2a;
  border-color: #444;
  color: #e0e0e0;
}
[data-theme="dark"] .ai-nr-share-x-btn:hover { background: #000; border-color: #000; }
[data-theme="dark"] .ai-nr-copy-link-btn:hover { background: #555; border-color: #555; }

/* === Footer Newsletter === */
.footer-newsletter {
  max-width: 480px;
  margin: 0 auto 16px;
  text-align: center;
}
.footer-nl-text {
  font-size: 0.85rem;
  color: #ccc;
  margin-bottom: 10px;
}
.footer-nl-form { margin: 0; }
.footer-nl-input-wrap {
  display: flex;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  transition: border-color 0.3s;
}
.footer-nl-input-wrap:focus-within {
  border-color: rgba(255,255,255,0.4);
}
.footer-nl-input-wrap input {
  flex: 1;
  padding: 11px 14px;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #fff;
}
.footer-nl-input-wrap input::placeholder {
  color: rgba(255,255,255,0.4);
}
.footer-nl-input-wrap button {
  padding: 11px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.3px;
  transition: background 0.2s;
  white-space: nowrap;
}
.footer-nl-input-wrap button:hover {
  background: var(--accent-dark);
}
.footer-nl-input-wrap button:disabled {
  background: #27ae60;
  cursor: default;
}
.footer-nl-status {
  font-size: 0.75rem;
  margin-top: 6px;
  min-height: 18px;
}

/* === Article View Count === */
.article-view-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.article-view-count svg { opacity: 0.6; }

/* === Newsroom Trending Section === */
.ai-newsroom-trending {
  margin-top: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.ai-newsroom-trending-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(192, 57, 43, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
  animation: pulse-dot 1.5s infinite;
}
.ai-newsroom-trending-grid {
  margin-top: 12px;
}
.ai-newsroom-trending-loading,
.ai-newsroom-trending-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 12px 0;
  text-align: center;
}
.ai-trending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.ai-trending-item:last-child { border-bottom: none; }
.ai-trending-rank {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 28px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ai-trending-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ai-trending-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-trending-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.ai-trending-views svg { opacity: 0.5; }
[data-theme="dark"] .ai-newsroom-trending {
  background: #1e1e1e;
  border-color: #333;
}

/* === Social Share Enhanced === */
.share-btn.share-email {
  background: var(--text-secondary);
}
.share-btn.share-email:hover {
  background: #444;
  color: #fff;
}
[data-theme="dark"] .share-btn.share-email {
  background: #444;
}
.share-btn.share-copy {
  transition: transform 0.2s, opacity 0.2s, background 0.2s;
}
.share-label {
  margin-right: 2px;
}

/* === Responsive for new features === */
@media (max-width: 768px) {
  .ai-nr-pub-share-actions {
    padding-left: 0;
    flex-direction: column;
  }
  .ai-nr-share-x-btn,
  .ai-nr-copy-link-btn {
    width: 100%;
    justify-content: center;
  }
  .footer-newsletter {
    max-width: 100%;
  }
  .ai-trending-item {
    gap: 10px;
  }
}


/* === Trending Topics Panel === */
.ai-trending-panel {
  margin-bottom: 24px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.ai-trending-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(192,57,43,0.06), rgba(192,57,43,0.02));
  border-bottom: 1px solid var(--border);
}
.ai-trending-header svg {
  color: var(--accent);
  flex-shrink: 0;
}
.ai-trending-header > span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}
.ai-trending-refresh {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.ai-trending-refresh:hover {
  color: var(--accent);
  background: rgba(192,57,43,0.08);
}
.ai-trending-refresh:active {
  transform: rotate(180deg);
}
.ai-trending-chips {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ai-trending-chips::-webkit-scrollbar {
  display: none;
}
.ai-trending-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-sans);
  line-height: 1.3;
}
.ai-trending-chip:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(192,57,43,0.2);
}
.ai-trending-chip:active {
  transform: translateY(0);
}
.ai-trending-chip-cat {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--accent);
  background: rgba(192,57,43,0.1);
  padding: 1px 6px;
  border-radius: 8px;
}
.ai-trending-chip:hover .ai-trending-chip-cat {
  color: #fff;
  background: rgba(255,255,255,0.2);
}
.ai-trending-loading {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
[data-theme="dark"] .ai-trending-panel {
  background: var(--bg-white);
  border-color: #333;
}
[data-theme="dark"] .ai-trending-chip {
  background: rgba(255,255,255,0.05);
  border-color: #444;
}
[data-theme="dark"] .ai-trending-chip-cat {
  background: rgba(192,57,43,0.15);
}
[data-theme="dark"] .ai-trending-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
[data-theme="dark"] .ai-trending-header {
  background: linear-gradient(135deg, rgba(192,57,43,0.12), rgba(192,57,43,0.04));
}

/* === Series Collection Nav === */
.series-collection-nav {
  margin: 30px 0;
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.series-collection-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1a1a2e, #16213e 0%, #0f3460 100%);
  color: #fff;
}
.series-collection-badge {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.series-collection-info {
  flex: 1;
}
.series-collection-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 2px;
}
.series-collection-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.series-part-indicator {
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  color: rgba(255,255,255,0.9);
}
.series-progress-bar {
  height: 3px;
  background: rgba(255,255,255,0.08);
}
.series-progress-track {
  height: 3px;
  overflow: hidden;
}
.series-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #e74c3c, #f39c12);
  transition: width 0.5s ease;
}
.series-collection-nav .series-nav-grid {
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.series-collection-nav .series-nav-card {
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 16px 20px;
}
.series-collection-nav .series-nav-card:hover {
  background: var(--bg);
  box-shadow: none;
  border-color: var(--accent);
  transform: none;
}
[data-theme="dark"] .series-collection-nav {
  background: var(--bg-white);
  border-color: #333;
}
[data-theme="dark"] .series-collection-nav .series-nav-card:hover {
  background: rgba(255,255,255,0.05);
}

/* === Audio Player === */
.audio-listen-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  margin: 20px 0;
  transition: all 0.25s ease;
  width: 100%;
  justify-content: center;
}
.audio-listen-btn:hover {
  background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15,52,96,0.3);
}
.audio-listen-btn:active {
  transform: translateY(0);
}
.audio-listen-btn-active {
  background: var(--accent);
  border-color: var(--accent);
}
.audio-listen-btn-active:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(192,57,43,0.3);
}
.audio-listen-btn svg {
  flex-shrink: 0;
}
.audio-player-bar {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  color: #fff;
  border-top: 2px solid var(--accent);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: -1px;
}
.audio-player-bar.audio-player-visible {
  transform: translateY(0);
}
.audio-player-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.audio-player-info {
  flex: 1;
  min-width: 0;
}
.audio-player-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audio-player-progress-text {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.audio-player-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}
.audio-player-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.audio-player-btn:hover {
  background: rgba(255,255,255,0.2);
}
.audio-speed-selector {
  display: flex;
  gap: 2px;
  margin: 0 4px;
}
.audio-speed-btn {
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s;
}
.audio-speed-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.audio-speed-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.audio-player-close-btn {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.audio-progress-track {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  width: 100%;
  cursor: pointer;
  margin-top: 8px;
}
.audio-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}
.audio-highlight {
  background: rgba(192,57,43,0.08);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  border-radius: 0 4px 4px 0;
  transition: background 0.3s, border-color 0.3s;
}
[data-theme="dark"] .audio-highlight {
  background: rgba(192,57,43,0.12);
}

/* Responsive: audio player */
@media (max-width: 768px) {
  .audio-listen-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .audio-player-inner {
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 8px;
  }
  .audio-speed-selector {
    display: none;
  }
  .series-collection-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  .series-collection-nav .series-nav-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   Headline Suggestion Chips
   ================================================================ */
.ai-nr-headline-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.ai-nr-headline-chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
  max-width: 100%;
  text-align: left;
}
.ai-nr-headline-chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ================================================================
   Additional Dark Mode Overrides
   ================================================================ */
[data-theme="dark"] .ai-newsroom-content {
  background: var(--bg);
}
[data-theme="dark"] .ai-newsroom-page {
  background: var(--bg);
}
[data-theme="dark"] .ai-newsroom-badge {
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
}
[data-theme="dark"] .ai-newsroom-library {
  background: transparent;
}
[data-theme="dark"] .ai-newsroom-library-header h3 {
  color: var(--text-primary);
}
[data-theme="dark"] .ai-newsroom-published {
  background: var(--bg);
}
[data-theme="dark"] .ai-newsroom-published .ai-newsroom-library-header h3 {
  color: var(--text-primary);
}
[data-theme="dark"] .ai-nr-edit-select {
  background: var(--bg);
  color: var(--text-primary);
  border-color: #444;
}
[data-theme="dark"] .ai-nr-edit-select:focus {
  border-color: var(--accent);
}
[data-theme="dark"] .ai-nr-headline-chips {
  gap: 8px;
}
[data-theme="dark"] .ai-nr-headline-chip {
  background: var(--bg);
  border-color: #444;
  color: var(--text-secondary);
}
[data-theme="dark"] .ai-nr-headline-chip:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
[data-theme="dark"] .newsroom-badge {
  color: var(--text-secondary);
}
[data-theme="dark"] .related-stories-header {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}
[data-theme="dark"] .related-stories-grid .related-card {
  background: var(--bg-white);
  border-color: #333;
}
[data-theme="dark"] .related-stories-grid .related-card:hover {
  border-color: var(--accent);
}
[data-theme="dark"] .taxonomy-grid .category-card,
[data-theme="dark"] .taxonomy-grid .author-card {
  background: var(--bg-white);
  border-color: #333;
}
[data-theme="dark"] .taxonomy-grid .category-card:hover,
[data-theme="dark"] .taxonomy-grid .author-card:hover {
  border-color: var(--accent);
}
[data-theme="dark"] .taxonomy-grid .category-card-info h3,
[data-theme="dark"] .taxonomy-grid .author-card-info h3 {
  color: var(--text-primary);
}
[data-theme="dark"] .taxonomy-grid .category-card-count,
[data-theme="dark"] .taxonomy-grid .author-card-count {
  color: var(--text-muted);
}
[data-theme="dark"] .tags-cloud {
  background: var(--bg-white);
  border-color: #333;
}
[data-theme="dark"] .cnn-mid-card {
  background: var(--bg-white);
  border-color: #333;
}
[data-theme="dark"] .cnn-mid-card:hover {
  border-color: var(--accent);
}
[data-theme="dark"] .cnn-mid-body h3 {
  color: var(--text-primary);
}
[data-theme="dark"] .ai-newsroom-generate-btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
[data-theme="dark"] .ai-newsroom-generate-btn:hover {
  background: var(--accent-dark);
}
[data-theme="dark"] .ai-newsroom-status.ai-nr-status-warning {
  background: #422006;
  color: #fbbf24;
  border-color: #92400e;
}
[data-theme="dark"] .ai-nr-article-meta {
  color: var(--text-muted);
}
[data-theme="dark"] .ai-nr-article-meta span {
  color: var(--text-muted);
}
[data-theme="dark"] .ai-nr-article-body p,
[data-theme="dark"] .ai-nr-article-body li {
  color: #d0d0d0;
}
[data-theme="dark"] .ai-nr-article-body h2,
[data-theme="dark"] .ai-nr-article-body h3 {
  color: var(--text-primary);
}
[data-theme="dark"] .ai-nr-article-body a {
  color: #e74c3c;
}

/* ================================================================
   Series Info Display (inline badge above article content)
   ================================================================ */
.series-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: rgba(192,57,43,0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.series-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 600;
}
.series-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.series-title:hover {
  text-decoration: underline;
}
.series-part {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
[data-theme="dark"] .series-info {
  background: rgba(192,57,43,0.1);
  border-left-color: var(--accent);
}
[data-theme="dark"] .series-title {
  color: #e74c3c;
}

/* ================================================================
   Inline Audio Player (Browser TTS)
   ================================================================ */
#audio-player-wrap {
  margin-top: 20px;
}
#audio-player-wrap .audio-player-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: static;
  transform: none;
  z-index: auto;
  color: var(--text-primary);
  border-top: 1px solid var(--border);
}
#audio-player-wrap .audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
}
#audio-player-wrap .audio-btn:hover {
  opacity: 0.85;
}
#audio-player-wrap .audio-listen-btn {
  background: var(--accent);
}
#audio-player-wrap .audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
#audio-player-wrap .audio-speed-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 12px;
  padding: 4px 10px;
  min-width: 48px;
  justify-content: center;
}
#audio-player-wrap .audio-status {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}
[data-theme="dark"] #audio-player-wrap .audio-player-bar {
  background: #1a1a1a;
  border-color: #333;
}
[data-theme="dark"] #audio-player-wrap .audio-speed-btn {
  border-color: #444;
  color: #ccc;
}

/* ================================================================
   Trending Topics Chips (additional styles)
   ================================================================ */
.ai-nr-trending-section {
  margin-top: 16px;
}
.ai-nr-trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ai-nr-trending-header span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ai-nr-trending-refresh {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.ai-nr-trending-refresh:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.ai-nr-trending-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-nr-trending-chip {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.ai-nr-trending-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(192,57,43,0.05);
}
.ai-nr-trending-placeholder {
  font-size: 12px;
  color: var(--text-muted);
}
[data-theme="dark"] .ai-nr-trending-chip {
  background: #1a1a1a;
  border-color: #333;
  color: #ccc;
}
[data-theme="dark"] .ai-nr-trending-chip:hover {
  background: rgba(192,57,43,0.15);
}

/* === Audio Player === */
#audio-player-wrap {
  margin: 20px 0;
}
.audio-player-bar {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
}
.audio-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
}
.audio-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.audio-btn svg { flex-shrink: 0; }
.audio-listen-btn {
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.audio-listen-btn:hover {
  background: var(--accent-dark);
}
.audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.audio-speed-btn {
  min-width: 40px;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.audio-status {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}
[data-theme="dark"] .audio-player-bar {
  background: #1a1a1a;
  border-color: #333;
}
[data-theme="dark"] .audio-btn {
  color: #ddd;
  border-color: #444;
}
[data-theme="dark"] .audio-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
[data-theme="dark"] .audio-status {
  color: #888;
}

/* === Author Full Bio === */
.author-full-bio {
  margin: 16px 0 32px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  box-shadow: var(--shadow);
}
.author-full-bio p {
  margin-bottom: 12px;
}
.author-full-bio p:last-child {
  margin-bottom: 0;
}
[data-theme="dark"] .author-full-bio {
  background: #1a1a1a;
  border-color: #333;
  color: #bbb;
}

/* === Static Page Content === */
.static-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.static-page h1 {
  font-size: 32px;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.static-content h2 {
  font-size: 22px;
  margin: 28px 0 12px;
  color: var(--text-primary);
}
.static-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.static-content strong {
  color: var(--text-primary);
}
[data-theme="dark"] .static-page h1,
[data-theme="dark"] .static-content h2 {
  color: #eee;
}
[data-theme="dark"] .static-content p {
  color: #bbb;
}

/* === About Page === */
.about-page { max-width: var(--max-width); margin: 0 auto; }
.about-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}
.about-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.about-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}
.about-grid {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px;
}
.about-main .about-section {
  margin-bottom: 40px;
}
.about-main .about-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.about-main .about-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.about-value-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}
.about-value-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.about-value-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(192, 57, 43, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.about-value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.about-value-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}
.about-coverage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.about-coverage-item {
  padding: 14px 18px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about-coverage-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.about-coverage-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.about-team-section {
  background: var(--bg);
  padding: 50px 20px;
}
.about-team-grid {
  max-width: 1100px;
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.about-team-card {
  background: var(--bg-white);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.about-team-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.about-team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 16px;
}
.about-team-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.about-team-role {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.about-team-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.about-team-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}
.about-team-link:hover { opacity: 0.8; }
@media (max-width: 768px) {
  .about-values-grid { grid-template-columns: 1fr; }
  .about-coverage-list { grid-template-columns: 1fr; }
  .about-hero { padding: 40px 20px; }
  .about-hero h1 { font-size: 1.6rem; }
}
[data-theme="dark"] .about-hero {
  background: linear-gradient(135deg, #0d0d1a 0%, #0e1528 50%, #0a1f3a 100%);
}
[data-theme="dark"] .about-value-card,
[data-theme="dark"] .about-team-card,
[data-theme="dark"] .about-coverage-item {
  background: #1e1e1e;
  border-color: #333;
}
[data-theme="dark"] .about-value-card:hover,
[data-theme="dark"] .about-team-card:hover {
  border-color: var(--accent);
}
[data-theme="dark"] .about-value-icon {
  background: rgba(192, 57, 43, 0.2);
}
[data-theme="dark"] .about-team-section {
  background: #0a0a0a;
}
[data-theme="dark"] .about-main .about-section h2 {
  color: #eee;
}
[data-theme="dark"] .about-main .about-section p {
  color: #b0b0b0;
}

/* === TTS Audio Player === */
#audio-player-wrap {
  margin: 20px 0;
}
.audio-player-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.audio-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.audio-btn svg {
  flex-shrink: 0;
}
.audio-listen-btn {
  background: var(--accent);
}
.audio-listen-btn:hover {
  background: var(--accent-dark);
}
.audio-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.audio-speed-btn {
  min-width: 42px;
  background: var(--bg);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  padding: 6px 8px;
  border-radius: 4px;
}
.audio-speed-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.audio-status {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 500;
}
[data-theme="dark"] .audio-player-bar {
  background: #1e1e1e;
  border-color: #333;
}
[data-theme="dark"] .audio-speed-btn {
  background: #2a2a2a;
  color: #b0b0b0;
  border-color: #444;
}
[data-theme="dark"] .audio-speed-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
[data-theme="dark"] .audio-status {
  color: #777;
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
  .cnn-hero-row {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .cnn-hero-main {
    min-height: 280px;
  }
  .cnn-hero-stack {
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
  .nav-bar { overflow-x: auto; }
  .nav-inner { flex-wrap: nowrap; }
  .nav-inner a { white-space: nowrap; padding: 10px 12px; font-size: 0.78rem; }
  .mobile-toggle { display: block; }
  .posts { grid-template-columns: 1fr; }
  .cnn-mid-row { grid-template-columns: 1fr; }
  .post-content { padding: 20px 16px; }
  .post-header h1 { font-size: 1.4rem; }
  .series-nav-grid { grid-template-columns: 1fr; }
  .related-stories-grid { grid-template-columns: 1fr; }
  .about-hero { padding: 30px 16px; }
  .about-hero h1 { font-size: 1.4rem; }
  .about-values-grid { grid-template-columns: 1fr; }
  .about-coverage-list { grid-template-columns: 1fr; }
  .about-team-grid { grid-template-columns: 1fr; }
  .taxonomy-grid { grid-template-columns: 1fr; }
  .author-header { flex-direction: column; text-align: center; padding: 20px; }
  .post-meta { justify-content: center; }
  .social-share { justify-content: center; }
  .post-tags { justify-content: center; }
  .audio-player-bar { padding: 10px 12px; }
  .audio-btn { padding: 7px 10px; font-size: 0.78rem; }
}
