/* ============================================================
   BLOG / GUIDES
   Loaded after style.css on /blog/ pages only.
   ============================================================ */
.blog-main {
  padding-top: 88px;
}

.blog-hero {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--border);
}

.blog-hero h1 {
  font-size: clamp(40px, 4.6vw, 64px);
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 20px;
}

.blog-hero .lead {
  max-width: 620px;
}

/* Post list */
.post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-top: 64px;
  padding-bottom: 120px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--blue2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 32px;
  text-decoration: none;
  color: var(--white);
  transition: border-color 0.25s, transform 0.25s;
}

.post-card:hover {
  border-color: rgba(79,209,197,0.3);
  transform: translateY(-2px);
}

.post-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 16px;
}

.post-card h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.post-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.post-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.post-read {
  color: var(--mint);
  font-weight: 700;
}

/* Article */
.article-head {
  padding: 96px 0 48px;
  border-bottom: 1px solid var(--border);
}

.article-head .wrap,
.article-body .wrap {
  max-width: 820px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--mint);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-head h1 {
  font-size: clamp(36px, 4.2vw, 56px);
  letter-spacing: -2px;
  line-height: 1.08;
  margin-bottom: 24px;
}

.article-body {
  padding: 56px 0 120px;
}

.prose {
  font-size: 17px;
  line-height: 1.8;
  color: var(--quote-text);
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: var(--white);
  margin-top: 2em;
  margin-bottom: 0;
}

.prose h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin-top: 1.6em;
}

.prose a {
  color: var(--mint);
}

.prose strong {
  color: var(--white);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose li::marker {
  color: var(--mint);
}

.note {
  border-left: 2px solid var(--coral);
  padding: 4px 0 4px 18px;
  font-size: 15px;
  color: var(--muted);
}

.article-cta {
  margin-top: 64px;
  background: var(--blue2);
  border: 1px solid rgba(79,209,197,0.2);
  border-radius: 4px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--coral));
}

.article-cta h2 {
  font-size: 26px;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}

.article-cta p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 560px;
}

.article-sources {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.article-sources ul {
  list-style: none;
  margin-top: 8px;
}

.article-sources li + li {
  margin-top: 4px;
}

.article-sources a {
  color: var(--muted);
}

.article-sources a:hover {
  color: var(--mint);
}

@media (max-width: 1100px) {
  .post-list {
    grid-template-columns: 1fr;
  }

  .blog-hero,
  .article-head {
    padding: 64px 0 40px;
  }
}

@media (max-width: 640px) {
  .prose {
    font-size: 16px;
  }

  .article-cta {
    padding: 28px 20px;
  }

  .post-card {
    padding: 28px 22px;
  }
}

/* Buttons inside articles: stop .prose link colour overriding them */
.prose a.btn-mint,
.prose a.btn-ghost {
  text-decoration: none;
}

.prose a.btn-mint {
  color: var(--blue);
}

.prose a.btn-ghost {
  color: var(--muted);
}

.prose a.btn-ghost:hover {
  color: var(--white);
}

/* Tables inside articles */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.prose th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--blue2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.prose td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

.prose td:last-child {
  color: var(--mint);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .prose table { font-size: 14px; }
  .prose th, .prose td { padding: 10px; }
  .prose td:last-child { white-space: normal; }
}
