/* 24LAW 홈 — 디자인 스펙 v2 (사용자 제공) + JS/아코디언 보조 */

.home-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.footer-partner-note {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px 0;
}

.footer-partner-note__text {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.55;
}

.footer-partner-note__text a {
  color: #4f6ef7;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.trustnow-banner-link {
  display: block;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 24px;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
}

.trustnow-banner-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.home-consult-teaser-head {
  margin-bottom: 12px;
  width: 100%;
}

/* 제목 가운데 + 새로고침 오른쪽 끝(보조·얇게) */
.home-consult-title-row {
  position: relative;
  width: 100%;
  min-height: 2.5rem;
}

.home-consult-title-row .consult-title {
  margin: 0 auto;
  padding: 0 5.25rem;
  box-sizing: border-box;
}

.home-consult-refresh-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.85);
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
}

.home-consult-refresh-icon {
  font-size: 12px;
  line-height: 1;
  opacity: 0.85;
}

.home-consult-refresh-text {
  letter-spacing: -0.02em;
}

.home-consult-refresh-btn:hover {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}

.consult-title {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.45;
  max-width: 44rem;
  width: 100%;
  color: #0f172a;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 상담 영역: 변호사 3명 가로 한 줄 (텍스트 잘림·ellipsis 최소화) */
.home-platform-entry .lawyer-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}

.home-platform-entry .lawyer-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: center;
  background: linear-gradient(165deg, #fafcff 0%, #ffffff 100%);
  border: 1px solid #e8edf4;
  border-radius: 14px;
  padding: 14px 12px 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-platform-entry .lawyer-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.home-platform-entry .lawyer-specialty-pill {
  align-self: center;
  display: inline-block;
  max-width: 100%;
  padding: 4px 11px;
  margin-bottom: 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #4338ca;
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  border: 1px solid #c7d2fe;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.home-platform-entry .lawyer-specialty-pill--muted {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
  font-weight: 600;
}

.home-platform-entry .lawyer-info {
  flex: 1 1 auto;
  min-height: 2.75rem;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.home-platform-entry .lawyer-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.home-platform-entry .lawyer-name-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.home-platform-entry .lawyer-name-row .lawyer-status-badge {
  max-width: 100%;
}

.home-platform-entry a.consult-btn,
.home-platform-entry button.consult-btn {
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
  background: #4a6cf7;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  font-family: inherit;
}

.home-consult-lawyer-empty {
  margin: 0 0 8px;
}

/* TrustNow 배너: 상하 여백 없이 카드 폭에 맞춤, 이미지는 영역을 꽉 채움(cover) */
.home-platform-entry .trust-banner-section {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.home-platform-entry .trust-banner-section .trust-banner-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  text-decoration: none;
}

.home-platform-entry .trust-banner-section .banner-wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  line-height: 0;
  /* 고정 px height 대신 비율로 높이 결정 → img 100% + object-fit:cover 동작 */
  aspect-ratio: 16 / 5;
}

.home-platform-entry .trust-banner-section .banner-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  vertical-align: top;
}

.hero-actions--single {
  justify-content: center;
}

.home-section {
  margin-top: 36px;
}

.home-main > *:first-child {
  margin-top: 0;
}

/* 광고·히어로 등 home-section 없는 첫 블록은 기본 여백만 */
.home-main > .panel:not(.home-section),
.home-main > .hero {
  margin-top: 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-head.center {
  text-align: center;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: #4f6ef7;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 800;
  color: #111827;
}

.section-desc {
  margin: 0;
  font-size: 16px;
  color: #5b6474;
  line-height: 1.7;
}

.section-desc.narrow {
  max-width: 760px;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 사건 분야: 아이콘 중심 컴팩트 그리드 (플랫폼 전용 — styles.css 범용 .category-* 와 분리) */
#case-category-platform-grid.case-category-grid.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 90px);
  gap: 10px; /* 모바일은 하단 미디어쿼리에서 8px */
  justify-content: center;
  max-width: none;
  margin: 0 auto;
  box-sizing: border-box;
}

#case-category-platform-grid .category-card.category-item {
  box-sizing: border-box;
  width: 90px;
  min-height: 90px;
  height: auto;
  padding: 10px;
  margin: 0;
  border-radius: 12px;
  text-align: center;
  background: #f8f9fb;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  font: inherit;
  color: inherit;
  text-decoration: none;
  min-height: 0;
  min-width: 0;
  box-shadow: none;
}

