/*
Theme Name: everyqna Child
Theme URI: https://www.everyqna.com/
Description: Astra 자식 테마 - Pretendard 폰트, 한글 가독성, 본문 시각 hierarchy
Author: openrlove
Template: astra
Version: 1.1.0
Text Domain: everyqna-child
*/

/* ─── 사이트 전체 한글 가독성 ─── */
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  word-break: keep-all;
  word-wrap: break-word;
}

/* ─── 본문 영역 (single post) — 시각 hierarchy ─── */
:is(.single-post, .page) .entry-content {
  font-size: 17px;
  line-height: 1.8;
}

:is(.single-post, .page) .entry-content p {
  line-height: 1.8;
  margin-bottom: 1.4em;
}

:is(.single-post, .page) .entry-content h2 {
  color: #1e40af;
  font-size: 22px;
  font-weight: 700;
  border-left: 4px solid #1e40af;
  background: #dbeafe;
  padding: 10px 14px;
  margin: 2.2em 0 1em 0;
  border-radius: 2px;
  line-height: 1.4;
}

:is(.single-post, .page) .entry-content h3 {
  color: #1e3a8a;
  font-size: 18px;
  font-weight: 700;
  margin: 1.6em 0 0.6em 0;
  line-height: 1.4;
}

:is(.single-post, .page) .entry-content strong {
  color: #2563eb;
  font-weight: 700;
}

:is(.single-post, .page) .entry-content u {
  color: #dc2626;
  text-decoration: underline;
}

:is(.single-post, .page) .entry-content a {
  color: #1e40af;
  text-decoration: none;
  border-bottom: 1px dotted #93c5fd;
  transition: all 0.15s ease;
}
:is(.single-post, .page) .entry-content a:hover {
  color: #2563eb;
  border-bottom-color: #2563eb;
  border-bottom-style: solid;
}

/* 표 */
:is(.single-post, .page) .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em 0;
  font-size: 15px;
}
:is(.single-post, .page) .entry-content th,
:is(.single-post, .page) .entry-content td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
:is(.single-post, .page) .entry-content th {
  background: #f3f4f6;
  font-weight: 700;
  color: #111;
}
:is(.single-post, .page) .entry-content tbody tr:nth-child(even) td {
  background: #fafafa;
}

/* 인용·출처 */
:is(.single-post, .page) .entry-content blockquote {
  margin: 0 0 1.4em 0;
  padding: 12px 16px;
  background: #fff7ed;
  border-left: 4px solid #f59e0b;
  color: #7c2d12;
  border-radius: 2px;
  font-size: 15px;
}
:is(.single-post, .page) .entry-content blockquote p {
  margin-bottom: 0.6em;
}
:is(.single-post, .page) .entry-content blockquote p:last-child {
  margin-bottom: 0;
}
:is(.single-post, .page) .entry-content blockquote a {
  color: #b45309;
  border-bottom-color: #fbbf24;
}

/* 리스트 */
:is(.single-post, .page) .entry-content ul,
:is(.single-post, .page) .entry-content ol {
  margin: 0 0 1.4em 0;
  padding-left: 22px;
}
:is(.single-post, .page) .entry-content li {
  margin-bottom: 0.4em;
  line-height: 1.7;
}

/* 인라인 코드 */
:is(.single-post, .page) .entry-content code {
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 14.5px;
  color: #111;
}

/* 이미지 */
:is(.single-post, .page) .entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6em auto;
  border-radius: 8px;
}

/* ─── 헤딩 공통 줄바꿈 (한글) ─── */
h1, h2, h3, h4, h5, h6 {
  word-break: keep-all;
}

/* ─── 모바일 ─── */
@media (max-width: 768px) {
  body { font-size: 16px; line-height: 1.65; }
  :is(.single-post, .page) .entry-content { font-size: 16px; }
  :is(.single-post, .page) .entry-content h2 { font-size: 19px; padding: 8px 12px; }
  :is(.single-post, .page) .entry-content h3 { font-size: 16px; }
  :is(.single-post, .page) .entry-content table { font-size: 14px; }
  :is(.single-post, .page) .entry-content th,
  :is(.single-post, .page) .entry-content td { padding: 8px 10px; }
}

/* ─── 아카이브/홈 카드 약간의 호흡 ─── */
.archive .entry-content,
.blog .entry-content,
.home .entry-content {
  font-size: 16px;
}


/* 푸터 텍스트 가운데 정렬 + 색상 */
.ast-footer-copyright {
  text-align: center;
  color: #6b7280;
  font-size: 14.5px;
  padding: 18px 0;
}

/* 푸터 메뉴 (JS injection) */
.everyqna-footer-menu {
  text-align: center;
  padding: 16px 16px 4px;
}
.everyqna-footer-menu .footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.everyqna-footer-menu .footer-menu-list li {
  margin: 0;
}
.everyqna-footer-menu a {
  color: #4b5563;
  text-decoration: none;
  font-size: 13.5px;
}
.everyqna-footer-menu a:hover {
  color: #1e40af;
  text-decoration: underline;
}
