/* Trade Hub UK — late-2000s portal, 4:3 CRT proportions (800×600 / 1024×768 era) */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: #4a4a4a;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.45;
  color: #222;
  background: #b8b8b8;
}

a { color: #0044aa; text-decoration: underline; }
a:hover { color: #cc0000; }

.hub-wrap {
  width: 768px;
  max-width: 100%;
  min-height: 576px;
  margin: 8px auto 12px;
  background: #fff;
  border: 3px solid #666;
  border-top-color: #ccc;
  border-left-color: #ccc;
  box-shadow:
    inset 0 0 0 1px #fff,
    4px 4px 0 #333,
    0 0 0 8px #2a2a2a;
}

.hub-topbar {
  background: #1a1a1a;
  color: #aaa;
  font-size: 10px;
  padding: 3px 10px;
  border-bottom: 2px groove #444;
  font-family: Verdana, sans-serif;
}
.hub-topbar a { color: #ffcc33; text-decoration: none; margin-right: 10px; }

.hub-header {
  padding: 8px 10px 5px;
  background: linear-gradient(180deg, #f8f8f8 0%, #d8d8d8 55%, #e8e8e8 100%);
  border-bottom: 1px solid #999;
}
.hub-logo-block { display: flex; align-items: center; gap: 10px; }
.hub-logo-link {
  text-decoration: none !important;
  color: inherit;
  cursor: pointer;
}
.hub-logo-link:hover .hub-logo { color: #001a66; }
.hub-logo-img { width: 40px; height: 40px; filter: drop-shadow(2px 2px 1px #666); }
.hub-logo {
  font-family: "Arial Black", Impact, Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #003399;
  text-decoration: none !important;
  letter-spacing: -1px;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 #aaa;
  transform: rotate(-0.6deg);
  display: inline-block;
}
.hub-logo .hub-uk {
  display: inline-block;
  font-size: 14px;
  vertical-align: super;
  color: #fff;
  background: linear-gradient(#ee3333, #990000);
  padding: 1px 5px 2px;
  border: 1px solid #660000;
  margin-left: 4px;
  transform: rotate(2deg);
}
.hub-tagline {
  font-size: 11px;
  color: #555;
  font-family: Georgia, serif;
  font-style: italic;
  margin: 3px 0 0 2px;
}

.hub-nav {
  background: #2b4d7a;
  border-top: 2px solid #5a8fd4;
  border-bottom: 4px solid #cc0000;
}
.hub-nav ul { list-style: none; margin: 0; padding: 0 4px; display: flex; flex-wrap: wrap; }
.hub-nav li { border-right: 1px solid #1a3050; }
.hub-nav li:nth-child(odd) a { background: linear-gradient(#3d6aa8, #2b4d7a); }
.hub-nav li:nth-child(even) a { background: linear-gradient(#356099, #243f66); }
.hub-nav a {
  display: block;
  padding: 6px 7px 5px;
  color: #fff !important;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none !important;
  font-family: Verdana, sans-serif;
}

.hub-ad-leader {
  margin: 8px 10px;
  padding: 8px;
  border: 3px double #999;
  background: #ffffcc;
  text-align: center;
  font-size: 11px;
}
.hub-ad-cta {
  display: inline-block;
  margin-top: 5px;
  padding: 4px 14px;
  background: linear-gradient(#ffaa33, #cc6600);
  color: #000 !important;
  font-weight: bold;
  border: 2px outset #ffcc66;
  text-decoration: none !important;
}

.hub-main { padding: 8px 10px 12px; }

/* —— Homepage mosaic — 4:3 column ratio (~560 + 180 = 740 inside 768) —— */
.hub-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  grid-template-areas:
    "lead rail"
    "colA rail"
    "colB colB";
  gap: 6px 10px;
  align-items: start;
}
.hub-mosaic-lead { grid-area: lead; min-width: 0; }
.hub-mosaic-rail {
  grid-area: rail;
  padding-left: 8px;
  border-left: 3px solid #cc0000;
}
.hub-mosaic-col-a { grid-area: colA; min-width: 0; }
.hub-mosaic-col-b {
  grid-area: colB;
  padding-top: 4px;
  border-top: 1px solid #ccc;
  column-count: 1;
  column-gap: 12px;
}
.hub-news-item--lead-extra {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dotted #bbb;
}
.hub-mosaic-col-b .hub-section-h { column-span: all; }
.hub-mosaic-col-b .hub-sidebox { column-span: all; }
.hub-section-h--sm { font-size: 13px; margin-top: 4px; }

@media (max-width: 800px) {
  .hub-wrap {
    width: auto;
    margin: 4px;
    box-shadow: 2px 2px 0 #333;
  }
  .hub-mosaic {
    grid-template-columns: 1fr;
    grid-template-areas: "lead" "rail" "colA" "colB";
  }
  .hub-mosaic-rail { border-left: none; position: static; }
}

.hub-section-h {
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 15px;
  color: #003366;
  text-transform: uppercase;
  border-bottom: 3px solid #cc0000;
  padding-bottom: 3px;
  margin: 0 0 8px;
}

.hub-lead {
  border: 2px solid #999;
  background: #f7f7f2;
  margin-bottom: 4px;
}
.hub-lead-img {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
  border-bottom: 1px solid #999;
}
.hub-lead-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hub-lead-body { padding: 8px 10px; }
.hub-cat {
  display: inline-block;
  background: #cc0000;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 2px 5px;
  text-transform: uppercase;
}
.hub-lead h1 {
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.2;
  margin: 5px 0;
}
.hub-lead h1 a { color: #111; text-decoration: none; }

.hub-news-item {
  border-bottom: 1px dashed #bbb;
  padding: 8px 0;
}
.hub-news-item--compact h3 { font-size: 13px; }
.hub-news-item h3 {
  font-family: Georgia, serif;
  font-size: 14px;
  margin: 3px 0;
  line-height: 1.25;
}
.hub-meta { font-size: 10px; color: #888; font-family: Verdana, sans-serif; }
.hub-cat-sm { color: #003399; font-weight: bold; text-transform: uppercase; font-size: 9px; }

.hub-sidebox {
  border: 2px groove #ccc;
  margin-bottom: 10px;
  background: #fafafa;
}
.hub-sidebox-h {
  background: linear-gradient(#4a6fa5, #2b4d7a);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 5px 8px;
  font-family: Verdana, sans-serif;
}
.hub-sidebox-body { padding: 8px; font-size: 11px; }
.hub-sidebox ol { margin: 0; padding-left: 16px; }
.hub-sidebox li { margin-bottom: 5px; }

.hub-partner {
  border: 2px solid #003366;
  background: #fff;
  padding: 8px;
  margin-bottom: 10px;
  text-align: center;
}
.hub-partner-badge {
  display: inline-block;
  background: #ffcc00;
  font-size: 8px;
  font-weight: bold;
  padding: 1px 4px;
  text-transform: uppercase;
}
.hub-partner-name { font-family: Georgia, serif; font-size: 15px; color: #003366; font-weight: bold; }

/* —— Article page —— */
.hub-article-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}
.hub-article-main {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 100%;
}
.hub-article-side {
  flex: 0 0 168px;
  width: 168px;
  max-width: 100%;
}

.hub-article-full {
  border: 2px solid #999;
  padding: 14px 16px;
  background: #fff;
  word-wrap: break-word;
}
.hub-article-full h1 {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  color: #111;
}
.hub-byline { font-size: 10px; color: #888; font-style: italic; }

.hub-article-hero {
  margin: 12px 0;
  text-align: center;
  max-width: 100%;
  overflow: visible;
}
.hub-article-hero img {
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border: 1px solid #999;
  display: block;
  margin: 0 auto;
}

.hub-article-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.hub-article-body p { margin: 0 0 12px; }
.hub-article-body img,
.hub-article-body figure img,
.hub-article-body table {
  max-width: 100% !important;
  height: auto !important;
}
.hub-article-body figure { max-width: 100%; margin: 12px 0; }
.hub-article-body iframe { max-width: 100%; }

.hub-mid-ad {
  border: 3px double #cc0000;
  background: #fff8e8;
  padding: 10px;
  margin: 14px 0;
  text-align: center;
  clear: both;
}

/* Category list — simple two col */
.hub-home-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hub-home-main { flex: 1 1 360px; min-width: 0; }
.hub-home-side { flex: 0 0 168px; max-width: 172px; }
.hub-sidebar-sticky { position: static; }
.hub-sidebar-ad-stack > * { margin-bottom: 6px; }
.hub-sidebar-ad-stack .hub-ad-sky { min-height: 180px; }
.hub-sidebar-ad-stack .hub-partner { min-height: 88px; }

.hub-breadcrumb { font-size: 10px; color: #888; margin-bottom: 10px; }
.hub-pagination { margin-top: 14px; text-align: center; }

.hub-footer {
  background: #222;
  color: #999;
  font-size: 10px;
  padding: 12px 14px;
  border-top: 4px solid #cc0000;
}
.hub-footer a { color: #ffcc33; text-decoration: none; }
.hub-footer-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.hub-footer-copy { text-align: center; border-top: 1px solid #444; padding-top: 8px; font-size: 9px; }

.empty-state { padding: 20px; text-align: center; color: #888; }

/* —— Marquee / neon ticker —— */
.hub-marquee-wrap {
  background: #0a0a0a;
  border-top: 2px solid #ff00ff;
  border-bottom: 2px solid #00ffff;
  overflow: hidden;
  padding: 5px 0;
  position: relative;
}
.hub-marquee-wrap::before,
.hub-marquee-wrap::after {
  content: "AD";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  font-weight: bold;
  color: #ff0;
  background: #c00;
  padding: 1px 4px;
  z-index: 2;
  animation: hub-blink 0.8s step-end infinite;
}
.hub-marquee-wrap::before { left: 4px; }
.hub-marquee-wrap::after { right: 4px; }
.hub-marquee-track { overflow: hidden; width: 100%; }
.hub-marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: hub-marquee 35s linear infinite;
  padding-left: 100%;
}
.hub-marquee-inner span { margin-right: 48px; }
.hub-neon {
  color: #ffff00;
  font-family: Verdana, Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  text-shadow: 0 0 4px #ff0, 0 0 8px #ff6600;
}
.hub-neon--cyan { color: #0ff; text-shadow: 0 0 4px #0ff, 0 0 10px #00f; }
.hub-neon--pink { color: #f0f; text-shadow: 0 0 4px #f0f, 0 0 10px #f00; }
.hub-neon--green { color: #0f0; text-shadow: 0 0 4px #0f0, 0 0 8px #060; }

@keyframes hub-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@keyframes hub-blink {
  50% { opacity: 0.2; }
}

/* —— More ads everywhere —— */
.hub-ad-tag {
  display: inline-block;
  font-size: 8px;
  font-weight: bold;
  color: #fff;
  background: #900;
  padding: 1px 4px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hub-ad-tag--blink { animation: hub-blink 1s step-end infinite; }

.hub-ad-banner {
  margin: 8px 0;
  padding: 8px 10px;
  border: 2px dashed #999;
  background: #fffde8;
  font-size: 11px;
  text-align: center;
}
.hub-ad-banner--neon {
  border: 2px solid #ff00ff;
  background: linear-gradient(90deg, #1a0033, #001a33, #1a0033);
  color: #fff;
  box-shadow: 0 0 8px #f0f inset;
}
.hub-ad-banner--neon strong { color: #ff0; }
.hub-ad-banner--neon .hub-ad-cta { border-color: #0ff; }
.hub-ad-banner--footer {
  margin: 10px 12px;
  border: 3px double #c00;
  background: #ffe;
}
.hub-ad-banner--inline {
  margin: 10px 0;
  background: linear-gradient(#fff8e0, #ffe8c0);
  border-color: #c90;
}
.hub-ad-banner--sky {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e8f4ff;
  border: 2px solid #039;
}

.hub-ad-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 10px;
  padding: 6px;
  background: #eee;
  border: 1px solid #bbb;
}
.hub-ad-tile {
  flex: 1 1 120px;
  min-height: 52px;
  padding: 6px 8px;
  background: linear-gradient(#fff, #ddd);
  border: 2px outset #ccc;
  text-align: center;
  text-decoration: none !important;
  color: #003366 !important;
  font-size: 10px;
}
.hub-ad-tile strong { display: block; font-size: 12px; color: #c00; }
.hub-ad-tile small { color: #666; font-size: 9px; }
.hub-ad-tile:hover { border-style: inset; background: #ffc; }

.hub-ad-sky {
  margin-bottom: 8px;
  border: 2px solid #003366;
  background: #f0f8ff;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  box-shadow: inset 0 0 12px rgba(0,51,102,.15);
}
.hub-ad-sky-inner { font-size: 11px; }
.hub-ad-cta--sm { font-size: 10px; padding: 3px 10px; }

.hub-mid-ad {
  border: 3px double #ff00ff;
  background: linear-gradient(135deg, #fff0ff, #f0ffff);
  padding: 10px;
  margin: 10px 0 14px;
  text-align: center;
  font-size: 11px;
  box-shadow: 0 0 6px rgba(255,0,255,.3);
}
