/* Private Trade News — CNN International-inspired */
*, *::before, *::after { box-sizing: border-box; }

body.theme-cnn {
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: #1a1a1a;
  background: #fff;
}

.theme-cnn a { color: inherit; text-decoration: none; }
.theme-cnn a:hover { text-decoration: underline; }

.cnn-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top utility bar */
.cnn-topbar {
  background: #000;
  color: #ccc;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cnn-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
}
.cnn-topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cnn-topbar-links a { color: #fff; text-decoration: none; }
.cnn-topbar-links a:hover { color: #ff4444; text-decoration: none; }
.cnn-edition { color: #999; text-transform: uppercase; }

/* Brand row */
.cnn-brand {
  border-bottom: 1px solid #e6e6e6;
  padding: 14px 0 10px;
  text-align: center;
}
.cnn-logo {
  margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cnn-logo span { color: #cc0000; }
.cnn-tagline {
  margin: 6px 0 0;
  font-size: 13px;
  color: #666;
}
.cnn-date {
  margin: 0 0 4px;
  font-size: 12px;
  color: #888;
  text-transform: capitalize;
}

/* Section nav */
.cnn-nav {
  border-bottom: 3px solid #cc0000;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.cnn-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cnn-nav ul::-webkit-scrollbar { display: none; }
.cnn-nav li { flex-shrink: 0; }
.cnn-nav a {
  display: block;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #1a1a1a;
  white-space: nowrap;
}
.cnn-nav a:hover {
  color: #cc0000;
  text-decoration: none;
  background: #fafafa;
}

.cnn-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
}

/* Ads */
.cnn-ad-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}
.cnn-leader-ad {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
  font-size: 13px;
}
.cnn-leader-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.cnn-btn {
  display: inline-block;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid #cc0000;
  background: transparent;
  color: #cc0000;
  text-decoration: none !important;
  cursor: pointer;
}
.cnn-btn:hover { background: #cc0000; color: #fff; }
.cnn-btn--red { background: #cc0000; color: #fff; }
.cnn-btn--red:hover { background: #a30000; border-color: #a30000; }
.cnn-btn--outline { border-color: #1a1a1a; color: #1a1a1a; }
.cnn-btn--outline:hover { background: #1a1a1a; color: #fff; }

.cnn-inline-ad, .cnn-banner-ad {
  margin: 20px 0;
  padding: 14px;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  font-size: 14px;
}
.cnn-rail-ad {
  padding: 14px;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  margin-bottom: 16px;
  font-size: 14px;
}
.cnn-rail-ad-name { font-weight: 700; margin-bottom: 6px; }

/* Main layout */
.cnn-main { padding: 20px 0 32px; }

.cnn-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #cc0000;
  margin: 0 0 6px;
}
.cnn-meta {
  font-size: 12px;
  color: #777;
  margin: 8px 0 0;
}

/* CNN vitrazh — asymmetric 1:2:1 top mosaic */
.cnn-vitrazh {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px 22px;
  align-items: start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #d8d8d8;
}
.cnn-vitrazh-col { min-width: 0; }
.cnn-vitrazh-col--center {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cnn-side-story {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #ececec;
}
.cnn-side-story:last-of-type { border-bottom: none; margin-bottom: 0; }
.cnn-side-story--tall .cnn-side-story-img img { aspect-ratio: 4/3; }
.cnn-side-story--feature .cnn-side-story-title { font-size: 16px; }

.cnn-side-story-img {
  display: block;
  overflow: hidden;
  background: #111;
  margin-bottom: 8px;
}
.cnn-side-story-img img {
  width: 100%;
  display: block;
  aspect-ratio: 16/11;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.cnn-side-story-img:hover img { transform: scale(1.03); }
.cnn-side-story-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.32;
  font-weight: 700;
}
.cnn-side-story-title a:hover { color: #cc0000; text-decoration: none; }

/* Compact thumb + headline (fills side gaps) */
.cnn-mini-stack {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #ececec;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cnn-mini-stack--dense { gap: 8px; }
.cnn-mini-stack--inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-top: 14px;
}
.cnn-compact {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  align-items: start;
}
.cnn-compact-thumb {
  display: block;
  overflow: hidden;
  background: #111;
}
.cnn-compact-thumb img {
  width: 68px;
  height: 52px;
  object-fit: cover;
  display: block;
}
.cnn-compact-title {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
}
.cnn-compact-title a:hover { color: #cc0000; text-decoration: none; }
.cnn-compact .cnn-kicker { font-size: 10px; margin-bottom: 2px; }

/* Center hero — headline above image like CNN */
.cnn-lead-title--top {
  margin: 0 0 12px;
  font-size: 1.75rem;
  line-height: 1.12;
  font-weight: 800;
}
.cnn-lead-img--hero {
  position: relative;
  display: block;
  margin-bottom: 10px;
}
.cnn-lead-img--hero img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.cnn-live-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}
.cnn-live-badge strong {
  color: #ff4444;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 6px;
}
.cnn-center-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cnn-tile--center .cnn-tile-title { font-size: 13px; }
.cnn-tile--center .cnn-tile-img img { aspect-ratio: 16/11; }

.cnn-lead-img {
  display: block;
  margin-bottom: 12px;
  overflow: hidden;
  background: #111;
}
.cnn-lead-img img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.cnn-lead-img:hover img { transform: scale(1.03); }
.cnn-lead-title {
  margin: 0 0 10px;
  font-size: 2.1rem;
  line-height: 1.12;
  font-weight: 800;
}
.cnn-lead-title a:hover { color: #cc0000; text-decoration: none; }
.cnn-lead-deck {
  font-size: 16px;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.5;
}

/* Image tiles — core CNN card */
.cnn-tile { margin: 0; }
.cnn-tile-img {
  display: block;
  overflow: hidden;
  background: #1a1a1a;
  margin-bottom: 8px;
}
.cnn-tile-img img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.cnn-tile-img:hover img { transform: scale(1.04); }
.cnn-tile-title {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}
.cnn-tile-title a:hover { color: #cc0000; text-decoration: none; }
.cnn-tile--compact .cnn-tile-img img { aspect-ratio: 16/11; }
.cnn-tile--compact .cnn-tile-title { font-size: 14px; }

.cnn-block-title {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 3px solid #1a1a1a;
  padding-bottom: 8px;
}

/* Horizontal strip — 6 image cards */
.cnn-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.cnn-strip .cnn-tile-title { font-size: 13px; }

/* 4-column mosaic + vitrazh irregular spans */
.cnn-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.cnn-mosaic--vitrazh {
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 12px 14px;
}
.cnn-mosaic--vitrazh .cnn-tile--m0 { grid-column: span 2; }
.cnn-mosaic--vitrazh .cnn-tile--m1 { grid-column: span 2; }
.cnn-mosaic--vitrazh .cnn-tile--m2 { grid-column: span 2; }
.cnn-mosaic--vitrazh .cnn-tile--m3 { grid-column: span 3; }
.cnn-mosaic--vitrazh .cnn-tile--m4 { grid-column: span 3; }
.cnn-mosaic--vitrazh .cnn-tile--m0 .cnn-tile-img img,
.cnn-mosaic--vitrazh .cnn-tile--m3 .cnn-tile-img img { aspect-ratio: 16/10; }
.cnn-mosaic--vitrazh .cnn-tile--m1 .cnn-tile-img img,
.cnn-mosaic--vitrazh .cnn-tile--m4 .cnn-tile-img img { aspect-ratio: 16/12; }
.cnn-mosaic--vitrazh .cnn-tile--m2 .cnn-tile-img img { aspect-ratio: 16/9; }
.cnn-mosaic--dense .cnn-tile-title { font-size: 13px; }

/* Home grid + rail */
.cnn-home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

.cnn-breaking {
  background: #000;
  color: #fff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.cnn-breaking span { color: #cc0000; margin-right: 8px; }

.cnn-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.cnn-card h3 {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}
.cnn-card-img img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

/* Section blocks */
.cnn-section {
  margin-bottom: 32px;
  padding-top: 8px;
  border-top: 4px solid #1a1a1a;
}
.cnn-section-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cnn-section-title a { color: #1a1a1a; }
.cnn-section-title a:hover { color: #cc0000; text-decoration: none; }
.cnn-tile-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.cnn-tile-row--secondary {
  padding-top: 14px;
  border-top: 1px solid #eee;
}
.cnn-section-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #cc0000;
  text-transform: uppercase;
}

/* Story list */
.cnn-story-list { display: flex; flex-direction: column; gap: 18px; }
.cnn-story {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eee;
}
.cnn-story--text { grid-template-columns: 1fr; }
.cnn-story h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  line-height: 1.25;
  font-weight: 700;
}
.cnn-story-thumb img {
  width: 100%;
  height: 94px;
  object-fit: cover;
  display: block;
}

/* Rail */
.cnn-rail-box {
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  padding: 14px;
  margin-bottom: 16px;
}
.cnn-rail-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid #cc0000;
  padding-bottom: 8px;
}
.cnn-most-read { list-style: none; margin: 0; padding: 0; counter-reset: cnn-rank; }
.cnn-most-read li {
  counter-increment: cnn-rank;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  line-height: 1.35;
}
.cnn-most-read li::before {
  content: counter(cnn-rank);
  display: inline-block;
  width: 22px;
  font-weight: 800;
  color: #cc0000;
}
.cnn-most-read a { font-weight: 600; }

/* Article */
.cnn-article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}
.cnn-article-header h1 {
  margin: 0 0 12px;
  font-size: 2.2rem;
  line-height: 1.15;
  font-weight: 800;
}
.cnn-article-hero { margin: 16px 0; }
.cnn-article-hero img { width: 100%; height: auto; display: block; }
.cnn-article-body {
  font-size: 18px;
  line-height: 1.65;
}
.cnn-article-body p { margin: 0 0 1.1rem; }
.cnn-article-body .text-center,
.cnn-article-body p.text-center,
.cnn-article-body figure.text-center {
  text-align: center;
}
.cnn-article-body figure.text-center {
  margin: 1.1rem 0;
}
.cnn-article-body figure.text-center img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.cnn-article-body figure { margin: 1.1rem 0; }
.cnn-article-body figcaption,
.cnn-article-body figcaption.text-center {
  font-size: 14px;
  line-height: 1.45;
  color: #666;
  margin-top: 8px;
  font-style: italic;
  text-align: center;
}
.cnn-article-body table,
.cnn-article-body table.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.1rem 0;
  border: 2px solid #1a1a1a;
}
.cnn-article-body th,
.cnn-article-body td {
  border: 1px solid #1a1a1a;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.cnn-article-body thead th,
.cnn-article-body thead td,
.cnn-article-body th { background: #ececec; font-weight: 700; }
.cnn-source {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  font-size: 14px;
}
.cnn-source a { color: #cc0000; font-weight: 600; }
.cnn-mid-ad {
  margin: 20px 0;
  padding: 14px;
  background: #f8f8f8;
  border-left: 4px solid #cc0000;
  font-size: 14px;
}

.cnn-page-h {
  margin: 0 0 20px;
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.cnn-breadcrumb {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}
.cnn-breadcrumb a { color: #cc0000; }
.cnn-pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  font-size: 14px;
}
.cnn-pagination a { color: #cc0000; font-weight: 700; }

/* Footer */
.cnn-footer {
  background: #1a1a1a;
  color: #bbb;
  padding: 28px 0;
  margin-top: 24px;
  font-size: 13px;
}
.cnn-footer a { color: #fff; }
.cnn-footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
  margin-bottom: 16px;
}
.cnn-footer strong { color: #fff; font-size: 15px; }
.cnn-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.theme-footer-meta { margin: 12px 0 0; font-size: 12px; color: #888; }
.cnn-footer .site-contact-emails { margin-bottom: 10px; }
.cnn-footer .site-contact-email { color: #ddd; font-size: 12px; }

@media (max-width: 1100px) {
  .cnn-strip { grid-template-columns: repeat(3, 1fr); }
  .cnn-mosaic { grid-template-columns: repeat(3, 1fr); }
  .cnn-tile-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .cnn-vitrazh { grid-template-columns: 1fr; }
  .cnn-vitrazh-col--center { order: -1; }
  .cnn-center-mosaic { grid-template-columns: 1fr; }
  .cnn-mini-stack--inline { grid-template-columns: 1fr; }
  .cnn-home-layout,
  .cnn-article-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cnn-menu-btn { display: block; }
  .cnn-nav ul { display: none; flex-direction: column; }
  .cnn-nav ul.is-open { display: flex; }
  .cnn-nav a { padding: 10px 14px; border-bottom: 1px solid #eee; }
  .cnn-logo { font-size: 1.85rem; }
  .cnn-lead-title { font-size: 1.45rem; }
  .cnn-mosaic--vitrazh { grid-template-columns: 1fr 1fr; }
  .cnn-mosaic--vitrazh .cnn-tile--m0,
  .cnn-mosaic--vitrazh .cnn-tile--m1,
  .cnn-mosaic--vitrazh .cnn-tile--m2,
  .cnn-mosaic--vitrazh .cnn-tile--m3,
  .cnn-mosaic--vitrazh .cnn-tile--m4 { grid-column: span 1; }
  .cnn-story { grid-template-columns: 1fr; }
  .cnn-footer-grid { grid-template-columns: 1fr; }
}
