/*
 * 도산 사이트만의 조정. css/daese/ 는 본 홈페이지 css 를 그대로 복사한 것이라 거기는 고치지 않고 여기서 덮는다.
 * 모든 화면에서 맨 마지막에 읽는다.
 */

/* 머리 메뉴가 7칸이 아니라 6칸 (common/header.jspf 와 맞춘다) */
:root {
  --menu-cols: 6;
}

/* 머리가 화면 위에 붙어 있어 구역 이동 시 제목이 머리에 가리지 않게 */
html { scroll-behavior: smooth; }
.dosan-anchor { scroll-margin-top: 100px; }
@media (max-width: 1024px) {
  .dosan-anchor { scroll-margin-top: 70px; }
}

/* 본 사이트 브라우저 기본 배경(흰색)을 명시. 어두운 모드 브라우저에서도 같은 화면 */
html, body { background: #fff; }

/* ---------- 첫 화면 ---------- */

/* 첫 단 버튼: 본 사이트 첫 단의 검색창 자리. 모양은 상담 띠 버튼(hm-cta-btn·hm-cta-tel) 그대로 */
.dosan-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}
.dosan-hero-actions .hm-cta-tel { color: #fff; }


/* 담당 변호사 카드 한 장: 본 사이트는 두 칸 격자라 한 장이면 반쪽만 찬다 → 가운데 한 칸 */
.dosan-lawyers .hm-lawyers-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

/* 전문분야 등록증서: 담당 변호사 카드 바로 아래. 증서 크기는 본 사이트 대전 「소개」 단(intro.css)과 같게 최대 400px */
.dosan-cert {
  padding: 72px 0 96px;
  background: #fff;
  font-family: var(--hm-font);
}
.dosan-cert-item {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}
.dosan-cert-item a { display: block; }
.dosan-cert-item img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hm-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.dosan-cert-item figcaption { margin-top: 18px; }
.dosan-cert-item figcaption strong {
  display: block;
  font-size: 18px;
  color: var(--hm-ink);
}
.dosan-cert-item figcaption span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  color: var(--hm-muted);
}
@media (max-width: 767px) {
  .dosan-cert { padding: 48px 0 64px; }
  .dosan-cert-item { max-width: 280px; }
  .dosan-cert-item figcaption strong { font-size: 16px; }
  .dosan-cert-item figcaption span { font-size: 14px; }
}

/* 전문변호사 띠: 본 사이트 expert.css 의 태블릿·휴대폰 위 여백(15·25rem)과 세로 70vh 는 본 사이트 앞 단에 맞춘 값이라 여기서는 없앤다 */
.expert-background-wrapper .expert-section {
  margin-top: 0;
  height: auto;
}

/* ---------- 변호사 소개 ---------- */

/* 이름 아래 변협 등록 문구 */
.info p.dosan-expert {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  color: var(--main-navi);
}
.info p a { color: inherit; text-decoration: none; }
@media (max-width: 767px) {
  .info p.dosan-expert { font-size: 15px; }
}

.dosan-cta-grid .card-sub { word-break: keep-all; }
/* 상담 카드: 4장이면 2×2, 3장(상담신청 화면)이면 마지막 카드를 아랫줄 전체로 */
.dosan-cta-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 1024px) {
  .dosan-cta-grid > .card:last-child:nth-child(odd) { grid-column: auto; }
}

/* 증서 확대 보기: 어디를 눌러도 닫히므로(js/credentialLightbox.js) 손가락 대신 축소 표시 */
.credential-lightbox { cursor: zoom-out; }
.dosan-cert-item a { cursor: zoom-in; }

/* ---------- 성공사례 ---------- */

/* 글이 아직 없을 때 */
.dosan-empty {
  max-width: 1200px;
  margin: 60px auto 100px;
  padding: 0 20px;
  text-align: center;
  font-size: 18px;
  color: #666;
}

