/* 서비스 페이지 전용 부품 (2026-09-30 신설 — /미국-법인-설립/)
   루트 4면과 같은 글 틀(body.theme-green.blog-post.page-article)을 빌려 쓰고, 서비스 페이지에만
   필요한 부품 네 가지를 더한다: 첫 화면 버튼 줄 · 업무 카드 · 진행 단계 · 핵심 문장 강조.
   색은 style.css 의 녹색 토큰만 쓴다(새 색 금지). 간격은 4px 배수. */

body.blog-post .post-hero .svc-lead {
  max-width: 680px;
  margin: 16px 0 0;
  font-size: 1.125rem;
  line-height: 1.56;
  color: var(--cream);
  text-wrap: pretty;
}

body.theme-green .svc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 24px;
}

body.theme-green .svc-hero-actions .btn-primary {
  background: var(--on-dark);
  color: var(--green-900);
  border-color: var(--on-dark);
}

body.theme-green .svc-hero-actions .btn-primary:hover,
body.theme-green .svc-hero-actions .btn-primary:focus-visible {
  background: var(--green-50);
  border-color: var(--green-50);
}

body.theme-green .svc-hero-actions .btn-primary:active {
  transform: translateY(1px);
}

body.theme-green .svc-proof {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--on-dark);
  opacity: 0.86;
}

body.theme-green .svc-proof a {
  color: inherit;
  text-underline-offset: 3px;
}

/* 업무 카드 — 네 모서리 모두 테두리, 배경은 단색 */
body.theme-green .svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

/* 글 틀의 목록 규칙(왼쪽 20px·점)이 카드에 붙지 않게 — 여백은 카드 값으로 되돌린다 */
body.theme-green .blog-content .svc-grid > li {
  padding: 24px;
}

body.theme-green .blog-content .svc-grid > li::before {
  content: none;
}

/* 2열일 때 마지막 카드가 혼자 남으면 한 줄을 다 쓴다(대상 카드 3장) */
body.theme-green .svc-grid > li:last-child:nth-child(odd):not(:first-child) {
  grid-column: 1 / -1;
}

body.theme-green .svc-card {
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}

body.theme-green .blog-content .svc-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.56;
  color: var(--ink);
}

body.theme-green .svc-card .svc-card-no {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-700);
}

body.theme-green .blog-content .svc-card ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

body.theme-green .blog-content .svc-card li {
  margin: 4px 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* 진행 단계 — 번호는 CSS 가 그린다 */
body.theme-green .blog-content ol.svc-steps {
  counter-reset: svc-step;
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
}

body.theme-green .blog-content ol.svc-steps > li {
  counter-increment: svc-step;
  position: relative;
  margin: 0;
  padding: 0 0 24px 56px;
}

body.theme-green .blog-content ol.svc-steps > li::before {
  content: counter(svc-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--on-dark);
  font-weight: 600;
}

body.theme-green .blog-content ol.svc-steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 48px;
  bottom: 8px;
  width: 2px;
  background: var(--green-100);
}

body.theme-green .blog-content ol.svc-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

/* 핵심 문장 강조 — 스크롤하면 단어가 차례로 진해진다(/assets/tagline-reveal.js) */
body.theme-green .tagline-reveal {
  margin: 48px 0 0;
  padding: 48px 0 16px;
  border-top: 1px solid var(--rule);
}

body.theme-green .tagline-reveal p {
  max-width: 680px;
  margin: 0;
  font-size: 1.875rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--green-900);
  text-wrap: balance;
}

@media (min-width: 768px) {
  body.theme-green .tagline-reveal p {
    font-size: 2.25rem;
    line-height: 1.25;
  }
}

body.theme-green .tagline-reveal .tr-word {
  opacity: 0.28;
  transition: opacity 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

body.theme-green .tagline-reveal .tr-word.is-on {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-green .tagline-reveal .tr-word {
    opacity: 1;
    transition: none;
  }
}

body.theme-green .blog-content .svc-note {
  font-size: 0.875rem;
  color: var(--muted);
}
