/* ============================================================
   PartnerMatch blog — extends styles.css (same vars/design system)
   ============================================================ */

/* ---------- blog index ---------- */

.blog-index { padding: 90px 0 110px; }

.post-list {
  margin-top: 64px;
  border-top: var(--border);
}

.post-card {
  display: block;
  padding: 36px 0 40px;
  border-bottom: var(--border);
  text-decoration: none;
}

.post-card h2,
.post-card p { max-width: 24em; }

.post-card-meta,
.post-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.post-card h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 14px 0 12px;
  transition: color 0.15s ease;
}

.post-card:hover h2 { color: var(--blue); }

.post-card p {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-soft);
}

.post-card-more {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--blue);
}

/* ---------- post page ---------- */

.post { padding: 90px 0 60px; }

.post-container { max-width: 800px; }

.post-meta a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}

.post-meta a:hover { text-decoration: underline; }

.post-title {
  font-size: clamp(36px, 5vw, 58px);
  margin: 22px 0 20px;
}

.post-lede {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.post-body {
  border-top: var(--border);
  padding-top: 36px;
  font-size: 17.5px;
  line-height: 1.7;
}

.post-body h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 52px 0 18px;
}

.post-body h3 {
  font-size: 21px;
  margin: 40px 0 14px;
}

.post-body p { margin: 0 0 20px; }

.post-body a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 20px;
  padding-left: 26px;
}

.post-body li { margin-bottom: 8px; }

.post-body strong { color: var(--ink); }

.post-body blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  border-left: 4px solid var(--blue);
  font-weight: 500;
  color: var(--ink-soft);
}

.post-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
}

.post-body pre {
  background: var(--ink);
  color: var(--paper);
  border: var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 0 0 24px;
}

.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.post-body img {
  max-width: 100%;
  border: var(--border);
  border-radius: 12px;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  border: var(--border);
  font-size: 15.5px;
  margin: 28px 0;
  background: var(--white);
}

.post-body th {
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  font-weight: 700;
  padding: 12px 16px;
}

.post-body td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.post-body td:first-child { font-weight: 500; }

/* ---------- post CTA banner ---------- */

.post-cta { padding: 40px 0 110px; }

.post-cta-card {
  background: var(--ink);
  color: var(--paper);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-blue);
  padding: 56px 48px;
  text-align: center;
}

.post-cta-card h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--paper);
  max-width: 18em;
  margin: 0 auto;
}

.post-cta-card h2 .hl {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0 0.18em 0.05em;
  border-radius: 6px;
  transform: rotate(-1deg);
}

.post-cta-card p {
  margin: 18px auto 30px;
  font-size: 17px;
  font-weight: 500;
  max-width: 34em;
  color: color-mix(in srgb, var(--paper), var(--ink) 25%);
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .blog-index { padding: 64px 0 76px; }
  .post { padding: 64px 0 40px; }
  .post-cta-card { padding: 40px 26px; }
}
