/* APIANT Blog — public-facing styles
 * Tokens per Zoe's spec:
 *   bg #0c0c0c, accent #1ab759, headings #f7f8f8, body rgba(247,248,248,0.78)
 *   card rgba(255,255,255,0.03), border rgba(255,255,255,0.07), radius 16px
 *   Inter (UI/headings), DM Sans (body), JetBrains Mono (eyebrow/code).
 */

:root {
  --blog-bg: #0c0c0c;
  --blog-accent: #1ab759;
  --blog-accent-soft: rgba(26, 183, 89, 0.18);
  --blog-accent-hover: rgba(26, 183, 89, 0.4);
  --blog-heading: #f7f8f8;
  --blog-body: rgba(247, 248, 248, 0.82);
  --blog-body-soft: rgba(247, 248, 248, 0.55);
  --blog-card-bg: rgba(255, 255, 255, 0.03);
  --blog-card-border: rgba(255, 255, 255, 0.07);
  --blog-code-bg: #0a0f0d;
  --blog-mono-text: #7ee2a8;
}

/* ----- Layout shell ----- */
.blog-shell {
  background: var(--blog-bg);
  color: var(--blog-body);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .blog-container { padding: 0 20px; }
}

/* ----- Hero ----- */
.blog-hero {
  position: relative;
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--blog-card-border);
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 183, 89, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 183, 89, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
          mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}

.blog-hero-eyebrow {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-accent);
  margin-bottom: 16px;
}

.blog-hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--blog-heading);
  margin: 0 0 16px;
  max-width: 880px;
}

.blog-hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--blog-body);
  max-width: 720px;
  margin: 0;
}

@media (max-width: 640px) {
  .blog-hero { padding: 56px 0 40px; }
  .blog-hero-title { font-size: 34px; }
  .blog-hero-sub { font-size: 16px; }
}

/* ----- Search row ----- */
.blog-search-row {
  padding: 20px 0 8px;
}
.blog-search-row input[type="search"] {
  width: 100%;
  background: var(--blog-card-bg);
  border: 1px solid var(--blog-card-border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--blog-heading);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 180ms ease;
}
.blog-search-row input[type="search"]::placeholder {
  color: rgba(247, 248, 248, 0.4);
}
.blog-search-row input[type="search"]:focus {
  border-color: var(--blog-accent);
}

/* ----- Load more button (client-side pagination) ----- */
.blog-load-more {
  display: block;
  margin: 16px auto 64px;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid var(--blog-card-border);
  border-radius: 999px;
  color: var(--blog-body);
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.blog-load-more:hover {
  border-color: var(--blog-accent-hover);
  color: var(--blog-heading);
  background: rgba(26, 183, 89, 0.05);
}

/* ----- Sticky filter row ----- */
.blog-filters {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  background: rgba(12, 12, 12, 0.92);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--blog-card-border);
}

.blog-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--blog-card-border);
  border-radius: 999px;
  background: transparent;
  color: var(--blog-body);
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.blog-pill:hover {
  border-color: var(--blog-accent-hover);
  color: var(--blog-heading);
}

.blog-pill.active {
  background: var(--blog-accent);
  color: var(--blog-bg);
  border-color: var(--blog-accent);
}

/* ----- Tag filter row (category pages) ----- */
.blog-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--blog-card-border);
}
.blog-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--blog-card-border);
  border-radius: 999px;
  background: transparent;
  color: var(--blog-body);
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}
.blog-tag-pill:hover {
  border-color: var(--blog-accent-hover);
  color: var(--blog-heading);
  background: rgba(26, 183, 89, 0.05);
}
.blog-tag-pill.active {
  background: var(--blog-accent);
  border-color: var(--blog-accent);
  color: var(--blog-bg);
}

/* ----- Featured post ----- */
.blog-featured {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--blog-card-border);
}

.blog-featured-image {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: var(--blog-card-bg);
  border: 1px solid var(--blog-card-border);
  overflow: hidden;
}

.blog-featured-image img,
.blog-featured-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-featured-body {
  align-self: center;
}

.blog-featured-title {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--blog-heading);
  margin: 16px 0 12px;
}

.blog-featured-title a {
  color: inherit;
  text-decoration: none;
}

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

.blog-featured-excerpt {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 16px;
}

@media (max-width: 880px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-title { font-size: 24px; }
}

/* ----- Post grid + cards ----- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 24px;
  padding: 48px 0;
}

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

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--blog-card-bg);
  border: 1px solid var(--blog-card-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease, transform 180ms ease;
}

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

.blog-card-image {
  aspect-ratio: 16 / 9;
  background: var(--blog-bg);
  border-bottom: 1px solid var(--blog-card-border);
  overflow: hidden;
}

.blog-card-image img,
.blog-card-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.blog-card:hover .blog-card-image img,
.blog-card:hover .blog-card-image svg {
  transform: scale(1.02);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.blog-category-chip {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blog-accent);
}

.blog-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--blog-heading);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card:hover .blog-card-title {
  text-decoration: underline;
  text-decoration-color: var(--blog-accent);
  text-underline-offset: 4px;
}

.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(247, 248, 248, 0.7);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.blog-card-meta {
  margin-top: auto;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--blog-body-soft);
  letter-spacing: 0.02em;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-card-meta span + span::before {
  content: '·';
  margin-right: 8px;
  color: rgba(247, 248, 248, 0.3);
}

@media (max-width: 768px) {
  .blog-card-body { padding: 20px; }
  .blog-card-title { font-size: 20px; }
}

/* ----- Pagination ----- */
.blog-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 40px 0 64px;
}

