/*
Theme Name: aevum-clinic Clinic
Description: Clinic templates using the reference DOM hierarchy.
Version: 4.0.1
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: aevum-clinic
*/
/* Base layout adapted from Sinsoe Womens Clinic 1.3.0 (GPL v2 or later), https://femcareguide.co.kr/. */

/* ============================================================
   0. 색상 팔레트  —  신소애여성의원 카드뉴스 웜베이지 · 골드 기반
   여기 값만 바꾸면 사이트 전체 색이 바뀝니다.
   ============================================================ */
:root {
  --bg: #ffffff;
  --paper: #faf8f5;
  --ink: #2b2723;
  --ink-soft: #4c453e;
  --ink-mute: #8a8078;
  --rule: #e6ded3;
  --rule-soft: #f2ece4;
  --accent: #b39c76;
  --accent-deep: #8c744c;
  --hl: #f0e6d5;
  --tag-bg: #f2ebe0;
  --navy: #45413e;
}

/* ============================================================
   1. 기본
   ============================================================ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-deep); }
h1, h2, h3, h4 { font-family: "Noto Serif KR", serif; line-height: 1.4; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 999;
  background: #fff; padding: 10px 16px; border: 1px solid var(--accent);
  width: auto; height: auto; clip: auto;
}

/* ============================================================
   2. 헤더
   ============================================================ */
.blog-header {
  border-bottom: 1px solid var(--rule);
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
.blog-header .inner {
  max-width: 1080px; margin: 0 auto;
  padding: 16px 24px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 20px;
}
.blog-header .logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
}
.blog-header .logo .mk {
  width: 38px; height: 38px; border-radius: 10px;
  border: 2px solid var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: "Noto Serif KR", serif; font-weight: 700;
  font-size: 18px; color: var(--accent-deep); flex: none;
  overflow: hidden; background: #fff;
}
/* 사이트 아이콘 · 커스텀 로고를 넣었을 때 */
.blog-header .logo .mk.has-img {
  border-color: var(--rule);
  padding: 3px;
}
.blog-header .logo .mk.has-img.plain {
  border: 0; padding: 0; border-radius: 8px;
}
.blog-header .logo .mk img {
  width: 100%; height: 100%;
  object-fit: contain; display: block;
}
.blog-header .logo .tx .n {
  font-family: "Noto Serif KR", serif;
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.blog-header .logo .tx .s {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px; letter-spacing: 0.14em; color: var(--ink-mute);
}
.blog-header nav { display: flex; justify-content: center; }
/* 워드프레스 메뉴의 기본 불릿(•) 제거 */
.blog-header nav ul,
.blog-header nav .bb-menu {
  list-style: none !important;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 8px 22px; align-items: center;
}
.blog-header nav li {
  list-style: none !important;
  margin: 0; padding: 0;
}
.blog-header nav li::marker { content: ""; }
.blog-header nav a {
  display: inline-block;
  text-decoration: none; color: var(--ink-soft);
  font-size: 14.5px; font-weight: 500; padding: 4px 0;
  border-bottom: 2px solid transparent; transition: all 0.18s ease;
  white-space: nowrap;
}
.blog-header nav a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }
/* 현재 페이지 표시 */
.blog-header nav .current-menu-item > a { color: var(--accent-deep); border-bottom-color: var(--accent); }
.blog-header .cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-deep); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 14.5px;
  white-space: nowrap; transition: all 0.18s ease;
}
.blog-header .cta:hover { background: var(--accent); transform: translateY(-1px); }
@media (max-width: 860px) {
  .blog-header { position: static; }
  .blog-header .inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px; padding: 14px 18px;
  }
  .blog-header nav { grid-column: 1 / -1; order: 3; justify-content: flex-start; }
  .blog-header nav ul { gap: 6px 16px; }
  .blog-header .logo { gap: 8px; min-width: 0; }
  .blog-header .logo .tx { min-width: 0; }
  .blog-header .logo .tx .n { font-size: 15.5px; white-space: nowrap; }
  .blog-header .logo .tx .s { font-size: 9px; letter-spacing: 0.1em; white-space: nowrap; }
  .blog-header .cta { font-size: 13px; padding: 9px 15px; }
}
@media (max-width: 480px) {
  .blog-header .logo .mk { width: 32px; height: 32px; font-size: 15px; }
  .blog-header .logo .tx .s { display: none; }   /* 부제는 숨겨 두 줄 방지 */
  .blog-header .logo .tx .n { font-size: 15px; }
  .blog-header .cta { font-size: 12.5px; padding: 8px 13px; }
}

