/* Free diagnosis only. The offer remains outside this paper and keeps its styles. */
#first-answer {
  position: relative;
  isolation: isolate;
}
#first-answer .report-paper {
  position: relative;
  min-width: 0;
  padding: 48px 48px 28px;
  background: #fff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgb(15 23 42 / 9%);
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  counter-reset: report-chapter;
}
/* Paint the desk beyond the column without adding any scrollable width. */
#first-answer .report-paper::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -24px -12px;
  background: #f1f5f9;
  box-shadow: 0 0 0 100vmax #f1f5f9;
  clip-path: inset(0 -100vmax);
}
#first-answer .report-paper::after {
  content: '무료 진단서 · AskLaw';
  display: block;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid #cbd5e1;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  letter-spacing: .03em;
}
#first-answer .report-paper .pre-head {
  margin: 0 0 28px;
  padding: 0 0 28px;
  border-bottom: 2px solid #7c3aed;
}
#first-answer .report-paper .pre-head-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  color: #6d28d9;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0;
}
#first-answer .report-paper .pre-head-label svg {
  width: 21px;
  height: 21px;
  padding: 2px;
  flex: none;
  border-radius: 5px;
  color: #fff;
  background: #7c3aed;
}
#first-answer .report-paper .pre-head h2 {
  margin: 0 0 22px;
  color: #0f172a;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-align: left;
}
#first-answer .report-paper .pre-cover-conditions {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
}
#first-answer .report-paper .pre-cover-conditions > div { display: inline; }
#first-answer .report-paper .pre-cover-conditions dt,
#first-answer .report-paper .pre-cover-conditions dd { display: inline; margin: 0; }
#first-answer .report-paper .pre-cover-separator {
  margin-inline: 7px;
  color: #64748b;
}
#first-answer .report-paper .pre-cover-conditions:has(+ .pre-head-meta:empty) { display: none; }
#first-answer .report-paper .pre-head-meta {
  margin: 12px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
}
#first-answer .report-paper .pre-head-meta::before { content: '작성일 '; }
#first-answer .report-paper #answer-body { font-size: 17px; line-height: 1.85; }
#first-answer .report-paper #answer-body p,
#first-answer .report-paper #answer-body li {
  color: #1e293b;
  font-size: 17px;
  line-height: 1.85;
}
#first-answer .report-paper #answer-body p { margin: 16px 0 0; }
#first-answer .report-paper #answer-body .pre-bank-opening {
  margin: 0 0 36px;
  padding: 20px 18px;
  border-left: 3px solid #7c3aed;
  background: #f5f3ff;
}
#first-answer .report-paper #answer-body .pre-bank-opening > p:first-child {
  margin-top: 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.6;
}
/* '내 상황 읽기' opens the paper: a quiet summary panel, not a numbered chapter. */
#first-answer .report-paper #answer-body .pre-reading {
  margin: 0 0 24px;
  padding: 18px;
  border-left: 3px solid #94a3b8;
  border-radius: 0;
  background: #f8fafc;
}
#first-answer .report-paper #answer-body .pre-reading > h3 {
  margin: 0;
  color: #475569;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .04em;
}
#first-answer .report-paper #answer-body .pre-reading > p { margin-top: 8px; }
#first-answer .report-paper #answer-body .pre-reading > .pre-reading-key {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 650;
}
/* The group is a running label; individual legal explanations are chapters. */
#first-answer .report-paper #answer-body .pre-legal-group { display: flex; flex-direction: column; margin: 0; }
#first-answer .report-paper #answer-body .pre-legal-group > h3 {
  margin: 0;
  color: #475569;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: .04em;
}
#first-answer .report-paper #answer-body .pre-legal-card,
#first-answer .report-paper #answer-body > section:not(.pre-bank-opening):not(.pre-legal-group):not(.pre-reading) {
  margin: 32px 0 0;
  padding: 28px 0 0;
  border: 0;
  border-top: 1px solid #cbd5e1;
  border-radius: 0;
  background: transparent;
}
#first-answer .report-paper #answer-body .pre-legal-card:first-of-type { margin-top: 12px; }
#first-answer .report-paper #answer-body .pre-legal-my-case { margin-top: 8px; }
#first-answer .report-paper #answer-body .pre-legal-card > h3,
#first-answer .report-paper #answer-body > section:not(.pre-legal-group):not(.pre-bank-opening):not(.pre-reading) > h3 {
  counter-increment: report-chapter;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 20px;
  color: #0f172a;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -.025em;
  text-align: left;
  text-wrap: wrap;
}
#first-answer .report-paper #answer-body .pre-legal-card > h3::before,
#first-answer .report-paper #answer-body > section:not(.pre-legal-group):not(.pre-bank-opening):not(.pre-reading) > h3::before {
  content: counter(report-chapter, decimal-leading-zero);
  flex: none;
  color: #6d28d9;
  font-size: 17px;
  font-weight: 750;
}
/* Keep the full server sentence intact in a ruled table-style range panel. */
#first-answer .report-paper #answer-body .pre-support-table {
  margin: 24px 0;
  border: 1px solid #94a3b8;
}
#first-answer .report-paper #answer-body .pre-support-table > h3 {
  margin: 0;
  padding: 10px 14px;
  color: #0f172a;
  background: #f1f5f9;
  border-bottom: 1px solid #94a3b8;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.6;
}
#first-answer .report-paper #answer-body .pre-support-table > p {
  margin: 0;
  padding: 14px;
  font-size: 16px;
}
#first-answer .report-paper #answer-body .pre-support-table > p + p {
  border-top: 1px solid #cbd5e1;
  color: #475569;
}
#first-answer .report-paper #answer-body .pre-chapter-note {
  position: relative;
  margin: 12px 0 0;
  padding-left: 40px;
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}
#first-answer .report-paper #answer-body .pre-notes-start {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
#first-answer .report-paper #answer-body .pre-note-back {
  position: absolute;
  left: 0;
  color: #6d28d9;
  font-weight: 650;
}
#first-answer .report-paper #answer-body .pre-chapter-note a {
  color: #475569;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#first-answer .report-paper #answer-body .pre-note-marker {
  margin-left: 4px;
  font-size: 16px;
  line-height: 1;
}
#first-answer .report-paper #answer-body .pre-note-marker a { color: #6d28d9; }
#first-answer .report-paper #answer-body .pre-bank-today > ol {
  margin: 0;
  padding-left: 28px;
  border-block: 1px solid #cbd5e1;
}
#first-answer .report-paper #answer-body .pre-bank-today > ol > li { padding: 14px 8px; }
#first-answer .report-paper #answer-body .pre-bank-today > ol > li + li { border-top: 1px solid #e2e8f0; }
#first-answer .report-paper #answer-body .pre-bank-today > ol > li::marker { color: #6d28d9; font-weight: 750; }
#first-answer .report-paper #answer-body .pre-official-stat > p:not(.pre-chapter-note):not(.pre-stat-notice) {
  margin: 0;
  padding: 14px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}