.blog-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 8px 14px;
  border: 1px solid var(--blog-card-border);
  border-radius: 8px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--blog-body);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.blog-page-link:hover {
  border-color: var(--blog-accent-hover);
  color: var(--blog-heading);
}

.blog-page-link.current {
  background: var(--blog-accent);
  color: var(--blog-bg);
  border-color: var(--blog-accent);
}

.blog-page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ----- Post page ----- */
.blog-post-hero {
  padding: 80px 0 48px;
  position: relative;
  border-bottom: 1px solid var(--blog-card-border);
}

.blog-post-hero .blog-category-chip {
  font-size: 12px;
  margin-bottom: 24px;
}

.blog-post-h1 {
  font-family: 'Inter', sans-serif;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--blog-heading);
  margin: 0 0 24px;
  max-width: 880px;
}

.blog-post-subtitle {
  font-size: 20px;
  line-height: 1.5;
  color: var(--blog-body);
  max-width: 720px;
  margin: 0 0 32px;
}

.blog-post-meta {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--blog-body-soft);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-post-meta a { color: var(--blog-body); text-decoration: none; }
.blog-post-meta a:hover { color: var(--blog-accent); }
.blog-post-meta span + span::before {
  content: '·';
  margin-right: 8px;
  color: rgba(247, 248, 248, 0.3);
}

@media (max-width: 768px) {
  .blog-post-hero { padding: 56px 0 36px; }
  .blog-post-h1 { font-size: 36px; }
  .blog-post-subtitle { font-size: 17px; }
}

.blog-post-hero-image {
  margin: 48px auto -24px;
  max-width: 1040px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--blog-card-border);
}

.blog-post-hero-image img,
.blog-post-hero-image svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ----- Article layout: content + sticky TOC ----- */
.blog-article-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 64px;
  padding: 64px 0 96px;
  position: relative;
}

@media (max-width: 1100px) {
  .blog-article-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .blog-toc { display: none; }
}

.blog-article {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  /* Grid items default to min-width:auto, which lets wide content
     (images, code) expand the track and overflow the viewport.
     min-width:0 lets the 1fr track shrink to the container. */
  min-width: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--blog-body);
}

.blog-article h2 {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--blog-heading);
  margin: 56px 0 16px;
  letter-spacing: -0.01em;
}

.blog-article h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--blog-heading);
  margin: 40px 0 12px;
}

.blog-article h4 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--blog-heading);
  margin: 32px 0 8px;
}

.blog-article p { margin: 0 0 20px; }

.blog-article a {
  color: var(--blog-accent);
  text-decoration: none;
}

.blog-article a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.blog-article ul,
.blog-article ol {
  padding-left: 1.5em;
  margin: 0 0 20px;
}

.blog-article li { margin-bottom: 8px; }

.blog-article img {
  max-width: 100%;
  height: auto;
  /* border-box so the 1px border is included in max-width:100% and
     does not push the image past the container. */
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--blog-card-border);
  margin: 24px 0;
  display: block;
}

.blog-article hr {
  border: 0;
  border-top: 1px solid var(--blog-card-border);
  margin: 48px 0;
}

/* ----- Tables ----- */
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.5;
}

.blog-article th,
.blog-article td {
  border: 1px solid var(--blog-card-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.blog-article thead th {
  background: var(--blog-card-bg);
  color: var(--blog-heading);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.blog-article tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* On narrow screens, let wide tables scroll inside the article instead
   of forcing the whole page to scroll horizontally. */
@media (max-width: 768px) {
  .blog-article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ----- Pull quotes ----- */
.blog-article blockquote {
  border-left: 3px solid var(--blog-accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  line-height: 1.4;
  color: var(--blog-heading);
}

.blog-article blockquote p { margin: 0 0 8px; }
.blog-article blockquote p:last-child { margin-bottom: 0; }

/* ----- Code blocks ----- */
.blog-article pre {
  background: var(--blog-code-bg);
  border: 1px solid var(--blog-accent-soft);
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--blog-body);
  margin: 24px 0;
}

.blog-article code {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
  background: rgba(26, 183, 89, 0.12);
  color: var(--blog-mono-text);
  padding: 2px 6px;
  border-radius: 4px;
}

.blog-article pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

/* ----- Table of Contents (right rail) ----- */
.blog-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--blog-body-soft);
  border-left: 1px solid var(--blog-card-border);
  padding-left: 20px;
}

.blog-toc-heading {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blog-body-soft);
  margin: 0 0 12px;
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-toc-list a {
  color: var(--blog-body);
  text-decoration: none;
  display: block;
  line-height: 1.4;
  padding: 4px 0;
  transition: color 180ms ease;
}

.blog-toc-list a:hover,
.blog-toc-list a.active { color: var(--blog-accent); }

.blog-toc-list li.lvl-3 a { padding-left: 12px; font-size: 12px; }

/* ----- Progress bar (left edge of article) ----- */
.blog-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blog-accent);
  transform-origin: 0 0;
  transform: scaleX(0);
  z-index: 100;
  pointer-events: none;
}

