
/* === 통일 헤더 (홈에서 발췌) === */
body.btmr-unified-header .top-strip { height: 4px; background: #FFA000; }
body.btmr-unified-header > .header,
body.btmr-unified-header .header.btmr-uni { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 0; }
body.btmr-unified-header .header.btmr-uni .header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; max-width: 1000px; margin: 0 auto; padding: 0 32px;
}
body.btmr-unified-header .header.btmr-uni .logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 700; color: #1a1a1a; text-decoration: none;
}
body.btmr-unified-header .header.btmr-uni .logo-mark {
  width: 18px; height: 18px; border-radius: 4px;
  background: linear-gradient(135deg,#4ADE80 0%,#4ADE80 100%);
}
body.btmr-unified-header .header.btmr-uni .header-actions { display: flex; align-items: center; gap: 12px; }
body.btmr-unified-header .header.btmr-uni .search-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px; background: #f5f5f5; border-radius: 100px;
  width: 280px; font-size: 14px; color: #888;
  margin: 0; box-sizing: border-box;
}
body.btmr-unified-header .header.btmr-uni .search-bar input[type="search"] {
  flex: 1; min-width: 0; padding: 0; border: 0; outline: 0;
  background: transparent; color: #222; font: inherit;
  -webkit-appearance: none; appearance: none;
}
body.btmr-unified-header .header.btmr-uni .search-bar input[type="search"]::placeholder {
  color: #888; opacity: 1;
}
body.btmr-unified-header .header.btmr-uni .search-bar button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0;
  background: transparent !important; color: #888 !important;
  cursor: pointer; font-size: 14px; line-height: 1; box-shadow: none;
}
body.btmr-unified-header .header.btmr-uni .btmr-youtube-channel-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: 0 0 38px; padding: 0;
  border: 0; border-radius: 4px; background: transparent;
  text-decoration: none; box-shadow: none;
}
body.btmr-unified-header .header.btmr-uni .btmr-youtube-channel-icon svg {
  display: block; width: 24px; height: 24px;
}
body.btmr-unified-header .header.btmr-uni .btmr-youtube-channel-icon:hover,
body.btmr-unified-header .header.btmr-uni .btmr-youtube-channel-icon:focus-visible { background: #fff0f0; }
body.btmr-unified-header .header.btmr-uni .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 100px; font-size: 14px; font-weight: 700;
  cursor: pointer; border: 1px solid transparent; transition: all .15s;
  text-decoration: none; line-height: 1;
}
body.btmr-unified-header .header.btmr-uni .btn-primary { background: #15803D; color: #fff; }
body.btmr-unified-header .header.btmr-uni .btn-primary:hover { background: #166534; color: #fff; }
body.btmr-unified-header .header.btmr-uni .btn-outline { background: #fff; color: #1a1a1a; border-color: #e5e5e5; }
body.btmr-unified-header .header.btmr-uni .btn-outline:hover { border-color: #1a1a1a; color: #1a1a1a; }
body.btmr-unified-header .header.btmr-uni .btn-kakao { background: #FEE500; color: #181600; }
body.btmr-unified-header .header.btmr-uni .btn-kakao:hover { background: #FDD800; }

/* === Cat Nav === */
body.btmr-unified-header .btmr-cat-nav {
  background: #fff; border-top: 0; border-bottom: 0;
  padding: 4px 0;
}
/* 본문 영역 위쪽 구분선 일괄 제거 — GP 자식 테마의 site/site-content/main 등 border-top 차단 */
body.btmr-unified-header .site,
body.btmr-unified-header .site-content,
body.btmr-unified-header #page,
body.btmr-unified-header main.site-main,
body.btmr-unified-header .content-area {
  border-top: 0 !important;
  box-shadow: none !important;
}
body.btmr-unified-header .btmr-cat-nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 32px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch;
}
body.btmr-unified-header .btmr-cat-item { position: relative; display: inline-flex; }
body.btmr-unified-header .btmr-cat-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #3d4a5c;
  white-space: nowrap; text-decoration: none;
  transition: background .18s, color .18s;
}
body.btmr-unified-header .btmr-cat-link:hover { background: #f0f2f6; color: #101820; }
body.btmr-unified-header .btmr-chevron { width: 14px; height: 14px; flex-shrink: 0; opacity: .55; transition: transform .18s; }
body.btmr-unified-header .btmr-cat-item:hover .btmr-chevron { transform: rotate(180deg); }
body.btmr-unified-header .btmr-cat-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 12px 30px rgb(16 24 32 / .10);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility 0s linear .18s;
  z-index: 40;
}
body.btmr-unified-header .btmr-cat-item:hover .btmr-cat-dropdown,
body.btmr-unified-header .btmr-cat-item:focus-within .btmr-cat-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .18s, transform .18s, visibility 0s;
}
body.btmr-unified-header .btmr-cat-sub-link {
  padding: 8px 12px; border-radius: 8px;
  font-size: 14px; color: #475569; text-decoration: none;
  transition: background .15s, color .15s;
}
body.btmr-unified-header .btmr-cat-sub-link:hover { background: #f0f2f6; color: #0F172A; }

/* === Mobile === */
@media (max-width: 600px) {
  body.btmr-unified-header .header.btmr-uni .search-bar,
  body.btmr-unified-header .header.btmr-uni .btmr-youtube-channel-icon { display: none; }
  body.btmr-unified-header .btmr-cat-nav-inner {
    flex-wrap: nowrap; overflow-x: auto; padding: 0 20px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  body.btmr-unified-header .btmr-cat-nav-inner::-webkit-scrollbar { display: none; }
  body.btmr-unified-header .btmr-cat-link { font-size: 14px; padding: 7px 12px; }
  body.btmr-unified-header .btmr-cat-item:hover .btmr-cat-dropdown {
    opacity: 0; visibility: hidden; transform: translateY(-6px);
  }
}
@media (max-width: 560px) {
  body.btmr-unified-header .header.btmr-uni .header-actions .btn-outline { display: none; }
}

/* === 본문 컨테이너 폭·padding 통일 (헤더와 동일 1000px / padding 32) === */
body.btmr-unified-header .grid-container,
body.btmr-unified-header .site.grid-container { max-width: 1000px !important; padding-left: 32px !important; padding-right: 32px !important; }
/* === 카드(inside-article) 좌측 가장자리 = 헤더와 일치 === */
body.btmr-unified-header .separate-containers .inside-article,
body.btmr-unified-header .separate-containers .comments-area,
body.btmr-unified-header .separate-containers .page-header { margin-left: 0; margin-right: 0; }
/* === 본문 양쪽 줄맞춤 + 한국어 줄바꿈 === */
body.btmr-unified-header .entry-content,
body.btmr-unified-header .entry-content p,
body.btmr-unified-header .entry-content li { text-align: justify; word-break: keep-all; }






/* === 헤더 2행 카테고리 가운데 정렬 (데스크톱) === */
body.btmr-unified-header .btmr-cat-nav-inner { justify-content: center; }
@media (max-width: 600px) {
  body.btmr-unified-header .btmr-cat-nav-inner { justify-content: flex-start; }
}

/* === archive 카드 평면화 (까망님 2026-05-07 요청) === */
body.btmr-unified-header.archive .inside-article {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 28px !important;
  transition: none !important;
}
body.btmr-unified-header.archive .inside-article:hover {
  box-shadow: none !important;
  transform: none !important;
  border-color: transparent !important;
}

/* === 단일 글 + archive 카드 완전 평면 (까망님 2026-05-07 강화 요청) === */
body.btmr-unified-header.single .inside-article,
body.btmr-unified-header.archive .inside-article,
body.btmr-unified-header.archive article {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
body.btmr-unified-header.archive .inside-article { padding: 0 !important; margin-bottom: 32px !important; }
body.btmr-unified-header.single .inside-article { padding: 0 !important; }
body.btmr-unified-header.single .entry-content,
body.btmr-unified-header.archive .entry-content { padding: 0 !important; background: transparent !important; }

/* === archive 카드 hover 효과 (평면 유지 + 마우스 강조) === */
body.btmr-unified-header.archive .inside-article {
  transition: background-color .2s ease !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  margin-left: -12px !important;
  margin-right: -12px !important;
}
body.btmr-unified-header.archive .inside-article:hover {
  background-color: #f5f5f5 !important;
  box-shadow: none !important;
  transform: none !important;
  border-color: transparent !important;
}

/* === 페이지 wrapper 흰 배경 통일 (까망님 2026-05-07 강화) === */
body.btmr-unified-header.archive,
body.btmr-unified-header.single,
body.btmr-unified-header.page,
body.btmr-unified-header .site,
body.btmr-unified-header .site-content,
body.btmr-unified-header .content-area,
body.btmr-unified-header main,
body.btmr-unified-header.archive article,
body.btmr-unified-header.single article {
  background: #fff !important;
  background-color: #fff !important;
}

/* === 본문 영역 모든 경계선 제거 (까망님 2026-05-07) === */
body.btmr-unified-header .site,
body.btmr-unified-header .site-content,
body.btmr-unified-header .content-area,
body.btmr-unified-header main.site-main,
body.btmr-unified-header.single article,
body.btmr-unified-header.archive article,
body.btmr-unified-header.page article,
body.btmr-unified-header.single .inside-article,
body.btmr-unified-header.archive .inside-article,
body.btmr-unified-header.page .inside-article,
body.btmr-unified-header.single .entry-content,
body.btmr-unified-header.archive .entry-content,
body.btmr-unified-header.page .entry-content,
body.btmr-unified-header.single .entry-header,
body.btmr-unified-header.archive .entry-header,
body.btmr-unified-header.page .entry-header,
body.btmr-unified-header.single .entry-meta {
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

/* === archive 카드 완전 평면 reset (까망님 2026-05-07 박스 잔재 제거) === */
body.btmr-unified-header.archive .inside-article {
  padding: 0 !important;
  margin: 0 0 32px 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
}
body.btmr-unified-header.archive .inside-article:hover {
  background-color: #f5f5f5 !important;
  border-radius: 0 !important;
}

/* === archive article 자식 테마 카드 룰을 specificity로 이기기 (까망님 2026-05-07) === */
html body.btmr-unified-header.archive main.site-main > article {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 0 32px 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background-color .15s ease !important;
}
html body.btmr-unified-header.archive main.site-main > article:hover {
  background-color: #f5f5f5 !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}
html body.btmr-unified-header.archive main.site-main > article .inside-article {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* 자식 테마 카카오 풍선 모든 페이지에서 숨김 (2026-05-09 까망님 결정) */
body #btmr-kakao-float { display: none !important; }

/* 2026-08-29 — 본문 메타 대비 · 키보드 포커스 */
body.btmr-unified-header .entry-meta,
body.btmr-unified-header .entry-meta a,
body.btmr-unified-header .entry-meta time,
body.btmr-unified-header .btmr-related-item-date,
body.btmr-unified-header .btmr-footer-bottom {
  color: #475569 !important;
}
body.btmr-unified-header .header a:focus-visible,
body.btmr-unified-header .header button:focus-visible,
body.btmr-unified-header .btmr-cat-nav a:focus-visible {
  outline: 3px solid rgba(21,128,61,.28);
  outline-offset: 3px;
}
