/**
 * Blog Styles
 * Styles for blog listing and individual blog posts
 */

/* Blog Cards */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-card .blog-image {
  transition: transform 0.3s ease;
}

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

/* Topic labels on blog cards */
.blog-card-topics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0 0 0.875rem;
  padding: 0;
}

.blog-card-topics li {
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}

/* Blog index search and topic filters (scripts/blog.js), centered above the posts */
.blog-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* The search opens the section, so it sits closer to the banner than a full section would */
.section:has(> .container > .blog-filters) {
  padding-top: 2.5rem;
}

/* The results line only takes space when it has something to say */
.blog-results:has(.blog-results-status:empty):has(.blog-clear-filters[hidden]) {
  display: none;
}

.blog-search {
  width: 100%;
  max-width: 560px;
}

.blog-search input {
  width: 100%;
  max-width: 560px;
  min-height: 48px;
  padding: 0.75rem 1.25rem 0.75rem 2.875rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1.125rem center / 1.125rem;
  color: var(--text-color);
  font: inherit;
  font-size: 1rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search input::placeholder {
  color: var(--text-light);
}

.blog-search input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-self: stretch;
  gap: 0.5rem;
}

.blog-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--bg-light);
  color: var(--text-color);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.blog-topic-chip:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.blog-topic-chip:focus-visible,
.blog-clear-filters:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.blog-topic-chip[aria-pressed="true"] {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: #ffffff;
}

.blog-topic-count {
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 600;
}

.blog-topic-chip[aria-pressed="true"] .blog-topic-count {
  color: rgba(255, 255, 255, 0.85);
}

.blog-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1rem;
  min-height: 1.5rem;
}

.blog-results-status {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9375rem;
}

.blog-clear-filters {
  padding: 0;
  border: none;
  background: none;
  color: var(--primary-color);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.blog-clear-filters[hidden] {
  display: none;
}

/* On phones the topics scroll sideways in one row */
@media (max-width: 768px) {
  /* One scrolling row on phones; it starts at the left so the first chips stay reachable */
  .blog-topics {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
  }

  .blog-topic-chip {
    flex-shrink: 0;
  }
}

/* Blog Hero Section */
.blog-hero {  color: #ffffff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.blog-hero .container {
  position: relative;
  z-index: 1;
}

.blog-header {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* Blog Content Section */
.blog-content-section {
  background-color: #ffffff;
}

.blog-content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.blog-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-color);
}

.blog-content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-weight: 600;
}

.blog-content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 600;
}

.blog-content h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
  font-weight: 600;
}

