/* ==========================================================================
   SwapTxt — Editorial Magazine Blog Styles (blog.css)
   Pairs seamlessly with home.css floating pill navbar & warm-linen footer.
   ========================================================================== */

.st-blog-hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--st-rule);
}

.st-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.st-filter-btn {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--st-rule);
  background: var(--st-paper);
  color: var(--st-ink-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.st-filter-btn.active,
.st-filter-btn:hover {
  background: var(--st-ink);
  color: var(--st-bg);
  border-color: var(--st-ink);
}

.st-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 40px 0 64px;
}

@media (max-width: 980px) { .st-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .st-blog-grid { grid-template-columns: 1fr; } }

.st-post-card {
  display: flex;
  flex-direction: column;
  background: var(--st-paper);
  border: 1px solid var(--st-rule);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.st-post-card:hover {
  border-color: var(--st-accent);
  transform: translateY(-2px);
}

.st-post-thumb {
  aspect-ratio: 16 / 10;
  background: var(--st-linen);
  overflow: hidden;
  border-bottom: 1px solid var(--st-rule);
}

.st-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.st-post-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.st-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--st-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-accent);
}

.st-post-meta span.muted { color: var(--st-muted); }

.st-post-card h2 {
  margin: 0;
  font-family: var(--st-font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--st-ink);
}

.st-post-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--st-ink-2);
}

/* Single Editorial Article Layout */
.st-article-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--st-rule);
}

.st-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--st-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 18px;
}

.st-breadcrumb a {
  color: var(--st-ink-2);
  text-decoration: none;
}

.st-breadcrumb a:hover { color: var(--st-accent); }

.st-article-title {
  margin: 0 0 16px;
  font-family: var(--st-font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 22ch;
}

.st-article-lede {
  margin: 0 0 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--st-ink-2);
  max-width: 64ch;
}

.st-article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 48px;
  padding: 42px 0 72px;
  align-items: start;
}

@media (max-width: 920px) {
  .st-article-layout { grid-template-columns: 1fr; gap: 28px; }
  .st-toc { position: static !important; }
}

.st-toc {
  position: sticky;
  top: 96px;
  padding: 18px 20px;
  background: var(--st-paper);
  border: 1px solid var(--st-rule);
  border-radius: 12px;
}

.st-toc-title {
  font-family: var(--st-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin: 0 0 12px;
}

.st-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.st-toc a {
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  color: var(--st-ink-2);
}

.st-toc a:hover { color: var(--st-accent); }

/* GEO TL;DR Summary Box */
.st-tldr {
  background: var(--st-linen);
  border-left: 3px solid var(--st-accent);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.st-tldr-label {
  font-family: var(--st-font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-accent);
  margin-bottom: 8px;
}

.st-tldr p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--st-ink);
}

.st-prose {
  max-width: 72ch;
}

.st-prose h2 {
  margin: 38px 0 14px;
  font-family: var(--st-font-serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.12;
  color: var(--st-ink);
}

.st-prose p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--st-ink-2);
}

.st-prose ul, .st-prose ol {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--st-ink-2);
  font-size: 15px;
  line-height: 1.75;
}

.st-prose li { margin-bottom: 8px; }

.st-article-figure {
  margin: 28px 0 34px;
  background: var(--st-paper);
  border: 1px solid var(--st-rule);
  border-radius: 12px;
  padding: 10px;
}

.st-article-figure img {
  width: 100%;
  border-radius: 8px;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.st-article-figure figcaption {
  padding: 10px 6px 2px;
  font-family: var(--st-font-mono);
  font-size: 11px;
  color: var(--st-muted);
}

/* Contextual Tool CTA Box */
.st-cta-box {
  margin: 40px 0;
  padding: 28px 30px;
  background: var(--st-paper);
  border: 1.5px solid var(--st-accent);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.st-cta-box h3 {
  margin: 0 0 6px;
  font-family: var(--st-font-serif);
  font-weight: 400;
  font-size: 1.8rem;
}

.st-cta-box p {
  margin: 0;
  font-size: 14px;
  color: var(--st-ink-2);
  max-width: 46ch;
}

.st-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--st-accent);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.st-cta-btn:hover { background: var(--st-accent-hover); }

.st-related-section {
  padding: 52px 0 24px;
  border-top: 1px solid var(--st-rule);
}
