/* ========================================================================
   [HOME COMMON R2 | 2026-10-30]
   북부 · 크라임 메인 공통 보완
   - 두 변호사 배너 / 성공사례 표기 / 차영욱 사례 3열 레일
   - 관할 법원·경찰서 탭 / 지도 제목 / 긴급 전화 CTA
   ======================================================================== */

/* 전달 받은 두 변호사 배너: 단 5% 성공사례 바로 위 */
.shared-prosecution-banner {
  background: #fff;
  padding: clamp(20px, 4vw, 52px) max(12px, env(safe-area-inset-right)) clamp(26px, 5vw, 70px);
}

.shared-prosecution-banner__inner,
.section2-banners.shared-prosecution-banner .section2-banners__inner {
  width: min(100%, 1820px);
  margin: 0 auto;
}

.shared-prosecution-banner img,
.section2-banners.shared-prosecution-banner img {
  display: block !important;
  width: 100%;
  max-width: 1820px;
  height: auto;
  margin: 0 auto;
}

/* 분야 탭과 카드의 관계를 명확히 하는 제목 */
.cases-eyebrow {
  margin: clamp(22px, 4vw, 40px) 0 clamp(14px, 2.2vw, 24px);
  color: #123474;
  font-size: clamp(18px, 2.1vw, 30px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.2;
  text-align: center;
}

/* ------------------------------------------------------------------------
   모바일 차영욱 사례: 3장씩 보이는 공통 가로 레일
   폭·높이는 JS가 실제 화면 너비를 계산해 인라인으로 고정한다.
   ------------------------------------------------------------------------ */
@media (max-width: 767.98px) {
  #section2 .viewport.shared-three-up-rail,
  .crime-judgement__scroll.shared-three-up-rail {
    scrollbar-width: thin !important;
    scrollbar-color: #cbd0d9 transparent !important;
    -webkit-overflow-scrolling: touch;
  }

  #section2 .viewport.shared-three-up-rail::-webkit-scrollbar,
  .crime-judgement__scroll.shared-three-up-rail::-webkit-scrollbar {
    display: block !important;
    height: 4px !important;
  }

  #section2 .viewport.shared-three-up-rail::-webkit-scrollbar-thumb,
  .crime-judgement__scroll.shared-three-up-rail::-webkit-scrollbar-thumb {
    background: #cbd0d9;
    border-radius: 999px;
  }

  #section2 .shared-three-up-track,
  .crime-judgement__scroll.shared-three-up-rail {
    scroll-behavior: smooth;
  }

  /* 카드 내부는 가독성 우선의 3열 축소형 표면으로 맞춘다. */
  #section2 .shared-three-up-track .card,
  .crime-judgement__scroll.shared-three-up-rail .crime-quote-card {
    position: relative;
    overflow: hidden !important;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 12px !important;
    box-shadow: 0 6px 15px rgba(19, 35, 65, .10) !important;
  }

  #section2 .shared-three-up-track .card .excerpt,
  .crime-judgement__scroll.shared-three-up-rail .crime-quote-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    text-overflow: ellipsis;
  }
}

/* ------------------------------------------------------------------------
   관할 법원 · 관할 경찰서 전환
   기존 법원 카드의 구성과 동일한 표면을 유지한다.
   ------------------------------------------------------------------------ */
#section5-court.is-shared-jurisdiction .shared-jurisdiction-tabs {
  display: inline-flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 5px;
  border-radius: 999px;
  background: #eef2f8;
}

#section5-court.is-shared-jurisdiction .shared-jurisdiction-tab {
  min-width: 126px;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #526078;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

#section5-court.is-shared-jurisdiction .shared-jurisdiction-tab.is-active {
  background: #17357c;
  color: #fff;
  box-shadow: 0 4px 10px rgba(23, 53, 124, .22);
}

#section5-court.is-shared-jurisdiction .shared-jurisdiction-panels {
  display: flex;
  flex: 0 0 55%;
  flex-direction: column;
  justify-content: center;
  max-width: 690px;
  min-width: 300px;
}

#section5-court.is-shared-jurisdiction .shared-jurisdiction-panels > .s5-left {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-width: 0;
}

