/* ==========================================================================
   그누보드 연동용 보조 스타일 (게시판 · 로그인 · 페이지 번호 등)
   ========================================================================== */
[hidden] { display: none !important; }
#hd_login_msg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sr-only:focus { position: fixed !important; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); }

/* 하위 페이지: 고정 헤더만큼 여백 (그누보드 기본 스킨 화면용) */
.sp-sub > .sp-g5 { padding: calc(var(--header-h) + 40px) 0 80px; }

/* 사진 없는 카드 */
.case-noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: var(--muted); background: repeating-linear-gradient(45deg, #eef1f6, #eef1f6 10px, #f5f7fb 10px, #f5f7fb 20px); }
.case-empty a { color: var(--blue); font-weight: 700; }

/* 관리자 버튼 */
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-tools .btn { min-height: 40px; font-size: 14px; }
.btn--danger { background: #fff; color: #b42318; box-shadow: inset 0 0 0 1px #f2c4bf; }
.btn--danger:hover { box-shadow: inset 0 0 0 1px #b42318; }

/* 목록 탭이 링크일 때 */
a.tab { display: inline-flex; align-items: center; }
a.tab[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }

/* 페이지 번호 (그누보드 $write_pages) */
.sp-pages { display: flex; justify-content: center; margin-top: 40px; }
.sp-pages .pg_wrap { display: block; }
.sp-pages .pg { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.sp-pages .pg_page, .sp-pages .pg_current { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.sp-pages .pg_page { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.sp-pages .pg_page:hover { color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.sp-pages .pg_current { background: var(--ink); color: #fff; }
.sp-pages .sound_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 상세 하단 이전/다음 글 */
.case-nav { display: grid; gap: 10px; margin-top: 40px; }
@media (min-width: 768px) { .case-nav { grid-template-columns: 1fr 1fr; } }
.case-nav a { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.case-nav a:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.case-nav small { color: var(--muted); font-weight: 500; font-size: 13px; }

/* 작업 전/후 버튼 말풍선 (버튼 아래, 꼬리는 두 버튼 사이) */
.vs-toggle { position: relative; display: inline-flex; }
.ba-tip {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 6;
  display: flex; align-items: center; gap: 2px;
  padding: 4px 4px 4px 14px; border-radius: 12px; background: var(--blue); color: #fff;
  font-size: 13.5px; font-weight: 700; line-height: 1.3; white-space: nowrap;
  box-shadow: 0 12px 28px -12px rgba(14, 39, 102, 0.8);
  transform-origin: calc(100% - 90px) 0;
  animation: ba-tip-in 0.5s var(--ease) 0.4s both;
}
/* 꼬리: 두 버튼 사이를 가리킴 */
.ba-tip::before { content: ""; position: absolute; bottom: calc(100% - 1px); right: 84px; border: 7px solid transparent; border-bottom-color: var(--blue); border-top: 0; }
.ba-tip-x { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #fff; opacity: 0.85; transition: background-color 0.2s, opacity 0.2s; }
.ba-tip-x::after { content: ""; position: absolute; inset: -7px; } /* 누르는 영역 44px */
.ba-tip-x:hover, .ba-tip-x:focus-visible { background: rgba(255, 255, 255, 0.18); opacity: 1; }
.ba-tip-x:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.ba-tip-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ba-tip.is-bob { animation: ba-tip-in 0.5s var(--ease) 0.4s both, ba-tip-bob 1.2s ease-in-out 1s 3; }
.ba-tip.is-gone { animation: ba-tip-out 0.25s ease-in both; pointer-events: none; }
@keyframes ba-tip-in { from { opacity: 0; transform: translateY(-6px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes ba-tip-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes ba-tip-out { to { opacity: 0; transform: translateY(-4px) scale(0.96); } }
@media (prefers-reduced-motion: reduce) { .ba-tip, .ba-tip.is-bob, .ba-tip.is-gone { animation: none; } }

/* 사진 안내: 보정하지 않은 사진 */
.photo-notice { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue-100); color: var(--blue-ink); font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.photo-notice iconify-icon { flex: none; font-size: 20px; color: var(--blue); margin-top: -1px; }
.photo-notice b { font-weight: 800; color: var(--blue); }
.photos-head .photo-notice { margin: 4px 0 2px; }

/* 영상 */
.video-box video { background: #000; }
