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

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #111;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

body.dark {
  background: #0f0f0f;
  color: #f4f4f4;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font-family: Arial, sans-serif;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Reading progress */
#readingProgress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: #111;
  z-index: 999999;
}

body.dark #readingProgress {
  background: #fff;
}

/* Top strip */
.top-strip {
  border-bottom: 1px solid #e5e5e5;
  font-family: Arial, sans-serif;
  font-size: 13px;
  background: #fff;
}

body.dark .top-strip {
  background: #111;
  border-color: #333;
}

.top-strip-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

#todayDate {
  color: #555;
  white-space: nowrap;
}

body.dark #todayDate {
  color: #bbb;
}

.market-ticker {
  flex: 1;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  white-space: nowrap;
}

.market-ticker a {
  font-weight: 700;
  font-size: 12px;
}

.market-ticker span {
  color: #0a7a35;
  margin-left: 4px;
}

.top-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-search {
  width: 220px;
  border: 1px solid #ccc;
  padding: 8px 10px;
  font-size: 13px;
}

.search-suggestions {
  position: absolute;
  top: 38px;
  left: 0;
  width: 260px;
  background: #fff;
  border: 1px solid #111;
  z-index: 99999;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.search-suggestions a {
  display: block;
  padding: 10px;
  font-size: 13px;
  border-bottom: 1px solid #eee;
}

.search-suggestions a:hover {
  background: #111;
  color: #fff;
}

.theme-toggle {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

body.dark .theme-toggle {
  border-color: #fff;
  background: #fff;
  color: #111;
}

/* Header */
.site-header {
  background: #fff;
  position: relative;
  z-index: 10000;
}

body.dark .site-header {
  background: #0f0f0f;
}

.brand-wrap {
  text-align: center;
  padding: 28px 18px 20px;
  border-bottom: 3px double #111;
}

body.dark .brand-wrap {
  border-color: #444;
}

.site-logo {
  display: inline-block;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}

.site-tagline {
  margin-top: 10px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  color: #555;
  text-transform: uppercase;
}

body.dark .site-tagline {
  color: #aaa;
}

/* Mega nav */
.nav-shell {
  border-bottom: 1px solid #111;
  background: #fff;
  position: relative;
}

body.dark .nav-shell {
  background: #111;
  border-color: #333;
}

#megaNav,
.mega-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 45px;
  overflow-x: auto;
}

.mega-nav-link {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 0;
  white-space: nowrap;
}

.mega-nav-link:hover {
  text-decoration: underline;
}

#megaMenuWrap {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 45px;
  background: #fff;
  border-bottom: 1px solid #111;
  box-shadow: 0 18px 35px rgba(0,0,0,.12);
  z-index: 99999;
  padding: 28px 6%;
}

body.dark #megaMenuWrap {
  background: #151515;
  border-color: #333;
}

#megaMenuWrap.active {
  display: block;
}

.nyt-panel {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(5, 1fr);
  gap: 32px;
}

.nyt-panel-title h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.nyt-panel-title p {
  font-family: Arial, sans-serif;
  color: #555;
  font-size: 14px;
}

body.dark .nyt-panel-title p {
  color: #aaa;
}

.nyt-panel-col h4 {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.nyt-panel-col a {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
}

.nyt-panel-col a:hover {
  text-decoration: underline;
}

#mobileMegaBtn {
  display: none;
}

/* Breaking */
.live-breaking-section,
.breaking-ticker-section {
  background: #fff;
}

body.dark .live-breaking-section,
body.dark .breaking-ticker-section {
  background: #0f0f0f;
}

.live-breaking-bar {
  margin-top: 14px;
  border: 1px solid #111;
  padding: 10px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.live-breaking-bar strong {
  color: #d0021b;
}

.live-breaking-bar a:hover {
  text-decoration: underline;
}

.breaking-ticker-section .container {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid #111;
  border-bottom: 1px solid #111;
  margin-top: 14px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  overflow: hidden;
}

.breaking-ticker {
  flex: 1;
  white-space: nowrap;
  overflow-x: auto;
}

/* Hero */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1fr;
  gap: 20px;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ddd;
}

.hero-card,
.small-card,
.news-card {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding-bottom: 16px;
  transition: .2s ease;
}

body.dark .hero-card,
body.dark .small-card,
body.dark .news-card,
body.dark .dashboard-card,
body.dark aside,
body.dark .newsletter-card,
body.dark .audio-card {
  background: #151515;
  border-color: #333;
}

.hero-card:hover,
.news-card:hover {
  transform: translateY(-2px);
}

