/* ==========================================================================
   Zombie Games Hub — Editorial / article styles
   Loaded on guides, category copy pages and long-form policy pages.
   ========================================================================== */

.article-head {
  padding-block: var(--s-5) var(--s-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-6);
}
.article-head h1 { margin-bottom: var(--s-3); max-width: 24ch; }
.article-head .lede { margin-bottom: var(--s-4); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  font-size: .85rem;
  color: var(--text-dim);
}
.article-meta .dot { color: var(--line-strong); }
.article-meta a { color: var(--text-muted); font-weight: 600; }
.article-meta time { font-variant-numeric: tabular-nums; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: var(--s-7);
  align-items: start;
  padding-bottom: var(--s-7);
}
/* Without this a wide table inside the article forces the column — and so the
   page — past the viewport, because grid items default to min-width:auto. */
.article-layout > * { min-width: 0; }
.article-body { min-width: 0; }
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; gap: var(--s-5); }
}

.article-aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: var(--s-4); }
@media (max-width: 1024px) { .article-aside { position: static; } }
.article-aside h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green); margin-bottom: var(--s-3); }

/* ---- Body typography ----------------------------------------------------- */
.article-body { max-width: 72ch; font-size: 1.03rem; }
.article-body > h2 {
  margin-top: var(--s-7);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.article-body > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.article-body > h3 { margin-top: var(--s-5); scroll-margin-top: calc(var(--header-h) + 20px); }
.article-body p { margin-bottom: var(--s-4); }
.article-body ul, .article-body ol { margin-bottom: var(--s-4); }
.article-body li { margin-bottom: 9px; }
.article-body li > strong:first-child { color: var(--text); }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }

.article-body blockquote {
  margin: var(--s-5) 0;
  padding: var(--s-4) var(--s-5);
  border-left: 3px solid var(--green);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.05rem;
  color: var(--text);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

/* ---- Table of contents --------------------------------------------------- */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin-bottom: 4px; }
.toc a {
  display: block;
  padding: 6px 10px 6px 30px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.4;
  position: relative;
  text-decoration: none;
}
.toc a::before {
  counter-increment: toc;
  content: counter(toc);
  position: absolute;
  left: 8px;
  top: 6px;
  color: var(--text-dim);
  font-size: .74rem;
  font-weight: 700;
}
.toc a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.toc a.is-current { color: var(--green); background: rgba(126, 211, 33, .1); }

/* Inline TOC shown at the top of the article on narrow screens only — above
   1024px the sticky sidebar TOC is visible and this would duplicate it. */
.toc--inline { margin-bottom: var(--s-6); }
@media (min-width: 1025px) {
  .toc--inline { display: none; }
}
.toc--inline > summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 4px 0;
  color: var(--text);
}

/* ---- Key takeaways ------------------------------------------------------- */
.takeaways {
  background: linear-gradient(160deg, rgba(126, 211, 33, .08), transparent 65%), var(--surface);
  border: 1px solid var(--green-deep);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin: var(--s-6) 0;
}
.takeaways h2 { margin-top: 0 !important; border-top: 0 !important; padding-top: 0 !important; font-size: 1.15rem; }
.takeaways ul { list-style: none; padding: 0; margin: 0; }
.takeaways li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.takeaways li::before {
  content: "";
  position: absolute;
  left: 4px; top: .55em;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--green);
  transform: rotate(45deg);
}
.takeaways li:last-child { margin-bottom: 0; }

/* ---- Author box ---------------------------------------------------------- */
.author-box {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin: var(--s-6) 0;
}
.author-box img, .author-box .avatar {
  width: 68px; height: 68px;
  flex: 0 0 68px;
  border-radius: 50%;
  border: 2px solid var(--green-deep);
  background: var(--surface-2);
}
.author-box h2, .author-box h3 { margin: 0 0 4px; font-size: 1.05rem; border-top: 0 !important; padding-top: 0 !important; }
.author-box .role { font-size: .82rem; color: var(--green); font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.author-box p { font-size: .9rem; color: var(--text-muted); margin-bottom: 8px; }
.author-box .dates { font-size: .8rem; color: var(--text-dim); }
@media (max-width: 480px) {
  .author-box { flex-direction: column; }
}

/* ---- Inline game promos inside articles ---------------------------------- */
.game-inline {
  display: flex;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-4);
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(110deg, rgba(126, 211, 33, .07), transparent 60%), var(--surface);
  margin: var(--s-5) 0;
}
.game-inline img { width: 132px; flex: 0 0 132px; border-radius: var(--r-md); }
.game-inline h3 { margin: 0 0 4px; font-size: 1.05rem; }
.game-inline p { margin: 0 0 10px; font-size: .88rem; color: var(--text-muted); }
@media (max-width: 560px) {
  .game-inline { flex-direction: column; align-items: stretch; }
  .game-inline img { width: 100%; flex-basis: auto; }
}

/* ---- Article cards ------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
  position: relative;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.post-card:hover { transform: translateY(-3px); border-color: var(--green-deep); }
.post-card__kicker {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 8px;
}
.post-card h3 { font-size: 1.06rem; margin: 0 0 8px; line-height: 1.3; }
.post-card h3 a { color: var(--text); }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h3 a:hover { color: var(--green-soft); text-decoration: none; }
.post-card p { font-size: .88rem; color: var(--text-muted); margin: 0 0 12px; flex: 1; }
.post-card__meta { font-size: .78rem; color: var(--text-dim); display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Prev/next & related ------------------------------------------------- */
.related-block { border-top: 1px solid var(--line); padding-top: var(--s-5); margin-top: var(--s-6); }

/* ---- Reference list ------------------------------------------------------ */
.references { font-size: .88rem; color: var(--text-muted); }
.references ol { padding-left: 1.2em; }
.references li { margin-bottom: 8px; }
