/* NVP24 목록 화면 — design/nvp24-board.html <style> 이식 (+ 실서비스 마크업 추가분). 게시판 스킨 portal-news · portal-column 목록에서 BoardController 가 붙인다 */
/* ── 카테고리 히어로 ── */
.cat-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(
    70% 140% at 85% 30%,
    #1d5bff 0%,
    #0a1d5c 38%,
    #040a1f 78%
  );

  min-height: 280px;
  padding-top: 30px;
}
.cat-hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 20px;
}
.cat-hero .in {
  padding: 26px 0 32px;
  position: relative;
  z-index: 1;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #a9b8e6;
}
.crumb svg.lucide {
  width: 13px;
  height: 13px;
}

.cat-hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.1;
  margin: 14px 0 12px;
}
.cat-hero p {
  font-size: 16px;
  color: #d2dbf5;
  line-height: 1.6;
}

.hero-art {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  pointer-events: none;
  opacity: 0.9;
}
.hero-art svg {
  width: 100%;
  height: 100%;
}
.hero-stat {
  align-self: center;
  position: relative;
  z-index: 1;
  background: rgba(6, 14, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(6px);
}
.hero-stat h3 {
  font-size: 13px;
  color: #a9b8e6;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-stat h3::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3fe0c5;
  animation: blink 1.4s infinite;
}
.hero-stat .nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.hero-stat .nums div {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
}
.hero-stat .nums b {
  display: block;
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.hero-stat .nums small {
  font-size: 11px;
  color: #a9b8e6;
}
.hero-stat .last {
  margin-top: 10px;
  font-size: 12px;
  color: #cdd6f2;
}

/* ── 하위 분류 탭 ── */
.subcat {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.subcat .wrap {
  display: flex;
  gap: 6px;
  padding-top: 14px;
  padding-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subcat .wrap::-webkit-scrollbar {
  display: none;
}
.subcat button {
  flex: none;
  min-width: 96px;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.subcat button:hover {
  color: var(--text);
}
.subcat button.on {
  background: var(--brand-2);
  color: #fff;
  font-weight: 800;
}
.subcat button em {
  font-style: normal;
  font-size: 11.5px;
  opacity: 0.6;
  margin-left: 4px;
}

/* ── 3단 레이아웃 ── */
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 312px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}
.lnb {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 74px;
}
.lnb .card {
  padding: 16px 12px;
}
.lnb h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 10px 0;
}
.lnb .menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-2);
}
.lnb .menu a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.lnb .menu a.on {
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 800;
}
.lnb .menu a svg.lucide {
  width: 16px;
  height: 16px;
}
.lnb .menu a em {
  margin-left: auto;
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-3);
}
.lnb .svc a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
}
.lnb .svc a:hover {
  border-color: var(--brand);
  color: var(--brand-ink);
}
.lnb .svc a svg.lucide {
  color: var(--brand);
  width: 17px;
  height: 17px;
}
.lnb .cta-card h4 {
  font-size: 17px;
}

/* 목록 */
.list-h {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--text);
}
.list-h .cnt {
  font-size: 14px;
  color: var(--text-2);
}
.list-h .cnt b {
  color: var(--brand);
}
.list-h .sort {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
}
.list-h .sort button {
  padding: 4px 8px;
  color: var(--text-3);
  font-weight: 600;
}
.list-h .sort button.on {
  color: var(--text);
  font-weight: 800;
}
.list-h .sort button.on::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 11px;
  background: var(--brand);
  margin-right: 6px;
  vertical-align: -1px;
}
.list-h .view {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
}
.list-h .view button {
  width: 30px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: var(--text-3);
}
.list-h .view button.on {
  background: var(--brand-soft);
  color: var(--brand);
}
.list-h .view svg.lucide {
  width: 16px;
  height: 16px;
}
.src-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.src-filter label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
}
.src-filter input {
  accent-color: var(--brand);
}

