/* ==========================================================================
   Coin Collector Arcade — long-form article styles
   Loaded on guide pages and the longer policy pages.
   ========================================================================== */

.article { padding-block: var(--s6) var(--s8); }

.article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s7);
  align-items: start;
}

.article__body {
  max-width: 74ch;
  font-size: 1.04rem;
  line-height: 1.75;
}

.article__body > *:first-child { margin-top: 0; }

.article__body h2 {
  margin-top: var(--s7);
  margin-bottom: var(--s4);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.article__body h3 {
  margin-top: var(--s6);
  margin-bottom: var(--s3);
  color: var(--gold);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.article__body p { margin-bottom: var(--s4); }

.article__body ul,
.article__body ol { margin-bottom: var(--s5); }

.article__body li { margin-bottom: var(--s3); }

.article__body blockquote {
  margin: var(--s5) 0;
  padding: var(--s4) var(--s5);
  border-left: 4px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

.article__body blockquote > *:last-child { margin-bottom: 0; }

.article__body img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-block: var(--s5);
}

.article__body figure { margin: var(--s5) 0; }

.article__body figcaption {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: var(--s2);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.article__header { margin-bottom: var(--s6); }

.article__kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s3);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
}

.article__meta a { color: var(--text-muted); font-weight: 600; }

.article__meta-sep { color: var(--border-strong); }

.article__hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: var(--s6);
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.article__sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: var(--s5);
}

.sidebar-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5);
}

.sidebar-block h2,
.sidebar-block h3 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: var(--s3);
  border: 0;
  padding: 0;
}

.sidebar-block ul { list-style: none; margin: 0; padding: 0; }
.sidebar-block li { margin-bottom: 10px; font-size: 0.9rem; }
.sidebar-block li:last-child { margin-bottom: 0; }

.sidebar-block a { color: var(--text-muted); }
.sidebar-block a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   Key takeaways
   -------------------------------------------------------------------------- */

.takeaways {
  background: var(--gold-soft);
  border: 1px solid rgba(255, 197, 49, 0.3);
  border-radius: var(--radius);
  padding: var(--s5);
  margin-block: var(--s6);
}

.takeaways h2 {
  border: 0 !important;
  padding: 0 !important;
  margin-top: 0 !important;
  font-size: 1.1rem;
  color: var(--gold);
}

.takeaways ul { list-style: none; padding: 0; margin: 0; }

.takeaways li {
  position: relative;
  padding-left: 27px;
  margin-bottom: var(--s3);
}

.takeaways li:last-child { margin-bottom: 0; }

.takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
}

/* --------------------------------------------------------------------------
   In-article game promo
   -------------------------------------------------------------------------- */

.article-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius);
  padding: var(--s4) var(--s5);
  margin-block: var(--s6);
}

.article-promo__text { flex: 1; min-width: 200px; }
.article-promo__text strong { display: block; font-size: 1.04rem; }
.article-promo__text span { font-size: 0.89rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   References
   -------------------------------------------------------------------------- */

.references {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.references h2 { font-size: 1.05rem; border: 0; padding: 0; margin-top: 0; }
.references ol { color: var(--text-muted); }
.references li { margin-bottom: var(--s3); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .article__layout { grid-template-columns: 1fr; gap: var(--s6); }
  .article__sidebar { position: static; }
}

@media (max-width: 640px) {
  .article__body { font-size: 1rem; }
  .article-promo { flex-direction: column; align-items: stretch; }
  .article-promo .btn { width: 100%; }
}