/* ============================================================
   3. 카드 그리드 (헤더 바로 아래)
   ============================================================ */
.grid-band { max-width: 1080px; margin: 0 auto; padding: 36px 24px 0; }
.grid-band .post-grid-wrap { margin: 0; }
.post-grid-wrap { margin: 48px 0 8px; }
.post-grid-wrap .grid-head { margin-bottom: 18px; }
.post-grid-wrap .grid-head .k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px; letter-spacing: 0.16em;
  color: var(--accent); font-weight: 500; margin-bottom: 6px;
}
.post-grid-wrap .grid-head h2 {
  font-size: 22px; font-weight: 700; margin: 0 0 6px;
}
.post-grid-wrap .grid-head p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-grid .pcard {
  display: block; border: 1px solid var(--rule);
  border-radius: 12px; overflow: hidden; background: #fff;
  text-decoration: none; color: inherit; transition: all 0.18s ease;
}
.post-grid .pcard:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(176, 69, 26, 0.12);
  transform: translateY(-2px);
}
.post-grid .pcard .thumb { aspect-ratio: 1/1; overflow: hidden; background: var(--rule-soft); }
.post-grid .pcard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-grid .pcard .info { padding: 14px 14px 16px; }
.post-grid .pcard .info .cat {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 6px;
}
.post-grid .pcard .info h2, .post-grid .pcard .info h3 { font-size: 15px; font-weight: 600; line-height: 1.45; margin: 0 0 8px; }
.post-grid .pcard .info .more { font-size: 12.5px; color: var(--ink-mute); }
@media (max-width: 920px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

/* ---- 기기별 숨기기 (사용자 정의하기 → 카드별 체크박스) ----
   모바일  : 560px 이하
   태블릿  : 561 ~ 920px
   PC      : 921px 이상
   ※ 숨긴 카드는 자리를 차지하지 않고 뒤 카드가 앞으로 당겨집니다.        */
@media (max-width: 560px) {
  .bb-hide-mobile { display: none !important; }
}
@media (min-width: 561px) and (max-width: 920px) {
  .bb-hide-tablet { display: none !important; }
}
@media (min-width: 921px) {
  .bb-hide-desktop { display: none !important; }
}
/* 확인 방법: 사용자 정의하기 화면 왼쪽 아래 기기 아이콘(🖥 💻 📱)을 눌러
   미리보기 크기를 바꾸면 숨김 설정이 그대로 반영됩니다. */

/* ============================================================
   4. 본문 레이아웃 (본문 + 우측 사이드바)
   ============================================================ */
.wrap {
  max-width: 1080px; margin: 0 auto; padding: 40px 24px 0;
  display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start;
}
@media (max-width: 920px) { .wrap { grid-template-columns: 1fr; gap: 32px; } }

.breadcrumb {
  font-size: 12.5px; color: var(--ink-mute);
  margin-bottom: 16px; font-family: "IBM Plex Mono", monospace; letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-deep); }

.post-title {
  font-size: 34px; font-weight: 700; line-height: 1.35;
  margin: 0 0 14px; letter-spacing: -0.02em;
}
.post-title .em { color: var(--accent-deep); }
@media (max-width: 560px) { .post-title { font-size: 26px; } }

.post-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 12.5px; color: var(--ink-mute);
  font-family: "IBM Plex Mono", monospace;
  padding-bottom: 20px; border-bottom: 1px solid var(--rule); margin-bottom: 26px;
}

.cover { margin: 0 0 30px; }
.cover img { width: 100%; border-radius: 12px; border: 1px solid var(--rule); display: block; }
.cover figcaption { font-size: 12.5px; color: var(--ink-mute); margin-top: 8px; text-align: center; }

/* 목차 */
.toc {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 12px; padding: 22px 24px; margin: 0 0 36px;
}
.toc .k {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: 0.16em; color: var(--accent); margin-bottom: 10px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: 14.5px; margin-bottom: 6px; }
.toc li:last-child { margin-bottom: 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent-deep); text-decoration: underline; }

