/* =========================================================================
   iviG Technical SEO — SEO Guides (hub + articles)
   Loads AFTER home.css and reuses its variables, header, footer, buttons,
   FAQ and cookie banner styles. Everything here is guides-specific.
   ========================================================================= */

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.breadcrumbs a {
  color: var(--text-secondary);
  transition: var(--transition);
}
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .crumb-sep { color: var(--gray-mid); }

/* ===== HUB HERO ===== */
.guides-hero {
  padding: 140px 0 48px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.guides-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,127,249,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.guides-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.guides-hero .section-subtitle { max-width: 640px; }

/* ===== GUIDE CARDS GRID ===== */
.guides-list {
  padding: 24px 0 100px;
  background: var(--bg);
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(45,127,249,0.35);
}
.guide-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}
.guide-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.guide-card:hover .guide-card-image img { transform: scale(1.04); }
.guide-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 20px;
}
.guide-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-light);
}
.guide-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.guide-card h2, .guide-card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.guide-card:hover h2, .guide-card:hover h3 { color: var(--primary); }
.guide-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}
.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-light);
  font-size: 13px;
  color: var(--text-light);
}
.guide-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
}
.guide-read-more svg { transition: var(--transition); }
.guide-card:hover .guide-read-more svg { transform: translateX(3px); }

.guides-note {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
}

/* Homepage teaser section */
.guides-teaser {
  padding: 100px 0;
  background: var(--bg-alt);
}
.guides-grid-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 880px;
  margin: 0 auto;
}
.guides-grid-four {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.guides-grid-four .guide-card-body h3 { font-size: 1.02rem; }
.guides-grid-four .guide-card-excerpt { font-size: 0.88rem; }
.guides-teaser .guide-card { background: var(--bg); }
@media (max-width: 768px) {
  .guides-grid-two { grid-template-columns: 1fr; }
  .guides-teaser { padding: 64px 0; }
}

/* ===== ARTICLE HERO ===== */
.article-hero {
  padding: 130px 0 36px;
  background: var(--bg);
}
.article-hero-inner { max-width: 860px; margin: 0 auto; }
.article-hero h1 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -1px;
  margin: 14px 0 18px;
}
.article-standfirst {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
}
.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-light);
}
.article-meta-row .author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}
.article-meta-row .author img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.article-featured {
  max-width: 860px;
  margin: 28px auto 0;
}
.article-featured img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--gray-light);
  box-shadow: var(--shadow-lg);
}
.article-featured figcaption {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  margin-top: 10px;
}

/* ===== ARTICLE BODY ===== */
.article-body {
  padding: 40px 0 80px;
  background: var(--bg);
}
.article-prose {
  max-width: 720px;
  margin: 0 auto;
}
.article-prose > * { margin-bottom: 20px; }
.article-prose h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin: 48px 0 16px;
  scroll-margin-top: 96px;
}
.article-prose h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin: 32px 0 12px;
  scroll-margin-top: 96px;
}
.article-prose p, .article-prose li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.article-prose ul, .article-prose ol {
  padding-left: 24px;
}
.article-prose ul { list-style: disc; }
.article-prose ol { list-style: decimal; }
.article-prose li { margin-bottom: 8px; }
.article-prose li::marker { color: var(--primary); }
.article-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article-prose a:hover { color: var(--primary-hover); }
.article-prose strong { color: var(--dark); }
.article-prose code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.85em;
  background: var(--bg-alt);
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--dark);
  white-space: nowrap;
}

/* Wide elements break out of the prose column a little */
.article-wide {
  max-width: 860px;
  margin: 28px auto;
}

/* ===== TOC ===== */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 32px 0;
}
.toc h2 {
  font-size: 13px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin: 0 0 14px !important;
}
.toc ol {
  list-style: none !important;
  padding: 0 !important;
  columns: 2;
  column-gap: 32px;
}
.toc li { margin-bottom: 8px; break-inside: avoid; }
.toc a {
  font-size: 14px;
  color: var(--text) !important;
  text-decoration: none !important;
  display: inline-flex;
  gap: 8px;
  line-height: 1.5;
}
.toc a:hover { color: var(--primary) !important; }
.toc .toc-num {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  min-width: 18px;
}

