/* ============================================================
   DOUBLE O DIGITAL — Article Shared Stylesheet
   Include this on every blog article page:
   <link rel="stylesheet" href="css/article.css" />
   ============================================================ */

.article-hero {
  padding: calc(var(--nav-h) + 50px) 0 0;
  background: var(--charcoal-2);
  border-bottom: 1px solid var(--border);
}

.article-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.article-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(58,181,74,0.25);
  padding: 4px 12px;
  border-radius: 20px;
}

.article-date { font-size: 13px; color: var(--muted); }

.article-read-time {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 760px;
}

.article-hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 2rem;
}

.article-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block;
}

/* ── Layout ── */
.article-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3.5rem;
  align-items: start;
}

/* ── MOBILE LAYOUT — sidebar always below content ── */
@media (max-width: 900px) {
  .article-body {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .article-sidebar {
    order: 2 !important;
    position: static !important;
    top: auto !important;
  }
}

/* ── Article content ── */
.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.article-content h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.article-content p {
  font-size: 15px;
  color: var(--light);
  line-height: 1.85;
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.article-content strong { color: var(--white); font-weight: 500; }

.article-content ul {
  margin: 0.75rem 0 1.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-content ul li {
  font-size: 15px;
  color: var(--light);
  line-height: 1.6;
  font-weight: 300;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.article-content ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── Callout / stat box ── */
.stat-callout {
  background: var(--charcoal-3);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.stat-callout .stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-callout p {
  margin-bottom: 0 !important;
  font-size: 14px !important;
  color: var(--muted) !important;
}

/* ── Article image ── */
.article-img-wrap {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article-img-wrap img { width: 100%; display: block; }

.article-img-caption {
  font-size: 12px;
  color: var(--mid);
  padding: 8px 14px;
  background: var(--charcoal-3);
  text-align: center;
  font-style: italic;
}

/* ── Highlight / fix box ── */
.fix-box {
  background: var(--charcoal-3);
  border: 1px solid rgba(58,181,74,0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
}

.fix-box h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

/* ── Revenue table ── */
.revenue-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 14px;
}

.revenue-table th {
  background: var(--charcoal-4);
  color: var(--green);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.revenue-table td {
  padding: 10px 14px;
  color: var(--light);
  border-bottom: 1px solid var(--border);
}

.revenue-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

.revenue-table tr.total td {
  color: var(--green);
  font-weight: 500;
  background: rgba(58,181,74,0.06);
}

/* ── Sources ── */
.article-sources {
  margin: 2.5rem 0 2rem;
  padding: 1.5rem 1.75rem;
  background: var(--charcoal-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.article-sources h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.article-sources ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}

.article-sources ol li { font-size: 13px; color: var(--muted); line-height: 1.5; }
.article-sources ol li a { color: var(--green); text-decoration: none; font-weight: 500; }
.article-sources ol li a:hover { opacity: 0.75; text-decoration: underline; }

/* ── CTA band at bottom of article ── */
.article-cta {
  background: var(--charcoal-3);
  border: 1px solid var(--border);
  border-top: 3px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.article-cta h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.article-cta p { color: var(--muted); font-size: 14px; margin-bottom: 1.5rem !important; }

/* ── Sidebar ── */
.article-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}

.sidebar-card {
  background: var(--charcoal-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.sidebar-card h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-card p { font-size: 13px; color: var(--light); line-height: 1.6; margin-bottom: 1rem; }

.sidebar-stat {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.sidebar-stat:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-stat .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--green); line-height: 1; }
.sidebar-stat .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }

.related-post {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s;
}

.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post:hover .related-title { color: var(--green); }
.related-cat { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.related-title { font-size: 13px; font-weight: 500; color: var(--white); line-height: 1.4; }

/* ── Back link ── */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.5rem;
  transition: color 0.2s;
  text-decoration: none;
}

.article-back:hover { color: var(--green); }

/* ── Author strip ── */
.author-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1.5px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

.author-name { font-size: 14px; font-weight: 500; color: var(--white); }
.author-role { font-size: 12px; color: var(--muted); }