.hero-card img {
  width: 100%;
  height: 390px;
  object-fit: cover;
  margin-bottom: 12px;
}

.news-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  margin-bottom: 10px;
  background: #eee;
}

.hero-content span,
.news-category,
.small-card span,
.side-news span {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  border-top: 2px solid #111;
  padding-top: 4px;
  margin-bottom: 8px;
}

body.dark .hero-content span,
body.dark .news-category,
body.dark .small-card span,
body.dark .side-news span {
  border-color: #fff;
}

.hero-content h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.8px;
}

.news-card h3,
.small-card h3 {
  font-size: 22px;
  line-height: 1.12;
  margin-bottom: 8px;
}

.hero-card p,
.news-card p,
.small-card p {
  color: #444;
  font-size: 15px;
}

body.dark .hero-card p,
body.dark .news-card p,
body.dark .small-card p {
  color: #bbb;
}

.side-news a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}

body.dark .side-news a {
  border-color: #333;
}

/* Sections */
.section-block,
.editorial-section {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #111;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-header h2,
.section-block h2,
.editorial-section .section-kicker {
  font-size: 28px;
  line-height: 1.1;
}

.section-header a {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.article-grid,
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

#moreNewsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.dashboard-card,
.analytics-layout > div,
.mini-live-grid > div,
.sidebar-layout aside {
  border: 1px solid #ddd;
  padding: 18px;
  background: #fff;
}

.dashboard-card h2,
.analytics-layout h2,
.mini-live-grid h2,
.sidebar-layout h2 {
  font-size: 22px;
  border-bottom: 2px solid #111;
  padding-bottom: 8px;
  margin-bottom: 14px;
}

.weather-card strong,
.crypto-card strong {
  display: block;
  font-size: 34px;
  margin: 8px 0;
}

.top-trend-box {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
}

/* Sports */
.sports-strip-section {
  margin-top: 30px;
  padding: 24px 0;
  border-top: 1px solid #111;
  border-bottom: 1px solid #ddd;
}

.score-strip,
.live-sports-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #ddd;
  margin-top: 14px;
}

.score-strip div,
.live-sports-strip a {
  background: #fff;
  padding: 12px;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

body.dark .score-strip div,
body.dark .live-sports-strip a {
  background: #151515;
}

.score-strip span,
.live-sports-strip span {
  display: block;
  margin-top: 5px;
}

/* Heat maps */
.mini-live-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.heat-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.heat-cell {
  border: 1px solid #ddd;
  padding: 12px;
  font-family: Arial, sans-serif;
}

.heat-cell strong {
  display: block;
}

.heat-cell span {
  font-size: 22px;
  font-weight: 900;
  color: #0a7a35;
}

.weather-strip a {
  display: block;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}

/* Analytics */
.analytics-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.score-row,
.ai-trend-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 9px 0;
  font-family: Arial, sans-serif;
}

.score-row strong,
.ai-trend-row strong {
  color: #0a7a35;
}

.visitor-card strong {
  display: block;
  font-size: 38px;
  font-family: Arial, sans-serif;
}

/* Video / Audio / Well */
.video-grid,
.well-grid,
.audio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.video-card {
  position: relative;
  border-bottom: 1px solid #ddd;
  padding-bottom: 14px;
}

.video-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.play-btn {
  position: absolute;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,.78);
  color: #fff;
  display: grid;
  place-items: center;
}

.video-card h3,
.audio-card h3 {
  font-size: 19px;
  line-height: 1.15;
  margin-top: 10px;
}

.audio-card {
  border: 1px solid #ddd;
  padding: 18px;
  background: #fff;
}

.audio-card button {
  margin-top: 12px;
  background: #111;
  color: #fff;
  border: none;
  padding: 9px 14px;
  cursor: pointer;
}

/* Sidebar */
.sidebar-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.story-list a,
#recentlyViewed a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.newsletter-card input,
.newsletter-box input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  margin: 10px 0;
}

.newsletter-card button,
.newsletter-box button {
  width: 100%;
  padding: 12px;
  background: #111;
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

/* Latest */
.latest-updates {
  border-top: 1px solid #ddd;
}

.latest-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-family: Arial, sans-serif;
}

.latest-item span {
  color: #777;
  font-size: 12px;
}

.latest-item a {
  font-weight: 700;
}

/* Ads */
.ads-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.ad-box,
[data-ad] {
  height: 250px;
  border: 2px dashed #ccc;
  background: #fafafa;
  display: grid;
  place-items: center;
  color: #777;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  font-size: 12px;
}

body.dark .ad-box,
body.dark [data-ad] {
  background: #151515;
  border-color: #444;
}