/* ===== CODE BLOCKS ===== */
.code-block {
  background: var(--dark);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.code-block-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.code-block-bar .code-lang {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  transition: var(--transition);
}
.copy-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.copy-btn.copied { background: rgba(34,197,94,0.25); color: #6ee7a0; }
.code-block pre {
  padding: 18px 20px;
  overflow-x: auto;
  margin: 0;
}
.code-block pre code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #E5E7EB;
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
}
.code-block .c-tag { color: #7DAFFF; }
.code-block .c-attr { color: #9CA3AF; }
.code-block .c-val { color: #6EE7A0; }
.code-block .c-com { color: #6B7280; font-style: italic; }

/* ===== STAT TILES ===== */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.stat-tile {
  background: var(--bg);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 24px 22px 20px;
  position: relative;
  overflow: hidden;
}
.stat-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #5a9eff);
}
.stat-tile .stat-value {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--dark);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-tile .stat-label {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
}
.stat-tile .stat-source {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 10px;
}

/* ===== BAR CHART (horizontal) ===== */
.chart-card {
  background: var(--bg);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 26px 26px 18px;
  margin: 28px 0;
  overflow: hidden; /* bar labels must never widen the page */
}
.chart-card .chart-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.chart-card .chart-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.chart-rows { display: flex; flex-direction: column; gap: 14px; }
.chart-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 14px;
}
.chart-row .bar-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  line-height: 1.3;
}
.chart-row .bar-label small {
  display: block;
  font-weight: 400;
  color: var(--text-light);
  font-size: 11px;
}
.bar-track {
  position: relative;
  height: 26px;
  background: var(--bg-alt);
  border-radius: 6px;
}
.bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  background: var(--primary);
  border-radius: 6px 4px 4px 6px;
  transition: width 1.1s cubic-bezier(0.25, 0.8, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.bar-fill.green { background: #16A34A; }
.bar-value {
  position: absolute;
  left: calc(var(--w) + 10px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 0.5s ease 0.7s;
}
.bar-value-in {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding-right: 10px;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 0.5s ease 0.7s;
}
.chart-visible .bar-fill { width: var(--w); }
.chart-visible .bar-value, .chart-visible .bar-value-in { opacity: 1; }
.bar-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-bg-strong);
  color: #15803d;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.chart-source {
  font-size: 11.5px;
  color: var(--text-light);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-light);
}
.chart-source a { color: var(--text-secondary) !important; }

/* ===== LENGTH RULER ===== */
.length-ruler { margin: 24px 0; }
.length-ruler .ruler-caption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.ruler-track {
  position: relative;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  border: 1px solid var(--gray-light);
}
.ruler-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.ruler-zone.z-risky { background: #FEF3C7; color: #92400E; }
.ruler-zone.z-good { background: var(--green-bg-strong); color: #15803d; }
.ruler-zone.z-bad { background: #FEE2E2; color: #991B1B; }

/* ===== SERP SNIPPET PREVIEW ===== */
.serp-card {
  background: var(--bg);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: Arial, sans-serif;
  box-shadow: var(--shadow-sm);
}
.serp-site {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.serp-favicon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.serp-favicon img { width: 16px; height: 16px; }
.serp-sitename { font-size: 14px; color: #202124; line-height: 1.3; }
.serp-url { font-size: 12px; color: #4d5156; }
.serp-title {
  font-size: 20px;
  color: #1a0dab;
  line-height: 1.3;
  margin-bottom: 6px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.serp-title:hover { text-decoration: underline; }
.serp-desc {
  font-size: 14px;
  color: #4d5156;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.serp-desc .serp-date { color: #70757a; }

/* ===== SNIPPET TOOL ===== */
.snippet-tool {
  background: var(--bg-alt);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 28px;
  margin: 28px 0;
}
.snippet-tool .tool-field { margin-bottom: 18px; }
.snippet-tool label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}
.char-count { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.char-count.ok { color: #15803d; }
.char-count.warn { color: #B45309; }
.char-count.over { color: #B91C1C; }
.snippet-tool input, .snippet-tool textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  resize: vertical;
}
.snippet-tool input:focus, .snippet-tool textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}
.snippet-tool .tool-preview-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin: 22px 0 10px;
}

/* ===== TAG SECTION HEADERS ===== */
.tag-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 6px;
}
.tag-head .tag-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.impact-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: auto;
  white-space: nowrap;
}
.impact-badge.direct { background: var(--green-bg-strong); color: #15803d; }
.impact-badge.indirect { background: var(--primary-bg-strong); color: var(--primary-hover); }
.impact-badge.technical { background: #F3F4F6; color: var(--text-secondary); }

/* ===== GOOD / BAD EXAMPLES ===== */
.example-pair { display: grid; gap: 12px; margin: 20px 0; }
.example {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.example .ex-mark {
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.example.good { background: var(--green-bg); border-color: rgba(34,197,94,0.3); }
.example.good .ex-mark { background: #16A34A; color: #fff; }
.example.bad { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.25); }
.example.bad .ex-mark { background: #EF4444; color: #fff; }
.example .ex-text strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; }
.example.good .ex-text strong { color: #15803d; }
.example.bad .ex-text strong { color: #B91C1C; }

/* ===== DIRECTIVES TABLE ===== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  margin: 24px 0;
}
.dir-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.dir-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--gray-light);
  white-space: nowrap;
}
.dir-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-light);
  color: var(--text);
  line-height: 1.6;
  vertical-align: top;
}
.dir-table tr:last-child td { border-bottom: none; }
.dir-table td:first-child { white-space: nowrap; }

/* ===== KEEP / SKIP LISTS ===== */
.keep-skip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.ks-col {
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid;
}
.ks-col.keep { background: var(--green-bg); border-color: rgba(34,197,94,0.25); }
.ks-col.skip { background: rgba(239,68,68,0.04); border-color: rgba(239,68,68,0.2); }
.ks-col h3 {
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px !important;
}
.ks-col.keep h3 { color: #15803d !important; }
.ks-col.skip h3 { color: #B91C1C !important; }
.ks-col ul { list-style: none !important; padding: 0 !important; }
.ks-col li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px !important;
  margin-bottom: 10px !important;
}
.ks-col li svg { flex-shrink: 0; margin-top: 3px; }
.ks-col.keep li svg { color: #16A34A; }
.ks-col.skip li svg { color: #EF4444; }
.ks-col li code { background: rgba(255,255,255,0.7); }

/* ===== CHECKLIST ===== */
.check-card {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin: 28px 0;
  color: rgba(255,255,255,0.85);
}
.check-card h3 {
  color: #fff !important;
  font-size: 18px !important;
  margin: 0 0 18px !important;
}
.check-card ul { list-style: none !important; padding: 0 !important; }
.check-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14.5px !important;
  color: rgba(255,255,255,0.85) !important;
  margin: 0 !important;
}
.check-card li:last-child { border-bottom: none; }
.check-card li svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.check-card code {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  color: #A7C7FF;
}

/* ===== CALLOUT ===== */
.callout {
  display: flex;
  gap: 14px;
  background: var(--primary-bg);
  border: 1px solid rgba(45,127,249,0.25);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-xs);
  padding: 18px 20px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.7;
}
.callout svg { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.callout strong { color: var(--dark); }

/* ===== METHOD QUIZ ===== */
.vm-quiz {
  background: var(--bg-alt);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 28px;
  margin: 28px 0;
}
.vm-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  line-height: 1.5;
}
.vm-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.vm-btn {
  padding: 12px 26px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--gray-light);
  background: var(--bg);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
}
.vm-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.vm-result-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-bg-strong);
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.vm-result-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.vm-result p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}
.vm-restart {
  margin-top: 18px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== AUTHOR BOX ===== */
.author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 40px 0 0;
}
.author-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-box .author-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}
.author-box .author-role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 2px 0 8px;
}
.author-box p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }
.author-box a { color: var(--primary); text-decoration: underline; }

/* ===== ARTICLE CTA ===== */
.article-cta {
  background: linear-gradient(135deg, #2D7FF9 0%, #1a5fd0 100%);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin: 48px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}
.article-cta h2 {
  color: #fff !important;
  font-size: clamp(22px, 3vw, 28px) !important;
  margin: 0 0 10px !important;
}
.article-cta p {
  color: rgba(255,255,255,0.85) !important;
  max-width: 480px;
  margin: 0 auto 22px !important;
  font-size: 15px !important;
}
.article-cta .btn {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.article-cta .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ===== BACK LINK ===== */
.article-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 36px;
  transition: var(--transition);
}
.article-backlink:hover { color: var(--primary); }

/* ===== INDEXING PIPELINE (page-not-indexed guide) ===== */
.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin: 28px 0;
}
.pipe-step {
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 22px 18px;
  text-align: center;
}
.pipe-num {
  width: 32px;
  height: 32px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pipe-step h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px !important;
}
.pipe-step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 12px !important;
}
.pipe-fail {
  font-size: 12px;
  line-height: 1.5;
  color: #B45309;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
}
.pipe-arrow {
  display: flex;
  align-items: center;
  color: var(--gray-mid);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .guides-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .guides-hero { padding: 116px 0 32px; }
  .article-hero { padding: 108px 0 24px; }
  .guides-grid { grid-template-columns: 1fr; }
  .stat-tiles { grid-template-columns: 1fr; }
  .keep-skip { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .chart-row { grid-template-columns: 86px 1fr; gap: 10px; }
  .chart-row .bar-label { font-size: 12px; }
  .serp-title { font-size: 18px; }
  .author-box { flex-direction: column; }
  .snippet-tool { padding: 20px 18px; }
  .check-card { padding: 24px 20px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipe-arrow { justify-content: center; transform: rotate(90deg); }
}
@media (max-width: 560px) {
  /* Bar tracks get too short for the pill tag next to outside labels */
  .bar-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bar-fill, .guide-card, .guide-card-image img, .animate-in { transition: none !important; }
  .animate-in { opacity: 1 !important; transform: none !important; }
  .chart-visible .bar-fill { width: var(--w); }
  .bar-value, .bar-value-in { opacity: 1 !important; }
}
