/* Seo Move — Blog hub & articles */

/* ── Hub & category cards ── */
.sm-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.sm-blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 20px;
  border-radius: var(--dp-radius-sm);
  background: var(--dp-surface);
  border: 1px solid var(--dp-line);
  box-shadow: var(--dp-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sm-blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(118, 174, 10, 0.35);
  box-shadow: 0 22px 48px rgba(15, 20, 16, 0.12);
}

.sm-blog-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.sm-blog-card__cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sm-blog-card__cat--seo {
  background: #eef6df;
  color: #4a7a06;
}

.sm-blog-card__cat--ai {
  background: #ede9ff;
  color: #5b3fbf;
}

.sm-blog-card__cat--context {
  background: #e8f4ff;
  color: #1a6fad;
}

.sm-blog-card__date {
  font-size: 0.78rem;
  color: var(--dp-muted);
}

.sm-blog-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 800;
}

.sm-blog-card p {
  margin: 0;
  flex: 1;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--dp-muted);
}

.sm-blog-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--dp-line);
}

.sm-blog-card__time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dp-accent-dark);
}

.sm-blog-card__arrow {
  font-weight: 800;
  color: var(--dp-accent);
}

/* ── Article hero ── */
.dp-article {
  padding-top: 8px;
}

.dp-article__hero {
  position: relative;
  padding: 28px 0 36px;
  margin-bottom: 8px;
}

.dp-article__hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(118, 174, 10, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(118, 174, 10, 0.06), transparent 50%);
  pointer-events: none;
  border-radius: 0 0 var(--dp-radius) var(--dp-radius);
}

.dp-article__hero-inner {
  position: relative;
}

.dp-article__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--dp-surface);
  border: 1px solid var(--dp-line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dp-article--cat-seo .dp-article__badge {
  border-color: rgba(118, 174, 10, 0.25);
  color: #4a7a06;
}

.dp-article--cat-ai .dp-article__badge {
  border-color: rgba(91, 63, 191, 0.2);
  color: #5b3fbf;
}

.dp-article--cat-context .dp-article__badge {
  border-color: rgba(26, 111, 173, 0.2);
  color: #1a6fad;
}

.dp-article__meta-dot {
  opacity: 0.45;
}

.dp-article__title {
  margin: 0 0 20px;
  max-width: 18ch;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.dp-article__lead-wrap {
  max-width: 680px;
  padding: 18px 20px;
  border-left: 4px solid var(--dp-accent);
  border-radius: 0 var(--dp-radius-sm) var(--dp-radius-sm) 0;
  background: linear-gradient(90deg, var(--dp-accent-soft), rgba(238, 246, 223, 0.35));
}

.dp-article__lead {
  margin: 0;
  font-family: var(--dp-serif);
  font-size: 1.2rem;
  line-height: 1.65;
  color: rgba(18, 20, 26, 0.88);
}

/* ── Layout: TOC + body ── */
.dp-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 8px 0 24px;
}

.dp-article__toc {
  position: sticky;
  top: 88px;
}

.dp-article__toc-nav {
  padding: 18px 16px;
  border-radius: var(--dp-radius-sm);
  background: var(--dp-surface);
  border: 1px solid var(--dp-line);
  box-shadow: 0 8px 28px rgba(15, 20, 16, 0.05);
}

.dp-article__toc-kicker {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dp-accent-dark);
}

.dp-article__toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.dp-article__toc-list li {
  margin: 0;
  padding: 0;
  counter-increment: toc;
}

.dp-article__toc-link {
  display: block;
  padding: 8px 0 8px 0;
  border-bottom: 1px solid var(--dp-line);
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--dp-muted);
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.dp-article__toc-list li:last-child .dp-article__toc-link {
  border-bottom: none;
}

.dp-article__toc-link:hover,
.dp-article__toc-link.is-active {
  color: var(--dp-ink);
  padding-left: 6px;
}

.dp-article__toc-link.is-active {
  color: var(--dp-accent-dark);
}

.dp-article__toc-link::before {
  content: counter(toc, decimal-leading-zero) ". ";
  font-weight: 800;
  color: rgba(118, 174, 10, 0.65);
  font-size: 0.75rem;
}

/* ── Article body typography ── */
.dp-article__body {
  min-width: 0;
}

.dp-article__h2 {
  scroll-margin-top: 96px;
  margin: 40px 0 14px;
  padding-top: 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
}

.dp-article__body > .dp-article__h2:first-child {
  margin-top: 0;
}

.dp-article__h2::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--dp-accent);
}

.dp-article__p {
  margin: 0 0 18px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(18, 20, 26, 0.82);
}

.dp-article__link {
  color: var(--dp-accent-dark, #4a7204);
  text-decoration: underline;
  text-decoration-color: rgba(118, 174, 10, 0.35);
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.dp-article__link:hover {
  color: var(--dp-accent, #76ae0a);
  text-decoration-color: rgba(118, 174, 10, 0.65);
}

.dp-article__link--service {
  font-weight: 700;
}

.dp-article__list a.dp-article__link--service::after {
  content: " →";
  font-weight: 400;
}

.dp-article__list a.dp-article__link {
  font-weight: 600;
}

.dp-article__list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.dp-article__list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--dp-line);
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(18, 20, 26, 0.78);
}

.dp-article__list li:last-child {
  border-bottom: none;
}

.dp-article__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--dp-accent);
  opacity: 0.85;
}

/* Mobile TOC */
.dp-article__toc-mobile {
  display: none;
  margin-bottom: 24px;
}

.dp-article__toc-mobile summary {
  cursor: pointer;
  padding: 14px 16px;
  border-radius: var(--dp-radius-sm);
  background: var(--dp-surface);
  border: 1px solid var(--dp-line);
  font-weight: 700;
  list-style: none;
}

.dp-article__toc-mobile summary::-webkit-details-marker {
  display: none;
}

.dp-article__toc-mobile[open] .dp-article__toc-nav {
  margin-top: 10px;
}

/* ── AEO quick facts & FAQ in articles ── */
.dp-article__quick {
  margin: 0 0 28px;
}

.dp-article__faq {
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
}

.dp-article__faq .dp-faq__item {
  border-radius: var(--dp-radius-sm);
  border: 1px solid var(--dp-line);
  background: var(--dp-surface);
  padding: 0 16px;
}

/* ── Footer ── */
.dp-article__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--dp-line);
}

/* ── Legacy card compat (hub lists) ── */
.sm-case-cards .sm-blog-card,
.sm-case-cards .sm-case-card {
  height: 100%;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .dp-article__layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dp-article__layout > .dp-article__toc {
    display: none;
  }

  .dp-article__toc-mobile {
    display: block;
  }

  .dp-article__title {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .dp-article__lead-wrap {
    padding: 14px 16px;
  }

  .dp-article__lead {
    font-size: 1.05rem;
  }

  .sm-blog-grid {
    grid-template-columns: 1fr;
  }
}
