.krpl-wrap {
  max-width: 1200px;
  margin: 0 auto;
  font-family: inherit;
}
.krpl-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 24px 0;
}
.krpl-tab {
  padding: 8px 16px; /* 탭 버튼 크기 조금 축소 */
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #6b7280;
  cursor: pointer;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.krpl-tab:hover {
  background: #f3f4f6;
  color: #374151;
}
.krpl-tab.is-active {
  background: #001f3f; /* 네이비 블루 포인트 컬러 */
  color: #fff;
  border-color: #001f3f;
}
.krpl-panels {
  margin-top: 8px;
}
.krpl-panel {
  display: none;
}
.krpl-panel.is-active {
  display: block;
}
.krpl-panel-kboard {
  padding: 8px 0 16px;
}
.krpl-item {
  border-bottom: 1px solid #eee;
  padding: 18px 8px;
  color: inherit;
}
.krpl-item-header {
  display: flex;
  gap: 20px;
  position: relative;
}
.krpl-item-toggle {
  cursor: pointer;
}
.krpl-thumb {
  width: 220px;
  height: 140px;
  background: #ddd center/cover no-repeat;
  flex: 0 0 220px;
}
.krpl-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.krpl-title {
  font-size: 20px; /* 제목 크기를 약간 키움 */
  margin: 0 0 8px; /* 위쪽 여백 제거 */
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}
.krpl-excerpt {
  color: #666;
  line-height: 1.6;
}
.krpl-meta-info {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.krpl-meta {
  color: #888;
  font-size: 13px; /* 날짜 크기 약간 키움 */
}
.krpl-toggle-icon {
  color: #999;
  font-size: 12px;
  transition: transform 0.2s;
}
.krpl-item.is-expanded .krpl-toggle-icon {
  transform: rotate(180deg);
}
.krpl-item-content {
  background: #f9fafb;
  padding: 24px;
  border-radius: 8px;
  margin-top: 16px;
}
.krpl-item-content.krpl-detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: #374151;
}
.krpl-item-content img {
  max-width: 100%;
  height: auto;
}

/* is-title-only behavior */
.krpl-item.is-title-only .krpl-item-header {
  align-items: center;
}
.krpl-item.is-title-only .krpl-body {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.krpl-item.is-title-only .krpl-text-content {
  flex: 1;
}
.krpl-item.is-title-only .krpl-title {
  font-size: 15.5px;
  margin: 0;
  font-weight: 600;
}
.krpl-item.is-title-only .krpl-excerpt {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}
.krpl-item.is-title-only .krpl-meta-info {
  flex: 0 0 auto;
  padding-top: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
@media (max-width: 600px) {
  .krpl-item.is-title-only .krpl-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .krpl-item.is-title-only .krpl-meta-info {
    width: 100%;
    justify-content: space-between;
  }
}

.krpl-empty {
  padding: 24px;
  color: #888;
  text-align: center;
}
.krpl-pagination-wrap {
  margin: 32px 0 16px;
  text-align: center;
}
.krpl-pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.krpl-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1;
}
.krpl-pagination .page-numbers:hover {
  border-color: #001f3f;
  color: #001f3f;
  background-color: #f9fafb;
}
.krpl-pagination .page-numbers.current {
  background: #001f3f;
  border-color: #001f3f;
  color: #fff;
}
.krpl-pagination .page-numbers.dots {
  border: 0;
  background: transparent;
  min-width: auto;
  padding: 0 4px;
}
.krpl-library-item {
  display: block;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.krpl-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.krpl-library-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}
.krpl-library-title a {
  text-decoration: none;
  color: inherit;
}
.krpl-library-excerpt {
  margin: 8px 0 0;
  color: #666;
  line-height: 1.6;
}
.krpl-library-lock {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.krpl-library-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.krpl-library-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

/* media grid */
.krpl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.krpl-video {
  cursor: pointer;
}
.krpl-video-thumb {
  position: relative;
  padding-top: 56%;
  background: #ddd center/cover no-repeat;
}
.krpl-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.krpl-video-title {
  margin-top: 8px;
}

/* modal */
.krpl-modal {
  position: fixed;
  inset: 0;
  display: none;
}
.krpl-modal.is-open {
  display: block;
}
.krpl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.krpl-modal-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  max-width: 960px;
  width: 90%;
}
.krpl-modal-close {
  position: absolute;
  right: -12px;
  top: -12px;
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.krpl-modal-body iframe,
.krpl-modal-body video {
  width: 100%;
  height: 540px;
  display: block;
}
.krpl-detail {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #ececec;
}
.krpl-detail-title {
  margin: 0 0 8px;
  font-size: 2rem;
  line-height: 1.35;
  color: #4b5563;
}
.krpl-detail-meta {
  margin-bottom: 20px;
  color: #64748b;
  font-size: 13px;
}
.krpl-detail-content {
  line-height: 1.85;
  color: #374151;
}
.krpl-password-form {
  max-width: 420px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  background: #f8fafc;
}
.krpl-password-form label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}
.krpl-password-form input,
.krpl-password-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 12px;
  background: #fff;
}
.krpl-password-form input {
  height: 40px;
}
.krpl-btn {
  display: inline-block;
  border: 0;
  background: #0b2d63;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
}
.krpl-btn-danger {
  background: #b91c1c;
}
.krpl-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
}
.krpl-downloads {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}
.krpl-downloads h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.krpl-downloads ul {
  margin: 0;
  padding-left: 18px;
}
.krpl-downloads li {
  margin-bottom: 6px;
}
.krpl-downloads li span {
  margin-left: 6px;
  color: #64748b;
  font-size: 13px;
}
.krpl-editor-form {
  max-width: 860px;
}
.krpl-attachment-fieldset {
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.krpl-attachment-fieldset legend {
  font-weight: 600;
  font-size: 13px;
  color: #334155;
}
.krpl-checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.krpl-checkbox-row input {
  width: auto;
  height: auto;
  margin: 0;
}
.krpl-delete-form {
  margin-top: 16px;
  max-width: 420px;
  padding: 14px;
  border: 1px solid #fee2e2;
  border-radius: 10px;
  background: #fff;
}

@media (max-width: 900px) {
  .krpl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .krpl-thumb {
    width: 160px;
    height: 100px;
  }
}
@media (max-width: 600px) {
  .krpl-item {
    flex-direction: column;
  }
  .krpl-thumb {
    width: 100%;
    height: 180px;
  }
  .krpl-grid {
    grid-template-columns: 1fr;
  }
  .krpl-modal-body iframe,
  .krpl-modal-body video {
    height: 220px;
  }
  .krpl-detail-title {
    font-size: 1.5rem;
  }
}
