/* MaxWinAI blog — matches homepage tokens, optimized for reading */

body.is-blog {
  padding: 0;
}

.blog-shell {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 2.5rem) 0 4rem;
}

.blog-wrap {
  width: min(740px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.blog-wrap--wide {
  width: min(1080px, calc(100% - 2.5rem));
}

.blog-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-bottom: 1.75rem;
  font-size: 0.88rem;
  color: var(--text-mute);
}

.blog-crumb a {
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}

.blog-crumb a:hover {
  color: var(--accent);
}

.blog-crumb .sep {
  opacity: 0.45;
}

.blog-hero {
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.blog-hero .eyebrow {
  margin-bottom: 1rem;
}

.blog-hero h1 {
  font-family: "Syne", "Outfit", sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 1rem;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  color: var(--text-mute);
  font-size: 0.9rem;
}

.blog-meta time,
.blog-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Prose — readable article measure */
.prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  font-family: "Syne", "Outfit", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
  margin: 2.75rem 0 1rem;
}

.prose h3 {
  font-family: "Space Grotesk", "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 229, 255, 0.35);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}

.prose a:not(.btn):hover {
  text-decoration-color: var(--accent);
}

.prose .btn,
.blog-cta .btn {
  text-decoration: none;
}

.prose .btn-primary,
.blog-cta .btn-primary {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  font-weight: 700;
}

.prose .btn-primary:hover,
.blog-cta .btn-primary:hover {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  text-decoration: none;
}

.prose ul,
.prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.25rem;
  list-style: revert;
}

.prose li {
  margin: 0 0 0.65rem;
  padding-left: 0.25rem;
}

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

.prose .highlight {
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(120deg, transparent 0%, rgba(0, 229, 255, 0.12) 50%, transparent 100%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.05em 0.15em;
  border-radius: 0.2em;
}

.prose .lede {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.strategy-box,
.callout {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.35rem;
  margin: 1.75rem 0;
}

.strategy-box h3,
.callout h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.05rem;
}

.strategy-box ul,
.callout ul {
  margin-bottom: 0;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  -webkit-overflow-scrolling: touch;
}

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.95rem;
  background: transparent;
}

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

.prose th {
  color: var(--accent);
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  background: rgba(0, 229, 255, 0.06);
  white-space: nowrap;
}

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

.prose .faq-item {
  margin: 0 0 0.85rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.prose .faq-question {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
  font-size: 1.02rem;
}

.prose .faq-item p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.related-seo-links {
  margin-top: 2.75rem;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 20, 32, 0.65);
}

.related-seo-links h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 1.2rem;
}

.related-seo-links ul {
  margin-bottom: 0;
}

.blog-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 80% 120% at 0% 50%, rgba(0, 229, 255, 0.12), transparent 55%),
    var(--bg-elevated);
}

.blog-cta p {
  flex: 1 1 220px;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.98rem;
}

.blog-cta .btn {
  flex: 0 0 auto;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

/* Blog index cards */
.blog-index-head {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.blog-index-head h1 {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0.75rem 0 1rem;
}

.blog-index-head p {
  color: var(--text-dim);
  font-size: 1.08rem;
  line-height: 1.65;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(18, 22, 36, 0.95), rgba(10, 12, 20, 0.98));
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
  height: 100%;
}

.blog-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.blog-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.blog-card h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.blog-card p {
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

.blog-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.blog-card .card-link:hover {
  gap: 0.65rem;
}

@media (max-width: 767px) {
  .blog-shell {
    padding-top: calc(var(--nav-h) + 1.5rem);
  }

  .blog-wrap,
  .blog-wrap--wide {
    width: calc(100% - 2rem);
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .prose {
    font-size: 1.02rem;
  }

  .blog-cta {
    padding: 1.25rem;
  }
}

/* Footer spacing without floating CTA on blog */
body.is-blog .site-footer {
  padding-bottom: 2.5rem;
}