/* ----- API Apps CTA (3 tiny cards at the foot of every post) ----- */
.blog-apps-cta {
  margin: 48px 0 8px;
  padding-top: 32px;
  border-top: 1px solid var(--blog-card-border);
}
.blog-apps-cta-heading {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blog-body-soft);
  margin-bottom: 16px;
}
.blog-apps-cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.blog-apps-cta-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--blog-card-bg);
  border: 1px solid var(--blog-card-border);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}
.blog-apps-cta-card:hover {
  border-color: var(--blog-accent-hover);
  transform: translateY(-2px);
}
.blog-apps-cta-name {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--blog-heading);
}
.blog-apps-cta-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--blog-body-soft);
}
.blog-apps-cta-arrow {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 12px;
  color: var(--blog-accent);
  margin-top: 2px;
}
@media (max-width: 640px) {
  .blog-apps-cta-grid { grid-template-columns: 1fr; }
}

/* ----- Related posts ----- */
.blog-related {
  padding: 64px 0 96px;
  border-top: 1px solid var(--blog-card-border);
}

.blog-related-heading {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--blog-heading);
  margin: 0 0 32px;
}

/* ----- Tags row (sits in the post hero, under the meta line) ----- */
.blog-post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--blog-card-border);
  border-radius: 999px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blog-body);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.blog-tag:hover {
  border-color: var(--blog-accent-hover);
  color: var(--blog-accent);
}

/* ----- Empty state ----- */
.blog-empty {
  text-align: center;
  padding: 96px 0;
  color: var(--blog-body-soft);
}

.blog-empty h2 {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  color: var(--blog-heading);
  margin: 0 0 8px;
}

/* =================================================================
   Responsive refinements
   The blog nav (blog/_templates/_nav.html) is inline-styled, so the
   overrides below use specific selectors and !important to win over
   inline styles. Nav links are matched by position (:nth-of-type)
   rather than href so localized blogs (/es/, /fr/, ...) are covered.
   ================================================================= */

/* Prevent long unbroken strings (slugs, URLs) from forcing page width. */
.blog-hero-title,
.blog-featured-title,
.blog-card-title,
.blog-post-h1,
.blog-article {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.blog-article pre {
  max-width: 100%;
}

/* ----- Nav: tablet and below ----- */
@media (max-width: 768px) {
  /* Let the nav row wrap instead of forcing horizontal page scroll. */
  .blog-nav > .blog-container {
    height: auto !important;
    min-height: 64px;
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .blog-nav nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px !important;
  }
}

/* ----- Nav: phones ----- */
@media (max-width: 600px) {
  /* Hide secondary links (Platform, Connectors) — both remain in the
     footer. Keeps logo + Blog + language switcher + CTA on one line. */
  .blog-nav nav > a:nth-of-type(2),
  .blog-nav nav > a:nth-of-type(3) {
    display: none !important;
  }
  .blog-nav nav {
    gap: 12px !important;
  }
  /* Slimmer CTA so the row fits a 320px viewport. */
  .blog-nav nav > a:last-of-type {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
  /* Larger tap targets for nav links. */
  .blog-nav nav > a {
    padding-top: 6px;
    padding-bottom: 6px;
  }
}

/* ----- Tap targets: filter + tag pills, pagination ----- */
@media (max-width: 768px) {
  .blog-pill {
    padding: 10px 14px;
  }
  .blog-tag-pill {
    padding: 8px 12px;
    font-size: 12px;
  }
  .blog-page-link {
    min-width: 44px;
    padding: 10px 14px;
  }
  .blog-tag {
    padding: 8px 12px;
  }
  /* Filter row can scroll horizontally if pills overflow, rather than
     wrapping into a tall stack that eats the viewport. */
  .blog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .blog-filters::-webkit-scrollbar {
    display: none;
  }
  .blog-pill {
    flex: 0 0 auto;
  }
}

/* ----- Article: phones ----- */
@media (max-width: 640px) {
  .blog-article {
    font-size: 17px;
  }
  .blog-article h2 {
    font-size: 26px;
    margin: 44px 0 14px;
  }
  .blog-article h3 {
    font-size: 20px;
    margin: 32px 0 10px;
  }
  .blog-article blockquote {
    font-size: 19px;
    padding-left: 18px;
  }
  .blog-article pre {
    padding: 16px;
    font-size: 13px;
  }
  .blog-article-layout {
    padding: 40px 0 64px;
  }
  .blog-post-hero-image {
    margin: 32px auto -16px;
    border-radius: 12px;
  }
  .blog-related {
    padding: 48px 0 64px;
  }
  .blog-related-heading {
    font-size: 22px;
  }
}
