/* ==========================================================================
   Wiztra Chat — blog article
   Layout for a single post. Pairs with blog/_template.html.

   MasterCMS ingests <header>, <article> and <footer> and discards <head>, so the
   post body is an <article> rather than a <section>. See HANDOFF.md.
   ========================================================================== */

.post {
  padding-block: 112px 64px;
  background: var(--background-50);
}
@media (min-width: 1024px) { .post { padding-block: 144px 80px; } }

.post-inner {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 768px) { .post-inner { padding-inline: 40px; } }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.post-crumbs {
  font-size: 13px;
  color: var(--foreground-500);
  margin-bottom: 24px;
}
.post-crumbs a { color: var(--primary-600); transition: color .2s ease; }
.post-crumbs a:hover { color: var(--primary-700); }
.post-crumbs span { margin-inline: 8px; }

.post-kicker {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-700);
  background: var(--primary-50);
}

.post-title {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--foreground-950);
  margin-bottom: 20px;
}
@media (min-width: 768px)  { .post-title { font-size: 42px; } }
@media (min-width: 1024px) { .post-title { font-size: 48px; } }

.post-standfirst {
  font-size: 18px;
  line-height: 1.65;
  color: var(--foreground-600);
  margin-bottom: 28px;
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid oklch(var(--background-200c) / 0.7);
  font-size: 13px;
  color: var(--foreground-500);
}

.post-author {
  font-weight: 600;
  color: var(--foreground-800);
}

.post-byline .res-dot,
.post-byline .post-dot {
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--foreground-300);
}

.post-hero {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid oklch(var(--background-200c) / 0.7);
  margin-bottom: 40px;
}
.post-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.post-hero figcaption {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--foreground-500);
  background: var(--background-100);
}

/* --------------------------------------------------------------------------
   Body copy
   -------------------------------------------------------------------------- */

.post-body > * + * { margin-top: 20px; }

.post-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--foreground-700);
}

.post-body h2 {
  font-size: 26px;
  line-height: 1.2;
  color: var(--foreground-950);
  margin-top: 44px;
}
@media (min-width: 768px) { .post-body h2 { font-size: 30px; } }

.post-body h3 {
  font-size: 20px;
  line-height: 1.25;
  color: var(--foreground-900);
  margin-top: 32px;
}

.post-body a {
  color: var(--primary-600);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s ease;
}
.post-body a:hover { color: var(--primary-700); }

.post-body strong { font-weight: 600; color: var(--foreground-900); }

.post-body ul,
.post-body ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 4px;
}

.post-body li {
  position: relative;
  padding-left: 24px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--foreground-700);
}

.post-body ul > li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--primary-400);
}

.post-body ol { counter-reset: post-steps; }
.post-body ol > li { counter-increment: post-steps; }
.post-body ol > li::before {
  content: counter(post-steps) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--primary-600);
}

.post-body blockquote {
  padding: 20px 24px;
  border-left: 3px solid var(--primary-400);
  border-radius: 0 12px 12px 0;
  background: oklch(var(--primary-50c) / 0.5);
  font-size: 17px;
  line-height: 1.7;
  color: var(--foreground-800);
}

.post-body figure { margin-block: 32px; }
.post-body figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid oklch(var(--background-200c) / 0.7);
}
.post-body figcaption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--foreground-500);
}

.post-callout {
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid var(--primary-200);
  background: oklch(var(--primary-50c) / 0.6);
}
.post-callout p { font-size: 15px; color: var(--foreground-700); }

/* --------------------------------------------------------------------------
   Footer of the post
   -------------------------------------------------------------------------- */

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 32px;
  margin-top: 40px;
  border-top: 1px solid oklch(var(--background-200c) / 0.7);
}

.post-tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--foreground-600);
  background: var(--background-100);
  border: 1px solid oklch(var(--background-200c) / 0.7);
}

.post-cta {
  margin-top: 40px;
  padding: 28px 24px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(145deg, var(--primary-500) 0%, var(--primary-600) 100%);
}
@media (min-width: 768px) { .post-cta { padding: 40px; } }

.post-cta h2 {
  font-size: 24px;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 10px;
}
@media (min-width: 768px) { .post-cta h2 { font-size: 30px; } }

.post-cta p {
  font-size: 15px;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.8);
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: 24px;
}

.post-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
@media (min-width: 640px) { .post-cta-actions { flex-direction: row; } }
