/* ========== Article page ========== */
.article-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  padding: 32px 0 64px;
}
.article-body { min-width: 0; }
.back-link {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg-soft);
  margin-bottom: 14px;
  font-family: 'Inconsolata', monospace;
}
.back-link:hover { color: var(--primary); }
.article-cat {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  margin: 0 0 14px;
}
.article-title {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 18px;
}
.article-dek {
  font-size: 17px;
  color: var(--fg-soft);
  margin: 0 0 14px;
  line-height: 1.55;
  max-width: 64ch;
  font-family: 'Inconsolata', monospace;
}
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.article-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--fg-mute);
  font-family: 'Inconsolata', monospace;
  flex-wrap: wrap;
}
.share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-mute);
  font-family: 'Inconsolata', monospace;
  text-transform: uppercase;
}
.share-row .icon-btn { width: 28px; height: 28px; }
.share-row .icon-btn svg { width: 14px; height: 14px; }

.article-hero {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg-soft);
  margin-bottom: 8px;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-caption {
  font-size: 11px;
  color: var(--fg-mute);
  font-family: 'Inconsolata', monospace;
  margin: 0 0 24px;
  padding-top: 4px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.article-prose {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--fg);
  font-family: 'Inconsolata', monospace;
  text-align: justify;
}
.article-prose p { margin: 0 0 18px; }
.article-mid-ad {
  margin: 32px 0;
  padding: 0;
  clear: both;
}
.article-mid-ad .ad-banner.tall {
  border-radius: 8px;
}
.article-prose h2 {
  font-family: 'Geologica', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 32px 0 14px;
  line-height: 1.2;
  text-align: left;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.article-share-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  flex-wrap: wrap;
}
/* Article sidebar ad — fixed compact size, 2x the natural height */
.article-sidebar .ad-banner.side {
  height: auto;
  min-height: 260px;
  align-self: flex-start;
  width: 100%;
  justify-content: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  font-family: 'Inconsolata', monospace;
  font-stretch: semi-expanded;
  font-weight: 500;
  transition: background 0.15s ease;
}
.share-btn:hover { background: var(--primary-strong); }
.share-btn.ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  border-radius: 999px;
}
.share-btn.ghost:hover { background: var(--bg-soft); }
.share-btn svg { width: 13px; height: 13px; }