#section5-court.is-shared-jurisdiction .shared-jurisdiction-panels > .s5-left[hidden] {
  display: none !important;
}

#section5-court.is-shared-jurisdiction .shared-police-pin {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  color: currentColor;
  font-size: 0;
}

#section5-court.is-shared-jurisdiction .shared-police-pin::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  content: '';
}

#section5-court.is-shared-jurisdiction .s5-map-heading {
  margin: 0 0 14px;
  color: #17357c;
  font-size: clamp(18px, 1.65vw, 25px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.25;
  text-align: center;
}

#section5-court.is-shared-jurisdiction .s5-map {
  position: relative;
  isolation: isolate;
}

#section5-court.is-shared-jurisdiction .s5-map img {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------------------
   긴급 대응: 대표번호·휴대폰번호를 각각 누를 수 있는 2줄 CTA
   ------------------------------------------------------------------------ */
#section7-visit .s7-phones.shared-urgent-phones {
  display: block;
  width: min(100%, 560px);
  margin: 0 auto;
  border: 0;
}

#section7-visit .shared-urgent-phone-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  margin: 0;
  padding: 12px 16px;
  border: 2px solid #171717;
  border-radius: 10px;
  background: #fff;
  color: #121212;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}

#section7-visit .shared-urgent-phone-cta + .shared-urgent-phone-cta {
  margin-top: 10px;
}

#section7-visit .shared-urgent-phone-cta__icon {
  display: block;
  width: clamp(30px, 8vw, 42px);
  height: clamp(30px, 8vw, 42px);
  background: center / contain no-repeat var(--shared-phone-icon);
}

#section7-visit .shared-urgent-phone-cta__pointer {
  display: block;
  width: clamp(25px, 6.4vw, 35px);
  height: clamp(25px, 6.4vw, 35px);
  background: center / contain no-repeat var(--shared-tap-pointer);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .16));
  pointer-events: none;
  animation: shared-phone-tap .9s ease-in-out infinite;
}

#section7-visit .shared-urgent-phone-cta strong {
  color: #111;
  justify-self: center;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
}

#section7-visit .shared-urgent-phone-cta:focus-visible {
  outline: 3px solid #17357c;
  outline-offset: 3px;
}

@keyframes shared-phone-tap {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2px, -2px) scale(.95); }
}

@media (max-width: 980px) {
  #section5-court.is-shared-jurisdiction .shared-jurisdiction-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 18px;
  }

  #section5-court.is-shared-jurisdiction .shared-jurisdiction-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
    font-size: 14px;
  }

  #section5-court.is-shared-jurisdiction .shared-jurisdiction-panels {
    order: 2;
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  #section5-court.is-shared-jurisdiction .s5-map-heading {
    margin-top: 18px;
    font-size: 19px;
  }

  /* 관할 경찰서가 잘리지 않도록 한 카드에 정확히 두 줄로 보인다. */
  #section5-court.is-shared-jurisdiction .shared-jurisdiction-panels .s5-left {
    gap: 12px;
  }

  #section5-court.is-shared-jurisdiction .shared-jurisdiction-panels .s5-item {
    min-height: 136px;
    padding: 16px 14px;
  }

  #section5-court.is-shared-jurisdiction .shared-jurisdiction-panels .s5-item .badge {
    margin-bottom: 12px;
  }

  #section5-court.is-shared-jurisdiction .shared-jurisdiction-panels .s5-item .desc {
    display: block !important;
    overflow: visible !important;
    color: inherit;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: keep-all;
  }

  #section7-visit .s7-phones.shared-urgent-phones {
    width: 100%;
  }

  #section7-visit .shared-urgent-phone-cta {
    min-height: 62px;
    padding: 10px 13px;
  }

  #section7-visit .shared-urgent-phone-cta strong {
    font-size: clamp(22px, 7.3vw, 31px);
  }
}

@media (max-width: 389.98px) {
  .cases-eyebrow { font-size: 17px; }

  #section7-visit .shared-urgent-phone-cta {
    gap: 6px 9px;
    padding: 9px 10px;
  }

  #section7-visit .shared-urgent-phone-cta__icon {
    width: 29px;
    height: 29px;
  }

  #section7-visit .shared-urgent-phone-cta strong { font-size: 22px; }
}