/* Newsletter CTA */
.newsletter-section {
  margin-top: 40px;
  padding: 44px 0;
  background: #f7f7f7;
  text-align: center;
}

body.dark .newsletter-section {
  background: #151515;
}

.newsletter-box {
  max-width: 720px;
}

.newsletter-box h2 {
  font-size: 34px;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 2px solid #111;
  padding-top: 30px;
  font-family: Arial, sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 24px;
}

.footer-grid h3 {
  font-family: Georgia, serif;
  font-size: 30px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  font-weight: 700;
  font-size: 13px;
}

.dynamic-footer {
  text-align: center;
  padding: 24px 18px;
}

.footer-logo {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid #ddd;
  text-align: center;
  padding: 16px;
  color: #666;
  font-size: 13px;
}

/* Bookmark */
.bookmark-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
}

/* Scroll top */
#scrollTopBtn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 99999;
}

#scrollTopBtn.show {
  display: block;
}

/* Category */
.category-hero {
  max-width: 1100px;
  margin: 35px auto 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #111;
}

.category-hero .eyebrow {
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  font-weight: 700;
}

.category-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin: 8px 0;
}

.category-feature {
  margin-bottom: 24px;
}

/* Article */
.article-page {
  max-width: 820px;
  margin: 35px auto;
  padding: 0 18px;
}

.article-page h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  margin-bottom: 14px;
}

.article-page .summary {
  font-size: 21px;
  color: #444;
  margin-bottom: 20px;
}

body.dark .article-page .summary {
  color: #bbb;
}

.article-page img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin: 20px 0;
}

.article-meta {
  color: #777;
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin-bottom: 20px;
}

.article-content p {
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* Market page */
.market-dashboard {
  max-width: 1180px;
  margin: 35px auto;
  padding: 0 18px;
}

.market-dashboard h1 {
  font-size: clamp(40px, 6vw, 68px);
  border-bottom: 3px double #111;
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.market-search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.market-search-box input {
  width: 260px;
  padding: 12px;
  border: 1px solid #111;
  font-weight: 700;
}

.market-search-box button {
  background: #111;
  color: #fff;
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
}

.tradingview-box {
  height: 520px;
  border: 1px solid #ddd;
  margin-bottom: 24px;
}

.market-analysis-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.market-analysis-grid div {
  border: 1px solid #ddd;
  padding: 18px;
}

/* Mobile mega */
.mobile-mega-panel {
  max-width: 100%;
}

.mobile-mega-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-mega-head button {
  background: #111;
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  font-size: 20px;
}

.mobile-accordion {
  border-bottom: 1px solid #eee;
}

.mobile-accordion-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 14px 0;
  text-align: left;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.mobile-accordion-body {
  display: none;
  padding-bottom: 12px;
}

.mobile-accordion.open .mobile-accordion-body {
  display: block;
}

.mobile-accordion-body a {
  display: block;
  padding: 8px 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-layout,
  .dashboard-grid,
  .mini-live-grid,
  .analytics-layout,
  .sidebar-layout,
  .footer-grid,
  .market-analysis-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nyt-panel {
    grid-template-columns: 1fr 1fr;
  }

  .article-grid,
  #moreNewsGrid,
  .video-grid,
  .well-grid,
  .audio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .score-strip,
  .live-sports-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-strip-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 18px;
  }

  .top-actions {
    width: 100%;
  }

  .site-search {
    width: 100%;
  }

  #mobileMegaBtn {
    display: block;
    width: 100%;
    padding: 12px 18px;
    background: #111;
    color: #fff;
    border: none;
    font-weight: 700;
    text-align: left;
  }

  #megaNav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 18px;
  }

  #megaNav.mobile-open {
    display: flex;
  }

  #megaMenuWrap {
    position: fixed;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 22px;
  }

  .hero-layout,
  .dashboard-grid,
  .mini-live-grid,
  .analytics-layout,
  .sidebar-layout,
  .footer-grid,
  .article-grid,
  #moreNewsGrid,
  .video-grid,
  .well-grid,
  .audio-grid,
  .ads-layout,
  .market-analysis-grid {
    grid-template-columns: 1fr;
  }

  .hero-card img,
  .news-card img,
  .video-card img {
    height: 240px;
  }

  .site-logo {
    font-size: 42px;
  }

  .latest-item {
    grid-template-columns: 1fr;
  }

  .market-search-box {
    flex-direction: column;
  }

  .market-search-box input {
    width: 100%;
  }

  .tradingview-box {
    height: 420px;
  }
}

::selection {
  background: #111;
  color: #fff;
}
