/**
 * 학폭정보 글 히어로: 제목·부제 동일 가로폭(.jr-hero-head), 히어로 전화 버튼 한 줄(.jr-info-tel--hero)
 * generate_info_pages.py 의 render_article_page 와 동기화 유지.
 */
/* 카드뉴스: 인라인 스타일과 동일 — 모바일 세로 SVG(<picture>) 시 레이아웃 유지 */
.subpage.jr-info-article .jr-cardnews-figure picture {
  display: block;
  width: 100%;
  margin: 0;
}
@media screen and (max-width: 768px) {
  .subpage.jr-info-article .jr-cardnews-figure {
    margin: 0.65rem 0 1.35rem;
  }
  .subpage.jr-info-article .jr-cardnews-figure img {
    display: block;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(46, 95, 161, 0.09);
  }
}
.subpage.jr-info-article .contents > section.page-hero .jr-hero-head {
  max-width: 22em;
  font-size: clamp(2.45rem, 5.1vw, 3.55rem);
}
.subpage.jr-info-article .contents > section.page-hero .jr-hero-head h1 {
  font-size: 1em;
  font-weight: 800;
  color: #1f1812;
  margin: 0;
  line-height: 1.28;
  text-align: left;
  letter-spacing: -0.038em;
  max-width: none;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.subpage.jr-info-article .contents > section.page-hero .jr-hero-head .hero-sub {
  font-size: clamp(1.56rem, 3.35vw, 1.84rem);
  color: #4d4338;
  margin: 1.15rem 0 0;
  line-height: 1.72;
  text-align: left;
  font-weight: 400;
  max-width: none;
  opacity: 0.97;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.subpage.jr-info-article .contents > section.page-hero .jr-hero-tel-wrap {
  margin: 0;
  max-width: none;
}
.subpage.jr-info-article .page-hero .jr-info-tel.jr-info-tel--hero {
  white-space: nowrap;
}
/* 데스크톱: 모바일 전용 표 하단 힌트 행 숨김 */
.subpage.jr-info-article .jr-inline-table-footer {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .subpage.jr-info-article .contents > section.page-hero .jr-hero-head {
    max-width: none;
    font-size: clamp(1.94rem, 5.25vw + 0.35rem, 2.58rem);
  }
  .subpage.jr-info-article .contents > section.page-hero .jr-hero-head h1 {
    line-height: 1.32;
  }
  .subpage.jr-info-article .contents > section.page-hero .jr-hero-head .hero-sub {
    font-size: clamp(1.44rem, 3.7vw + 0.22rem, 1.68rem);
    line-height: 1.68;
  }
  .subpage.jr-info-article .page-hero .jr-info-tel.jr-info-tel--hero {
    white-space: nowrap;
    font-size: clamp(1.05rem, 2.75vw + 0.28rem, 1.42rem);
    padding: 0.88rem 1.1rem;
    min-height: 3.9rem;
  }
}

/* 푸터 상단: style.css와 동기 — 예전 큰 padding-top 이 전역 푸터 상단 축소를 덮어쓰지 않도록 */
body.subpage.jr-info-article .contents > footer.footer {
  padding-top: clamp(1.25rem, 0.85rem + 1.5vw, 2.75rem) !important;
}
body.subpage.jr-info-article .contents > footer.footer::before {
  content: "";
  display: block;
  width: 100%;
  height: max(0.65rem, calc(clamp(1.75rem, 1.2rem + 2vw, 4.25rem) + 1.25rem * 1.82));
  min-height: max(0.4rem, calc(1.75rem + 1.25rem * 1.82));
}

@media screen and (max-width: 950px) {
  body.subpage.jr-info-article .contents > footer.footer {
    padding-top: clamp(1rem, 0.65rem + 1.8vw, 2.25rem) !important;
  }
  body.subpage.jr-info-article .contents > footer.footer::before {
    height: max(0.55rem, calc(clamp(1.35rem, 3vw, 3.5rem) + 0.85 * 1.62rem * 1.82));
    min-height: max(0.45rem, calc(1.5rem + 0.85 * 1.62rem * 1.82));
  }
}

/* ===================================================================== */
/* 섹션별 컬러 동기화: 본문 H2/H3 글자색·구분선·체크포인트 카드를 카드뉴스
/* 팔레트(섹션 인덱스 회전)와 동일하게 표시.
/* generate_info_pages.py 의 sections_to_html() 가 <section> 에 inline
/* CSS 변수(--jr-section-primary 등)를 주입한다.
/* ===================================================================== */

/* H2 섹션 제목 — 좌측 굵은 컬러 바 + 옅은 카드 배경 박스 (밑줄 X).
   가짜 그라데이션 라인을 만드는 ::before/::after 만 차단. */
.subpage.jr-info-article section.jr-seo-section--h2 > h2,
.subpage.jr-info-article .jr-seo-section.jr-seo-section--h2 > h2 {
  color: var(--jr-section-primary, inherit) !important;
  background: var(--jr-section-tag-bg, #f4f7fb) !important;
  background-image: none !important;
  border: 0 !important;
  border-left: 6px solid var(--jr-section-primary, currentColor) !important;
  border-right: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 10px 10px 0 !important;
  box-shadow: none !important;
  padding: 0.75rem 1.1rem 0.78rem 1rem !important;
  margin: 1.4rem 0 1rem !important;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
/* 다른 CSS가 H2 박스 위/아래에 박을 수 있는 가짜 그라데이션 라인 차단. */
.subpage.jr-info-article section.jr-seo-section--h2 > h2::before,
.subpage.jr-info-article section.jr-seo-section--h2 > h2::after,
.subpage.jr-info-article .jr-seo-section.jr-seo-section--h2 > h2::before,
.subpage.jr-info-article .jr-seo-section.jr-seo-section--h2 > h2::after {
  content: none !important;
  background: none !important;
  display: none !important;
}
/* H3 섹션 제목 — 좌측 얇은 컬러 보더 + 카드색 글자 (밑줄 X). */
.subpage.jr-info-article section.jr-seo-section--h3 > h3,
.subpage.jr-info-article .jr-seo-section.jr-seo-section--h3 > h3 {
  color: var(--jr-section-primary, inherit) !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 4px solid var(--jr-section-primary, currentColor) !important;
  border-bottom: 0 !important;
  padding: 0 0 0 0.7rem !important;
  margin-top: 1.2rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}
.subpage.jr-info-article section.jr-seo-section--h3 > h3::before,
.subpage.jr-info-article section.jr-seo-section--h3 > h3::after,
.subpage.jr-info-article .jr-seo-section.jr-seo-section--h3 > h3::before,
.subpage.jr-info-article .jr-seo-section.jr-seo-section--h3 > h3::after {
  content: none !important;
  background: none !important;
  display: none !important;
}
/* 본문 영역(섹션 자체)의 배경은 흰색 계열 통일 — 카드/강조 요소만 컬러 */
.subpage.jr-info-article .jr-seo-section {
  background: transparent;
}
/* 본문 면(.jr-subpage-body-surface) — risk 그라데이션을 덮어쓰고 cool white 톤으로.
   파랑·그린·보라·브라운·시안·와인 카드 색 모두와 매칭되는 중성 그레이-화이트.
   하단 워터마크 CI 로고도 가독성을 위해 비활성화. */
body.subpage.jr-info-article section.sect.jr-subpage-body-surface,
body.subpage.jr-info-article .sect.jr-subpage-body-surface {
  background: #f7f9fc !important; /* cool white — 모든 카드 팔레트와 무난히 매칭 */
}
body.subpage.jr-info-article section.sect.jr-subpage-body-surface::before,
body.subpage.jr-info-article .sect.jr-subpage-body-surface::before {
  display: none !important;
  content: none !important;
}
/* H2 박스 위/아래에 다른 CSS 가 박는 가는 가로선/그림자/구분선 제거.
   글의 자식 섹션 사이의 hr·border-top/bottom 모두 차단. */
.subpage.jr-info-article .jr-article-body :is(hr, .jr-section-divider) {
  display: none !important;
}
.subpage.jr-info-article .jr-article-body section.jr-seo-section,
.subpage.jr-info-article .jr-article-body section.jr-seo-section--h2,
.subpage.jr-info-article .jr-article-body section.jr-seo-section--h3 {
  border: 0 !important;
  box-shadow: none !important;
}
.subpage.jr-info-article .jr-article-body section.jr-seo-section + section.jr-seo-section,
.subpage.jr-info-article .jr-article-body section.jr-seo-section + .jr-seo-section {
  border-top: 0 !important;
  margin-top: 1.4rem;
}
/* 본문 p — 다크 카드 톤(가독성 유지하면서 살짝 카드 컬러 동기화). */
.subpage.jr-info-article .jr-seo-section > p,
.subpage.jr-info-article .jr-seo-section > ul,
.subpage.jr-info-article .jr-seo-section > ol,
.subpage.jr-info-article .jr-seo-section > dl {
  color: var(--jr-section-footer, #1f2937);
}

/* 본문 강조 요소 — 카드 primary 색 동기화 */
.subpage.jr-info-article .jr-seo-section :is(b, strong) {
  color: var(--jr-section-primary, inherit);
}
.subpage.jr-info-article .jr-seo-section blockquote {
  margin: 1.1rem 0 1.2rem;
  padding: 0.6rem 0.85rem 0.6rem 0.95rem;
  border-left: 4px solid var(--jr-section-primary, #2563eb);
  background: var(--jr-section-tag-bg, #f4f7fb);
  color: var(--jr-section-primary, inherit);
  border-radius: 0 8px 8px 0;
}
.subpage.jr-info-article .jr-seo-section table thead th,
.subpage.jr-info-article .jr-seo-section table th {
  background: var(--jr-section-tag-bg, #f4f7fb);
  color: var(--jr-section-primary, inherit);
  border-color: var(--jr-section-border, #cbd5e1);
}
.subpage.jr-info-article .jr-seo-section table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.012);
}

/* ===================================================================== */
/* 히어로 H1 위 라벨 — 사건명+전문변호사 (eyebrow) */
/* ===================================================================== */
.subpage.jr-info-article .page-hero__title-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.32rem 0.85rem 0.34rem 0.7rem;
  font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.42rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 좌측 노란 컬러바는 텍스트의 ｜ 문자와 중복되어 시각적으로 두 개로 보이는
   이슈가 있어 비활성화. 기존 캐시 HTML 에 남은 span 도 안전하게 숨김. */
.subpage.jr-info-article .page-hero__title-eyebrow-bar {
  display: none !important;
}
.subpage.jr-info-article .page-hero__title-eyebrow-text {
  font-weight: 700;
}
@media screen and (max-width: 640px) {
  .subpage.jr-info-article .page-hero__title-eyebrow {
    margin-bottom: 0.7rem;
    font-size: clamp(1.05rem, 0.95rem + 0.85vw, 1.32rem);
    padding: 0.26rem 0.75rem 0.28rem 0.6rem;
  }
}

/* ============================================================================ */
/* 요약 체크포인트 — 박스 없는 미니멀 체크리스트                                  */
/*   · 카드뉴스(큰 라운드 박스 + 컬러 헤더바)와 시각적으로 분명히 차별화          */
/*   · 외곽 박스/그림자 X. 좌측 굵은 컬러 라인 + 캡슐 라벨 + 흰 배경.            */
/*   · 색상은 부모 <section> 의 --jr-section-* CSS 변수에서 상속.                */
/*   · generate_info_pages.py _try_render_checkpoint_card() 와 동기.            */
/* ============================================================================ */
.subpage.jr-info-article .jr-checkpoint,
.subpage.jr-info-article .jr-checkpoint--bar {
  position: relative;
  margin: 1.5rem 0 1.7rem;
  padding: 0.65rem 0 0.4rem 1.05rem;
  border: 0;
  border-left: 4px solid var(--jr-section-primary, #2563eb);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
/* 헤더 — 작은 알약 라벨(캡슐). 배경 컬러 + 흰 글씨 */
.subpage.jr-info-article .jr-checkpoint__head {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0.34rem 0.95rem 0.36rem;
  background: var(--jr-section-primary, #2563eb);
  color: #fff;
  font-weight: 700;
  font-size: 0.92em;
  letter-spacing: -0.01em;
  line-height: 1.25;
  border-radius: 999px;
}
.subpage.jr-info-article .jr-checkpoint__icon {
  font-size: 0.96rem;
  line-height: 1;
  color: #fff;
}
.subpage.jr-info-article .jr-checkpoint__title {
  position: relative;
  color: #fff;
}
.subpage.jr-info-article .jr-checkpoint__title::after {
  content: none;
}
/* 본문 영역 — 흰 배경(투명) */
.subpage.jr-info-article .jr-checkpoint__body {
  padding: 0;
  background: transparent;
}
/* 리스트 — 기본 마커 완전 제거 (다른 CSS 가 살리지 못하도록 강제) */
.subpage.jr-info-article .jr-checkpoint__list,
.subpage.jr-info-article ul.jr-checkpoint__list,
.subpage.jr-info-article ol.jr-checkpoint__list {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.subpage.jr-info-article .jr-checkpoint__list > li {
  list-style: none !important;
}
.subpage.jr-info-article .jr-checkpoint__list > li::marker {
  content: "" !important;
}
.subpage.jr-info-article .jr-checkpoint__item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: inherit;
  line-height: 1.7;
  color: #0f172a;
}
/* ✓ 체크 아이콘 — 컬러 강조 (카드 primary) */
.subpage.jr-info-article .jr-checkpoint__check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6em;
  height: 1.6em;
  margin-top: 0.18em;
  border-radius: 50%;
  background: transparent;
  color: var(--jr-section-primary, #2563eb);
  border: 2px solid var(--jr-section-primary, #2563eb);
  font-weight: 800;
  font-size: 0.78em;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: none;
}
.subpage.jr-info-article .jr-checkpoint__text {
  flex: 1 1 auto;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
@media screen and (max-width: 640px) {
  .subpage.jr-info-article .jr-checkpoint,
  .subpage.jr-info-article .jr-checkpoint--bar {
    margin: 1.3rem 0 1.45rem;
    padding-left: 0.85rem;
    border-left-width: 3px;
  }
  .subpage.jr-info-article .jr-checkpoint__head {
    font-size: 0.88em;
    padding: 0.28rem 0.78rem 0.3rem;
    gap: 0.35rem;
    margin-bottom: 0.7rem;
  }
  .subpage.jr-info-article .jr-checkpoint__item {
    font-size: inherit;
    line-height: 1.62;
    gap: 0.55rem;
  }
  .subpage.jr-info-article section.jr-seo-section--h2 > h2,
  .subpage.jr-info-article .jr-seo-section.jr-seo-section--h2 > h2 {
    padding: 0.62rem 0.85rem 0.65rem 0.85rem !important;
    margin: 1.1rem 0 0.85rem;
    border-left-width: 5px !important;
  }
}

/* 모바일 좌우 패딩 동기화: 히어로/본문 동일 */
@media screen and (max-width: 768px) {
  .subpage.jr-info-article .contents > section.page-hero,
  .subpage.jr-info-article .contents > section.sect {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px)) !important;
  }
}

/* 모바일 표 UX:
   - 표만 가로 스크롤(.jr-inline-table-scroll), 힌트는 표 아래 한 줄(오른쪽 정렬)
   - gnb-util.js 가 테이블을 스크롤 래퍼 안으로 옮기고 풋터를 붙임 */
@media screen and (max-width: 768px) {
  .subpage.jr-info-article .jr-inline-table-wrap:has(.jr-inline-table-scroll) {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible !important;
    margin: 1rem 0 1.2rem !important;
    padding: 0;
    border: 1px solid var(--jr-section-border, #cbd5e1);
    border-radius: 10px;
    background: #fff;
  }

  .subpage.jr-info-article .jr-inline-table-wrap:has(.jr-inline-table-scroll) .jr-inline-table-scroll {
    position: relative;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.1rem 0 0;
  }

  .subpage.jr-info-article .jr-inline-table-wrap:has(.jr-inline-table-scroll) .jr-inline-table-scroll::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 2.7rem;
    height: 100%;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(247, 250, 253, 0.88) 48%,
      rgba(247, 250, 253, 0.96) 100%
    );
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.2s ease;
  }

  .subpage.jr-info-article .jr-inline-table-wrap .jr-inline-table-footer {
    display: none !important;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: center;
    padding: 0.52rem 0.72rem 0.58rem;
    margin: 0;
    border-top: 1px solid rgba(46, 95, 161, 0.14);
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0 0 9px 9px;
  }

  .subpage.jr-info-article .jr-inline-table-wrap.has-overflow:not(.hint-dismissed):not(.is-swiped)
    .jr-inline-table-footer {
    display: flex !important;
  }

  .subpage.jr-info-article .jr-inline-table-wrap .jr-inline-table-hint-text {
    display: inline-flex !important;
    align-items: center;
    gap: 0.28rem;
    margin: 0;
    padding: 0;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #2e5fa1;
    white-space: nowrap;
    pointer-events: none;
  }

  .subpage.jr-info-article .jr-inline-table-wrap .jr-inline-table-hint-arrows {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 0.06em;
    animation: jrInlineTableHintChevron 1.05s ease-in-out infinite;
  }

  .subpage.jr-info-article .jr-inline-table-wrap.is-swiped .jr-inline-table-scroll::before,
  .subpage.jr-info-article .jr-inline-table-wrap.hint-dismissed .jr-inline-table-scroll::before,
  .subpage.jr-info-article .jr-inline-table-wrap:not(.has-overflow) .jr-inline-table-scroll::before {
    opacity: 0 !important;
    pointer-events: none;
  }

  .subpage.jr-info-article .jr-inline-table {
    width: max-content !important;
    min-width: 46rem !important;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
  }

  .subpage.jr-info-article .jr-inline-table th,
  .subpage.jr-info-article .jr-inline-table td {
    font-size: 1.34rem !important;
    line-height: 1.58 !important;
    padding: 0.72rem 0.78rem !important;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
    vertical-align: top;
  }

  /* JS 미적용·레거시: 표만 있는 래퍼는 이전처럼 통째로 스크롤 */
  .subpage.jr-info-article .jr-inline-table-wrap:not(:has(.jr-inline-table-scroll)) {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 1rem 0 1.2rem !important;
    padding: 0.1rem 0 0.45rem;
    border: 1px solid var(--jr-section-border, #cbd5e1);
    border-radius: 10px;
    background: #fff;
  }
}

@keyframes jrInlineTableHintChevron {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.88;
  }
  50% {
    transform: translateX(7px);
    opacity: 1;
  }
}

@media screen and (max-width: 420px) {
  .subpage.jr-info-article .jr-inline-table {
    min-width: 42rem !important;
  }
}
