/* =========================================================
   블로그 "퇴근 후의 기록"
   0) 홈 왼쪽 칸: 소개 · 개인정보처리방침 · 연락처 줄 (시계 바로 아래)
   1) 홈 왼쪽 칸(그 아래, 예전 컨버터블 사진 자리)의 슬라이드 메뉴
   2) blog.html 글 목록, 3) 글 페이지
   색: 남색 막대 + 로즈골드 + 크림 종이 (시계 날짜 창과 같은 계열)
   ========================================================= */

:root {
    --bb-lav: #dad9ff;       /* 메뉴 막대 색 (사용자 지정 #DAD9FF) */
    --bb-lav2: #e6e5ff;      /* 막대 위쪽 살짝 밝게 */
    --bb-plum: #36347a;      /* 막대 글씨: 진한 남보라 */
    --bb-navy: #1e2942;
    --bb-navy2: #2b3a5c;
    --bb-gold: #c9a27e;
    --bb-cream: #fbf7ef;
    --bb-paper: #f4ecdd;
    --bb-ink: #2c2418;
    --bb-mute: #8a7d68;
}

/* ---------------- 0) 소개 · 개인정보처리방침 · 연락처 ---------------- */
/* 시계(clock.js, 높이 --dc-h) 아래 따로 떨어진 박스. 막대 3개를 위에서 아래로, 가로 길이 모두 같게.
   밝고 친근한 색 (2026-11-09: 알약 → 블로그 박스 안 가로 → 따로 박스 세로로) */
.tree-panel { --ib-h: 114px; }         /* 박스 높이 (2026-11-22부터 여백·틈 없이 막대 3개가 테두리 안 112px를 꽉 채움, 막대 하나 약 37px) */
/* 2026-11-11: 막대를 굵게(24→30px), 색 자주·진청·아이보리. 막대 밖으로 튀어나오는 부분이 보이도록
   왼쪽 칸(.tree-panel)의 overflow를 풀어 둠 (styles.css는 hidden) */
