/* =========================================================
   notice.css — NHN Cloud 스타일 공지사항
   ※ 공통 cs-* 클래스는 notice/faq 양쪽에서 공유합니다.
   ========================================================= */

/* ---------- 상단 가로 탭 (공지사항 / FAQ) ---------- */
.cs-tabbar {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}
.cs-tabbar-inner {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  height: 56px;
  padding-top: 12px;
}
.cs-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  letter-spacing: -0.01em;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease;
}
.cs-tab:hover { color: #111827; }
.cs-tab.is-active {
  color: #111827;
  font-weight: 700;
  border-bottom-color: #FE691B;
}

/* ---------- 페이지 타이틀 ---------- */
.cs-pagehead {
  padding: 56px 0 32px;
  text-align: center;
  background: #fff;
}
.cs-pagetitle {
  font-family: '"IBM Plex Sans KR"', 'Pretendard Variable', 'Pretendard', sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

/* ---------- 필터 바 (좌: 칩 / 우: 검색) ---------- */
.cs-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 28px;
  flex-wrap: wrap;
}
.cs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cs-chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.cs-chip:hover { border-color: #9ca3af; color: #111827; }
.cs-chip.is-active {
  background: #111827;
  border-color: #111827;
  color: #fff;
  font-weight: 600;
}

/* 검색바 */
.cs-search {
  position: relative;
  width: 360px;
  max-width: 100%;
}
.cs-search input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 18px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: #111827;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cs-search input::placeholder { color: #9ca3af; }
.cs-search input:focus {
  outline: none;
  border-color: #FE691B;
  box-shadow: 0 0 0 3px rgba(254, 105, 27, 0.12);
}
.cs-search button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #6b7280;
  background: transparent;
}
.cs-search button:hover { color: #111827; }

/* ---------- 공지 리스트 ---------- */
.cs-list {
  border-top: 1px solid #e5e7eb;
}
.cs-list-item {
  border-bottom: 1px solid #e5e7eb;
}
.cs-list-item > a {
  display: grid;
  grid-template-columns: 88px 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 8px;
  color: inherit;
  transition: background 0.12s ease;
}
.cs-list-item > a:hover { background: #f9fafb; }

.cs-cat {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.cs-cat--info     { background: #f5f7ff; color: #3b5bdb; border: 1px solid #dbe4ff; }
.cs-cat--update   { background: #f0fbff; color: #0c7db0; border: 1px solid #c5e9f7; }
.cs-cat--maint    { background: #fffbeb; color: #a06008; border: 1px solid #fde68a; }
.cs-cat--security { background: #f0fdf6; color: #0a7045; border: 1px solid #bbf7d0; }
.cs-cat--incident { background: #fff5f5; color: #c92a2a; border: 1px solid #fecaca; }
.cs-cat--event    { background: #fff8f5; color: #c94a0c; border: 1px solid #fed7aa; }
.cs-cat--notice   { background: #fff8f5; color: #c94a0c; border: 1px solid #fed7aa; }

.cs-svc {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-title {
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cs-list-item > a:hover .cs-title { color: #FE691B; }

.cs-must {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  background: #fff1ec;
  color: #FE691B;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}
.cs-new {
  display: inline-block;
  margin-left: 6px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  background: #FE691B;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}

.cs-date {
  font-size: 13px;
  color: #9ca3af;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- 페이지네이션 ---------- */
.cs-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 48px 0 80px;
}
.cs-pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  color: #4b5563;
  background: transparent;
  font-variant-numeric: tabular-nums;
}
.cs-pager-btn:hover { background: #f3f4f6; color: #111827; }
.cs-pager-btn.is-active {
  background: #111827;
  color: #fff;
  font-weight: 600;
}
.cs-pager-btn:disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .cs-list-item > a {
    grid-template-columns: 80px 1fr auto;
  }
  .cs-svc { display: none; }
}

@media (max-width: 768px) {
  .cs-tabbar-inner { gap: 24px; height: 52px; }
  .cs-tab { font-size: 15px; height: 40px; }
  .cs-pagehead { padding: 40px 0 24px; }
  .cs-pagetitle { font-size: 26px; }

  .cs-toolbar { flex-direction: column; align-items: stretch; }
  .cs-search { width: 100%; }
  .cs-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .cs-chips::-webkit-scrollbar { display: none; }
  .cs-chip { flex: 0 0 auto; height: 34px; padding: 0 14px; font-size: 13px; }

  .cs-list-item > a {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 16px 4px;
  }
  .cs-cat { grid-column: 1 / 2; grid-row: 1; }
  .cs-date { grid-column: 2 / 3; grid-row: 1; }
  .cs-title {
    grid-column: 1 / -1;
    grid-row: 2;
    white-space: normal;
    font-size: 14.5px;
    line-height: 1.4;
  }
  .cs-pager { padding: 32px 0 56px; }
}

@media (max-width: 480px) {
  .cs-pagetitle { font-size: 22px; }
  .cs-cat { min-width: 54px; height: 22px; font-size: 11px; }
}
