/* ============================
   게시판 — 관리자 본문(숏코드)을 싣는 틀

   .section 을 쓰지 않는다. common.css 의 section img { width:100% } (0,1,1) 가
   게시판 안 이미지까지 늘리기 때문이다. 좌우 패딩만 주는 .x-sf 로 대신하고
   반응형 값만 .section 과 똑같이 맞춘다
============================ */

/* ── 탭 즉시교체 (template-yb-board-tab-ajax.php + js/page/yb-board.js) ──
   자리는 그대로 두고 흐리게만 한다 — 높이가 바뀌면 스크롤이 튄다.
   -ajax 스킨의 같은 효과와 모양을 맞췄다(그쪽 --bd-* 토큰은 .bd-wrap 안에서만 산다) */

.pg-board-view.is-loading {
  opacity       : 0.35;
  pointer-events: none;
  transition    : opacity 0.2s ease;
}

/* 스크롤을 그대로 두는 것이 목적이라, 보고 있는 화면 가운데에 돌린다 */
.pg-board-view.is-loading::after {
  content         : '';
  position        : fixed;
  z-index         : 10;
  top             : 50%;
  left            : 50%;
  width           : 34px;
  height          : 34px;
  margin          : -17px 0 0 -17px;
  box-sizing      : border-box;
  border          : 2px solid var(--gray-color02);
  border-top-color: var(--main-color);
  border-radius   : 50%;
  box-shadow      : 0 0 0 6px var(--white-color);
  background-color: var(--white-color);
  animation       : pg-board-spin 0.7s linear infinite;
}

@keyframes pg-board-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pg-board-view.is-loading::after { animation-duration: 2s; }
}


@media all and (max-width: 1024px) {
  .pg-board { padding: 0 var(--one-space-s); }
}

@media all and (max-width: 639px) {
  .pg-board { padding: 0 var(--one-space-safe); }
}
