/* ================== Base & Vars ================== */
:root{
  --text-font: 'AppleSDGothicNeo','Apple SD Gothic Neo','Noto Sans KR',
               'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',system-ui,sans-serif;
  --bg:#F8FAFD; --ink:#111; --ink2:#333; --ink3:#6b6b6b; --line:#E9ECF3; --card:#fff;
  --primary:#2A7DE1;
  --chip:#F4F7FF; --radius:18px;
  --accent-q:#FF6F3D; --accent-l:#3DBB8A; --accent-r:#6B6BFF;
  --inner-pad-x: 14px;
}

html, body{ font-family:var(--text-font); background:var(--bg); }
.new_header{ background:var(--bg); }

/* Layout */
.jdg-wrap{ max-width:920px; margin:0 auto; }
.jdg-title{ font-size:23px; font-weight:600; line-height:1.35; color:var(--ink2); margin:10px 10px 6px; }

/* 배지 */
.badge-case, .badge-issuer{
  display:inline-block; font-size:13px; padding:6px 10px; border-radius:999px; margin-left:10px;
  border:1px solid #dbe7ff; background:#ebf2ff; color:#2b5fb8;
}
.badge-issuer{ background:#e9f9f2; border-color:#cfeee2; color:#1a7b60; }

/* 카드 */
.section-card{
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); padding:40px; margin:14px 0 22px;
}
.section-title{ font-size:18px; font-weight:500; margin:0 0 24px; color:var(--ink); }