/* 목록 카드: 제목 링크를 카드 전체로 넓힌다(본사는 onclick 스크립트로 처리) */
.card-item.v2 { position: relative; }
.card-item.v2 .card-title-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* 카드 아래 한 줄 결과 */
.dosan-card-result {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #214f6d;
  word-break: keep-all;
}
.dosan-card-result strong { margin-right: 6px; color: #ef4f4f; }

/* 상세 제목 칸: 본사는 style 속성으로 준 값 */
.dosan-success-header .case-title { flex: 1 1 auto; background: transparent; }  /* 본사 success_sb.css 의 흰 바탕(본사는 바탕이 흰색이라 안 보임)이 도산 바탕색 위에서 상자로 보여 뺐다, 2026-11-26 */

/* ---------- 법률정보 허브 ---------- */

/* 목록 위 카테고리 탭 */
.dosan-legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.dosan-legal-tabs a {
  padding: 10px 22px;
  border: 1px solid #c9d3da;
  border-radius: 8px;
  background: #fff;
  color: #214f6d;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.dosan-legal-tabs a:hover { border-color: #214f6d; }
.dosan-legal-tabs a.active { border-color: #214f6d; background: #214f6d; color: #fff; }
@media (max-width: 767px) {
  .dosan-legal-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 20px; }
  .dosan-legal-tabs a { padding: 10px 8px; font-size: 15px; text-align: center; }
}

/* 목록 맨 위 허브 글 */
.dosan-hubs { margin-bottom: 36px; }
.dosan-hubs-title { margin: 0 0 14px; font-size: 22px; font-weight: 700; color: #214f6d; }
.dosan-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dosan-hub-grid a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid #c9d3da;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.dosan-hub-grid a:hover { border-color: #214f6d; }
.dosan-hub-grid span { display: block; margin-bottom: 6px; font-size: 13px; color: #667085; }
.dosan-hub-grid strong { font-size: 17px; line-height: 1.45; word-break: keep-all; }

/* 글 위 상위 글 경로 */
.dosan-crumbs { margin-bottom: 10px; font-size: 14px; color: #667085; word-break: keep-all; }
.dosan-crumbs a { color: inherit; text-decoration: none; }
.dosan-crumbs a:hover { text-decoration: underline; }

/* 글 아래 하위 글·같은 주제의 다른 글 */
.dosan-legal-links { margin: 0; padding: 0; list-style: disc inside; }
.dosan-legal-links li { padding: 10px; font-size: 18px; }
.dosan-legal-links a { color: inherit; text-decoration: none; }
.dosan-legal-links a:hover { text-decoration: underline; }

/* ---------- 자주 묻는 질문 ---------- */

.dosan-faq { padding: 72px 0 96px; background: #fff; font-family: var(--hm-font); }
/* 폭은 첫 화면 법률정보 목록과 같다(2026-11-04 사용자 지시) */
.dosan-faq-list { border-top: 1px solid var(--hm-line); }
.dosan-faq-item { border-bottom: 1px solid var(--hm-line); }
.dosan-faq-item summary {
  position: relative;
  padding: 20px 44px 20px 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--hm-ink);
  word-break: keep-all;
  list-style: none;
  cursor: pointer;
}
.dosan-faq-item summary::-webkit-details-marker { display: none; }
.dosan-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 8px;
  font-size: 22px;
  font-weight: 400;
  color: var(--hm-muted);
}
.dosan-faq-item[open] summary::after { content: "−"; }
.dosan-faq-item p {
  margin: 0;
  padding: 0 44px 24px 4px;
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
  white-space: pre-line;
  word-break: keep-all;
}
@media (max-width: 767px) {
  .dosan-faq { padding: 48px 0 64px; }
  .dosan-faq-item summary { padding: 16px 36px 16px 2px; font-size: 16px; }
  .dosan-faq-item summary::after { top: 13px; right: 4px; }
  .dosan-faq-item p { padding: 0 8px 20px 2px; font-size: 15px; }
}

/* ---------- 오시는 길·상담신청 공통 ---------- */

/* 아래 상담 단(.cta-wrap)과 폭·좌우 여백을 맞춘다 */
.dosan-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 40px 0;
}
.dosan-page-title {
  margin: 0 0 24px;
  font-size: 30px;
  font-weight: 800;
  color: #333;
  text-align: center;
  word-break: keep-all;
}
.dosan-page-lead {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.7;
  color: #374151;
  text-align: center;
  word-break: keep-all;
}
@media (max-width: 767px) {
  .dosan-page { padding-top: 48px; }
  .dosan-page-title { font-size: 24px; }
  .dosan-page-lead { font-size: 16px; }
}
@media (max-width: 480px) and (orientation: portrait) {
  .dosan-page { padding-left: 15px; padding-right: 15px; }
}

/* ---------- 오시는 길 ---------- */

.dosan-location-map {
  height: 480px;
  overflow: hidden;
  border: 4px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.dosan-location-map iframe { display: block; width: 100%; height: 100%; border: 0; }
.dosan-location-info { margin: 0; padding: 12px 0 0; }
.dosan-location-info > div {
  display: flex;
  gap: 24px;
  padding: 16px 4px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}
.dosan-location-info dt { flex: 0 0 90px; font-weight: 800; color: #214f6d; }
.dosan-location-info dd { flex: 1 1 auto; min-width: 0; margin: 0; word-break: keep-all; }
.dosan-location-info a { color: inherit; font-weight: 700; text-decoration: none; }
.dosan-location-info strong { margin-left: 6px; color: #d10000; font-weight: 800; }
.dosan-location-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.dosan-location-links a {
  padding: 12px 28px;
  border: 1px solid #214f6d;
  border-radius: 8px;
  background: #fff;
  color: #214f6d;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.dosan-location-links a:hover,
.dosan-location-links a.primary { background: #214f6d; color: #fff; }
.dosan-location-links a.primary:hover { background: #183d55; }
@media (max-width: 767px) {
  .dosan-location-map { height: 340px; }
  .dosan-location-info > div { gap: 12px; padding: 14px 2px; font-size: 16px; }
  .dosan-location-info dt { flex-basis: 72px; }
  .dosan-location-info strong { display: block; margin: 2px 0 0; }
  .dosan-location-links a { flex: 1 1 100%; text-align: center; }
}

/* ---------- 상담 신청 ---------- */

/* 신청서: 아래 상담 단 상자(.cta)와 같은 폭·테두리 */
.dosan-consult-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px;
  border: 4px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  text-align: left;
}
.dosan-consult-form h2 { margin: 0; font-size: 26px; font-weight: 800; color: #333; }
.dosan-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dosan-form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dosan-form-field label { font-size: 16px; font-weight: 700; color: #333; }
.dosan-form-field label span { font-size: 14px; font-weight: 400; color: #667085; }
.dosan-form-field input,
.dosan-form-field select,
.dosan-form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #c9d3da;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: #333;
}
.dosan-form-field textarea { min-height: 130px; resize: vertical; }
.dosan-form-field input:focus,
.dosan-form-field select:focus,
.dosan-form-field textarea:focus { outline: 2px solid #214f6d; outline-offset: 1px; }
/* 함정 칸: 화면 밖으로 보낸다(display:none 이면 일부 스팸 프로그램이 건너뛴다) */
.dosan-form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dosan-form-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 16px; line-height: 1.5; color: #333; cursor: pointer; }
.dosan-form-agree input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; }
.dosan-form-agree a { color: #214f6d; text-decoration: underline; }
.dosan-form-submit {
  padding: 15px;
  border: 0;
  border-radius: 8px;
  background: #214f6d;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.dosan-form-submit:hover { background: #183d55; }
.dosan-form-submit:disabled { background: #667085; cursor: wait; }
@media (max-width: 767px) {
  .dosan-consult-form { padding: 20px 16px; }
  .dosan-consult-form h2 { font-size: 20px; }
  .dosan-form-row { grid-template-columns: minmax(0, 1fr); }
}

/* 신청 결과 화면 */
.dosan-result {
  max-width: 760px;
  margin: 0 auto;
  padding: 180px 20px 120px;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  word-break: keep-all;
}
.dosan-result h1 { margin: 0 0 16px; font-size: 32px; font-weight: 800; }
.dosan-result p { margin: 0 0 10px; }
.dosan-result-tel { color: #667085; font-size: 16px; }
.dosan-result-tel a { color: #214f6d; font-weight: 700; text-decoration: none; }
.dosan-result-actions { margin-top: 28px; }
.dosan-result-actions a {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  background: #214f6d;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 767px) {
  .dosan-result { padding: 110px 20px 80px; font-size: 16px; }
  .dosan-result h1 { font-size: 24px; }
}

/* 태블릿·휴대폰: 아래 고정 버튼(sidebar.css 의 .fixed_m)이 꼬리 끝을 가리지 않게 */
@media (max-width: 1024px) {
  .footer { padding-bottom: 72px; }
}

/* 첫 화면 사무소 안내: 대전 줄의 오시는 길 링크 */
.daejeon-map-address .addr-sub a { color: #214f6d; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }


/* ---------- 업무분야·법률정보·성공사례·변호사 소개 연결 ---------- */

/* 성공사례 목록은 표 묶음 밖에 탭이 있어 폭을 따로 맞춘다 */
.dosan-success-tabs { box-sizing: border-box; max-width: var(--wrap-max); margin: 40px auto -14px; padding: 0 20px; }
/* 글의 분야 이름 링크 */
a.badge { color: inherit; text-decoration: none; }
a.badge:hover { text-decoration: underline; }
.dosan-area-link { color: #214f6d; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* 변호사 소개 태그 링크 */
.tags a { color: inherit; text-decoration: none; }
.tags a:hover { text-decoration: underline; }
/* 더 보기 */
.dosan-more-link { display: inline-block; margin-top: 14px; color: #214f6d; font-size: 15px; font-weight: 700; text-decoration: none; }
.dosan-more-link:hover { text-decoration: underline; }
.dosan-lawyer-related .dh-practice-related { margin-top: 0; }
@media (max-width: 767px) {
  .dosan-success-tabs { margin-top: 24px; }
}