/* 본문 섹션 */
.sec { margin: 0 0 46px; scroll-margin-top: 90px; }
.sec > .k {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: 0.16em; color: var(--accent); margin-bottom: 8px;
}
.sec h2 {
  font-size: 24px; font-weight: 700; margin: 0 0 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--rule);
}
.sec h3 { font-size: 18px; font-weight: 600; margin: 26px 0 10px; }
.sec p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; }
.sec img { border-radius: 12px; border: 1px solid var(--rule); margin: 8px 0 20px; display: block; }
.sec figure { margin: 8px 0 24px; }
.sec figcaption { font-size: 12.5px; color: var(--ink-mute); margin-top: 8px; }
.hl { background: linear-gradient(transparent 58%, var(--hl) 58%); font-weight: 600; color: var(--ink); }

/* 정의형 표(카드뉴스 스타일 행) */
.deflist { margin: 0 0 20px; }
.deflist .row {
  display: grid; grid-template-columns: 168px 1fr;
  border: 1px solid var(--rule); border-radius: 10px;
  overflow: hidden; margin-bottom: 10px; background: #fff;
}
.deflist .row .t {
  background: var(--accent-deep); color: #fff;
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  padding: 16px 12px; text-align: center; line-height: 1.4;
}
.deflist .row .d { padding: 16px 20px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 560px) {
  .deflist .row { grid-template-columns: 1fr; }
  .deflist .row .t { justify-content: flex-start; padding: 12px 16px; }
}

/* 체크 목록 */
.checks { list-style: none; margin: 0 0 20px; padding: 0; }
.checks li {
  position: relative; padding: 10px 0 10px 34px;
  font-size: 15.5px; color: var(--ink-soft);
  border-bottom: 1px dashed var(--rule-soft);
}
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-deep); color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.checks li b { color: var(--ink); }

/* 강조 밴드 */
.callout {
  background: var(--paper); border-left: 4px solid var(--accent-deep);
  border-radius: 0 10px 10px 0; padding: 20px 24px; margin: 0 0 24px;
}
.callout p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.callout p + p { margin-top: 10px; }

/* 주의 박스 */
.notice {
  border: 1px solid var(--rule); border-radius: 10px;
  padding: 16px 20px; font-size: 13.5px; color: var(--ink-mute);
  background: #fff; margin: 0 0 24px; line-height: 1.75;
}

/* ============================================================
   5. 네이버 플레이스 카드
   ============================================================ */
