/**
 * 에디토리얼·실무 톤 — AI 랜딩(세리프·줌·글로우·카드 부양) 최종 제거
 * home-upgrade.css 이후 로드. 기능·URL·문구 변경 없음
 */

:root,
:root:has(.hero-bleed) {
  --display: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --editorial-measure: 42rem;
  --editorial-gap: 1.35em;
}

/* —— 홈 히어로: 정적인 사진 + 읽기 쉬운 오버레이 —— */
.hero-bleed {
  min-height: min(74vh, 600px);
}
.hero-bleed__media img {
  animation: none !important;
  transform: none !important;
  filter: none;
  object-position: center 32%;
}
.hero-bleed .hero-bleed__shade {
  background: linear-gradient(
    180deg,
    rgba(10, 22, 36, 0.48) 0%,
    rgba(10, 22, 36, 0.32) 48%,
    rgba(10, 22, 36, 0.84) 100%
  ) !important;
}
.hero-bleed__content {
  max-width: 36rem;
  padding: 32px 0 44px;
}
.hero-bleed__content .hero-actions {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.hero-bleed .brand-signal,
.hero-bleed h1,
.hero-bleed .lead {
  font-family: var(--font) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.32);
}
.hero-bleed .brand-signal {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.hero-bleed h1 {
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-size: clamp(1.75rem, 5.2vw, 2.65rem);
  margin-bottom: 12px;
}
.hero-bleed .lead {
  font-size: clamp(0.98rem, 2.1vw, 1.08rem);
  line-height: 1.62;
  font-weight: 500;
  max-width: 30rem;
}
.hero-actions .btn {
  border-radius: 8px !important;
  font-weight: 700 !important;
  min-height: 44px;
  box-shadow: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}
.hero-actions .btn:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* —— 신뢰 레일: 학원 안내판 느낌 —— */
.section-tight--home,
.hero-bleed + .section-tight {
  margin-top: -20px;
}
.trust-rail {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden;
}
.trust-rail__item {
  padding: 14px 12px !important;
  text-align: left;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-rail__item:nth-child(2n) {
  border-right: none;
}
.trust-rail__item:nth-child(n + 3) {
  border-bottom: none;
}
.trust-rail__item strong {
  font-family: var(--font) !important;
  font-size: 1.05rem !important;
  letter-spacing: -0.02em;
  color: #0a1c33 !important;
  display: block;
  margin-bottom: 2px;
}
.trust-rail__item span {
  font-size: 12.5px;
  line-height: 1.4;
  color: #2f4258 !important;
}
@media (min-width: 720px) {
  .trust-rail {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .trust-rail__item {
    border-bottom: none !important;
    padding: 16px 18px !important;
  }
  .trust-rail__item:nth-child(2n) {
    border-right: 1px solid var(--line);
  }
  .trust-rail__item:last-child {
    border-right: none;
  }
}

/* —— 섹션: 그라데이션 배경 제거 —— */
body:has(.hero-bleed) .section-alt {
  background: #fff !important;
}
body:has(.hero-bleed) .section:not(.section-alt):not(.section-dark):not(.review-marquee-band) {
  background: var(--bg) !important;
}
.page-home .section-head h2,
body:has(.hero-bleed) .section-head h2,
.ev-banner__title,
.steps--home .step h3,
.final-cta--home h2,
.region-cta--home h2,
.method-panel--home h3,
.case-slide__quote {
  font-family: var(--font) !important;
  letter-spacing: -0.025em !important;
}
body:has(.hero-bleed) .section-head .eyebrow {
  letter-spacing: -0.01em !important;
  font-weight: 700;
  text-transform: none;
  font-size: 13px;
}

/* —— 카드·호버: 부양·줌 제거 —— */
.course-card--home,
.teacher-card--home,
.post-card--home,
.level-card,
.review-card,
.ev-chip-card,
.steps--home .step,
.ev-banner--form,
.ev-banner--dual {
  transition: border-color 0.15s ease, background 0.15s ease !important;
}
.course-card--home:hover,
.teacher-card--home:hover,
.post-card--home:hover,
.level-card:hover,
.review-card:hover,
.ev-chip-card:hover,
.steps--home .step:hover {
  transform: none !important;
  box-shadow: none !important;
}
.course-card--home:hover .card-media img,
.post-card--home:hover .post-thumb img,
.teacher-card--home:hover .teacher-photo img,
.method-panel--home:hover img,
.level-card:hover .level-card__media img,
.promo-shot--level:hover .promo-shot__media img,
.curric-shot--home:hover img {
  transform: none !important;
}
.steps--home .step {
  border-radius: 8px !important;
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
  padding: 18px 16px 18px 58px !important;
}

/* —— 후기 밴드: 단색 네이비 —— */
.review-marquee-band {
  background: #123a5c !important;
  padding: 40px 0 36px;
}
.review-marquee-band::before {
  display: none;
}
.review-card {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: none !important;
  border-radius: 8px !important;
}

/* —— CTA·배너: 플랫 —— */
.final-cta--home,
.region-cta--home {
  border-radius: 8px !important;
  box-shadow: none !important;
}
.final-cta--home {
  background: var(--navy) !important;
  background-image: none !important;
}
.region-cta--home {
  background: var(--navy) !important;
}
.final-cta--home .btn:hover,
.region-cta--home .btn:hover {
  transform: none !important;
}
.ev-banner--form,
.ev-banner--dual {
  border-radius: 8px !important;
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
}
.promo-shot--level,
.curric-shot--home,
.method-panel--home {
  border-radius: 8px !important;
  box-shadow: none !important;
}

/* —— 게시글: 기승전결 읽기 리듬 —— */
.article {
  max-width: var(--editorial-measure);
  margin-inline: auto;
}
.crumb {
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.article > .eyebrow {
  margin-bottom: 8px;
}
.post-title {
  font-family: var(--font) !important;
  font-weight: 800;
  line-height: 1.38;
  margin-bottom: 14px;
}
.geo-answer {
  background: #123a5c !important;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 18px;
  line-height: 1.68;
  font-size: 1.02rem;
}
.geo-answer p {
  margin: 0;
}
.geo-keypoints {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px 12px;
  margin-bottom: 22px;
  background: #f8f9fb;
}
.geo-keypoints h2 {
  font-family: var(--font) !important;
  font-size: 1rem;
  font-weight: 750;
  margin-bottom: 8px;
}
.geo-keypoints li {
  line-height: 1.62;
  margin-bottom: 0.35em;
}
.geo-keypoints li:last-child {
  margin-bottom: 0;
}

/* 본문 블록 — 기(도입) · 승(전개) · 전(사례) · 결(정리) 시각 구분 */
.post-block {
  margin: 0 0 26px;
  padding-top: 4px;
}
.post-block + .post-block {
  border-top: 1px solid #e4e9ef;
  padding-top: 22px;
  margin-top: 22px;
}
.post-block__heading {
  font-family: var(--font) !important;
  font-weight: 750;
  font-size: clamp(1.05rem, 3.4vw, 1.18rem);
  line-height: 1.42;
  margin: 0 0 12px;
  padding-left: 11px;
  border-left: 3px solid #c9a84a;
  color: var(--navy);
}
.post-block__text p {
  margin: 0 0 var(--editorial-gap);
  line-height: 1.72;
  font-size: 1.02rem;
  color: #1a2430;
}
.post-block__text p:last-child {
  margin-bottom: 0;
}
.post-block__media {
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.post-hero-media {
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.post-block--band {
  background: #f5f7fa;
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid #e8edf2;
}
.post-block--quote .post-block__text {
  border-left: 3px solid #c9a84a;
  padding-left: 14px;
  color: #243447;
}
.post-block--card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: none;
  background: #fff;
}

.geo-faq {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.geo-faq h2 {
  font-family: var(--font) !important;
  font-size: 1.12rem;
  margin-bottom: 12px;
}
.faq-item {
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #fff;
}
.faq-item summary {
  font-weight: 700;
  line-height: 1.48;
  cursor: pointer;
}
.faq-item p {
  margin-top: 8px;
  line-height: 1.68;
  color: var(--muted);
}

.hash-cloud {
  margin-top: 18px;
  gap: 6px;
}
.hash-cloud span {
  font-size: 12.5px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #eef2f6;
  color: var(--navy);
}

.cta-stack {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 8px;
}

@media (max-width: 719px) {
  .hero-bleed {
    min-height: min(68vh, 520px) !important;
  }
  .article {
    padding: 14px 0 0 !important;
  }
  .post-title {
    font-size: clamp(1.28rem, 6vw, 1.65rem) !important;
    line-height: 1.34 !important;
  }
  .geo-answer {
    padding: 14px 16px;
    font-size: 1.03rem;
    line-height: 1.7;
  }
  .post-block__heading {
    font-size: 1.08rem;
    padding-left: 10px;
  }
  .post-block__text p {
    font-size: 1.04rem;
    line-height: 1.74;
  }
  .post-block + .post-block {
    padding-top: 18px;
    margin-top: 18px;
  }
  .cta-stack .btn {
    min-height: 48px;
    font-size: 1rem;
  }
}

/* —— AI 템플릿 연출 제거: 즉시 표시 —— */
@media (prefers-reduced-motion: reduce), (max-width: 719px) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .stagger-in > *,
  .hero-bleed__content .hero-actions {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
}
.btn-pulse,
.btn-accent.btn-pulse {
  animation: none !important;
}
.stagger-in > * {
  transition-delay: 0ms !important;
}

/* —— 홈: 종이·학원 안내지 톤 —— */
body.page-home,
body:has(.hero-bleed) {
  background: #f4f2ed;
}
body.page-home main#main,
body:has(.hero-bleed) main#main {
  background: linear-gradient(180deg, #f4f2ed 0%, var(--bg) 120px);
}
.page-home .section-head,
body:has(.hero-bleed) .section-head {
  position: relative;
  padding-left: 14px;
}
.page-home .section-head::before,
body:has(.hero-bleed) .section-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 3px;
  border-radius: 2px;
  background: #c9a84a;
}
.page-home .section-head.center,
body:has(.hero-bleed) .section-head.center {
  text-align: left;
  max-width: 36rem;
}
.page-home .section-head .eyebrow,
body:has(.hero-bleed) .section-head .eyebrow {
  color: #5a6572;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.page-home .section-head h2 + p,
.page-home .section-head h2 + .muted,
body:has(.hero-bleed) .section-head h2 + p,
body:has(.hero-bleed) .section-head h2 + .muted {
  margin-top: 6px;
  line-height: 1.62;
  color: #3a4654;
}
.page-home .course-card--home,
.page-home .teacher-card--home,
.page-home .post-card--home,
.page-home .level-card,
body:has(.hero-bleed) .course-card--home,
body:has(.hero-bleed) .teacher-card--home,
body:has(.hero-bleed) .post-card--home,
body:has(.hero-bleed) .level-card {
  border-radius: 8px !important;
  box-shadow: none !important;
  border: 1px solid #dde3ea !important;
  background: #fff !important;
}
.page-home .section-alt,
body:has(.hero-bleed) .section-alt {
  background: #faf9f6 !important;
  border-top: 1px solid #e8e4dc;
  border-bottom: 1px solid #e8e4dc;
}
.page-home .steps--home .step::before,
body:has(.hero-bleed) .steps--home .step::before {
  font-family: var(--font) !important;
  font-weight: 800;
  box-shadow: none !important;
}
.page-home .case-slide__quote,
body:has(.hero-bleed) .case-slide__quote {
  font-style: normal;
  line-height: 1.62;
}
.page-home .review-marquee-band .section-head::before,
body:has(.hero-bleed) .review-marquee-band .section-head::before {
  background: #f0d78a;
}

/* —— 게시글 기승전결 단계 표시 —— */
.article {
  counter-reset: story-arc;
}
.article > section.post-block {
  counter-increment: story-arc;
}
.article > section.post-block .post-block__heading::before {
  content: counter(story-arc) ". ";
  color: #9a7b2e;
  font-weight: 800;
}
.article > section.post-block:nth-of-type(1) .post-block__heading::after {
  content: " · 도입";
  font-size: 0.82em;
  font-weight: 600;
  color: #6b7785;
}
.article > section.post-block:nth-of-type(2) .post-block__heading::after {
  content: " · 전개";
  font-size: 0.82em;
  font-weight: 600;
  color: #6b7785;
}
.article > section.post-block:nth-of-type(3) .post-block__heading::after {
  content: " · 사례";
  font-size: 0.82em;
  font-weight: 600;
  color: #6b7785;
}
.article > section.post-block:nth-of-type(4) .post-block__heading::after {
  content: " · 정리";
  font-size: 0.82em;
  font-weight: 600;
  color: #6b7785;
}
.article > section.post-block:nth-of-type(n + 5) .post-block__heading::after {
  content: none;
}

/* —— 본문 첫 문단: 리드 강조 —— */
.post-block__text p:first-child {
  color: #152232;
}
.post-block__text p + p {
  text-indent: 0;
}

/* —— 태그·칩: 과한 pill 느낌 완화 —— */
.hash-cloud span {
  border: 1px solid #dde3ea;
  background: #f6f8fa;
  font-weight: 500;
}
.teacher-tags .tag,
.tag,
.ev-chip-card {
  border-radius: 4px !important;
  font-weight: 600;
}

/* —— 데스크톱: 읽기 폭 고정 —— */
@media (min-width: 720px) {
  .article .post-block__text p {
    max-width: 38rem;
  }
  .geo-answer p {
    max-width: 38rem;
  }
}
