/* PostBox 전역 반응형 및 모바일 최적화 스타일시트 */
html, body {
  font-size: 14px;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin-bottom: 60px;
}

/* 네비게이션 메뉴 및 텍스트 1글자 세로 찌그러짐 원천 차단 */
.navbar-nav .nav-link {
  white-space: nowrap !important;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.table td.text-nowrap, .table th.text-nowrap {
  white-space: nowrap !important;
}

/* 이미지 및 미디어 컨테이너 오버플로우 방지 */
img, svg {
  max-width: 100%;
  height: auto;
}

/* 카드 및 컨테이너 100% 폭 제한 엄수 */
.card {
  max-width: 100%;
}

/* 모바일 뷰포트 여백 최적화 */
@media (max-width: 576px) {
  .container-fluid, .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
}

/* 모바일 햄버거 메뉴 및 터치 타깃 최적화 */
.navbar-toggler {
  padding: 0.35rem 0.5rem;
  font-size: 1.15rem;
  border-radius: 0.375rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* 모바일 알약 탭 스크롤바 숨김 처리 (터치 스와이프 친화적) */
.nav-pills.overflow-auto::-webkit-scrollbar {
  display: none;
}
.nav-pills.overflow-auto {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
