/* Bootstrap 4.0에는 spinner가 없어 커스텀 구현 */
.loader {
    width: 2.5rem;
    height: 2.5rem;
    border: 0.35rem solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 버튼 비활성화 스타일 */
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.invalid-feedback {
    display: block; /* 기본은 none → block으로 강제 */
    color: #dc3545; /* Bootstrap danger 색상 */
    /* font-size: 0.875rem; */
}

.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content {
    overflow: hidden !important;
}


/* ====== Naver 뉴스 톤의 한국어 타이포 기본값 ====== */
.editor-content {
  /* 시스템 폰트 우선 + 한글 가독성 폰트 */
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
               "Noto Sans KR", "Malgun Gothic", "맑은 고딕", Arial, sans-serif;
  color: #222;                 /* 본문색: 진회색 */
  font-weight: 400;
  letter-spacing: -0.01em;     /* 한글 살짝 촘촘하게 */
  word-break: keep-all;        /* 단어단위 줄바꿈 (한글 가독성) */
  line-height: 1.7;            /* 기본 줄간격(모바일) */
  font-size: 17px;             /* 본문 크기(모바일) */
}

/* 데스크톱에서 살짝 키움 */
@media (min-width: 992px) {
  .editor-content {
    font-size: 18px;
    line-height: 1.75;
    max-width: 760px;          /* 본문 폭 제한(중앙 정렬은 레이아웃에서) */
  }
}

/* 문단/줄 간격 */
.editor-content p {
  margin: 0 0 1.1em;
}
.editor-content p + p {
  margin-top: 0.2em;           /* 연속 문단은 살짝 더 붙임 */
}

/* 제목(소제목) */
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
  color: #111;
  font-weight: 700;
  line-height: 1.35;
  margin: 1.6em 0 0.7em;
}
.editor-content h1 { font-size: 1.9rem; }
.editor-content h2 { font-size: 1.6rem; }
.editor-content h3 { font-size: 1.35rem; }
@media (min-width: 992px) {
  .editor-content h1 { font-size: 2.1rem; }
  .editor-content h2 { font-size: 1.75rem; }
  .editor-content h3 { font-size: 1.5rem; }
}

/* 목록 */
.editor-content ul,
.editor-content ol {
  margin: 0 0 1.1em 1.2em;
  padding: 0;
}
.editor-content li { margin: 0.35em 0; }

/* 인용문 */
.editor-content blockquote {
  margin: 1.4em 0;
  padding: 0.8em 1em;
  border-left: 4px solid #e5e7eb; /* 밝은 회색 */
  background: #fafafa;
  color: #333;
}

/* 링크 */
.editor-content a {
  color: #0a7cff;              /* 네이버 톤의 푸른색 계열 */
  text-decoration: none;
}
.editor-content a:hover,
.editor-content a:focus {
  text-decoration: underline;
}

/* 이미지: 반응형 + 캡션 */
.editor-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.1em auto;
}
.editor-content figure {
  margin: 1.4em 0;
  text-align: center;
}
.editor-content figcaption {
  margin-top: 0.5em;
  font-size: 0.92em;
  color: #666;
  line-height: 1.5;
}

/* 표 */
.editor-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 0.95em;
}
.editor-content th,
.editor-content td {
  border: 1px solid #e5e7eb;
  padding: 0.7em 0.8em;
  vertical-align: middle;
}
.editor-content thead th {
  background: #f7f7f8;
  font-weight: 600;
}

/* 강조/코드 */
.editor-content b,
.editor-content strong { font-weight: 700; }
.editor-content mark {
  background: #fff1a8;
  padding: 0 .15em;
}
.editor-content code,
.editor-content pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
.editor-content pre {
  background: #f6f8fa;
  padding: 1em;
  overflow-x: auto;
  border-radius: 6px;
  line-height: 1.6;
  font-size: 0.95em;
}

/* 에디터가 넣은 inline 스타일이 전역 CSS에 덮이지 않도록 무해한 보정 */
.editor-content * { box-sizing: border-box; }