#case-category-platform-grid .category-card.category-item:hover {
  transform: translateY(-1px);
  border-color: #c7d2fe;
  box-shadow: 0 4px 12px rgba(79, 110, 247, 0.12);
}

#case-category-platform-grid .category-card.category-item.active,
#case-category-platform-grid .category-card.category-item.is-selected {
  border-color: #4f6ef7;
  background: linear-gradient(180deg, #f0f4ff 0%, #e8eeff 100%);
  box-shadow: 0 4px 14px rgba(79, 110, 247, 0.2);
}

/* 정사각형 아이콘 박스 (spec: category-icon-wrapper) */
#case-category-platform-grid .category-icon-wrap.category-icon-wrapper {
  width: 36px;
  height: 36px;
  margin: 0 auto 6px;
  border-radius: 8px;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#case-category-platform-grid .category-card.category-item.is-selected .category-icon-wrap,
#case-category-platform-grid .category-card.category-item.active .category-icon-wrap {
  background: #dbe4ff;
  border-color: #a5b4fc;
}

#case-category-platform-grid .category-icon {
  font-size: 17px;
  line-height: 1;
}

#case-category-platform-grid .category-label {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-align: center;
  display: block;
  width: 100%;
  overflow: visible;
}

/* 빠른 의뢰: 선택 경로 표시 */
.case-quick-selection-path {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  line-height: 1.45;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  word-break: keep-all;
}

.case-quick-selection-path.is-empty {
  font-weight: 500;
  color: #94a3b8;
}

.quick-case-card,
.trust-card,
.lawyer-card {
  border: 1px solid #e5e9f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.category-section.panel-card,
.quick-case-section.panel-card {
  border-radius: 22px;
}

.quick-case-card {
  padding: 24px;
}

.quick-field + .quick-field {
  margin-top: 18px;
}

.quick-field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid #d5dbe5;
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font: inherit;
  color: #374151;
}

.chip:hover:not(:disabled) {
  border-color: #aac2ff;
}

.chip.active,
.chip.case-type-chip.is-active {
  background: #eef4ff;
  border-color: #4f6ef7;
  color: #2547d0;
}

.chip.case-type-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.region-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.region-select {
  min-width: 220px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #d5dbe5;
  background: #fff;
  font: inherit;
}

.case-quick-location-btn.btn-secondary {
  height: 44px;
  padding: 0 16px;
}

.quick-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.quick-case-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: #5b6474;
}

.quick-case-hint--alert:empty {
  display: none;
}

.btn-primary,
.btn-secondary {
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-primary {
  background: #4f6ef7;
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(79, 110, 247, 0.28);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.04);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff;
  color: #1f2937;
  border: 1px solid #d5dbe5;
  font: inherit;
}

.btn-secondary:hover:not(:disabled) {
  border-color: #90a8ff;
  background: #fafbff;
}

.btn-secondary.strong {
  border-color: #90a8ff;
}

.btn-primary.small,
.btn-secondary.small {
  height: 40px;
  padding: 0 14px;
  font-size: 13px;
  box-shadow: none;
}

.btn-primary.small {
  box-shadow: 0 2px 10px rgba(79, 110, 247, 0.22);
}

.price-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.price-badge {
  border-radius: 999px;
  background: #eef4ff;
  color: #3156e0;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
}

.price-badge.muted {
  background: #f4f6f9;
  color: #5b6474;
}

