/* ── 1. 사이트 전역 폰트 (LINA Sans) ── */
body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6 {
  font-family: 'LINA Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; }

/* ── 2. 라이나 푸터 스타일 ── */
.lina-footer {
  background: transparent;
  padding: 30px 0px;
  text-align: left;
}
.lina-footer-info {
  margin: 0 0 10px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}
.lina-footer-info span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 11px;
  background: #ccc;
  margin: 0 14px;
  vertical-align: middle;
}
.lina-footer-copy {
  margin: 0;
  color: #888;
  font-size: 13px;
  line-height: 1.6;
}
.lina-footer-copy a { color: #888; text-decoration: none; }

/* ── 3. 푸터 흰 배경 + Voluto 크레딧 바(구분선 포함) 제거 ── */
#colophon.site-footer { background: #ffffff !important; }
#colophon .footer-bar { display: none !important; }

/* ── 4. 위젯 열 전체 폭으로 ── */
#colophon .footer-widgets,
#colophon .widget-area,
#colophon .footer-widget-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

/* ── 5. 3열 그리드 → 전체 폭 강제 ── */
#colophon .footer-column.col-lg-4 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* ── 6. 헤더 메뉴 검색창 (좌3 | 검색 | 우3) ── */
/* 메뉴 ul을 flex 컨테이너로 */
.main-navigation .primary-menu {   /* ← 셀렉터 안 먹으면 실제 <ul> 클래스로 교체 */
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
}
/* 검색 슬롯이 가운데를 채움 */
.nav-search-slot {
  flex: 1 1 auto;
  margin: 0 24px;
  padding: 0;
}
/* 나머지 항목은 고정 폭 */
.main-navigation .primary-menu > li:not(.nav-search-slot) {
  flex: 0 0 auto;
}
/* 검색폼 스타일 (LINA Sans, pill 형태) */
.nav-search-form {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  padding: 7px 16px;
  background: #fff;
  transition: border-color .15s;
}
.nav-search-form:focus-within { border-color: #999; }
.nav-search-form input[type="search"] {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'LINA Sans', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 14px;
  color: #222;
}
.nav-search-form button {
  border: none; background: transparent; cursor: pointer;
  padding: 0; margin-left: 8px; line-height: 0; color: #555;
}
/* 모바일 가드 */
@media (max-width: 768px) {
  .main-navigation .primary-menu { flex-wrap: wrap; }
  .nav-search-slot { flex: 1 1 100%; order: 99; margin: 10px 0; }
}

/* ── 7. 본문 강조(em) 하이라이트 ── */
.entry-content em {
  font-style: normal;
  font-weight: 600;
  background: #D6E9F8;
  color: inherit;
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ── 8. 관련 글 (Jetpack Related Posts) ── */
/* 정사각형 썸네일 */
#jp-relatedposts .jp-relatedposts-post-img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* 제목 — 볼드 + 크기 확대 */
#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post h4.jp-relatedposts-post-title,
#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post h4.jp-relatedposts-post-title a {
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: #1a1a1a !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post h4.jp-relatedposts-post-title {
  margin-top: 12px !important;
}
#jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post h4.jp-relatedposts-post-title a:hover {
  color: #150F96 !important;
  text-decoration: underline !important;
}

/* 헤딩 스타일 (본문 em 하이라이트 상속 차단 포함) */
#jp-relatedposts .jp-relatedposts-headline em {
  font-size: 22px;
  font-weight: 700;
  font-style: normal;
  background: transparent !important;
  padding: 0 !important;
}
#jp-relatedposts .jp-relatedposts-headline em:before { display: none; }

/* 모바일 세로 정렬 */
@media (max-width: 640px) {
  #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
    width: 100% !important;
    margin-bottom: 24px;
  }
  #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post h4.jp-relatedposts-post-title,
  #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post h4.jp-relatedposts-post-title a {
    font-size: 16px !important;
  }
}

/* ── 9. 글 하단 키워드 태그 ── */
.lina-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 48px 0 0;
}
.lina-tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  line-height: 1.4;
  color: #555 !important;
  text-decoration: none !important;
  transition: border-color .15s, color .15s, background .15s;
}
.lina-tag:hover {
  border-color: #150F96;
  color: #150F96 !important;
  background: #f4f5ff;
}

/* ── 10. SNS 공유 버튼 ── */
.lina-share { margin: 44px 0 0; }
.lina-share-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 16px;
}
.lina-share-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.lina-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: opacity .15s;
}
.lina-share-btn:hover { opacity: .85; color: #fff !important; }
.lina-share-btn.is-naver    { background: #03C75A; }
.lina-share-btn.is-facebook { background: #1877F2; }
.lina-share-btn.is-x        { background: #000000; }
.lina-share-btn.is-copy     { background: #150F96; }

@media (max-width: 640px) {
  .lina-share-buttons { grid-template-columns: repeat(2, 1fr); }
  .lina-share-btn { height: 44px; font-size: 14px; }
  .lina-share-title { font-size: 18px; }
}

/* 카톡상담 바로가기 - PC에서만 숨김 (모바일은 그대로 노출) */
@media (min-width: 1024px) {
  #menu-item-113 {
    display: none !important;
  }
}