/* recr r1: recruitment list/detail — native scrollbar on phone, back button, loading skeleton */

/* 1) Phone: no custom purple-gradient scrollbar (native/hidden). Page still scrolls. */
@media (max-width: 768px) {
  html, body, #content { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar, #content::-webkit-scrollbar,
  .rpd-panel::-webkit-scrollbar, .recruitment-detail-page-scroll::-webkit-scrollbar,
  .section-full::-webkit-scrollbar {
    width: 0 !important; height: 0 !important; background: transparent !important;
  }
  html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb, #content::-webkit-scrollbar-thumb,
  .rpd-panel::-webkit-scrollbar-thumb, .recruitment-detail-page-scroll::-webkit-scrollbar-thumb,
  .section-full::-webkit-scrollbar-thumb {
    background: transparent !important; box-shadow: none !important;
  }
}

/* 2) Back button */
.rpd-mobile-folder .rpd-tabbar { align-items: stretch; }
.rpd-tabbar button.rpd-back-btn,
.rpd-mobile-folder .rpd-tabbar button.rpd-back-btn {
  flex: 0 0 auto !important;
  width: 40px; min-width: 40px; padding: 0 !important;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: #fff !important;
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  box-shadow: none !important;
  font-size: 1rem; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.rpd-tabbar button.rpd-back-btn:hover { background: rgba(255,255,255,0.18) !important; transform: none; }
.rpd-tabbar button.rpd-back-btn:active { transform: scale(0.94); }
.rpd-tabbar button.rpd-back-btn:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.rpd-back-row { display: flex; align-items: center; padding: 0 0.2rem 0.6rem; }
.rpd-back-link {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #e2e8f0; background: #fff; color: #334155;
  border-radius: 999px; padding: 7px 16px 7px 12px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.rpd-back-link i { font-size: 0.95rem; transition: transform .2s ease; }
.rpd-back-link:hover { color: #4f46e5; border-color: #c7d2fe; }
.rpd-back-link:hover i { transform: translateX(-2px); }
.rpd-back-link:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }
@media (max-width: 768px) { .rpd-back-row { display: none !important; } }

/* 3) Loading skeleton (single dark sheet, shimmer bars — no nested cards) */
.recruitment_post_details-card.rpd-is-loading:has(.rpd-skel) {
  display: block !important;
  background: linear-gradient(165deg, #151b30 0%, #1b1f3d 55%, #221c4a 100%) !important;
  border: none !important;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18) !important;
  border-radius: 22px !important;
  padding: 18px !important;
  margin: 0 !important;
  min-height: 0 !important;
  overflow: hidden;
}
.rpd-skel { width: 100%; max-width: none !important; margin: 0 !important; text-align: left !important; }
.rpd-skel i { display: block; font-style: normal; }
.rpd-skel .sk {
  display: block; border-radius: 12px;
  background: linear-gradient(100deg, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.06) 70%);
  background-size: 300% 100%;
  animation: rpd-sk-shimmer 1.5s ease-in-out infinite;
}
@keyframes rpd-sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.rpd-skel-grid { display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 18px; }
.rpd-skel-side { display: flex; flex-direction: column; gap: 12px; }
.rpd-skel-main { display: flex; flex-direction: column; gap: 14px; }
.rpd-skel-pills { display: none; gap: 8px; }
.rpd-skel-pills .sk { flex: 1; height: 38px; border-radius: 12px; }
.rpd-skel-company { display: flex; align-items: center; gap: 12px; }
.rpd-skel-company .sk:first-child { width: 64px; height: 64px; border-radius: 16px; flex: 0 0 auto; }
.rpd-skel-title { height: 58px; border-radius: 16px !important; }
.rpd-skel-label { width: 34%; height: 14px; }
.rpd-skel-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rpd-skel-facts .sk { height: 64px; border-radius: 16px; }
.rpd-skel-line { height: 12px; }
.rpd-skel-btn { height: 50px; border-radius: 999px !important; margin-top: 4px; }
.rpd-skel-status {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 18px; color: rgba(226, 232, 240, 0.85);
  font-size: 0.85rem; font-weight: 600;
}
.rpd-skel-status .rpd-loading-spinner {
  width: 16px !important; height: 16px !important; margin: 0 !important;
  border-width: 2px !important; border-color: rgba(255,255,255,0.18) !important; border-top-color: #a5b4fc !important;
}
.rpd-skel-status .rpd-loading-title { margin: 0 !important; font-size: inherit !important; color: inherit !important; font-weight: inherit !important; }
.rpd-skel .rpd-loading-sub { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .rpd-skel .sk { animation: none; } }

/* tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .rpd-skel-grid { grid-template-columns: 1fr 1.6fr; }
}
/* phone: mirror mobile tab layout, sit flush on the white sheet */
@media (max-width: 768px) {
  .recruitment-detail-page-scroll:has(.rpd-skel) { padding: 5.6px 5.6px 0 !important; border-bottom: none !important; margin-bottom: 0 !important; }
  .recruitment-detail-page-scroll:has(.rpd-skel) .section-full { padding: 0 !important; background: transparent !important; }
  .recruitment-detail-page-scroll:has(.rpd-skel) .container-fluid { padding: 0 !important; }
  .recruitment_post_details-card.rpd-is-loading:has(.rpd-skel) {
    margin: 5.6px 5.6px 0 !important; width: auto !important; max-width: none !important; box-sizing: border-box !important; padding: 12px !important; border-radius: 22px !important;
    box-shadow: none !important; min-height: 0 !important;
  }
  .rpd-skel-grid { grid-template-columns: 1fr; gap: 12px; }
  .rpd-skel-side { display: none; }
  .rpd-skel-pills { display: flex; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2px; }
  .rpd-skel-facts { grid-template-columns: 1fr; gap: 10px; }
  .rpd-skel-facts .sk { height: 60px; }
}
.rpd-skel-pills .sk.rpd-skel-back { flex: 0 0 40px; }
@media (max-width: 768px) {
  .recruitment_post_details-card.rpd-is-loading:has(.rpd-skel) { width: auto !important; max-width: none !important; box-sizing: border-box !important; }
}

/* 2026-10-16: tablet/phone - tab pills swipe horizontally; back button fixed outside the swipe row */
.rpd-tab-scroll { display: flex; flex: 1 1 auto; min-width: 0; gap: inherit; }
.rpd-tab-scroll > button { flex: 1 1 0; }
@media (max-width: 1199.98px) {
  .rpd-tabbar { align-items: center; }
  .rpd-tabbar > .rpd-back-btn { flex: 0 0 40px !important; align-self: stretch; position: relative; z-index: 2; }
  .rpd-tab-scroll {
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x proximity; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; touch-action: pan-x;
    overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 2px 0;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
            mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent 100%);
  }
  .rpd-tab-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .rpd-tab-scroll > button,
  .rpd-mobile-folder .rpd-tabbar .rpd-tab-scroll > button {
    flex: 0 0 auto !important;
    min-width: 42%;
    white-space: nowrap;
    scroll-snap-align: start;
  }
}
@media (min-width: 600px) and (max-width: 1199.98px) {
  .rpd-tab-scroll > button,
  .rpd-mobile-folder .rpd-tabbar .rpd-tab-scroll > button { min-width: 40%; }
}