/* Blog-specific styles. Loaded after styles.css, reuses its tokens, header, footer, buttons. */

.blog-main {
  margin: 0 auto;
  max-width: 760px;
  padding: 2.5rem 1.25rem 1rem;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

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

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

.breadcrumb span[aria-current] {
  color: var(--muted);
}

/* Article */

.post .eyebrow {
  margin-bottom: 0.6rem;
}

.post h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 0.85rem;
  max-width: none;
}

.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  margin: 0 0 2rem;
}

.post-meta span + span::before {
  content: "·";
  margin: 0 0.5rem;
}

.post-lede {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.post h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.18;
  margin: 2.75rem 0 0.85rem;
}

.post h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 1.75rem 0 0.6rem;
}

.post p,
.post li {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.7;
}

.post p {
  margin-bottom: 1.15rem;
}

.post ul,
.post ol {
  margin: 0 0 1.3rem;
  padding-left: 1.3rem;
}

.post li {
  margin-bottom: 0.55rem;
}

.post a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post strong {
  font-weight: 850;
}

/* The 40 to 60 word direct-answer block. The AI-extractability lever. */
.answer {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
  margin: 0 0 1.4rem;
  padding: 1.1rem 1.25rem;
}

.answer p {
  margin: 0;
  font-size: inherit;
}

/* Head-to-head comparison table (horizontally scrollable on small screens) */
.table-scroll {
  margin: 1.6rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  border-collapse: collapse;
  font-size: 0.98rem;
  min-width: 520px;
  width: 100%;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 800;
}

.compare-table tbody th {
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  white-space: nowrap;
}

.compare-table tbody td {
  color: var(--muted);
  font-weight: 550;
}

.compare-table td:last-child {
  color: var(--ink);
}

/* Inline product screenshots */
.post-figure {
  margin: 2rem 0;
}

.post-figure img {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(48, 39, 25, 0.12);
  margin: 0 auto;
  max-width: 280px;
  width: 100%;
}

.post-figure figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  margin-top: 0.7rem;
  text-align: center;
}

/* In-article call to action */
.post-cta {
  background:
    linear-gradient(120deg, rgba(47, 119, 88, 0.96), rgba(31, 86, 63, 0.98)),
    var(--accent);
  border-radius: 8px;
  color: #fffdf8;
  margin: 2.75rem 0 1rem;
  padding: 1.75rem;
  text-align: center;
}

.post-cta h2 {
  color: #fffdf8;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 0.6rem;
}

.post-cta p {
  color: rgba(255, 253, 248, 0.82);
  font-weight: 650;
  margin: 0 auto 1.2rem;
  max-width: 460px;
}

.post-cta .button {
  background: #fffdf8;
  color: var(--accent-deep);
}

/* Genuine FAQ at the foot of a post */
.post-faq {
  border-top: 1px solid var(--border);
  margin-top: 2.75rem;
  padding-top: 1.5rem;
}

.post-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  padding: 1rem 1.15rem;
}

.post-faq summary {
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 850;
}

.post-faq details p {
  margin: 0.8rem 0 0;
}

/* Blog index */
.blog-index h1 {
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
  max-width: none;
}

.blog-index-lede {
  color: var(--muted);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  max-width: 620px;
}

.post-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.post-card:hover {
  box-shadow: 0 14px 34px rgba(48, 39, 25, 0.1);
  transform: translateY(-2px);
}

.post-card a {
  text-decoration: none;
}

.post-card .pillar {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-card h2 {
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0.4rem 0 0.5rem;
}

.post-card p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.blog-footer-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 2.5rem;
}

@media (max-width: 860px) {
  .blog-main {
    padding: 1.75rem 1.1rem 1rem;
  }

  .post-figure img {
    max-width: 230px;
  }
}
