:root {
  --green: #00ff88;
  --bg: #070a0e;
  --card: #0f1621;
  --card-strong: #101925;
  --border: rgba(0, 255, 136, 0.14);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e1e9f2;
  --text-dim: #8194ad;
  --shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

body.blog-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(0, 255, 136, 0.05), transparent 24%),
    linear-gradient(180deg, #070a0e 0%, #09111a 42%, #070a0e 100%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  background: rgba(7, 10, 14, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  color: var(--text);
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-logo span {
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: var(--green);
}

.page-shell,
.page-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
}

.page-shell {
  padding-top: 38px;
  padding-bottom: 80px;
}

.page-footer {
  padding-bottom: 40px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.section-label,
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.12);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-intro {
  margin-bottom: 20px;
}

.blog-intro h1,
.hero-main h1 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lead {
  margin: 14px 0 0;
  max-width: 70ch;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.78;
}

.card {
  background: linear-gradient(180deg, rgba(16, 22, 33, 0.97), rgba(11, 17, 26, 0.98));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.post-list {
  display: grid;
  gap: 16px;
}

.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
  min-height: 276px;
  padding: 24px 26px;
}

.post-main,
.post-side {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-main h2 {
  margin: 14px 0 10px;
  font-size: 1.48rem;
  line-height: 1.14;
  text-wrap: balance;
}

.post-side {
  justify-content: space-between;
  gap: 18px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.post-side-copy,
.excerpt,
.hero-side p,
.article-body p,
.article-body li,
.sources-intro,
.source-note {
  color: var(--text-dim);
  line-height: 1.78;
}

.meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.excerpt {
  margin-top: 12px;
}

.clamp-4,
.clamp-6 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp-4 {
  -webkit-line-clamp: 4;
}

.clamp-6 {
  -webkit-line-clamp: 6;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 190px;
  padding: 13px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--green);
  color: #061109;
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.16);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(0, 255, 136, 0.28);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: stretch;
}

.hero-main,
.hero-side,
.article-body,
.sources-panel {
  padding: 26px 28px;
}

.hero-main,
.hero-side {
  min-height: 100%;
}

.hero-side p {
  margin: 16px 0 0;
}

.hero-image,
.article-image {
  margin: 22px 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.hero-image img,
.article-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-image figcaption,
.article-image figcaption {
  padding: 12px 14px 14px;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.article-body {
  margin-top: 22px;
}

.article-body > * + * {
  margin-top: 18px;
}

.article-body h2 {
  margin-top: 10px;
  font-size: 1.38rem;
  line-height: 1.18;
}

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

.note {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(0, 255, 136, 0.08);
  color: var(--text);
}

.sources-panel {
  margin-top: 22px;
}

.sources-panel h2 {
  margin: 12px 0 0;
  font-size: 1.44rem;
  line-height: 1.14;
}

.sources-intro {
  margin: 12px 0 0;
}

.source-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.source-item {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.source-head h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.source-head a {
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

.source-note {
  margin: 10px 0 0;
}

.article-actions {
  margin-top: 22px;
}

@media (max-width: 920px) {
  .post-card,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .post-side {
    padding-left: 0;
    padding-top: 18px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

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

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .page-shell {
    padding-top: 28px;
  }

  .post-card,
  .hero-main,
  .hero-side,
  .article-body,
  .sources-panel {
    padding: 20px;
  }

  .button {
    width: 100%;
  }

  .source-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
