/* ==========================================================================
   EcomHolistic Ecommerce SEO Guide Stylesheet
   Long-form guide: reading progress bar, breadcrumbs, sticky TOC sidebar,
   article typography, infographics, FAQ accordion, CTA, newsletter.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reading Progress Bar
   -------------------------------------------------------------------------- */
.eh-guide-reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  background-color: transparent;
}

.eh-guide-reading-bar-fill {
  height: 100%;
  width: 0%;
  background-color: var(--eh-cta-primary);
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.eh-breadcrumbs {
  max-width: var(--eh-content-max);
  margin: 0 auto;
  padding: 100px 40px 0;
  font-family: var(--eh-font-body);
  font-size: 13px;
  color: var(--eh-folk-mid);
  text-align: center;
}

.eh-breadcrumbs a {
  color: var(--eh-folk-mid);
  text-decoration: none;
  transition: color 0.2s ease;
}

.eh-breadcrumbs a:hover {
  color: var(--eh-sage);
}

.eh-breadcrumbs-sep {
  margin: 0 6px;
  color: var(--eh-folk-mid);
  opacity: 0.5;
}

.eh-breadcrumbs-current {
  color: var(--eh-folk-dark);
}

/* --------------------------------------------------------------------------
   Hero Section (Ahrefs structure: centered title, author, date)
   -------------------------------------------------------------------------- */
.eh-ecom-seo-hero {
  max-width: var(--eh-content-max);
  margin: 0 auto;
  padding: 32px 40px 60px;
  text-align: center;
}

.eh-ecom-seo-hero-content {
  max-width: 820px;
  margin: 0 auto 36px;
}

.eh-ecom-seo-hero-title {
  font-family: var(--eh-font-heading);
  font-size: 38px;
  font-weight: 700;
  color: var(--eh-folk-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.eh-ecom-seo-hero-author {
  font-family: var(--eh-font-body);
  font-size: 15px;
  color: var(--eh-folk-mid);
  margin-bottom: 12px;
}

.eh-ecom-seo-hero-author a {
  color: var(--eh-folk-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}

.eh-ecom-seo-hero-author a:hover {
  color: var(--eh-sage);
}

.eh-ecom-seo-hero-meta-line {
  font-family: var(--eh-font-body);
  font-size: 14px;
  color: var(--eh-folk-mid);
}

.eh-ecom-seo-hero-meta-dot {
  margin: 0 8px;
}

.eh-ecom-seo-hero-featured {
  max-width: 900px;
  margin: 0 auto;
}

.eh-ecom-seo-hero-featured img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* --------------------------------------------------------------------------
   Case Study Hero Metrics Banner
   -------------------------------------------------------------------------- */
.eh-cs-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background-color: var(--eh-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.eh-cs-hero-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  text-align: center;
  position: relative;
}

.eh-cs-hero-metric:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: var(--eh-border-light);
}

.eh-cs-hero-metric-value {
  font-family: var(--eh-font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--eh-sage);
  line-height: 1.1;
  margin-bottom: 6px;
}

.eh-cs-hero-metric-label {
  font-family: var(--eh-font-body);
  font-size: 13px;
  color: var(--eh-folk-mid);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Guide Body: Two-Column Layout (TOC sidebar + Article)
   -------------------------------------------------------------------------- */
.eh-ecom-seo-guide {
  background-color: var(--eh-drip-cream);
  overflow-x: hidden;
}

.eh-ecom-seo-guide-inner {
  max-width: var(--eh-content-max);
  margin: 0 auto;
}

.eh-ecom-seo-guide-body {
  display: grid;
  grid-template-columns: 240px 1fr 180px;
  gap: 48px;
  max-width: var(--eh-content-max);
  margin: 0 auto;
  padding: 0 40px 80px;
}

/* --------------------------------------------------------------------------
   Sticky TOC Sidebar
   -------------------------------------------------------------------------- */
.eh-ecom-seo-toc {
  position: relative;
}

.eh-ecom-seo-toc-sticky {
  position: sticky;
  top: 88px;
}

.eh-ecom-seo-toc-label {
  font-family: var(--eh-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--eh-folk-mid);
  margin-bottom: 16px;
}

.eh-ecom-seo-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.eh-ecom-seo-toc-list li {
  counter-increment: toc;
  margin-bottom: 0;
}

.eh-ecom-seo-toc-list a {
  display: block;
  padding: 8px 12px;
  font-family: var(--eh-font-body);
  font-size: 13px;
  color: var(--eh-folk-mid);
  text-decoration: none;
  line-height: 1.4;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.eh-ecom-seo-toc-list a:hover {
  color: var(--eh-sage);
}

.eh-ecom-seo-toc-list a.eh-toc-active {
  color: var(--eh-sage);
  border-left-color: var(--eh-sage);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Author Sidebar Card (Ahrefs-style, own grid column)
   -------------------------------------------------------------------------- */
.eh-ecom-seo-author-card {
  min-width: 0;
}

.eh-ecom-seo-author-card-avatar {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50%);
  margin-bottom: 16px;
}

.eh-ecom-seo-author-card-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  clip-path: circle(50%);
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.eh-ecom-seo-author-card-name {
  display: block;
  font-family: var(--eh-font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--eh-folk-dark);
  text-decoration: none;
  margin-bottom: 12px;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.eh-ecom-seo-author-card-name:hover {
  color: var(--eh-sage);
}

.eh-ecom-seo-author-card-bio {
  font-family: var(--eh-font-body);
  font-size: 13px;
  color: var(--eh-folk-mid);
  line-height: 1.65;
  margin-bottom: 14px;
}

.eh-ecom-seo-author-card-social {
  display: inline-flex;
  color: var(--eh-folk-mid);
  transition: color 0.2s ease;
}

.eh-ecom-seo-author-card-social:hover {
  color: var(--eh-sage);
}

/* --------------------------------------------------------------------------
   Article Content Typography
   -------------------------------------------------------------------------- */
.eh-ecom-seo-article {
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.eh-ecom-seo-article .entry-content {
  max-width: 720px;
  overflow: hidden;
}

.eh-ecom-seo-section {
  margin-bottom: 0;
}

.eh-ecom-seo-section h2 {
  font-family: var(--eh-font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--eh-folk-dark);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  padding-top: 20px;
}

.eh-ecom-seo-section h3 {
  font-family: var(--eh-font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--eh-folk-dark);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-top: 28px;
  margin-bottom: 14px;
}

.eh-ecom-seo-section h4 {
  font-family: var(--eh-font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--eh-folk-dark);
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin-top: 24px;
  margin-bottom: 10px;
}

.eh-ecom-seo-section p {
  font-family: var(--eh-font-body);
  font-size: 18px;
  color: var(--eh-folk-dark);
  line-height: 1.7;
  margin-bottom: 18px;
}

.eh-ecom-seo-section ul,
.eh-ecom-seo-section ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.eh-ecom-seo-section li {
  font-family: var(--eh-font-body);
  font-size: 18px;
  color: var(--eh-folk-dark);
  line-height: 1.7;
  margin-bottom: 10px;
}

.eh-ecom-seo-section ul li::marker {
  color: var(--eh-sage);
}

.eh-ecom-seo-section strong {
  color: var(--eh-folk-dark);
  font-weight: 600;
}

.eh-ecom-seo-section a {
  color: var(--eh-sage);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.eh-ecom-seo-section a:hover {
  color: var(--eh-sage-hover);
}

/* --------------------------------------------------------------------------
   Infographic Figures
   -------------------------------------------------------------------------- */
.eh-ecom-seo-infographic {
  margin: 32px 0;
  display: flex;
  flex-direction: column;
}

.eh-ecom-seo-infographic img {
  width: 100%;
  height: auto;
  display: block;
  order: 1;
  border-radius: 16px;
}

.eh-ecom-seo-infographic figcaption {
  font-family: var(--eh-font-body);
  font-size: 13px;
  color: var(--eh-folk-mid);
  text-align: center;
  padding: 10px 16px;
  order: 2;
}

.eh-ecom-seo-infographic script {
  display: none;
  order: 3;
}

/* --------------------------------------------------------------------------
   Code Blocks (Python tutorials, scripts, terminal output)
   -------------------------------------------------------------------------- */
.eh-ecom-seo-code {
  margin: 36px 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1117;
  box-shadow: 0 12px 32px rgba(13, 17, 23, 0.22), 0 2px 6px rgba(13, 17, 23, 0.12);
  border: 1px solid #1f2937;
  position: relative;
}

.eh-ecom-seo-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

.eh-ecom-seo-code-head::before {
  content: "";
  display: inline-flex;
  width: 52px;
  height: 12px;
  background-image: radial-gradient(circle at 6px 6px, #ff5f57 0 6px, transparent 6px),
                    radial-gradient(circle at 26px 6px, #febc2e 0 6px, transparent 6px),
                    radial-gradient(circle at 46px 6px, #28c840 0 6px, transparent 6px);
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.eh-ecom-seo-code-lang {
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #7ee7c5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eh-ecom-seo-code pre {
  margin: 0;
  padding: 24px 28px;
  overflow-x: auto;
  background: #0d1117;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 14px;
  line-height: 1.75;
  color: #e6edf3;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #30363d #0d1117;
}

.eh-ecom-seo-code pre::-webkit-scrollbar {
  height: 10px;
}

.eh-ecom-seo-code pre::-webkit-scrollbar-track {
  background: #0d1117;
}

.eh-ecom-seo-code pre::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 5px;
}

.eh-ecom-seo-code pre::-webkit-scrollbar-thumb:hover {
  background: #484f58;
}

.eh-ecom-seo-code code {
  background: none;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  white-space: pre;
  border: none;
}

/* Inline code (within paragraphs and list items) */
.eh-ecom-seo-section p code,
.eh-ecom-seo-section li code,
.eh-ecom-seo-section td code {
  background: rgba(72, 19, 253, 0.08);
  color: #4813FD;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.9em;
  border: 1px solid rgba(72, 19, 253, 0.18);
  white-space: nowrap;
  font-weight: 500;
}

/* Screenshot/UI mockup figure (Colab, GSC, terminal output illustrations) */
.eh-ecom-seo-screenshot {
  margin: 36px 0;
  display: flex;
  flex-direction: column;
}

.eh-ecom-seo-screenshot picture,
.eh-ecom-seo-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  order: 1;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(13, 17, 23, 0.14), 0 2px 6px rgba(13, 17, 23, 0.08);
  border: 1px solid rgba(13, 17, 23, 0.06);
}

.eh-ecom-seo-screenshot figcaption {
  font-family: var(--eh-font-body);
  font-size: 13px;
  color: var(--eh-folk-mid);
  text-align: center;
  padding: 12px 16px 0;
  order: 2;
  font-style: italic;
}

@media (max-width: 768px) {
  .eh-ecom-seo-code pre {
    padding: 18px 20px;
    font-size: 13px;
  }
  .eh-ecom-seo-code-head {
    padding: 10px 16px;
  }
}

/* --------------------------------------------------------------------------
   Comparison Tables
   -------------------------------------------------------------------------- */
.eh-ecom-seo-table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.eh-ecom-seo-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--eh-font-body);
  font-size: 14px;
  line-height: 1.55;
  color: var(--eh-folk-dark);
  border: 1px solid rgba(8, 15, 16, 0.1);
}

.eh-ecom-seo-table thead th {
  background: #4813FD;
  color: #fff;
  font-family: var(--eh-font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid rgba(8, 15, 16, 0.08);
}

.eh-ecom-seo-table thead th:first-child {
  background: #e7e8fe;
  color: var(--eh-folk-dark);
  font-weight: 700;
}

.eh-ecom-seo-table tbody td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(8, 15, 16, 0.06);
  vertical-align: top;
}

.eh-ecom-seo-table tbody td:first-child {
  background: rgba(28, 225, 190, 0.08);
  font-family: var(--eh-font-heading);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--eh-folk-dark);
  white-space: nowrap;
}

.eh-ecom-seo-table tbody tr:nth-child(even) td {
  background-color: rgba(231, 232, 254, 0.35);
}

.eh-ecom-seo-table tbody tr:nth-child(even) td:first-child {
  background: rgba(28, 225, 190, 0.12);
}

.eh-ecom-seo-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive: horizontal scroll on small screens */
@media (max-width: 640px) {
  .eh-ecom-seo-table {
    font-size: 13px;
    min-width: 580px;
  }

  .eh-ecom-seo-table thead th,
  .eh-ecom-seo-table tbody td {
    padding: 10px 12px;
  }
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.eh-ecom-seo-faq-list {
  max-width: 680px;
}

.eh-ecom-seo-faq-item {
  border-bottom: 1px solid rgba(168, 162, 158, 0.2);
}

.eh-ecom-seo-faq-item:first-child {
  border-top: 1px solid rgba(168, 162, 158, 0.2);
}

.eh-ecom-seo-faq-q,
.eh-ecom-seo-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--eh-font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--eh-folk-dark);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.eh-ecom-seo-faq-q:hover,
.eh-ecom-seo-faq-question:hover {
  color: var(--eh-sage);
}

.eh-ecom-seo-faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 16px;
  color: var(--eh-folk-mid);
  transition: transform 0.3s ease, color 0.2s ease;
}

.eh-ecom-seo-faq-q[aria-expanded="true"] .eh-ecom-seo-faq-icon,
.eh-ecom-seo-faq-question[aria-expanded="true"] .eh-ecom-seo-faq-icon {
  transform: rotate(45deg);
  color: var(--eh-sage);
}

.eh-ecom-seo-faq-a,
.eh-ecom-seo-faq-answer {
  display: none;
  padding: 0 0 20px;
}

.eh-ecom-seo-faq-q[aria-expanded="true"] + .eh-ecom-seo-faq-a,
.eh-ecom-seo-faq-question[aria-expanded="true"] + .eh-ecom-seo-faq-answer {
  display: block;
}

.eh-ecom-seo-faq-a p,
.eh-ecom-seo-faq-answer p {
  font-family: var(--eh-font-body);
  font-size: 15.5px;
  color: var(--eh-folk-mid);
  line-height: 1.7;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Botanical Section Dividers
   -------------------------------------------------------------------------- */
.eh-ecom-seo-cta,
.eh-ecom-seo-newsletter {
  position: relative;
}

.eh-ecom-seo-cta::before,
.eh-ecom-seo-newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  z-index: 3;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PScwIDAgMTIwMCAzMicgZmlsbD0nbm9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E2OTUnIG9wYWNpdHk9JzAuMTgnLz48Y2lyY2xlIGN4PSc3NDAnIGN5PScxNCcgcj0nMS44JyBmaWxsPScjRjJBNjk1JyBvcGFjaXR5PScwLjE1Jy8+PGNpcmNsZSBjeD0nMTEwMCcgY3k9JzE1JyByPScxLjUnIGZpbGw9JyNGMkE2OTUnIG9wYWNpdHk9JzAuMTInLz48L3N2Zz4=");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 32px;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.eh-ecom-seo-cta {
  padding: 100px 40px;
  background-color: var(--eh-drip-cream);
  text-align: center;
}

.eh-ecom-seo-cta h2 {
  font-family: var(--eh-font-heading);
  font-size: 31px;
  font-weight: 700;
  color: var(--eh-folk-dark);
  line-height: 1.25;
  max-width: 600px;
  margin: 0 auto 20px;
}

.eh-ecom-seo-cta p {
  font-family: var(--eh-font-body);
  font-size: 17px;
  color: var(--eh-folk-mid);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 32px;
}

.eh-ecom-seo-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Override .eh-ecom-seo-section a styles on CTA buttons */
.eh-ecom-seo-cta-buttons .eh-btn,
.eh-ecom-seo-cta-buttons .eh-btn:visited,
.eh-ecom-seo-cta-buttons .eh-btn:active {
  text-decoration: none;
}

.eh-ecom-seo-cta-buttons .eh-btn-primary,
.eh-ecom-seo-cta-buttons .eh-btn-primary:visited,
.eh-ecom-seo-cta-buttons .eh-btn-primary:active {
  color: var(--eh-white);
  background-color: var(--eh-cta-primary);
  border-color: var(--eh-cta-primary);
}

.eh-ecom-seo-cta-buttons .eh-btn-primary:hover {
  color: var(--eh-white);
  background-color: var(--eh-cta-primary-hover);
  border-color: var(--eh-cta-primary-hover);
  text-decoration: none;
}

.eh-ecom-seo-cta-buttons .eh-btn-secondary,
.eh-ecom-seo-cta-buttons .eh-btn-secondary:visited,
.eh-ecom-seo-cta-buttons .eh-btn-secondary:active {
  color: var(--eh-white);
  background-color: var(--eh-cta-secondary);
  border-color: var(--eh-cta-secondary);
}

.eh-ecom-seo-cta-buttons .eh-btn-secondary:hover {
  color: var(--eh-white);
  background-color: var(--eh-cta-secondary-hover);
  border-color: var(--eh-cta-secondary-hover);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Newsletter Section
   -------------------------------------------------------------------------- */
.eh-ecom-seo-newsletter {
  padding: 100px 40px;
  background-color: var(--eh-drip-cream);
}

.eh-ecom-seo-newsletter-inner {
  max-width: var(--eh-content-max);
  margin: 0 auto;
  text-align: center;
}

.eh-ecom-seo-newsletter-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.eh-ecom-seo-newsletter-icon svg {
  width: 72px;
  height: 72px;
  animation: eh-hue-cycle 20s infinite linear;
  animation-delay: -5s;
}

.eh-ecom-seo-newsletter h2 {
  font-family: var(--eh-font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--eh-folk-dark);
  line-height: 1.3;
  max-width: 600px;
  margin: 0 auto 16px;
}

.eh-ecom-seo-newsletter-inner > p {
  font-family: var(--eh-font-body);
  font-size: 16px;
  color: var(--eh-folk-mid);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 32px;
}

.eh-ecom-seo-newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 16px;
  align-items: stretch;
}

.eh-ecom-seo-newsletter-input {
  flex: 1;
  min-width: 0;
  background-color: var(--eh-white);
  border: 1.5px solid rgba(168, 162, 158, 0.3);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--eh-font-body);
  font-size: 15px;
  color: var(--eh-folk-dark);
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

.eh-ecom-seo-newsletter-input::placeholder {
  color: var(--eh-folk-mid);
}

.eh-ecom-seo-newsletter-input:focus {
  border-color: var(--eh-sage);
}

.eh-ecom-seo-newsletter-btn {
  flex-shrink: 0;
  background-color: var(--eh-cta-primary);
  color: var(--eh-white);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: var(--eh-font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.eh-ecom-seo-newsletter-btn:hover {
  background-color: var(--eh-cta-primary-hover);
}

.eh-ecom-seo-newsletter-note {
  font-family: var(--eh-font-body);
  font-size: 12px;
  color: var(--eh-folk-mid);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
/* Default: visible. JS activates the hidden state. */
.eh-ecom-seo-animate {
  opacity: 1;
  transform: none;
}

html.eh-js:not(.eh-inapp) .eh-ecom-seo-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.eh-ecom-seo-animate.eh-ecom-seo-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Continuous dot animations (hero illustration) */
.eh-anim-dot {
  animation: eh-ecom-seo-float 4s ease-in-out infinite;
}

.eh-anim-dot-1 { animation-delay: 0s; }
.eh-anim-dot-2 { animation-delay: -1.3s; }
.eh-anim-dot-3 { animation-delay: -2.6s; }

@keyframes eh-ecom-seo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .eh-ecom-seo-animate,
  html.eh-js .eh-ecom-seo-animate {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .eh-ecom-seo-newsletter-icon svg {
    animation: none;
  }

  .eh-anim-dot {
    animation: none;
  }

  .eh-guide-reading-bar-fill {
    transition: none;
  }
}

/* ==========================================================================
   Responsive: Tablet (768-1199px)
   ========================================================================== */
@media (max-width: 1199px) {
  .eh-breadcrumbs {
    padding: 90px 24px 0;
  }

  .eh-ecom-seo-hero {
    padding: 40px 24px 48px;
  }

  .eh-ecom-seo-hero-title {
    font-size: 32px;
  }

  .eh-cs-hero-metric-value {
    font-size: 26px;
  }

  .eh-cs-hero-metric {
    padding: 22px 12px;
  }

  .eh-ecom-seo-guide-body {
    grid-template-columns: 200px 1fr;
    gap: 36px;
    padding: 0 24px 64px;
  }

  .eh-ecom-seo-author-card {
    display: none !important;
  }

  .eh-ecom-seo-toc-list a {
    font-size: 12px;
    padding: 6px 10px;
  }

  .eh-ecom-seo-section h2 {
    font-size: 25px;
  }

  .eh-ecom-seo-cta {
    padding: 80px 24px;
  }

  .eh-ecom-seo-newsletter {
    padding: 80px 24px;
  }
}

/* ==========================================================================
   Responsive: Mobile (< 768px)
   ========================================================================== */
@media (max-width: 767px) {
  .eh-breadcrumbs {
    padding: 80px 24px 0;
  }

  .eh-ecom-seo-hero {
    padding: 20px 24px 40px;
  }

  .eh-ecom-seo-hero-content {
    margin-bottom: 28px;
  }

  .eh-ecom-seo-hero-title {
    font-size: 28px;
  }

  .eh-ecom-seo-hero-featured img {
    border-radius: 8px;
  }

  .eh-cs-hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .eh-cs-hero-metric:nth-child(2)::after {
    display: none;
  }

  .eh-cs-hero-metric:nth-child(1),
  .eh-cs-hero-metric:nth-child(2) {
    border-bottom: 1px solid var(--eh-border-light);
  }

  .eh-cs-hero-metric-value {
    font-size: 24px;
  }

  .eh-cs-hero-metric {
    padding: 20px 12px;
  }

  /* Hide TOC sidebar on mobile */
  .eh-ecom-seo-guide-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 24px 56px;
  }

  .eh-ecom-seo-toc {
    display: none;
  }

  .eh-ecom-seo-section h2 {
    font-size: 23px;
  }

  .eh-ecom-seo-section h3 {
    font-size: 19px;
  }

  .eh-ecom-seo-section p,
  .eh-ecom-seo-section li {
    font-size: 15.5px;
  }

  .eh-ecom-seo-infographic {
    margin: 24px -12px;
  }

  .eh-ecom-seo-infographic img {
    border-radius: 12px;
  }

  .eh-ecom-seo-cta {
    padding: 56px 24px;
  }

  .eh-ecom-seo-cta h2 {
    font-size: 24px;
  }

  .eh-ecom-seo-cta p {
    font-size: 16px;
  }

  .eh-ecom-seo-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .eh-ecom-seo-newsletter {
    padding: 56px 24px;
  }

  .eh-ecom-seo-newsletter h2 {
    font-size: 24px;
  }

  .eh-ecom-seo-newsletter-form {
    flex-direction: column;
  }

  .eh-ecom-seo-newsletter-input,
  .eh-ecom-seo-newsletter-btn {
    width: 100%;
  }

  .eh-ecom-seo-faq-q {
    font-size: 15px;
  }
}

/* ==========================================================================
   Responsive: Small Mobile (< 480px)
   ========================================================================== */
@media (max-width: 479px) {
  .eh-breadcrumbs {
    padding: 76px 20px 0;
    font-size: 12px;
  }

  .eh-ecom-seo-hero {
    padding: 16px 20px 32px;
  }

  .eh-ecom-seo-hero-title {
    font-size: 24px;
  }

  .eh-ecom-seo-guide-body {
    padding: 0 20px 48px;
  }

  .eh-ecom-seo-section h2 {
    font-size: 21px;
  }

  .eh-ecom-seo-cta {
    padding: 48px 20px;
  }

  .eh-ecom-seo-newsletter {
    padding: 48px 20px;
  }

  .eh-ecom-seo-newsletter h2 {
    font-size: 22px;
  }
}
