/* ESL Guide Article Template */
:root {
  --esl-blue: #046bd2;
  --esl-blue-deep: #045cb4;
  --esl-ink: #0f172a;
  --esl-body: #334155;
  --esl-muted: #64748b;
  --esl-line: rgba(15, 23, 42, 0.1);
  --esl-soft: #e8f1fb;
  --esl-paper: rgba(255, 255, 255, 0.72);
  --esl-measure: min(1120px, 100%);
}

body.single-post.esl-article {
  color: var(--esl-body);
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  background-color: #f3f7fc;
  background-image:
    radial-gradient(1200px 520px at 12% -10%, rgba(4, 107, 210, 0.16), transparent 60%),
    radial-gradient(900px 480px at 92% 8%, rgba(4, 92, 180, 0.1), transparent 55%),
    linear-gradient(180deg, #eef4fb 0%, #f7fafc 38%, #f3f7fc 100%);
  background-attachment: fixed;
}

body.single-post.esl-article .site-content,
body.single-post.esl-article #content,
body.single-post.esl-article .ast-container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.single-post.esl-article .site-content {
  padding: 0 0 4.5rem !important;
}

@media (min-width: 768px) {
  body.single-post.esl-article .site-content {
    padding: 0 0 6rem !important;
  }
}

body.single-post.esl-article #primary,
body.single-post.esl-article .content-area,
body.single-post.esl-article .ast-article-single {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

body.single-post.esl-article .ast-article-single {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0;
  padding: 2.25rem clamp(1.25rem, 5vw, 4.5rem) 3.25rem;
  box-shadow: none;
}

body.single-post.esl-article .entry-header,
body.single-post.esl-article .entry-content {
  max-width: 100%;
  width: 100%;
}

@media (min-width: 768px) {
  body.single-post.esl-article .ast-article-single {
    padding: 3.25rem clamp(2rem, 6vw, 5.5rem) 4rem;
  }
}

/* Title block */
body.single-post.esl-article .entry-header {
  margin: 0 0 2rem;
  padding: 0;
  text-align: left;
  max-width: none;
}

body.single-post.esl-article .entry-header::before {
  content: 'Ecommerce SEO Guide';
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--esl-blue);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(10px);
  animation: eslRise 0.7s ease forwards;
}

body.single-post.esl-article .entry-title {
  font-family: 'Sora', sans-serif !important;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.03em;
  color: var(--esl-ink) !important;
  margin: 0 0 1.15rem !important;
  opacity: 0;
  transform: translateY(14px);
  animation: eslRise 0.75s ease 0.08s forwards;
}

body.single-post.esl-article .entry-header::after {
  content: '';
  display: block;
  width: 4.5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--esl-blue), rgba(4, 107, 210, 0.15));
  border-radius: 0;
  transform-origin: left center;
  transform: scaleX(0);
  animation: eslDraw 0.8s ease 0.28s forwards;
}

body.single-post.esl-article .entry-meta {
  display: none !important;
}

/* Content typography */
body.single-post.esl-article .entry-content,
body.single-post.esl-article .entry-content p,
body.single-post.esl-article .entry-content li {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif !important;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--esl-body);
}

body.single-post.esl-article .entry-content > *:first-child {
  margin-top: 0;
}

body.single-post.esl-article .entry-content p {
  margin: 0 0 1.25rem;
}

body.single-post.esl-article .entry-content .esl-lede,
body.single-post.esl-article .entry-content > p:first-of-type {
  font-size: 1.22rem;
  line-height: 1.65;
  color: #1e293b;
  font-weight: 500;
}

body.single-post.esl-article .entry-content h2,
body.single-post.esl-article .entry-content h3,
body.single-post.esl-article .entry-content h4 {
  font-family: 'Sora', sans-serif !important;
  color: var(--esl-ink) !important;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  scroll-margin-top: 6rem;
}

body.single-post.esl-article .entry-content h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem) !important;
  font-weight: 650 !important;
  margin: 2.75rem 0 1rem !important;
  padding-top: 0.35rem;
  border-top: 1px solid var(--esl-line);
}

body.single-post.esl-article .entry-content h2:first-child {
  border-top: 0;
  margin-top: 1.5rem !important;
}

body.single-post.esl-article .entry-content h3 {
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  margin: 2rem 0 0.75rem !important;
}

body.single-post.esl-article .entry-content a {
  color: var(--esl-blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

body.single-post.esl-article .entry-content a:hover {
  color: var(--esl-blue);
}

body.single-post.esl-article .entry-content ul,
body.single-post.esl-article .entry-content ol {
  margin: 0 0 1.35rem;
  padding-left: 1.3rem;
}

body.single-post.esl-article .entry-content li {
  margin: 0.45rem 0;
  padding-left: 0.2rem;
}

body.single-post.esl-article .entry-content li::marker {
  color: var(--esl-blue);
}

body.single-post.esl-article .entry-content hr {
  border: 0;
  height: 1px;
  background: var(--esl-line);
  margin: 2.25rem 0;
}

body.single-post.esl-article .entry-content strong {
  color: var(--esl-ink);
  font-weight: 600;
}

body.single-post.esl-article .entry-content blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.15rem;
  border-left: 3px solid var(--esl-blue);
  color: #1e293b;
  font-size: 1.15rem;
  background: transparent;
}

body.single-post.esl-article .entry-content img,
body.single-post.esl-article .entry-content figure {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 0;
}

body.single-post.esl-article .entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Sora', sans-serif;
  font-size: 0.92rem;
  margin: 1.5rem 0 2rem;
}

body.single-post.esl-article .entry-content th,
body.single-post.esl-article .entry-content td {
  border-bottom: 1px solid var(--esl-line);
  padding: 0.7rem 0.55rem;
  text-align: left;
}

body.single-post.esl-article .entry-content th {
  color: var(--esl-ink);
  font-weight: 600;
  background: rgba(4, 107, 210, 0.05);
}

/* Post navigation */
body.single-post.esl-article .post-navigation {
  max-width: 100%;
  margin: 1.75rem 0 0;
  padding: 0 clamp(1.25rem, 5vw, 4.5rem);
  border-top: 1px solid var(--esl-line);
}

body.single-post.esl-article .post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-top: 1.25rem;
}

@media (min-width: 700px) {
  body.single-post.esl-article .post-navigation .nav-links {
    grid-template-columns: 1fr 1fr;
  }
}

body.single-post.esl-article .post-navigation a {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--esl-ink);
  text-decoration: none;
  padding: 0.9rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

body.single-post.esl-article .post-navigation a:hover {
  color: var(--esl-blue);
  border-bottom-color: rgba(4, 107, 210, 0.35);
}

body.single-post.esl-article .post-navigation .nav-previous,
body.single-post.esl-article .post-navigation .nav-next {
  margin: 0;
}

/* Reveal on scroll */
body.single-post.esl-article .entry-content > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

body.single-post.esl-article .entry-content > *.esl-in {
  opacity: 1;
  transform: none;
}

body.single-post.esl-article.reduce-motion .entry-content > *,
body.single-post.esl-article.reduce-motion .entry-title,
body.single-post.esl-article.reduce-motion .entry-header::before {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

body.single-post.esl-article.reduce-motion .entry-header::after {
  transform: scaleX(1) !important;
  animation: none !important;
}

@keyframes eslRise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes eslDraw {
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 640px) {
  body.single-post.esl-article .ast-article-single {
    padding: 1.5rem 1.1rem 2rem;
    border-left: 0;
    border-right: 0;
  }
}