.naver-card { margin: 28px 0 8px; }
.naver-card a {
  display: grid; grid-template-columns: 56px 1fr auto;
  align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--rule);
  border-radius: 10px; padding: 18px 22px;
  text-decoration: none; color: inherit; transition: all 0.18s ease;
}
.naver-card a:hover {
  border-color: #03c75a; box-shadow: 0 6px 18px rgba(3, 199, 90, 0.10);
  transform: translateY(-1px);
}
.naver-card .badge {
  width: 56px; height: 56px; border-radius: 14px;
  background: #03c75a; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 28px;
}
.naver-card .body .k {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: 0.16em; color: #03a04a; font-weight: 500; margin-bottom: 4px;
}
.naver-card .body .h { font-family: "Noto Serif KR", serif; font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.naver-card .body .p { font-size: 13px; color: var(--ink-soft); }
.naver-card .arrow {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center; transition: all 0.18s ease;
}
.naver-card a:hover .arrow { background: #03c75a; border-color: #03c75a; color: #fff; }
@media (max-width: 560px) {
  .naver-card a { grid-template-columns: 44px 1fr; }
  .naver-card .badge { width: 44px; height: 44px; font-size: 22px; }
  .naver-card .arrow { display: none; }
}

/* ============================================================
   6. 태그
   ============================================================ */
.tagbar { margin: 36px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.tagbar .tg {
  background: var(--tag-bg); color: var(--ink-soft);
  font-size: 12.5px; padding: 6px 12px; border-radius: 999px;
  text-decoration: none; transition: all 0.18s ease;
}
.tagbar .tg:hover { background: var(--accent-deep); color: #fff; }

/* ============================================================
   7. 사이드바
   ============================================================ */
.side { position: sticky; top: 96px; }
@media (max-width: 920px) { .side { position: static; } }
.side-box {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: 12px; padding: 22px 22px 24px; margin-bottom: 18px;
}
.side-h {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: 0.16em; color: var(--accent); margin-bottom: 12px;
}
.side-box h4 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.side-box p { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; }
.side-info { list-style: none; margin: 0; padding: 0; }
.side-info li {
  font-size: 13.5px; color: var(--ink-soft);
  padding: 8px 0; border-bottom: 1px dashed var(--rule);
  display: grid; grid-template-columns: 62px 1fr; gap: 8px;
}
.side-info li:last-child { border-bottom: 0; }
.side-info li .lb { color: var(--ink-mute); font-size: 12.5px; }
.side-tel {
  display: block; text-align: center; background: var(--accent-deep); color: #fff;
  padding: 14px 16px; border-radius: 10px; text-decoration: none;
  font-weight: 700; font-size: 19px; letter-spacing: 0.02em; transition: all 0.18s ease;
}
.side-tel:hover { background: var(--accent); }
.side-tel .s { display: block; font-size: 11.5px; font-weight: 400; opacity: 0.9; letter-spacing: 0.1em; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 9px 0; border-bottom: 1px dashed var(--rule); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { font-size: 14px; color: var(--ink-soft); text-decoration: none; line-height: 1.5; }
.side-list a:hover { color: var(--accent-deep); }

/* 사이드바 · 진료 권장 체크리스트 */
.side-check { list-style: none; margin: 0; padding: 0; }
.side-check li {
  position: relative; padding-left: 22px; margin-bottom: 10px;
  font-size: 13.5px; color: var(--ink-soft); line-height: 1.55;
}
.side-check li:last-child { margin-bottom: 0; }
.side-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
/* 사이드바 · 자유 안내 박스 */
.side-note { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.side-note p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 8px; }
.side-note p:last-child { margin-bottom: 0; }
.side-note a { color: var(--accent-deep); }

/* ============================================================
   8. 글 목록 / 단일 글
   ============================================================ */
.page-head { max-width: 1080px; margin: 0 auto; padding: 40px 24px 0; }
.page-head .k {
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px;
  letter-spacing: 0.16em; color: var(--accent); margin-bottom: 8px;
}
.page-head h1 { font-size: 30px; margin: 0 0 8px; }
.page-head p { color: var(--ink-soft); font-size: 15px; margin: 0; }

.entry-content { font-size: 15.5px; color: var(--ink-soft); }
.entry-content h2 {
  font-size: 23px; color: var(--ink); margin: 38px 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--rule);
}
.entry-content h3 { font-size: 18px; color: var(--ink); margin: 26px 0 10px; }
.entry-content p { margin: 0 0 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 18px; padding-left: 22px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: 12px; border: 1px solid var(--rule); }
.entry-content blockquote {
  margin: 0 0 20px; padding: 16px 22px;
  background: var(--paper); border-left: 4px solid var(--accent-deep);
  border-radius: 0 10px 10px 0;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14.5px; }
.entry-content th, .entry-content td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--paper); }

.pager {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--rule);
  font-size: 14px;
}
.pager a { text-decoration: none; color: var(--ink-soft); }
.pager a:hover { color: var(--accent-deep); }

/* ============================================================
   9. CTA 밴드
   ============================================================ */
.cta-band {
  background: var(--paper); border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule); margin-top: 56px; padding: 46px 24px;
}
.cta-band .in { max-width: 1080px; margin: 0 auto; text-align: center; }
.cta-band .k {
  font-family: "IBM Plex Mono", monospace; font-size: 11.5px;
  letter-spacing: 0.16em; color: var(--accent); margin-bottom: 10px;
}
.cta-band h2 { font-size: 26px; margin: 0 0 12px; }
.cta-band p { color: var(--ink-soft); font-size: 15px; margin: 0 0 22px; }
/* CTA 버튼 3종 (전화 / 온라인 상담 / 빠른 예약) */
.cta-band .cta-btns {
  display: flex; justify-content: center; align-items: stretch;
  flex-wrap: wrap; gap: 12px;
}
.cta-band .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--accent-deep); color: #fff;
  padding: 15px 28px; border-radius: 999px;
  border: 2px solid var(--accent-deep);
  text-decoration: none; font-weight: 700; font-size: 17px;
  transition: all 0.18s ease; min-width: 230px;
}
.cta-band .btn:hover {
  background: var(--accent); border-color: var(--accent);
  transform: translateY(-2px); box-shadow: 0 8px 18px rgba(176, 69, 26, 0.18);
}
.cta-band .btn .ic { font-size: 20px; line-height: 1; flex: none; display: inline-flex; }
.cta-band .btn .ic svg { width: 20px; height: 20px; display: block; }
.cta-band .btn .tx {
  display: flex; flex-direction: column; align-items: center;
  line-height: 1.3; text-align: center;
}
.cta-band .btn .tx em {
  font-style: normal; font-weight: 400; font-size: 12.5px;
  opacity: 0.86; letter-spacing: 0.01em; margin-top: 2px;
}
/* 외곽선 버튼 */
.cta-band .btn.line {
  background: #fff; color: var(--accent-deep);
  border-color: var(--rule);
}
.cta-band .btn.line:hover {
  background: #fff; color: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: 0 8px 18px rgba(176, 69, 26, 0.12);
}
.cta-band .cta-note {
  font-size: 12.5px; color: var(--ink-mute);
  margin: 18px 0 0;
}
@media (max-width: 720px) {
  .cta-band .cta-btns { flex-direction: column; align-items: stretch; }
  .cta-band .btn { min-width: 0; justify-content: center; padding: 14px 20px; }
  .cta-band .btn .tx { align-items: center; text-align: center; }
}