.page-layout > .tree-panel { overflow: visible; }
.info-bar {
    position: absolute;
    top: calc(var(--dc-h, 0px) + 12px);
    left: 0;
    right: 24px;                        /* 블로그 박스와 같은 가로 길이 */
    height: var(--ib-h);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;                             /* 2026-11-22: 막대 사이 틈 없앰 (예전 5px) */
    padding: 0;                         /* 2026-11-22: 막대가 박스를 꽉 채움 (예전 6px) */
    border: 1px solid #d8ccb4;
    border-radius: 4px;
    background: var(--bb-cream);
    z-index: 20;                        /* 튀어나온 막대가 가운데 칸 위로 */
}
.info-bar .ib-bar {
    position: relative;
    flex: none;
    width: 100%;
    height: calc((var(--ib-h) - 2px) / 3);   /* 2026-11-22: 3개가 박스(테두리 안)를 똑같이 나눠 꽉 채움 (약 37px, 예전 30px) */
    box-sizing: border-box;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 0;                   /* 붙어 있으니 가운데는 네모, 맨 위·맨 아래만 박스 모서리에 맞춤 */
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}
.info-bar .ib-bar:first-child { border-radius: 3px 3px 0 0; }
.info-bar .ib-bar:last-child  { border-radius: 0 0 3px 3px; }
/* 글씨 옆 작은 아이콘 (2026-11-12: 홈피 소개=집, 게임=게임 패드, index.html 안 SVG) */
.info-bar .ib-bar { grid-auto-flow: column; justify-content: center; column-gap: 7px; }
.info-bar .ib-ic { width: 17px; height: 17px; order: 1; }   /* order 1 = 글씨 오른쪽 (2026-11-12 왼쪽 → 오른쪽) */
.info-bar .ib-about .ib-ic { color: #ffe3f6; }
.info-bar .ib-ivory .ib-ic { color: #36347a; }   /* 게임 아이콘 (연보라 막대 위라 진한 남보라) */
/* 2026-11-13: 게임 막대 아이콘 오른쪽에 발랄한 "FREE!" (게임 · 아이콘 · FREE! 순서, 막대 안 가운데 정렬) */
.info-bar .ib-free {
    order: 2;                           /* 아이콘(order 1) 다음 */
    display: inline-block;
    font-family: "Chewy", "Comic Sans MS", cursive;
    font-weight: 400;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    line-height: 1;
    color: #ff5e8a;
    text-shadow: 1px 1px 0 #fff, -1px 1px 0 #fff, 0 2px 0 rgba(255, 179, 71, 0.9);
    transform: rotate(-7deg);
    animation: ibFreeWiggle 2.6s ease-in-out infinite;
}
@keyframes ibFreeWiggle {
    0%, 70%, 100% { transform: rotate(-7deg) scale(1); }
    78% { transform: rotate(4deg) scale(1.12); }
    86% { transform: rotate(-10deg) scale(1.05); }
    93% { transform: rotate(-5deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .info-bar .ib-free { animation: none; } }

/* 마우스를 대면 같은 크기의 막대 2개가 오른쪽으로 차례로 불쑥 (clip-path로 왼쪽부터 펼쳐짐)
   2026-11-12: 1개 → 2개 (::after 첫째, ::before 둘째는 첫째 바로 아래), 글씨 "빈칸" → "빈란" */
.info-bar .ib-bar::after,
.info-bar .ib-bar::before {
    content: "빈란";
    font-weight: 700;
    letter-spacing: 0.06em;
    position: absolute;
    top: 0;
    left: calc(100% + 3px);
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    clip-path: inset(0 100% 0 0 round 5px);
    transition: clip-path 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}
.info-bar .ib-bar::before {
    top: calc(100% + 3px);              /* 첫째 막대 바로 아래 (2026-11-12 옆 → 아래) */
    transition-delay: 0s;               /* 들어갈 땐 같이 */
}
.info-bar .ib-bar:hover::after,
.info-bar .ib-bar:focus-visible::after,
.info-bar .ib-bar:hover::before,
.info-bar .ib-bar:focus-visible::before { clip-path: inset(0 0 0 0 round 5px); }
.info-bar .ib-bar:hover::before,
.info-bar .ib-bar:focus-visible::before { transition-delay: 0.12s; }   /* 나올 땐 첫째 다음에 */
.info-bar .ib-bar:focus-visible { outline: 2px solid #8a3a7f; outline-offset: 1px; }
/* 홈피 소개는 튀어나오는 막대 없음 (2026-11-12) — 다시 쓰려면 이 줄 지우기 */
.info-bar .ib-about::after, .info-bar .ib-about::before { content: none; }

/* 게임 막대: 첫째 튀어나오는 막대는 진짜 링크 "오목" (2026-11-12). 둘째(::before "빈란")는 그대로 */
.info-bar .ib-game { cursor: pointer; }
.info-bar .ib-game::after { content: none; }
.info-bar .ib-pop {
    position: absolute;
    top: 0;
    left: calc(100% + 3px);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 5px;
    background: linear-gradient(90deg, #b3b1f2, #e6e5ff);
    color: #36347a;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    clip-path: inset(0 100% 0 0 round 5px);
    transition: clip-path 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.15s;
    pointer-events: none;
    z-index: 1;
}
.info-bar .ib-pop::before {             /* 막대와 오목 사이 3px 틈에서도 마우스가 끊기지 않게 */
    content: "";
    position: absolute;
    left: -4px; top: 0;
    width: 4px; height: 100%;
}
/* 2026-11-15: 게임 막대를 마우스로 누르면 포커스가 남아(:focus-within) 펼쳐진 5칸이 안 닫히던 문제
   → 키보드(Tab)로 들어왔을 때만 열리게 :has(:focus-visible)로 바꿈 (마우스는 :hover만) */
.info-bar .ib-pop-ic { width: 18px; height: 18px; flex: none; order: 1; }   /* 아이콘은 "오목" 글씨 오른쪽 */
.info-bar .ib-game:hover .ib-pop { clip-path: inset(0 0 0 0 round 5px); pointer-events: auto; }
.info-bar .ib-game:is(:focus-visible, :has(:focus-visible)) .ib-pop { clip-path: inset(0 0 0 0 round 5px); pointer-events: auto; }
.info-bar .ib-game:is(:focus-visible, :has(:focus-visible))::before { clip-path: inset(0 0 0 0 round 5px); transition-delay: 0.12s; }
.info-bar .ib-pop:hover { filter: brightness(1.06) saturate(1.1); }
.info-bar .ib-pop:focus-visible { outline: 2px solid #36347a; outline-offset: 1px; }

/* 2026-11-13: 게임 막대의 둘째 튀어나오는 막대(오목 바로 아래)도 진짜 링크 "2048" (예전 "빈란" ::before 대신).
   색은 예전 둘째 막대와 같은 살구, 아이콘은 글씨 오른쪽 (.ib-pop-ic의 order: 1) */
.info-bar .ib-game::before { content: none; }
.info-bar .ib-pop2 {
    top: calc(100% + 3px);
    background: linear-gradient(90deg, #f5bf9f, #fde3d2);
    color: #7a3e1c;
}
.info-bar .ib-pop2::after {             /* 오목 → 2048 사이 3px 틈에서도 마우스가 끊기지 않게 */
    content: "";
    position: absolute;
    left: 0; top: -4px;
    width: 100%; height: 4px;
}
.info-bar .ib-game:hover .ib-pop2 { transition-delay: 0.12s; }
.info-bar .ib-game:is(:focus-visible, :has(:focus-visible)) .ib-pop2 { transition-delay: 0.12s; }   /* 나올 땐 오목 다음에 */
/* 틈 메우는 투명 칸(::before 왼쪽, ::after 위쪽)이 clip-path에 잘리지 않게, 펼쳐졌을 때 잘라내는 범위를 4px 넓힘 */
.info-bar .ib-game:hover .ib-pop { clip-path: inset(0 0 0 -4px round 5px); }
.info-bar .ib-game:is(:focus-visible, :has(:focus-visible)) .ib-pop { clip-path: inset(0 0 0 -4px round 5px); }
.info-bar .ib-game:hover .ib-pop2 { clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-game:is(:focus-visible, :has(:focus-visible)) .ib-pop2 { clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-pop2:focus-visible { outline-color: #7a3e1c; }

/* 2026-11-13: 2048 아래로 "빈란" 막대 3개 더 (나중에 게임을 넣을 자리, 지금은 링크 없음).
   위에서부터 차례로 0.12초씩 늦게 펼쳐짐. 게임을 넣을 땐 <span>을 <a href="..." data-game="...">로 바꾸기 */
.info-bar .ib-pop3 { top: calc(2 * (100% + 3px)); background: linear-gradient(90deg, #9fd8b8, #dcf3e6); color: #1f5a3c; }  /* 민트 */
.info-bar .ib-pop4 { top: calc(3 * (100% + 3px)); background: linear-gradient(90deg, #9cc8ee, #dcecfb); color: #1f4a72; }  /* 하늘 */
.info-bar .ib-pop5 { top: calc(4 * (100% + 3px)); background: linear-gradient(90deg, #f3a6c8, #fde0ec); color: #7a2450; }  /* 분홍 */
.info-bar .ib-empty { cursor: default; }
.info-bar .ib-empty::after {            /* 위 막대와의 3px 틈에서도 마우스가 끊기지 않게 */
    content: "";
    position: absolute;
    left: 0; top: -4px;
    width: 100%; height: 4px;
}
.info-bar .ib-game:hover .ib-pop3 { transition-delay: 0.24s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-game:is(:focus-visible, :has(:focus-visible)) .ib-pop3 { transition-delay: 0.24s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-game:hover .ib-pop4 { transition-delay: 0.36s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-game:is(:focus-visible, :has(:focus-visible)) .ib-pop4 { transition-delay: 0.36s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-game:hover .ib-pop5 { transition-delay: 0.48s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-game:is(:focus-visible, :has(:focus-visible)) .ib-pop5 { transition-delay: 0.48s; clip-path: inset(-4px 0 0 -4px round 5px); }

/* 색: 막대 / 첫째 튀어나옴 / 둘째 튀어나옴 */
.info-bar .ib-about         { background: linear-gradient(180deg, #9b4a8f, #84387a); color: #fff; }   /* 자주 */
.info-bar .ib-about::after  { background: linear-gradient(90deg, #c98bbf, #e7c3df); color: #5e2456; }  /* 연한 자주 */
.info-bar .ib-about::before { background: linear-gradient(90deg, #f0a9bd, #fbdde6); color: #7a2944; }  /* 장밋빛 분홍 */
.info-bar .ib-navy          { background: linear-gradient(180deg, #23345f, #1a2749); color: #e9eefc; } /* 진청 */
.info-bar .ib-navy::after   { background: linear-gradient(90deg, #4a6aa8, #8fa9d8); color: #fff; }     /* 푸른 하늘색 */
.info-bar .ib-navy::before  { background: linear-gradient(90deg, #3f9c9c, #9fd8d0); color: #fff; }     /* 청록 */
.info-bar .ib-ivory         { background: #DAD9FF; border: 1px solid #c3c1f0; color: #36347a; }       /* 연보라 (블로그 메뉴 막대와 같은 색) */
.info-bar .ib-ivory::after  { background: linear-gradient(90deg, #b3b1f2, #e6e5ff); color: #36347a; } /* 라벤더 */
.info-bar .ib-ivory::before { background: linear-gradient(90deg, #f5bf9f, #fde3d2); color: #7a3d1d; } /* 살구 */

/* ---------- 2026-11-15: 2번 진청 막대 = "생활 도구" (게임 막대와 같은 방식으로 오른쪽에 5칸 펼침) ----------
   1 단위 환산(units.html, 푸른 하늘색) · 2 만 나이·D-day(age.html, 청록) · 3~5 빈란(민트·하늘·분홍, 나중에 도구 넣을 자리)
   도구를 넣을 땐 index.html의 <span class="ib-pop ib-pop3 ib-empty">빈란</span>을 <a class="ib-pop ib-pop3" href="파일.html">이름<svg class="ib-pop-ic">…</svg></a>로 바꾸기 (-en 파일도) */
.info-bar .ib-tools { cursor: default; }
.info-bar .ib-tools[data-href] { cursor: pointer; }   /* 막대를 누르면 단위 환산 (index.html 맨 아래 작은 스크립트) */
.info-bar .ib-tools::after,
.info-bar .ib-tools::before { content: none; }
.info-bar .ib-tools .ib-ic { color: #ffd166; }
.info-bar .ib-tools .ib-pop  { background: linear-gradient(90deg, #4a6aa8, #8fa9d8); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); }
.info-bar .ib-tools .ib-pop2 { background: linear-gradient(90deg, #3f9c9c, #9fd8d0); color: #fff; }
.info-bar .ib-tools .ib-pop3 { background: linear-gradient(90deg, #9fd8b8, #dcf3e6); color: #1f5a3c; text-shadow: none; }
.info-bar .ib-tools .ib-pop4 { background: linear-gradient(90deg, #9cc8ee, #dcecfb); color: #1f4a72; text-shadow: none; }
.info-bar .ib-tools .ib-pop5 { background: linear-gradient(90deg, #f3a6c8, #fde0ec); color: #7a2450; text-shadow: none; }
.info-bar .ib-tools .ib-pop:focus-visible { outline-color: #fff; }
.info-bar .ib-tools:hover .ib-pop { clip-path: inset(0 0 0 -4px round 5px); pointer-events: auto; }
.info-bar .ib-tools:is(:focus-visible, :has(:focus-visible)) .ib-pop { clip-path: inset(0 0 0 -4px round 5px); pointer-events: auto; }
.info-bar .ib-tools:hover .ib-pop2 { transition-delay: 0.12s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-tools:is(:focus-visible, :has(:focus-visible)) .ib-pop2 { transition-delay: 0.12s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-tools:hover .ib-pop3 { transition-delay: 0.24s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-tools:is(:focus-visible, :has(:focus-visible)) .ib-pop3 { transition-delay: 0.24s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-tools:hover .ib-pop4 { transition-delay: 0.36s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-tools:is(:focus-visible, :has(:focus-visible)) .ib-pop4 { transition-delay: 0.36s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-tools:hover .ib-pop5 { transition-delay: 0.48s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-tools:is(:focus-visible, :has(:focus-visible)) .ib-pop5 { transition-delay: 0.48s; clip-path: inset(-4px 0 0 -4px round 5px); }
.info-bar .ib-tools .ib-pop:not(.ib-empty) { pointer-events: none; }
.info-bar .ib-tools:hover .ib-pop:not(.ib-empty),
.info-bar .ib-tools:is(:focus-visible, :has(:focus-visible)) .ib-pop:not(.ib-empty) { pointer-events: auto; }

/* ---------------- 1) 홈 왼쪽 칸 ---------------- */
/* 안내 박스 아래를 꽉 채워요. */
.blog-box {
    position: absolute;
    top: calc(var(--dc-h, 0px) + 12px + var(--ib-h, 0px) + 8px);   /* 안내 박스 아래 8px */
    left: 0;
    right: 24px;           /* 오른쪽 구분선과 24px 간격 */
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d8ccb4;
    border-radius: 4px;
    background: var(--bb-cream);
    color: var(--bb-ink);
    font-size: 0.8rem;
}

.bb-cover {
    position: relative;
    flex: none;
    height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px 10px;
    background: url("convertible.jpg") center 60% / cover no-repeat;   /* 그림 원래 밝기 그대로 (2026-11-09) */
    color: #fff;
    text-decoration: none;
}
.bb-cover-title {
    margin: 0;
    font-family: 'Chewy', 'Comic Sans MS', cursive;   /* 친근한 손글씨 느낌 영문 */
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: #fff3c4;
    /* 사진을 어둡게 하지 않아서, 글씨 테두리 그림자로 읽히게 해요 */
    text-shadow: 0 0 2px rgba(40, 20, 50, 0.9), 0 2px 0 rgba(40, 20, 50, 0.7), 0 0 12px rgba(40, 20, 50, 0.55);
}
.bb-cover-tag {
    margin-top: 2px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 0 2px rgba(40, 20, 50, 0.95), 0 1px 4px rgba(40, 20, 50, 0.8);
}
.bb-cover-all {
    position: absolute;
    top: 7px;
    right: 8px;
    padding: 2px 8px;
    border: 1px solid rgba(233, 201, 166, 0.7);
    border-radius: 999px;
    background: rgba(20, 28, 48, 0.45);
    color: #f3e3cf;
    font-size: 0.62rem;
    text-decoration: none;
    backdrop-filter: blur(2px);
}
.bb-cover-all:hover { background: rgba(201, 162, 126, 0.45); }

.bb-acc {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 7px 10px;
    scrollbar-width: thin;
    scrollbar-color: #d2c3a6 transparent;
}

/* 막대 + 펼침 */
.bb-sec { margin-bottom: 6px; }
.bb-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 7px;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 0.2s, border-radius 0.2s;
}
.bb-l1 > .bb-bar {
    height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    background: linear-gradient(180deg, var(--bb-lav2), var(--bb-lav));
    color: var(--bb-plum);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 2px rgba(54, 52, 122, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.bb-l1 > .bb-bar:hover { background: linear-gradient(180deg, #dedcff, #cbc9fa); }
.bb-l1.open > .bb-bar { border-radius: 7px 7px 0 0; }

.bb-dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.bb-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-cnt {
    flex: none;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #fff;
    color: var(--bb-plum);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.bb-chev { flex: none; width: 10px; height: 6px; display: grid; transition: transform 0.25s; }
.bb-chev svg { width: 10px; height: 6px; }
.bb-sec.open > .bb-bar .bb-chev { transform: rotate(180deg); }

/* 부드럽게 펼쳐지는 부분 */
.bb-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}
.bb-sec.open > .bb-body { grid-template-rows: 1fr; }
.bb-body-in { min-height: 0; overflow: hidden; }

.bb-l1 > .bb-body > .bb-body-in {
    border-radius: 0 0 7px 7px;
    background: #fff;
}
.bb-l1.open > .bb-body > .bb-body-in {
    padding: 6px 7px 7px;
    border: 1px solid #dad9ff;
    border-top: 0;
}

/* 작은 막대 (카테고리 안의 작은 분류) */
.bb-subs { display: flex; flex-direction: column; gap: 4px; }
.bb-l2 { margin: 0; }
.bb-l2 > .bb-bar {
    height: 26px;
    padding: 0 8px 0 10px;
    border-radius: 5px;
    background: #f1f1ff;
    color: #45438a;
    font-size: 0.72rem;
    font-weight: 600;
    border-left: 3px solid #b3b1f2;
}
.bb-l2 > .bb-bar:hover { background: #e7e6ff; }
.bb-l2 > .bb-bar .bb-cnt { background: #fff; color: #4e4c9a; }
.bb-l2.open > .bb-body > .bb-body-in { padding: 3px 0 2px 8px; }

/* 글 목록 */
.bb-posts { list-style: none; margin: 0; padding: 0; }
.bb-posts li + li { border-top: 1px dashed #e6dcc8; }
.bb-post {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 5px 2px;
    color: var(--bb-ink);
    text-decoration: none;
}
.bb-post:hover .bb-title { color: #5a57b5; text-decoration: underline; text-underline-offset: 2px; }
.bb-date {
    flex: none;
    font-size: 0.62rem;
    font-variant-numeric: tabular-nums;
    color: var(--bb-mute);
}
.bb-title {
    min-width: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bb-empty { margin: 4px 2px; font-size: 0.7rem; color: var(--bb-mute); }
.bb-more {
    display: block;
    margin-top: 5px;
    font-size: 0.66rem;
    text-align: right;
    color: #5a57b5;
    text-decoration: none;
}
.bb-more:hover { text-decoration: underline; }

/* 폰: 왼쪽 칸이 원래 숨겨지는데, 블로그는 뉴스 줄 아래(바로가기 위)에 보여요 */
@media screen and (max-width: 768px), screen and (hover: none) and (pointer: coarse) and (max-width: 1000px) {
    .page-layout { display: flex; flex-direction: column; }
    .page-layout > .center-panel { order: 1; }
    .page-layout > .tree-panel  { order: 2; }
    .page-layout > .ad-sidebar  { order: 3; }

    /* 2026-11-09: 폰에서는 안내 박스(소개·개인정보처리방침·연락처)와 블로그 박스를 숨겨요.
       다시 보이게 하려면 display: none → display: block 으로 */
    .page-layout .tree-panel {
        display: none;
        margin-top: 14px;
        border-right: 0;
        overflow: visible;
    }
    .info-bar { position: static; height: auto; gap: 7px; padding: 8px; margin-bottom: 12px; border-radius: 8px; }
    .info-bar .ib-bar { flex: none; height: 40px; font-size: 0.9rem; border-radius: 7px; }
    .blog-box { position: static; border-radius: 8px; font-size: 0.9rem; }
    .bb-cover { height: 120px; padding: 12px 14px; }
    .bb-cover-title { font-size: 1.8rem; }
    .bb-cover-tag { font-size: 0.75rem; }
    .bb-cover-all { font-size: 0.75rem; padding: 4px 11px; top: 10px; right: 10px; }
    .bb-acc { overflow: visible; padding: 10px; }
    .bb-l1 > .bb-bar { height: 44px; font-size: 0.95rem; padding: 0 14px; }
    .bb-l2 > .bb-bar { height: 38px; font-size: 0.85rem; }
    .bb-cnt { font-size: 0.72rem; line-height: 19px; min-width: 22px; }
    .bb-post { padding: 9px 2px; }
    .bb-date { font-size: 0.72rem; }
    .bb-title { font-size: 0.9rem; }
    .bb-more { font-size: 0.8rem; padding: 4px 0; }
}

/* ---------------- 2) 3) 블로그 페이지 공통 ---------------- */
body.blog-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f6f1e7;
    color: var(--bb-ink);
    font-family: 'Noto Sans KR', 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
}
.bp-top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: linear-gradient(180deg, var(--bb-navy2), var(--bb-navy));
    box-shadow: 0 2px 8px rgba(20, 28, 48, 0.25);
}
.bp-top-in {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.bp-brand {
    color: #ffe9a8;
    text-decoration: none;
    font-family: 'Chewy', 'Comic Sans MS', cursive;
    font-weight: 400;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
}
.bp-brand small { font-family: 'Noto Sans KR', 'Segoe UI', sans-serif; }
.bp-brand small { margin-left: 8px; font-size: 0.68rem; font-weight: 400; letter-spacing: 0.1em; color: #e9c9a6; }
.bp-home {
    margin-left: auto;
    padding: 5px 12px;
    border: 1px solid rgba(233, 201, 166, 0.6);
    border-radius: 999px;
    color: #f3e3cf;
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
}
.bp-home:hover { background: rgba(201, 162, 126, 0.3); }

.bp-main { max-width: 860px; margin: 0 auto; padding: 26px 16px 50px; }
.bp-foot {
    border-top: 1px solid #ddd0b8;
    padding: 18px 16px 28px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--bb-mute);
}
.bp-foot a { color: var(--bb-mute); margin: 0 6px; }

/* 목록 페이지 */
.bl-head h1 { margin: 0 0 4px; font-size: 1.6rem; letter-spacing: 0.03em; }
.bl-head p { margin: 0 0 18px; color: var(--bb-mute); font-size: 0.9rem; }

.bt-tabs {
    position: relative;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    border-bottom: 1px solid #ddd0b8;
    scrollbar-width: none;
}
.bt-tab {
    flex: none;
    padding: 10px 16px 11px;
    border: 0;
    background: none;
    color: #6b5d48;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}
.bt-tab.on { color: var(--bb-navy); }
.bt-ink {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--bb-navy);
    transition: transform 0.3s ease, width 0.3s ease, background 0.3s;
}
.bt-tab:not([style]) { --c: #1e2942; }

.bc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.bc-chip {
    padding: 5px 12px;
    border: 1px solid #d8ccb4;
    border-radius: 999px;
    background: #fff;
    color: #5b4d38;
    font: inherit;
    font-size: 0.8rem;
    cursor: pointer;
}
.bc-chip.on { background: var(--bb-navy); border-color: var(--bb-navy); color: #f3e9d8; }

.bl-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.bl-card {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #e3d8c4;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.bl-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(60, 45, 20, 0.1); }
.bl-thumb {
    flex: none;
    width: 120px;
    height: 84px;
    border-radius: 7px;
    background: #eee center / cover no-repeat;
}
.bl-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bl-meta { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; color: var(--bb-mute); }
.bl-cat, .post-cat {
    padding: 2px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c, #888) 14%, white);
    color: color-mix(in srgb, var(--c, #888) 80%, black);
    font-weight: 600;
}
.bl-title { font-size: 1.08rem; line-height: 1.4; }
.bl-sum { font-size: 0.86rem; line-height: 1.55; color: #5e5242; }
.bl-empty { padding: 40px 0; text-align: center; color: var(--bb-mute); }

/* 글 페이지 */
.post-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.78rem; }
.post-crumb a { color: var(--bb-mute); text-decoration: none; }
.post-crumb a:hover { text-decoration: underline; }
.pc-sep { color: #c4b59a; }

.post-article {
    margin-top: 14px;
    padding: 34px 38px 30px;
    border: 1px solid #e3d8c4;
    border-radius: 12px;
    background: #fff;
}
.post-head { padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid #eee3d0; }
.post-head h1 { margin: 10px 0 8px; font-size: 1.75rem; line-height: 1.35; letter-spacing: -0.01em; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--bb-mute); }

.post-body { font-size: 1.02rem; line-height: 1.85; color: #2f281e; word-break: keep-all; }
.post-body h2 {
    margin: 2em 0 0.7em;
    padding-left: 12px;
    border-left: 4px solid var(--bb-gold);
    font-size: 1.28rem;
    line-height: 1.4;
}
.post-body h3 { margin: 1.6em 0 0.5em; font-size: 1.08rem; }
.post-body p { margin: 0 0 1.1em; }
.post-body a { color: #9a6a3f; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.post-body li { margin: 0.25em 0; }
.post-body blockquote {
    margin: 1.4em 0;
    padding: 12px 18px;
    border-left: 4px solid var(--bb-navy2);
    border-radius: 0 8px 8px 0;
    background: #f7f2e8;
    color: #4a3f30;
}
.post-body figure { margin: 1.6em 0; }
.post-body figure img { display: block; max-width: 100%; max-height: 560px; width: auto; height: auto; margin: 0 auto; border-radius: 10px; }   /* 세로로 긴 사진은 높이 560px까지 */
.post-body figcaption { margin-top: 6px; font-size: 0.8rem; text-align: center; color: var(--bb-mute); }
.post-body table { width: 100%; margin: 1.2em 0; border-collapse: collapse; font-size: 0.92rem; }
.post-body th, .post-body td { padding: 8px 10px; border: 1px solid #e3d8c4; text-align: left; }
.post-body th { background: #f4ecdd; }
.post-disclaimer {
    margin-top: 2em !important;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fbf3e2;
    font-size: 0.82rem;
    line-height: 1.6;
    color: #7a6340;
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    margin-top: 18px;
}
.pn-link, .pn-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid #e3d8c4;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}
.pn-next { text-align: right; }
.pn-list { justify-content: center; align-items: center; font-weight: 600; color: var(--bb-navy); }
.pn-link:hover, .pn-list:hover { border-color: var(--bb-gold); }
.pn-link.off { opacity: 0.45; pointer-events: none; }
.pn-label { font-size: 0.72rem; color: var(--bb-mute); }
.pn-title { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
    .bp-brand small { display: none; }
    .bp-main { padding: 18px 12px 40px; }
    .post-article { padding: 22px 18px 20px; }
    .post-head h1 { font-size: 1.4rem; }
    .post-body { font-size: 1rem; }
    .bl-card { padding: 14px; }
    .bl-thumb { width: 88px; height: 66px; }
    .post-nav { grid-template-columns: 1fr 1fr; }
    .pn-list { grid-column: 1 / -1; grid-row: 2; }
}


/* ---------------- 4) 소개 · 개인정보처리방침 · 연락처 페이지 ---------------- */
/* 밝고 친근한 색. 페이지마다 --accent 만 달라요 */
body.info-page { background: #fffaf0; }
body.info-page.pg-about   { --accent: #f5b300; --accent-soft: #fff1c2; }
body.info-page.pg-privacy { --accent: #2fae7a; --accent-soft: #d9f6e8; }
body.info-page.pg-contact { --accent: #f07a52; --accent-soft: #ffe3d8; }

.info-page .bp-top { background: linear-gradient(90deg, #ffd166 0%, #ffb4a2 55%, #9ee6c7 100%); box-shadow: 0 2px 10px rgba(240, 160, 90, 0.25); }
.info-page .bp-brand { color: #3b2a1a; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); }
.info-page .bp-brand small { color: #6b4a2f; }
.info-page .bp-home { border-color: rgba(59, 42, 26, 0.35); color: #3b2a1a; background: rgba(255, 255, 255, 0.45); }
.info-page .bp-home:hover { background: rgba(255, 255, 255, 0.75); }

.ip-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ip-tabs a {
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    color: #5b4a38;
    background: #fff;
    border: 1px solid #f0e2c8;
}
.ip-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.ip-card {
    padding: 32px 36px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #f3e6cf;
    box-shadow: 0 6px 22px rgba(240, 170, 90, 0.10);
}
.ip-card h1 {
    display: inline-block;
    margin: 0 0 6px;
    padding: 2px 14px;
    border-radius: 12px;
    background: var(--accent-soft);
    font-size: 1.6rem;
}
.ip-lead { margin: 6px 0 22px; color: #7a6a55; }
.ip-card h2 { margin: 1.8em 0 0.6em; font-size: 1.12rem; color: #3b2a1a; }
.ip-card h2::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.ip-card p, .ip-card li { line-height: 1.8; color: #3f3428; word-break: keep-all; }
.ip-card ul { padding-left: 1.3em; }
.ip-card a { color: var(--accent); font-weight: 600; }
.ip-card table { width: 100%; border-collapse: collapse; margin: 0.6em 0 1em; font-size: 0.92rem; }
.ip-card th, .ip-card td { padding: 9px 10px; border: 1px solid #f0e2c8; text-align: left; vertical-align: top; }
.ip-card th { background: var(--accent-soft); width: 32%; }
.ip-todo {
    padding: 22px;
    border: 2px dashed var(--accent);
    border-radius: 14px;
    background: var(--accent-soft);
    text-align: center;
    color: #5b4a38;
}
.ip-date { margin-top: 2em; font-size: 0.85rem; color: #8a7a64; }

@media (max-width: 640px) {
    .ip-card { padding: 22px 18px; }
    .ip-card h1 { font-size: 1.35rem; }
}
