/* Trade News UK — MyLondon-inspired local tabloid */
*, *::before, *::after { box-sizing: border-box; }

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

.theme-mylondon a { color: #1a1a1a; text-decoration: none; }
.theme-mylondon a:hover { text-decoration: underline; }

.ml-wrap {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.ml-wrap-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.ml-skip { position: absolute; left: -9999px; }
.ml-skip:focus { left: 8px; top: 8px; z-index: 999; background: #fff; padding: 8px; }

/* Header */
.ml-header { background: #fff; border-bottom: 3px solid #c41230; width: 100%; }
.ml-header-top {
  background: #1a1a1a;
  color: #ccc;
  font-size: 12px;
  width: 100%;
}
.ml-header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.ml-header-top a { color: #fff; text-decoration: none; }
.ml-utility { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.ml-edition { font-weight: 600; color: #fff; white-space: nowrap; margin-left: auto; }
.ml-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  flex-shrink: 0;
}

.ml-masthead { text-align: center; padding: 16px 0 10px; width: 100%; }
.ml-date { font-size: 13px; color: #666; margin: 0 0 6px; text-transform: capitalize; }
.ml-logo-link { text-decoration: none !important; color: inherit; display: inline-block; }
.ml-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
  color: #c41230;
  letter-spacing: -0.02em;
  text-align: center;
}
.ml-tagline { font-size: 13px; color: #555; margin: 6px 0 0; font-style: italic; text-align: center; }

.ml-nav { border-top: 1px solid #e5e5e5; background: #fff; width: 100%; }
.ml-nav-inner { width: 100%; }
.ml-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
}
.ml-nav li { border-right: 1px solid #eee; }
.ml-nav li:last-child { border-right: none; }
.ml-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  text-transform: capitalize;
  text-align: center;
}
.ml-nav a:hover { background: #fafafa; color: #c41230; }

/* Ads */
.ml-promo { background: #1a1a1a; color: #fff; margin: 0; font-size: 13px; width: 100%; }
.ml-promo-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  justify-content: center;
  text-align: center;
}
.ml-ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
  display: block;
  margin-bottom: 4px;
}
.ml-promo .ml-ad-label { color: #aaa; display: inline; margin: 0 8px 0 0; }
.ml-btn {
  background: #c41230;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.ml-btn:hover { background: #a00f28; text-decoration: none !important; }

.ml-card-ad {
  background: #fff;
  border: 1px solid #ccc;
  border-left: 4px solid #c41230;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
}
.ml-inline-ad {
  background: #fff;
  border: 1px solid #ccc;
  border-left: 4px solid #c41230;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 14px 16px;
  margin: 16px auto;
  font-size: 14px;
  max-width: 1200px;
  width: calc(100% - 32px);
  text-align: center;
}
.ml-mid-ad {
  background: #fff;
  border: 1px solid #ccc;
  border-left: 4px solid #c41230;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 16px 18px;
  margin: 1.25rem 0;
  font-size: 14px;
}
.ml-mid-ad p { margin: 6px 0 12px; line-height: 1.45; }
.ml-mid-ad .ml-btn { display: inline-block; margin-top: 4px; }
.ml-card-ad-name { font-weight: 700; font-size: 15px; margin: 4px 0; }
.ml-inline-ad a, .ml-card-ad a { color: #c41230; font-weight: 600; }

.ml-main { padding: 16px 0 32px; }

/* Hero */
.ml-hero-block {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  background: #fff;
  padding: 16px;
  border: 1px solid #e5e5e5;
}
.ml-hero-main { display: flex; flex-direction: column; gap: 12px; }
.ml-hero-img img { width: 100%; height: auto; display: block; }
.ml-hero-text h2 { font-family: Georgia, serif; font-size: 1.65rem; margin: 6px 0; line-height: 1.2; }
.ml-hero-side { display: flex; flex-direction: column; gap: 12px; border-left: 1px solid #eee; padding-left: 16px; }
.ml-hero-side-item { display: flex; gap: 10px; align-items: flex-start; }
.ml-hero-side-item h3 { font-size: .95rem; margin: 4px 0 0; line-height: 1.3; }

.ml-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #c41230;
  letter-spacing: .04em;
}

.ml-thumb { flex-shrink: 0; display: block; overflow: hidden; }
.ml-thumb img { width: 80px; height: 56px; object-fit: cover; display: block; }
.ml-thumb--wide img { width: 100%; height: auto; min-height: 140px; max-height: 220px; }

/* Top grid */
.ml-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.ml-top-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 10px;
}
.ml-top-card h3 { font-size: .92rem; margin: 6px 0 0; line-height: 1.3; }

/* Sections */
.ml-section {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 16px;
  margin-bottom: 20px;
}
.ml-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 2px solid #c41230;
  padding-bottom: 8px;
  margin: 0 0 14px;
}
.ml-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ml-section-feature h3 { font-family: Georgia, serif; font-size: 1.2rem; margin: 8px 0; }
.ml-section-list { display: flex; flex-direction: column; gap: 10px; }
.ml-section-item h4 { font-size: .9rem; margin: 0; font-weight: 600; line-height: 1.35; }
.ml-section-more { font-size: 13px; margin: 12px 0 0; }
.ml-section-more a { color: #c41230; font-weight: 700; }

.ml-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ml-recent-item {
  border-top: 1px solid #eee;
  padding-top: 10px;
}
.ml-recent-item h4 { font-size: .88rem; margin: 4px 0; }
.ml-recent-item time { font-size: 11px; color: #888; }

.ml-trending {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 16px;
  margin-top: 8px;
}
.ml-trending ol { margin: 0; padding-left: 1.25rem; }
.ml-trending li { margin-bottom: 8px; font-size: .92rem; }

/* Category */
.ml-breadcrumb { font-size: 13px; color: #666; margin-bottom: 8px; }
.ml-page-title { font-family: Georgia, serif; font-size: 1.8rem; margin: 0 0 16px; }
.ml-category-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.ml-story-row {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 14px;
  margin-bottom: 12px;
}
.ml-story-row h2 { font-size: 1.1rem; margin: 4px 0; }
.ml-pagination { display: flex; gap: 16px; padding: 16px 0; font-size: 14px; }

/* Article */
.ml-article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.ml-article-header h1 { font-family: Georgia, serif; font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 8px 0; }
.ml-byline { font-size: 14px; color: #555; }
.ml-article-hero img { width: 100%; height: auto; }
.ml-article-body {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.65;
}
.ml-article-body p { margin: 0 0 1rem; }
.ml-source { margin-top: 24px; padding-top: 16px; border-top: 1px solid #ddd; font-size: 14px; }
.ml-source a { color: #c41230; }

/* Footer */
.ml-footer { background: #1a1a1a; color: #ccc; padding: 24px 0; margin-top: 24px; font-size: 13px; }
.ml-footer a { color: #fff; }
.ml-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.ml-footer-links { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.ml-footer-meta { border-top: 1px solid #333; padding-top: 12px; font-size: 12px; color: #888; }

/* Mobile subdomain + narrow screens */
.ml-mobile .ml-header-top,
.theme-mylondon.ml-mobile .ml-header-top { padding: 8px 10px; }
.ml-mobile .ml-utility,
.theme-mylondon.ml-mobile .ml-utility { display: none; }
.ml-mobile .ml-menu-btn,
.theme-mylondon.ml-mobile .ml-menu-btn { display: block; }

@media (max-width: 900px) {
  .ml-menu-btn { display: block; }
  .ml-utility { display: none; }
  .ml-nav ul { display: none; flex-direction: column; justify-content: flex-start; }
  .ml-nav ul.is-open { display: flex; }
  .ml-nav li { border-right: none; border-bottom: 1px solid #eee; width: 100%; }
  .ml-nav a { text-align: left; }
  .ml-hero-block { grid-template-columns: 1fr; }
  .ml-hero-side { border-left: none; padding-left: 0; border-top: 1px solid #eee; padding-top: 12px; }
  .ml-top-grid { grid-template-columns: repeat(2, 1fr); }
  .ml-section-grid { grid-template-columns: 1fr; }
  .ml-recent-grid { grid-template-columns: 1fr; }
  .ml-category-layout, .ml-article-layout { grid-template-columns: 1fr; }
  .ml-footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .ml-top-grid { grid-template-columns: 1fr; }
  .ml-logo { font-size: 1.75rem; }
}

/* Cookie banner (trade-news.uk / m.trade-news.uk) */
#cookie-consent.cookie-consent--mylondon {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 2147483646 !important;
  box-sizing: border-box !important;
  background: #1a1a1a !important;
  color: #e8e8e8 !important;
  border-top: 3px solid #c41230 !important;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5) !important;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0)) !important;
  margin: 0 !important;
}

#cookie-consent.cookie-consent--mylondon .cookie-consent__text {
  color: #e8e8e8 !important;
  margin: 0 0 10px !important;
}

#cookie-consent.cookie-consent--mylondon .cookie-consent__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 10px !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

#cookie-consent.cookie-consent--mylondon .cookie-consent__accept {
  background: #c41230 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  cursor: pointer !important;
}