/* ============================================================
   10. 푸터
   ============================================================ */
.blog-footer {
  background: var(--paper); border-top: 1px solid var(--rule);
  margin-top: 0; padding: 44px 24px 40px;
}
.blog-footer .in {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px;
}
@media (max-width: 780px) { .blog-footer .in { grid-template-columns: 1fr; gap: 24px; } }
.blog-footer .fh {
  font-family: "Noto Serif KR", serif; font-weight: 700; font-size: 16px; margin-bottom: 12px;
}
.blog-footer p, .blog-footer li { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 6px; }
.blog-footer ul { list-style: none; margin: 0; padding: 0; }
.blog-footer a { color: var(--ink-soft); text-decoration: none; }
.blog-footer a:hover { color: var(--accent-deep); }
.blog-footer .copy {
  max-width: 1080px; margin: 28px auto 0; padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--ink-mute); line-height: 1.8;
}

/* ============================================================
   11. 퀵메뉴 (반응형 플로팅 메뉴)
   표시 방식은 nav 클래스로 결정:
     .bb-quick--responsive  PC 세로 + 모바일(≤768px) 하단 (기본)
     .bb-quick--right       항상 오른쪽 세로
     .bb-quick--bottom      항상 하단 가로
   색상은 인라인 변수(--qm-color / --qm-bg)로 제어됩니다.
   ============================================================ */

