/* ============================================================
   MARKET BLOGS & FIELD REPORTS STYLES
   ============================================================ */

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --card-soft: #f1f5f9;
  --line: #e2e8f0;
  --text: #0f172a;
  --heading: #0f172a;
  --prose: #334155;
  --muted: #64748b;
  --orange: #ea580c;
  --blue: #2563eb;
  --reader-bg: #ffffff;
  --topbar-bg: rgba(255, 255, 255, 0.94);
  --chart-wrap-bg: #f8fafc;
  --callout-bg: #fff7ed;
  --callout-border: #fed7aa;
  --callout-text: #9a3412;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --avatar-bg: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(920px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0 60px;
}

.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  max-height: 60px;
  background: transparent;
  transition: opacity 0.2s ease;
}

.brand-link:hover {
  opacity: 0.88;
}

.brand-logo-img {
  height: 58px;
  max-height: 60px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

.topline h1,
.topline h2 {
  margin: 0;
  font-family: Outfit, Inter, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.topline .meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Marine Fuel Prices Section (Singapore, Rotterdam, Fujairah)
   ------------------------------------------------------------ */
.marine-prices-section {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.topline .meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.port-section {
  margin-top: 18px;
}

.port-section:first-of-type {
  margin-top: 0;
}

.port-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
}

.commodity-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.commodity-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 138, 31, 0.4);
}

.card-head {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.commodity-card .name {
  margin: 0;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--heading);
  overflow-wrap: anywhere;
}

.commodity-card .sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.badge {
  background: rgba(126, 167, 232, 0.14);
  color: var(--blue);
  border: 1px solid rgba(126, 167, 232, 0.22);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-block {
  margin: 14px 0 12px;
  text-align: center;
}

.price-block .label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-block .price {
  margin-top: 4px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--heading);
  white-space: nowrap;
}

.price-block .unit {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.stat {
  min-width: 0;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.1;
}

.stat strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------
   News Card Horizontal Layout (Editorial Style)
   ------------------------------------------------------------ */
.blog-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--card-shadow);
}

.news-card:hover {
  background: var(--card-soft);
  border-color: rgba(234, 88, 12, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.news-card-thumb-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 120px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-thumb {
  transform: scale(1.04);
}

.news-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--card-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 24px;
}

.news-card-thumb-placeholder span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.news-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card-title {
  margin: 0 0 6px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--heading);
  transition: color 0.2s;
}

.news-card:hover .news-card-title {
  color: var(--orange);
}

.news-card-excerpt {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.news-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-avatar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  background: var(--avatar-bg);
}

.news-card-time {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Full-Screen Blog Reader Overlay
   ------------------------------------------------------------ */
.blog-reader-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--reader-bg);
  z-index: 99999;
  overflow-y: auto;
  display: none;
  scroll-behavior: smooth;
}

.blog-reader-screen.open {
  display: block;
  animation: readerFadeIn 0.25s ease-out;
}

@keyframes readerFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reader-top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.reader-top-bar-inner {
  width: min(860px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-back:hover {
  background: var(--orange);
  color: #ffffff;
  border-color: var(--orange);
  transform: translateX(-2px);
}

.reader-breadcrumb {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.reader-container {
  width: min(820px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.reader-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 24px;
}

.reader-tag {
  display: inline-block;
  background: rgba(126, 167, 232, 0.15);
  color: var(--blue);
  border: 1px solid rgba(126, 167, 232, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.reader-title {
  margin: 0 0 16px;
  font-family: Outfit, Inter, sans-serif;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--heading);
}

.reader-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

/* Key Stats Strip */
.market-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 24px 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
}

.m-stat {
  border-left: 3px solid var(--orange);
  padding-left: 10px;
}

.m-stat .m-lbl {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.m-stat .m-val {
  font-size: 17px;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 800;
  color: var(--heading);
  margin-top: 2px;
}

.m-stat .m-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 1px;
}

/* Prose & Typography */
.reader-body {
  color: var(--prose);
  font-size: 16px;
  line-height: 1.8;
}

.reader-body p {
  margin: 0 0 18px;
}

.reader-body p.lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--heading);
  font-weight: 500;
}

/* Chart Image Figure */
.article-chart-wrapper {
  margin: 28px 0;
  background: var(--chart-wrap-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.article-chart-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  background: #ffffff;
}

.chart-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
}

.reader-body h3 {
  font-family: Outfit, Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--heading);
  margin: 32px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.reader-body h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--orange);
  border-radius: 2px;
}

.reader-body ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.reader-body li {
  margin-bottom: 8px;
}

.article-callout {
  background: var(--callout-bg);
  border: 1px solid var(--callout-border);
  border-left: 4px solid var(--orange);
  padding: 16px 18px;
  border-radius: 8px;
  margin: 24px 0;
  color: var(--callout-text);
  font-size: 15px;
  line-height: 1.65;
}

.sources-box {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.sources-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}

.sources-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sources-list li {
  font-size: 13px;
  color: var(--muted);
}

.sources-list a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(126, 167, 232, 0.4);
  transition: all 0.2s;
}

.sources-list a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.reader-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 640px) {
  .blog-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-card {
    flex-direction: column;
    align-items: stretch;
  }

  .news-card-thumb-wrap {
    width: 100%;
    height: 160px;
  }

  .reader-title {
    font-size: 21px;
  }
}