/* Rich text */
.section-card p{ font-size:16px; line-height:1.7; color:var(--ink2); margin:0 0 .9em; }
.section-card :is(h1,h2,h3,h4,h5,h6){ line-height:1.35; margin:0 0 .6em; color:var(--ink); }
.section-card a{ color:#2a56a5; text-decoration:underline; }
.section-card :is(ul,ol){ margin:.6em 0 1em 1.2em; }
.section-card li{ margin:.25em 0; }
.section-card blockquote{ border-left:3px solid #e0e7ff; padding-left:12px; color:#555; margin:1em 0; }
.section-card img{ max-width:100%; height:auto; }
.section-card table{ width:100%; border-collapse:collapse; margin:1em 0; }
.section-card th, .section-card td{ border:1px solid #e4e7ee; padding:8px 10px; }

/* 칩 */
.jdg-chips{ margin-top:24px !important; display:flex; gap:8px; flex-wrap:wrap; }
.jdg-chip{ background:var(--chip); border:1px solid #E6EDFF; color:#3F63AA; padding:6px 10px; border-radius:999px; font-size:12px; }

/* 에디터 헤딩 기본 */
.jdg-rich h1{ font-size:1.3em; font-weight:700; }
.jdg-rich h2{ font-size:1.2em; font-weight:700; }
.jdg-rich h3{ font-size:1.1em; font-weight:700; }
.jdg-rich h4{ color:#1f3e92; font-size:1.05em; font-weight:600; }
.jdg-rich h5{ color:#1f3e92; font-size:.95em; font-weight:600; }
.jdg-rich h6{ font-size:1.0em; font-weight:600; }
.jdg-rich b, .jdg-rich strong{ font-weight:600 !important; }
.jdg-rich hr{ border:0; border-top:1px solid #e3e7ee; margin:1.2em 0; }

/* 요약 섹션 글자 크기 */
#summary .jdg-rich, #summary .jdg-rich *{ font-size:16px !important; line-height:1.7 !important; }
#summary .jdg-rich, #m-summary .jdg-rich,
#summary .jdg-rich *, #m-summary .jdg-rich *{ font-size:15px !important; line-height:1.7 !important; }

/* ================== 핵심 포인트(탭) ================== */
.interp-tabs{
  display:flex; gap:8px; background:#F3F6FD; border:1px solid #E6ECFB; border-radius:12px; padding:6px; width:fit-content;
}
.interp-tab{
  border:0; background:transparent; padding:10px 14px; border-radius:10px; color:#4062a9; font-weight:600; cursor:pointer;
}
.interp-tab.active{
  background:#fff; color:#1F3E92; box-shadow:0 2px 8px rgba(0,0,0,.04), inset 0 0 0 1px #E6ECFB;
}

.interp-panels{ margin-top:16px; }
.interp-panel{ display:block; }
.interp-panel[hidden]{ display:none !important; }

/* 리스트 공통 */
.point-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.point-item{ display:flex; align-items:flex-start; gap:10px; background:#FAFBFF; border:1px solid #EEF2FD; border-radius:12px; padding:12px 14px; }
.point-icon{ width:26px; height:26px; border-radius:8px; display:grid; place-items:center; font-weight:700; font-size:13px; color:#fff; }
.point-icon.q{ background:var(--accent-q); }
.point-icon.l{ background:var(--accent-l); }
.point-icon.r{ background:var(--accent-r); }
.point-body{ color:var(--ink2); font-size:15px; line-height:1.7; }
.point-body ul{ margin:.4em 0 .4em 1.1em; }
.point-body li{ margin:.2em 0; }

.reply-meta{ display:flex; gap:8px; margin-bottom:10px; flex-wrap:wrap; }
.meta-badge{ display:inline-block; font-size:12px; padding:6px 10px; border-radius:999px; background:#F6F8FF; border:1px solid #E6EDFF; color:#3F63AA; }

.empty{ color:#6b6b6b; font-size:14px; }

/* ================== Q&A ================== */
#qa .qa-divider, #m-qa .qa-divider{ height:1px; background:var(--line); margin:18px auto; border-radius:1px; width:60%; }
.qa-q{ font-weight:500; margin-bottom:12px; color:var(--ink); line-height:1.5; }
.qa-a{ font-size:16px; color:var(--ink2); line-height:1.7; margin-bottom:10px; padding:0 3px; }
.qa-a strong{ font-weight:600; }
.qa-label{ display:inline-block; font-size:13px; color:#1f6d3c; background:#eaf7ef; border:1px solid #d3efdd; padding:5px 9px; border-radius:999px; margin:6px 0 6px; }
.qa-card{ background:#fff; padding:5px 0 20px; margin-bottom:28px; border-bottom:1px solid #e3e7ee; }
.qa-list .qa-card:last-child{ border-bottom:none; margin-bottom:0; }
.ai_fix{ background:#f8f8f8; border:1px solid var(--line); border-radius:12px; padding:14px; margin:16px auto 0; }
.ai_fix span{ font-size:13px; line-height:1.6; color:#555; display:block; }

.section-card :is(.qa-cta,.cta-wrap){
  width:100% !important; margin-top:24px !important; display:flex !important;
  justify-content:center !important; align-items:center !important; text-align:center !important;
}
.btn-cta{ display:inline-flex; align-items:center; justify-content:center; height:52px; min-width:260px; padding:0 20px; border-radius:12px; border:1px solid transparent; font-weight:700; box-shadow:0 4px 14px rgba(0,0,0,.06); margin:0 auto; text-decoration:none !important; }
.btn-cta.primary-indigo{ background:#0062DF; color:#fff; }
.btn-cta.primary-quiet{ background:#EEF4FF; border:1px solid #DDE7FF; color:#2A56A5; }

/* ================== 전문(본문) ================== */
.section-card.jdg-read .jdg-rich p{ margin:0 0 28px !important; line-height:1.9 !important; }
.section-card.jdg-read .jdg-rich :is(h1,h2,h3,h4){ margin:1.1em 0 .8em !important; line-height:1.35 !important; }
.section-card.jdg-read .jdg-rich :is(h5,h6){ margin:1.1em 0 .6em !important; line-height:1.35 !important; }
.jdg-read{ overflow-x:auto; line-height:1.85; word-break:keep-all; }
.jdg-read table{ width:100% !important; max-width:100%; border-collapse:collapse; table-layout:auto !important; margin:18px 0; }
.jdg-read th, .jdg-read td{ padding:.6em .8em; border:1px solid #e5e7eb; vertical-align:top; word-break:keep-all; overflow-wrap:anywhere; line-height:1.6; }
.jdg-read caption{ caption-side:top; text-align:center; margin-bottom:8px; font-weight:600; }

/* 출처 */
.jdg-rich .jdg-source{ margin-top:2em; font-size:14px; color:#555; }
.jdg-rich .jdg-source a{ text-decoration:underline; color:#2d6cdf; }

/* ================== More list ================== */
.jdg-more-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.jdg-more-list li{ position:relative; padding-left:14px; line-height:1.5; }
.jdg-more-list li::before{ content:"•"; position:absolute; left:0; top:0; color:var(--ink2); line-height:1.2; }
.jdg-more-list a{ text-decoration:none; color:#2A2A2A; font-size:14px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.jdg-more-list a:hover{ color:#0062DF; }

/* ================== Mobile ================== */
@media (max-width:700px){
  .jdg-wrap{ max-width:100%; padding:0; }
  .jdg-title{ font-size:20px; }
  .section-card{ border-radius:14px; padding:16px; }
  .section-card p{ font-size:15px; }
  .qa-a{ font-size:15px; }
  .btn-cta{ width:100%; min-width:0; height:50px; }

  .jdg-rich h1{ font-size:1.2em; }
  .jdg-rich h2{ font-size:1.1em; }
  .jdg-rich h3{ font-size:1.0em; }
  .jdg-read table{ display:block; overflow-x:auto; }

  /* 핵심정리 모바일 내부 패딩 */
  .point-combined .point-section{ padding:12px 0px; }
}

/* 전역 폰트 강제 (아이콘 제외) */
.pc_wrap .cnsl_dcont,
.pc_wrap .cnsl_dcont *:not(i):not(.fa):not([class^="xi-"]):not([class*=" xi-"]):not(.material-icons):not(.material-symbols-outlined):not(.material-symbols-rounded){
  font-family: var(--text-font) !important;
}
.mobile_wrap .dcm_inr,
.mobile_wrap .dcm_inr *:not(i):not(.fa):not([class^="xi-"]):not([class*=" xi-"]):not(.material-icons):not(.material-symbols-outlined):not(.material-symbols-rounded){
  font-family: var(--text-font) !important;
}

/* 섹션 제목에 좌측 마크(원형 사각) */
.section-title.with-mark{ display:flex; align-items:center; gap:10px; }
.sec-mark{ width:24px; height:24px; border-radius:8px; display:grid; place-items:center; font-weight:700; font-size:12px; color:#fff; }
.sec-mark.q{ background:var(--accent-q); }
.sec-mark.l{ background:var(--accent-l); }
.sec-mark.r{ background:var(--accent-r); }
.sec-mark.s{ background:var(--primary); }

/* 단순 불릿 리스트 */
.point-list.plain{ list-style:none; margin:0; padding:0; }
.point-list.plain > li{
  position:relative; padding-left:16px; color:var(--ink2);
  font-size:15px; line-height:1.75; margin:2px 0;
}
.point-list.plain > li::before{
  content:"•"; position:absolute; left:0; top:0.2em; line-height:1.2;
}

/* 핵심 정리 */
.point-combined .point-stack{ display:flex; flex-direction:column; gap:14px; }
.point-combined .subhead.with-mark{ display:flex; align-items:center; gap:10px; font-size:16px; font-weight:600; color:var(--ink); margin:0 0 10px; padding:0; border:0; }
.point-section .subhead.with-mark{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

/* 두 번째 섹션부터 중앙 짧은 라인 */
.point-combined .point-section{ border-top:none !important; }
.point-combined .point-items{ border-top:none !important; padding-top:0 !important; }
.point-combined .point-section + .point-section{
  position:relative; margin-top:34px; padding-top:22px;
}
.point-combined .point-section + .point-section::before{
  content:""; position:absolute; top:-24px; left:50%; transform:translateX(-50%);
  width:100px; height:2px; background:#e1e6f0; border-radius:2px;
}
@media (max-width:700px){
  .point-combined .point-section + .point-section{ margin-top:28px; padding-top:18px; }
  .point-combined .point-section + .point-section::before{ top:-22px; width:72px; height:2px; }
}

/* 회신 제목 옆 배지 */
.point-section .subhead.with-mark .inline-badge{
  margin-left:6px; transform:translateY(-1px); font-size:12px;
}
.point-section .subhead.with-mark .badge-case.inline-badge{
  font-size:12px; padding:4px 9px; line-height:1; display:inline-flex; align-items:center;
  font-weight:500 !important; transform:translateY(1px);
}

/* 공통 소제목(섹션 내부) */
.subhead.with-mark{ display:flex; align-items:center; gap:10px; font-size:16px; font-weight:600; color:var(--ink); margin:0 0 10px; }

/* 질의내용 전용: 불릿 제거 */
.point-list.nobullet > li{ padding-left:0; line-height:1.7; }
.point-list.nobullet > li::before{ content:none; }

/* ===== 질의+요약 통합 카드 ===== */
.qsum-combined .qsum-stack{ display:flex; flex-direction:column; gap:0 !important; }
.qsum-combined .qsum-block{ padding:14px 16px; } /* 기본 박스 */
.qsum-combined .qsum-block .qsum-body{ margin-top:6px; }

/* 블록 간 간격 + 중앙 구분선 */
.qsum-combined .qsum-block + .qsum-block{ position:relative; margin-top:24px; padding-top:18px; }
.qsum-combined .qsum-block + .qsum-block::before{
  content:""; position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  width:80px; height:2px; background:#e1e6f0; border-radius:2px;
}

/* 요약 본문 줄높이 */
.qsum-combined .qsum-block .qsum-body.jdg-rich,
.qsum-combined .qsum-block .qsum-body.jdg-rich *{ line-height:1.7 !important; }
.qsum-combined .qsum-block .qsum-body.jdg-rich p{ margin:4px 0; }

/* 정렬 보정: 불필요 좌측 여백 제거 */
.qsum-combined .qsum-body{ margin-left:0; padding-left:0; }
.qsum-combined .point-list.nobullet,
.qsum-combined .qsum-body.jdg-rich{ margin-left:0; }

/* (현재 UI의 정렬 기준 유지용) Q/S ↔ R/L 정렬 최종값 */
.qsum-combined .qsum-block{ padding:12px 0 !important; }     /* 카드 내부 좌우 여백: R/L과 동일한 효과 */
.qsum-combined .qsum-body{ padding-left:12px !important; }   /* 본문 시작선 보정 */
.qsum-combined .jdg-chips{ margin-left:12px; }               /* 칩도 본문 라인에 맞춤 */

@media (max-width:700px){
  .qsum-combined .qsum-body{ padding-left:16px !important; } /* 모바일 보정 */
}

/* 핵심 정리(질의/회신/법령) 내 굵기 보강 */
.point-list strong, .point-items strong,
.point-list b,      .point-items b { font-weight:600 !important; }