.posts .item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.posts .item .th {
  aspect-ratio: 16 / 10;
}
.posts .item .th svg.lucide {
  max-width: 54px;
}
.posts .item h2 {
  font-size: 18.5px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.4;
  margin: 8px 0 6px;
}
.posts .item:hover h2 {
  color: var(--brand);
}
.posts .item p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}
.posts .item .meta {
  margin-top: 10px;
}
.posts .item .ext {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-2);
  font-weight: 600;
}
.posts .item .ext svg.lucide {
  width: 13px;
  height: 13px;
}
.posts .item .tags {
  display: flex;
  gap: 6px;
  align-items: center;
}
.posts .item.pin {
  background: linear-gradient(90deg, var(--brand-soft), transparent 70%);
  margin: 0 -14px;
  padding-left: 14px;
  padding-right: 14px;
  border-radius: 10px;
  border-bottom-color: transparent;
}
/* 그리드 보기 */
.posts.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
  padding-top: 20px;
}
.posts.grid .item {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  border: 0;
}
.posts.grid .item.pin {
  margin: 0;
  padding: 0;
  background: none;
}
.posts.grid .item h2 {
  font-size: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.posts.grid .item p {
  display: none;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 32px;
}
.pager a {
  min-width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  padding: 0 6px;
}
.pager a:hover {
  background: var(--surface);
}
.pager a.on {
  background: var(--brand-2);
  color: #fff;
}
.pager svg.lucide {
  width: 16px;
  height: 16px;
}

/* 우측 */
.aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.aside > .card {
  padding: 18px;
}
.aside .tabs {
  margin: 0 -4px 6px;
}
.report {
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    110% 120% at 100% 0%,
    #2a62ff,
    #0b1e66 55%,
    #071233
  );
}
.report small {
  font-size: 12px;
  color: #9db6ff;
  font-weight: 700;
}
.report h4 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin: 6px 0 6px;
}
.report p {
  font-size: 13px;
  color: #c9d4f5;
  margin-bottom: 16px;
}
.report .btn {
  background: #fff;
  color: var(--brand-2);
  height: 38px;
  font-size: 13px;
}
.report .chip {
  position: absolute;
  right: -14px;
  top: 22px;
  width: 110px;
  height: 110px;
  border-radius: 18px;
  transform: rotate(18deg);
  background: linear-gradient(
    135deg,
    rgba(120, 170, 255, 0.6),
    rgba(30, 80, 255, 0.15)
  );
  border: 1px solid rgba(160, 200, 255, 0.6);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 26px;
  color: #dbe7ff;
}
.ev {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.ev:first-of-type {
  border-top: 0;
}
.ev .th {
  aspect-ratio: 1;
  border-radius: 8px;
}
.ev .th svg.lucide {
  width: 22px;
  height: 22px;
}
.ev b {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}
.ev:hover b {
  color: var(--brand);
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .aside {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cat-hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-stat {
    display: none;
  }
}
@media (max-width: 860px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .lnb {
    display: none;
  }
  .aside {
    grid-template-columns: minmax(0, 1fr);
  }
  .posts .item {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
  }
  .posts .item p {
    display: none;
  }
  .posts .item h2 {
    font-size: 16px;
  }
  .posts.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-art {
    width: 80%;
    opacity: 0.45;
  }
}
@media (max-width: 520px) {
  .posts .item {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .posts .item .ext {
    display: none;
  }
  .list-h {
    flex-wrap: wrap;
  }
  .list-h .sort {
    margin-left: 0;
  }
  .posts.grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ── 이식 추가 (실서비스 마크업: 버튼 대신 링크 · 이미지 썸네일 · 빈 목록 · 칼럼 2단) ── */
.portal-board {
  padding-bottom: 64px;
}
.cat-hero .crumb a,
.page-hero .crumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-hero .crumb a:hover,
.page-hero .crumb a:hover {
  color: #fff;
}
.subcat a {
  flex: none;
  min-width: 96px;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.subcat a:hover {
  color: var(--text);
}
.subcat a.on {
  background: var(--brand-2);
  color: #fff;
  font-weight: 800;
}
.subcat a em {
  font-style: normal;
  font-size: 11.5px;
  opacity: 0.6;
  margin-left: 4px;
}
.list-h .sort a {
  padding: 4px 8px;
  color: var(--text-3);
  font-weight: 600;
}
.list-h .sort a.on {
  color: var(--text);
  font-weight: 800;
}
.list-h .btn {
  flex: none;
}
.src-filter noscript .btn {
  height: 30px;
}
.th img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pager .gap {
  min-width: 24px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.empty {
  padding: 64px 0;
  text-align: center;
  color: var(--text-3);
}
.empty > svg.lucide {
  width: 40px;
  height: 40px;
  stroke-width: 1.3;
  margin-bottom: 10px;
}
.empty .btn {
  margin-top: 14px;
}
.empty .btn svg.lucide {
  width: 16px;
  height: 16px;
  margin: 0;
  stroke-width: 1.9;
}
.aside-empty {
  font-size: 13px;
  color: var(--text-3);
  padding: 8px 0;
}
.aside .rank .chg {
  color: var(--text-3);
  font-weight: 500;
}
.layout.layout--2 {
  grid-template-columns: minmax(0, 1fr) 312px;
}
@media (max-width: 1180px) {
  .layout.layout--2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* 처리 결과 한 줄 (예: 보도자료 접수 → 검수 대기 안내) */
.list-flash {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 13.5px;
  font-weight: 600;
}
.list-flash svg.lucide {
  width: 17px;
  height: 17px;
  flex: none;
}