/* --- 기본 모양 = 세로(우측). 모든 모드가 여기서 시작 --- */
.bb-quick {
  position: fixed;
  right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 60;
  display: flex; flex-direction: column;
  background: var(--qm-bg, #fff);
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
}
.bb-quick a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  min-width: 66px; padding: 12px 14px;
  text-decoration: none;
  color: var(--qm-color, #333);
  font-size: 11.5px; font-weight: 500; letter-spacing: -0.01em;
  border-top: 1px solid #f2f2f2;
  transition: background 0.15s ease;
}
.bb-quick a:first-child { border-top: 0; }
.bb-quick a:hover { background: #f5f5f5; }
.bb-quick .ic { display: inline-flex; }
.bb-quick svg { width: 23px; height: 23px; display: block; }
.bb-quick .lb { line-height: 1.1; }

/* --- 하단 가로바 모양 ---
   (1) '하단만' 모드는 항상, (2) '둘 다' 모드는 768px 이하에서 적용 --- */
.bb-quick--bottom {
  right: 0; left: 0; bottom: 0; top: auto;
  transform: none;
  width: 100%;
  flex-direction: row;
  border: 0; border-top: 1px solid #eaeaea;
  border-radius: 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.bb-quick--bottom a {
  flex: 1 1 0; min-width: 0;
  height: 64px; padding: 8px 4px;
  border-top: 0; border-left: 1px solid #f2f2f2;
  font-size: 11px;
}
.bb-quick--bottom a:first-child { border-left: 0; }
.bb-quick--bottom svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .bb-quick--responsive {
    right: 0; left: 0; bottom: 0; top: auto;
    transform: none;
    width: 100%;
    flex-direction: row;
    border: 0; border-top: 1px solid #eaeaea;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bb-quick--responsive a {
    flex: 1 1 0; min-width: 0;
    height: 64px; padding: 8px 4px;
    border-top: 0; border-left: 1px solid #f2f2f2;
    font-size: 11px;
  }
  .bb-quick--responsive a:first-child { border-left: 0; }
  .bb-quick--responsive svg { width: 22px; height: 22px; }
}

/* --- 항목이 많을 때(6개 이상) 하단 가로바 밀도 조정 ---
   유튜브 · 인스타를 켜면 6~7칸이 되므로 좁은 화면에서 글자가 깨집니다. --- */
.bb-quick .lb { white-space: nowrap; }

.bb-quick--bottom.bb-quick--n6 a,
.bb-quick--bottom.bb-quick--n7 a,
.bb-quick--bottom.bb-quick--n8 a {
  padding: 8px 2px; font-size: 10px; letter-spacing: -0.03em; gap: 4px;
}
.bb-quick--bottom.bb-quick--n6 svg,
.bb-quick--bottom.bb-quick--n7 svg,
.bb-quick--bottom.bb-quick--n8 svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
  .bb-quick--responsive.bb-quick--n6 a,
  .bb-quick--responsive.bb-quick--n7 a,
  .bb-quick--responsive.bb-quick--n8 a {
    padding: 8px 2px; font-size: 10px; letter-spacing: -0.03em; gap: 4px;
  }
  .bb-quick--responsive.bb-quick--n6 svg,
  .bb-quick--responsive.bb-quick--n7 svg,
  .bb-quick--responsive.bb-quick--n8 svg { width: 20px; height: 20px; }
}
@media (max-width: 360px) {
  .bb-quick--responsive.bb-quick--n7 a,
  .bb-quick--responsive.bb-quick--n8 a { font-size: 9.5px; }
  .bb-quick--responsive.bb-quick--n7 svg,
  .bb-quick--responsive.bb-quick--n8 svg { width: 19px; height: 19px; }
}

/* --- 하단바가 콘텐츠를 가리지 않도록 body 하단 여백 --- */
body.bb-qm-bottom { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (max-width: 768px) {
  body.bb-qm-responsive { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* Clinic brand palette and content-only compatibility. */
:root { --bg:#fff; --paper:#f0f5fa; --ink:#002552; --ink-soft:#475569; --ink-mute:#64748b; --rule:#dce4ed; --rule-soft:#edf1f5; --accent:#6474b8; --accent-deep:#525ffe; --hl:#e2e5ff; --tag-bg:#eef0ff; --navy:#002552; }
.entry-content { overflow-wrap:anywhere; }
.entry-content table { width:100%; border-collapse:collapse; table-layout:fixed; }
.entry-content th,.entry-content td { border:1px solid var(--rule); padding:12px; overflow-wrap:anywhere; }
.entry-content th { background:var(--paper); }
.entry-content img { max-width:100%; height:auto; border-radius:12px; }
.entry-content h3 { font-size:18px; margin:24px 0 12px; }
.entry-content a:focus-visible,.pcard:focus-visible { outline:3px solid var(--accent-deep); outline-offset:4px; }
.sec .deflist>div { border:1px solid var(--rule); border-radius:10px; padding:16px 20px; margin-bottom:12px; }
.tagbar a { font-size:14px; }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } * { transition:none!important; } }
.entry-content nav{display:flex;flex-wrap:wrap;gap:8px 18px;margin:20px 0}.blog-header .logo .tx .s{margin-left:5px}

/* Body formatting measured from the completed reference articles. */
.cr-article{max-width:820px;margin:0 auto;font-family:"Noto Sans KR",-apple-system,BlinkMacSystemFont,"Malgun Gothic",sans-serif;color:var(--ink);font-size:16px;line-height:1.85}.cr-article .article-intro{border-left:4px solid var(--accent-deep);background:var(--paper);padding:18px 22px;border-radius:0 10px 10px 0;margin:0 0 32px}.cr-article p{margin:0 0 14px}.cr-article h2{font-family:"Noto Serif KR",serif;font-size:23px;line-height:1.45;color:var(--ink);margin:38px 0 14px;padding-bottom:12px;border-bottom:1px solid var(--rule)}.ctt-text-column{padding:24px 0;border-bottom:1px solid var(--rule)}.ctt-text-column h2{font-size:23px;line-height:1.6;margin:0 0 10px}.ctt-text-column p{line-height:1.8}.ctt-text-column-list{display:block}.ctt-text-column-list .ctt-text-column:first-child{padding-top:0}

.post-grid>.ctt-text-column{grid-column:1/-1}