.trust-card-grid,
.lawyer-card-grid {
  display: grid;
  gap: 12px;
}

.trust-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lawyer-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#featured-lawyer-list.lawyer-card-grid--featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trust-card,
.lawyer-card {
  padding: 16px;
}

.trust-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.trust-card:hover {
  border-color: #c7d4f7;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.trust-icon {
  font-size: 28px;
  margin-bottom: 12px;
  line-height: 1;
}

.trust-card h3,
.lawyer-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.trust-card p,
.lawyer-card p {
  margin: 0;
  color: #5b6474;
  line-height: 1.7;
  font-size: 14px;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: #3156e0;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.lawyer-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lawyer-card-grid--featured .lawyer-card {
  min-height: 0;
}

.lawyer-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lawyer-card__top-row,
.lawyer-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.recommend-badge {
  border-radius: 999px;
  background: #edf8ef;
  color: #1d7a36;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  flex-shrink: 0;
}

/* 변호사 상담 연결 상태 뱃지 (AVAILABLE / BUSY / OFFLINE) */
.lawyer-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lawyer-status-badge--available {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.lawyer-status-badge--busy {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.lawyer-status-badge--offline {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.lawyer-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.lawyer-card__specialty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.lawyer-specialty-pill--secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

/* 상담 전화: 루트 전체 덮음 → 뒤 카드 클릭 차단 */
.consult-modal-root {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  pointer-events: none;
}

.consult-modal-root[hidden] {
  display: none !important;
}

.consult-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  pointer-events: auto;
  cursor: default;
}

.consult-modal-panel.consult-consent-modal {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(360px, calc(100% - 20px));
  max-height: min(92vh, 640px);
  padding: 0;
  overflow: visible;
  pointer-events: auto;
  cursor: default;
  border: 1px solid #dbe5f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
}

.consult-consent-modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 6px 14px;
}

.consult-consent-modal-header h3 {
  margin: 0;
  flex: 1;
  font-size: 1.1rem;
  color: #0f2747;
}

.consult-consent-x-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  font-family: inherit;
}

.consult-consent-x-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.consult-consent-body {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 0 14px 6px;
}

.consult-consent-lawyer-card {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
}

.consult-consent-lawyer-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.consult-consent-phone-field {
  margin-bottom: 8px;
}

.consult-consent-phone-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.consult-consent-phone-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  font: inherit;
}

.consult-payment-block {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.consult-payment-head {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.consult-pay-mode-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.consult-pay-mode-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  line-height: 1.35;
}

.consult-pay-mode-item:last-of-type {
  margin-bottom: 0;
}

.consult-pay-mode-item input {
  margin: 0;
  flex-shrink: 0;
  accent-color: #1e40af;
}

.consult-tnt-balance-line {
  margin: 8px 0 0;
  font-size: 12px;
  color: #475569;
}

.consult-tnt-balance-line strong {
  font-variant-numeric: tabular-nums;
  color: #1e3a8a;
}

.consult-attachment-block {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
}

.consult-attachment-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.consult-attachment-block input[type="file"] {
  width: 100%;
  font-size: 12px;
  color: #334155;
}

.consult-attachment-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #64748b;
}

.consult-consent-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 6px;
}

.consult-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  line-height: 1.4;
}

.consult-consent-row input {
  margin-top: 3px;
  flex-shrink: 0;
}

.consult-consent-modal .consult-consent-error {
  flex-shrink: 0;
  margin: 0 14px;
  padding: 0 0 6px;
}