.blog-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-content li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.blog-content a {
  color: var(--primary-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.blog-content a:hover {
  color: var(--primary-dark);
}

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

.blog-content em {
  font-style: italic;
}

.blog-content blockquote {
  border-left: 4px solid var(--logo-blue);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-light);
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.blog-content code {
  background-color: #f3f4f6;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.blog-content pre {
  background-color: #0f1f4d;
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
}

.blog-content pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

/* Blog Tags */
.blog-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.blog-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-tag:hover {
  background: var(--logo-blue);
  color: #ffffff;
}

/* Blog Meta */
.blog-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.blog-category {
  padding: 0.5rem 1rem;
  background: var(--logo-bright-blue);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .blog-hero {
    padding: 3rem 0 2.5rem;
  }

  .blog-header h1 {
    font-size: 2rem !important;
  }

  .blog-intro {
    font-size: 1.125rem !important;
  }

  .blog-content {
    font-size: 1rem;
  }

  .blog-content h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
  }

  .blog-content h3 {
    font-size: 1.375rem;
    margin-top: 1.5rem;
  }

  .blog-content-wrapper {
    padding: 0 1rem;
  }

  /* Table mobile responsiveness in blog content */
  .blog-content table {
    font-size: 0.875rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Undo the fixed, equal columns from main.css, which split words in half.
     Columns fit their content, and a wide table scrolls sideways instead. */
  .blog-content table thead {
    display: table-header-group;
  }

  .blog-content table tbody {
    display: table-row-group;
  }

  .blog-content table tr {
    display: table-row;
  }

  .blog-content table th,
  .blog-content table td {
    padding: 0.75rem 0.5rem !important;
    overflow-wrap: normal;
  }

  /* Large headings in blog content mobile */
  .blog-content h2[style*="font-size: 2.75rem"] {
    font-size: 1.75rem !important;
  }

  .blog-content h3[style*="font-size: 2rem"] {
    font-size: 1.5rem !important;
  }

  /* Compact list spacing mobile */
  .blog-content ul,
  .blog-content ol {
    padding-left: 1.5rem;
  }

  .blog-content li {
    margin-bottom: 0.5rem;
  }

  .blog-content-ai-audit .score-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* AI Visibility Audit blog — rich content components */
.blog-content-ai-audit .pull-quote {
  border-left: 3px solid var(--logo-bright-blue);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2.25rem 0;
  background: #eff6ff;
  border-radius: 0 6px 6px 0;
}

.blog-content-ai-audit .pull-quote p {
  font-size: 1.15rem;
  font-style: italic;
  color: #1e40af;
  margin-bottom: 0;
  line-height: 1.6;
}

.blog-content-ai-audit .steps-list {
  list-style: none;
  counter-reset: step-counter;
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.blog-content-ai-audit .steps-list li {
  counter-increment: step-counter;
  position: relative;
  padding-left: calc(26px + 1rem);
  margin-bottom: 1.1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

.blog-content-ai-audit .steps-list li::before {
  content: counter(step-counter);
  position: absolute;
  top: 0;
  left: 0;
  min-width: 26px;
  height: 26px;
  background: var(--logo-bright-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.blog-content-ai-audit .score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 1.5rem 0 2rem;
}

.blog-content-ai-audit .score-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px 16px;
}

.blog-content-ai-audit .score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-content-ai-audit .score-0 { background: #f7e8e8; color: #a32d2d; }
.blog-content-ai-audit .score-1 { background: #faeeda; color: #854f0b; }
.blog-content-ai-audit .score-2 { background: #faf9d0; color: #6b6b00; }
.blog-content-ai-audit .score-3 { background: #eaf3de; color: #3b6d11; }
.blog-content-ai-audit .score-4 { background: #e1f5ee; color: #0f6e56; }
.blog-content-ai-audit .score-5 { background: #e6f1fb; color: #185fa5; }

.blog-content-ai-audit .score-card p {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.5;
}

.blog-content-ai-audit .callout {
  background: #f9fafb;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.blog-content-ai-audit .callout-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.blog-content-ai-audit .callout p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  color: var(--text-light);
}

.blog-content-ai-audit .prompt-group {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  margin: 1rem 0 1.5rem;
}

.blog-content-ai-audit .prompt-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.blog-content-ai-audit .prompt-item {
  font-size: 0.875rem;
  color: var(--text-color);
  padding: 5px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-content-ai-audit .prompt-item:last-child {
  border-bottom: none;
}

.blog-content-ai-audit .prompt-icon {
  width: 18px;
  height: 18px;
  background: #eff6ff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: var(--logo-bright-blue);
  font-weight: 600;
}

.blog-content-ai-audit .section-rule {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2.75rem 0;
}

.blog-content-ai-audit .blog-cta-block {  background: var(--band-gradient);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  margin-top: 3rem;
  color: #fff;
}

.blog-content-ai-audit .blog-cta-block h2 {
  color: #ffffff;
  font-size: 1.3rem;
  margin: 0 0 0.75rem;
}

.blog-content-ai-audit .blog-cta-block p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.blog-content-ai-audit .blog-cta-btn {
  display: inline-block;
  background: var(--cta);
  color: var(--cta-ink);
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.blog-content-ai-audit .blog-cta-btn:hover {  filter: brightness(1.06);
}


/* Data tables in posts */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.blog-content th,
.blog-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

.blog-content th {
  background: #eff6ff;
  font-weight: 600;
}

/* Key takeaways summary at the top of posts */
.blog-content .key-takeaways {
  background: #eff6ff;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2.5rem;
}

.blog-content .key-takeaways h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.blog-content .key-takeaways ul {
  margin: 0;
  padding-left: 1.25rem;
}

.blog-content .key-takeaways li {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.blog-content .key-takeaways li:last-child {
  margin-bottom: 0;
}

/* Byline next to the post date */
.post-byline a:hover {
  opacity: 0.85;
}

/* Blog cards */
.blog-card .blog-image img {
  transition: transform 0.35s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .blog-card:hover .blog-image img {
    transform: none;
  }
}

/* Infographic panels in posts: route maps, crawler tiers, annotated files, choices */
.blog-content .dr-figure {
  position: relative;
  margin: 2.25rem 0 2.5rem;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 70% 60% at 85% 0%, rgba(34, 211, 238, 0.14) 0%, rgba(34, 211, 238, 0) 70%),
    radial-gradient(ellipse 60% 70% at 0% 100%, rgba(255, 176, 32, 0.1) 0%, rgba(255, 176, 32, 0) 70%),
    var(--hero-gradient);
  color: #e2e8f0;
  box-shadow: 0 24px 48px -24px rgba(7, 15, 43, 0.55), inset 0 0 0 1px rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.blog-content .dr-figure-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.blog-content .dr-figure-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1.25rem;
}

.blog-content .dr-figure figcaption {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.blog-content .dr-figure code {
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
}

/* Route map: where a visit comes from and where it is filed */
.blog-content .route-map {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.blog-content .route-map li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

.blog-content .route-src,
.blog-content .route-dst {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  background: rgba(15, 31, 77, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.blog-content .route-src strong,
.blog-content .route-dst strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
}

.blog-content .route-src span,
.blog-content .route-dst span {
  display: block;
  color: #94a3b8;
  font-size: 0.8125rem;
}

.blog-content .route-line {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.2), var(--route-color, #60a5fa));
}

.blog-content .route-line::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -5px;
  border-left: 9px solid var(--route-color, #60a5fa);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.blog-content .route-dst { border-left: 3px solid var(--route-color, #60a5fa); }
.blog-content .route-ai { --route-color: #22d3ee; }
.blog-content .route-hidden { --route-color: #ffb020; }
.blog-content .route-organic { --route-color: #a78bfa; }
.blog-content .route-ref { --route-color: #60a5fa; }

.blog-content .bot-co { font-size: 0.8125rem; color: var(--text-light); }

/* Crawler tiers */
.blog-content .tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.blog-content .tier {
  border-radius: 12px;
  padding: 1rem 1rem 1.1rem;
  background: rgba(15, 31, 77, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-top: 3px solid var(--tier-color, #60a5fa);
}

.blog-content .tier h3 {
  color: #ffffff;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.blog-content .tier p {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 0.8rem;
}

.blog-content .tier-train { --tier-color: #ffb020; }
.blog-content .tier-search { --tier-color: #22d3ee; }
.blog-content .tier-user { --tier-color: #60a5fa; }

.blog-content .bot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-content .bot-chips li {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.2;
  color: #e2e8f0;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.blog-content .tier-verdict {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tier-color, #60a5fa);
}

/* Annotated file */
.blog-content .file-anatomy {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.blog-content .file-window {
  border-radius: 12px;
  background: #050b22;
  border: 1px solid rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.blog-content .file-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.8rem;
  background: rgba(148, 163, 184, 0.1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: #94a3b8;
}

.blog-content .file-window-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}

.blog-content .file-window-bar i:first-child { background: #ff8a3d; }
.blog-content .file-window-bar b { margin-left: 0.4rem; font-weight: 500; }

.blog-content .file-window pre {
  margin: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.9rem 1rem 1rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.blog-content .file-window .tok-h { color: #ffc24b; font-weight: 700; }
.blog-content .file-window .tok-q { color: #67e8f9; }
.blog-content .file-window .tok-l { color: #93c5fd; }
.blog-content .file-window .tok-m { color: #64748b; }

.blog-content .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 0.35rem;
  border-radius: 50%;
  background: var(--warm-gradient);
  color: #0b1437;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  vertical-align: 1px;
}

.blog-content .anatomy-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: note;
  display: grid;
  gap: 0.75rem;
}

.blog-content .anatomy-notes li {
  counter-increment: note;
  position: relative;
  margin: 0;
  padding-left: 2rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.blog-content .anatomy-notes li::before {
  content: counter(note);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--warm-gradient);
  color: #0b1437;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-content .anatomy-notes strong { color: #ffffff; }

/* Choice cards: options side by side, one recommended */
.blog-content .choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.blog-content .choice {
  position: relative;
  border-radius: 12px;
  padding: 1.1rem 1rem 1rem;
  background: rgba(15, 31, 77, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.blog-content .choice.is-pick {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.14) 0%, rgba(15, 31, 77, 0.6) 70%);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 16px 32px -18px rgba(34, 211, 238, 0.55);
}

.blog-content .choice-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.blog-content .is-pick .choice-badge {
  background: var(--warm-gradient);
  color: #0b1437;
}

.blog-content .choice h3 {
  color: #ffffff;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.blog-content .choice p {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}

.blog-content .choice .choice-for {
  margin-top: 0.7rem;
  color: #e2e8f0;
  font-weight: 600;
}

@media (max-width: 768px) {
  .blog-content .dr-figure { padding: 1.35rem 1.1rem 1.2rem; border-radius: 14px; }
  .blog-content .route-map li { grid-template-columns: 1fr; gap: 0.35rem; }
  .blog-content .route-line { width: 2px; height: 18px; margin-left: 1.2rem; background: linear-gradient(180deg, rgba(96, 165, 250, 0.2), var(--route-color, #60a5fa)); }
  .blog-content .route-line::after { right: auto; left: -5px; top: auto; bottom: -2px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--route-color, #60a5fa); border-bottom: 0; }
  .blog-content pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .blog-content .tier-grid,
  .blog-content .choice-grid,
  .blog-content .file-anatomy { grid-template-columns: 1fr; }
}

/* Chat mock: an answer with a labelled ad under it, and notes beside each part */
.blog-content .chat-mock {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}

.blog-content .chat-window {
  border-radius: 14px;
  background: #050b22;
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.blog-content .chat-user {
  justify-self: end;
  max-width: 85%;
  padding: 0.55rem 0.85rem;
  border-radius: 14px 14px 4px 14px;
  background: rgba(96, 165, 250, 0.22);
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.blog-content .chat-answer {
  padding: 0.8rem 0.9rem;
  border-radius: 4px 14px 14px 14px;
  background: rgba(15, 31, 77, 0.75);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.55;
}

.blog-content .chat-answer strong { color: #ffffff; }

.blog-content .chat-ad {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 176, 32, 0.08);
  border: 1px solid rgba(255, 176, 32, 0.55);
}

.blog-content .chat-ad-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--warm-gradient);
}

.blog-content .chat-ad-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffc24b;
  margin-bottom: 0.15rem;
}

.blog-content .chat-ad strong {
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.35;
}

.blog-content .chat-ad span.chat-ad-copy {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.45;
}

.blog-content .chat-notes {
  display: grid;
  gap: 0.85rem;
  align-content: center;
}

.blog-content .chat-note {
  border-left: 3px solid var(--note-color, #22d3ee);
  padding: 0.15rem 0 0.15rem 0.85rem;
}

.blog-content .chat-note.is-paid { --note-color: #ffb020; }

.blog-content .chat-note h3 {
  color: #ffffff;
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.blog-content .chat-note p {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}

/* Stat bars: one value per row, drawn to scale */
.blog-content .stat-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.blog-content .stat-bars li {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1rem;
  align-items: baseline;
}

.blog-content .stat-name {
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.blog-content .stat-name small {
  display: block;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 400;
}

.blog-content .stat-value {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--stat-color, #22d3ee);
}

.blog-content .stat-track {
  grid-column: 1 / -1;
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.blog-content .stat-fill {
  display: block;
  height: 100%;
  width: var(--stat-size, 50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), var(--stat-color, #22d3ee));
}

.blog-content .stat-earned { --stat-color: #22d3ee; --stat-size: 100%; }
.blog-content .stat-search { --stat-color: #a78bfa; --stat-size: 53%; }
.blog-content .stat-paid { --stat-color: #ffb020; --stat-size: 17%; }

/* A rendered image inside a post, with a caption */
.blog-content .post-figure {
  margin: 2.25rem 0 2.5rem;
}

.blog-content .post-figure img {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 16px 36px -18px rgba(7, 15, 43, 0.55);
}

.blog-content .post-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-light);
  text-align: center;
}

.blog-content .dr-figure figcaption a { color: #93c5fd; }

.blog-content .tier-earned { --tier-color: #22d3ee; }
.blog-content .tier-claimed { --tier-color: #34d399; }
.blog-content .tier-paid { --tier-color: #ffb020; }

.blog-content .source-note {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-light);
}

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

/* FAQ at the end of a post (the accordion itself is styled in main.css) */
.blog-faq {
  margin-top: 4rem;
}

.blog-content .blog-faq h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
