/* General Styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Header height adjustment */
}

/* Typography */
p {
  text-indent: 0; /* All p tags default to no indent */
  line-height: 1.6;
}

/* Indent first line of the first p element immediately following an h3 */
/* h3 + p {
  text-indent: 1.2em;
}


h4 + p {
  text-indent: 1.2em;
}



h2 + p {
  text-indent: 1.2em;
}


h2 {
  margin-bottom: 30px !important;
}

h3 {
  text-indent: 0.8em; 
  margin-bottom: 30px !important;
}

h4 {
  text-indent: 1em; 
  margin-bottom: 20px !important;
} */

/* Figure (Table/Image) Caption and Source Styling */
figure figcaption.tit {
  font-size: 0.9em; /* Smaller than body, but prominent for a title */
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px; /* Space between title and table/image */
}

figure figcaption.tit em { /* For "표 1", "그림 1" part */
  font-style: normal; /* Removes italics if not desired */
  margin-right: 5px;
}

figure .table-responsive {
  margin-top: 0;
  margin-bottom: 0;
}

table th,
table td {
  font-size: 0.85em; /* Smaller than figcaption.tit, addressing "표 안의 텍스트가 더 커요" */
  padding: 8px; /* Example padding, adjust as needed */
  /* text-align is usually handled by bootstrap or specific table classes */
}

figure .txt { /* For source text below tables/images: "출처", "자료" */
  font-size: 0.75em; /* Smallest text on the page */
  color: #555;
  text-align: center; /* Centered source text */
  margin-top: 10px;
  display: block; /* Ensures it takes its own line if not already */
}

/* Footnote Styling */
.footnote-link {
  text-decoration: none;
  color: blue;
  vertical-align: super; /* Superscript for footnote markers */
  font-size: smaller;   /* Smaller font for footnote markers */
}

.footnote-section-box {
  border: 1px solid #eee;
  padding: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
  background-color: #f9f9f9;
}

.footnote-section-box h4 { /* Title within footnote box, e.g., "각주" */
  font-size: 1.1em; /* Relative to parent, so still respects overall hierarchy */
  font-weight: bold;
  margin-bottom: 10px;
  margin-left: 0; /* No indent for this h4 */
}

.footnote-section-box ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footnote-section-box li {
  font-size: 0.8em; /* Smaller font size for footnote text */
  margin-bottom: 5px;
  padding-top: 0;
  margin-top: 0;
  margin-left: 0;
}

/* Legacy .table-caption-box styles (if used elsewhere, retained but improved) */
/* Note: The provided HTML for tables uses <figure>, not this class directly. */
.table-caption-box {
  border: 1px solid #e0e0e0;
  padding: 10px;
  margin-bottom: 5px;
  background-color: #f9f9f9;
  text-align: center;
}

.table-caption-box .caption-title {
  font-weight: bold;
  font-size: 0.9em; /* Ensure smaller than body */
  display: block;
  margin-bottom: 5px;
}

.table-caption-box .caption-source {
  font-size: 0.8em; /* Ensure smaller than body and title */
  color: #555;
  display: block;
}