.consult-consent-modal .consult-consent-actions {
  flex-shrink: 0;
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.consult-consent-modal .consult-consent-actions .cta.primary {
  width: 100%;
  justify-content: center;
  margin: 0;
  pointer-events: auto;
}

.consult-consent-modal .consult-start-call-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.consult-consent-cancel {
  width: 100%;
  text-align: center;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  padding: 8px;
  cursor: pointer;
  font: inherit;
}

.consult-consent-cancel:hover {
  color: #334155;
}

.site-footer .footer-dev-tools {
  display: block;
  font-size: 12px;
  color: #9ca3af;
  margin-top: 6px;
}

.site-footer .footer-dev-link {
  color: #6b7280;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer .footer-dev-link:hover {
  color: #4b5563;
}

.lawyer-reason,
.lawyer-card__reason {
  margin-top: 6px;
  color: #374151;
  line-height: 1.6;
  font-size: 15px;
}

.lawyer-card__meta-line {
  margin: 0 0 auto;
  font-size: 13px;
  color: #6b7280;
}

.lawyer-actions,
.lawyer-card__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.section-more {
  margin-top: 16px;
  text-align: center;
}

.section-more .btn-secondary {
  display: inline-flex;
}

/* 푸터 (스펙) */
.site-footer,
.site-footer.site-footer--surface.platform-footer {
  margin-top: 72px;
  border-top: 1px solid #e5e9f0;
  background: #fafbfd;
  padding: 40px 20px 20px;
  color: inherit;
}

.footer-grid,
.site-footer__inner.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer-col h4,
.footer-desktop-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.footer-col p,
.footer-col a {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  color: #5b6474;
  text-decoration: none;
  line-height: 1.6;
}

.footer-col a:hover {
  color: #3156e0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid #e5e9f0;
  font-size: 13px;
  color: #7b8593;
  text-align: center;
}

.site-footer__copy {
  margin: 0;
}

.footer-col__muted {
  color: #7b8593;
}

/* --- 모바일 푸터 아코디언 --- */
.footer-col {
  min-width: 0;
}

.footer-mobile-toggle {
  display: none;
  width: 100%;
  padding: 12px 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid #e5e9f0;
  background: transparent;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.footer-col__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-col__body a {
  display: block;
  margin: 0 0 8px;
}

.footer-col__text {
  font-size: 14px;
  color: #5b6474;
  margin: 0 0 8px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .footer-desktop-title {
    display: none;
  }
  .footer-mobile-toggle {
    display: block;
  }
  .footer-col__body {
    padding-bottom: 12px;
  }
  .footer-col__body[hidden] {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .footer-mobile-toggle {
    display: none !important;
  }
  .footer-desktop-title {
    display: block;
  }
  .footer-col__body {
    display: flex !important;
  }
}

/* 좁은 폰: 5열(450px+) 넘지 않도록 3열 고정 타일 */
@media (max-width: 480px) {
  #case-category-platform-grid.case-category-grid.category-grid {
    grid-template-columns: repeat(3, 90px);
    gap: 8px;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .trust-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid,
  .site-footer__inner.footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-main {
    padding: 18px 14px 48px;
  }

  .home-section {
    margin-top: 18px;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .panel.panel-card.home-section,
  .home-section.category-section.panel-card {
    margin-bottom: 0;
  }

  #case-category-platform-grid.case-category-grid.category-grid {
    gap: 8px;
  }

  .trust-card-grid,
  .lawyer-card-grid,
  #featured-lawyer-list.lawyer-card-grid--featured {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .trust-card,
  .lawyer-card {
    padding: 12px 14px;
    border-radius: 16px;
  }

  .home-platform-entry {
    padding: 14px 14px 0;
    border-radius: 16px;
  }

  .home-platform-entry .lawyer-list {
    gap: 8px;
    margin-bottom: 8px;
  }

  .home-platform-entry .lawyer-item {
    padding: 10px 8px;
  }

  .home-platform-entry .lawyer-info {
    min-height: 0;
    margin-bottom: 8px;
  }

  .home-platform-card-grid {
    gap: 10px;
  }

  .home-consult-title-row .consult-title {
    padding: 0 3rem;
  }

  .featured-lawyers-head {
    margin-bottom: 10px;
  }

  .lawyer-actions,
  .lawyer-card__actions {
    margin-top: 12px;
    gap: 8px;
  }

  .region-row,
  .quick-actions,
  .lawyer-actions,
  .lawyer-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-actions .btn-primary,
  .quick-actions .btn-secondary,
  .lawyer-actions .btn-primary,
  .lawyer-actions .btn-secondary,
  .section-more .btn-secondary {
    width: 100%;
  }

  .footer-grid,
  .site-footer__inner.footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer.site-footer--surface.platform-footer {
    margin-top: 40px;
    padding: 28px 14px 16px;
  }

  .region-select {
    min-width: 0;
    width: 100%;
  }

  .trust-service-grid {
    gap: 8px;
    margin-top: 0.75rem;
  }

  .home-main > .ad-slider-panel.panel-card {
    margin-bottom: 12px;
  }

  .consult-consent-row {
    font-size: 13px;
  }
}

/* 기타 페이지 호환: 구 Trust 링크 그리드 */
.trust-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  .trust-service-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 1rem;
  border: 1px solid #e5e9f0;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: #111827;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.case-quick-cta-main.case-quick-cta-main {
  min-height: 46px;
}

.platform-subtype-grid.case-quick-card-grid {
  margin-top: 10px;
}

/* —— 홈 상단: 상담·통화 진입 —— (배너 여백은 .trust-banner-section 전담) */
.home-platform-entry {
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: linear-gradient(165deg, #f8fbff 0%, #ffffff 55%);
  box-shadow: 0 10px 36px rgba(37, 99, 235, 0.08);
  /* 배너 하단 불필요 여백 제거 — 좌우·상단만 유지 */
  padding: 20px 20px 0;
  margin-top: 0;
  min-height: 0;
}

.home-platform-hero-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 24px;
}

.home-platform-eyebrow {
  margin-bottom: 10px;
}

.home-platform-entry h1 {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  line-height: 1.3;
  margin: 0;
  font-weight: 800;
  color: #0f172a;
}

.home-platform-entry h1.consult-title {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
  margin: 0 auto;
  text-align: center;
}

.home-platform-sub {
  margin: 12px 0 0;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: #475569;
}

.home-platform-disclaimer {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
}

.home-platform-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .home-platform-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .home-platform-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 핵심 4카드만 한 줄(2×2는 560~959px) — 데모는 별도 영역 */
.home-platform-card-grid--primary {
  align-items: stretch;
}

.home-platform-card--featured {
  border: 2px solid #2563eb;
  background: linear-gradient(165deg, #eff6ff 0%, #ffffff 65%);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.14);
  position: relative;
}

.home-platform-card--featured::before {
  content: "주요 진입";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 8px;
  border-radius: 999px;
}

.home-platform-card--featured:hover {
  border-color: #1d4ed8;
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.18);
}

.home-platform-demo-area {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #cbd5e1;
}

.home-platform-demo-heading {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #64748b;
  text-align: center;
}

.home-platform-demo-lead {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.45;
}

.home-platform-demo-area .home-platform-card--demo {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.home-platform-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 100%;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-platform-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.1);
}

.home-platform-card-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.home-platform-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e3a8a;
}

.home-platform-card-desc {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
}

.home-platform-card-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 700;
  width: 100%;
  text-align: center;
}

.home-platform-card-cta:hover {
  filter: brightness(1.05);
}

.home-platform-card--demo {
  border-style: dashed;
  border-color: #cbd5e1;
  background: #fafbff;
}

.home-platform-card-eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.home-platform-card-note {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
}

.home-platform-card-cta--demo {
  background: #fff;
  color: #1e40af !important;
  border: 1px solid #bfdbfe;
}

.home-platform-card-cta--demo:hover {
  background: #eff6ff;
}

.hero-consult-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.trust-doc-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 1rem 0 0;
}

.trust-doc-shortcut-link {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  color: #1e40af;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.trust-doc-shortcut-link:hover {
  background: #eff6ff;
}

/* 접근성: 시각적으로 숨김, 스크린리더만 읽음 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