#first-answer .report-paper #answer-body .pre-official-stat > p + p:not(.pre-chapter-note):not(.pre-stat-notice) { border-top: 0; }
/* Fixed caveats (case summary, statistic) are guidance, not sources: small, unnumbered. */
#first-answer .report-paper #answer-body .pre-legal-disclaimer,
#first-answer .report-paper #answer-body .pre-support-income-hint,
#first-answer .report-paper #answer-body .pre-stat-notice {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}
#first-answer .report-paper details > summary {
  min-height: 44px;
  padding: 10px 12px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  font-size: 16px;
  line-height: 1.7;
}
/* 2026-11-01: one quiet '근거 보기' line closes each legal card; everything behind it stays readable once opened. */
#first-answer .report-paper #answer-body .pre-legal-basis {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
#first-answer .report-paper #answer-body .pre-legal-basis > summary {
  display: list-item;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 0;
  color: #475569;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
}
#first-answer .report-paper #answer-body .pre-legal-basis > p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}
#first-answer .report-paper #answer-body .pre-legal-basis > .pre-legal-source a {
  color: #475569;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#first-answer .report-paper #answer-body .pre-legal-basis > .pre-legal-original {
  margin-top: 6px;
  padding: 12px;
  border-left: 2px solid #cbd5e1;
  background: #f8fafc;
}
#first-answer .report-paper #answer-body .pre-legal-basis > .pre-legal-disclaimer { margin-top: 6px; font-size: 14px; color: #64748b; }
#first-answer .pre-bank-notice { margin: 32px 0 0; padding: 0; font-size: 13px; line-height: 1.7; color: #64748b; overflow-wrap: anywhere; }
#first-answer .report-paper .feedback { margin-top: 24px; }
#first-answer .report-paper .feedback .plain { font-size: 16px; }
#first-answer .report-paper #pre-selected-topics > p { font-size: 16px; }
@media (max-width: 760px) {
  #first-answer .report-paper { margin-inline: -8px; padding: 30px 22px 22px; }
  #first-answer .report-paper .pre-head h2 { font-size: 32px; }
  #first-answer .report-paper #answer-body .pre-legal-card > h3,
  #first-answer .report-paper #answer-body > section:not(.pre-legal-group):not(.pre-bank-opening):not(.pre-reading) > h3 { font-size: 22px; }
}
@media (max-width: 360px) {
  #first-answer .report-paper { padding-inline: 18px; }
  #first-answer .report-paper #answer-body p,
  #first-answer .report-paper #answer-body li { font-size: 16px; }
  #first-answer .report-paper #answer-body .pre-chapter-note { font-size: 16px; }
}
