@charset "utf-8";

/* ==========================================================================
   다입찰 — 공지사항 목록 (/notice)
   PC 1440 기준 시안(디자인 캔버스 「공지사항 목록」)을 반응형으로 옮김. 공통부는 블로그 css와 같다.
   헤더 · 좌우 여백 · 푸터: 다입찰 홈페이지(/product) 실측값
   색: 다입찰 DS_V2 + 키컬러 사용 기준(파란색은 버튼 · 링크 · 현재 위치 · 선택 상태)
   타이포: 자간 -0.2%, 행간 1.3 (헤더 · 푸터 · 개별 지정 제외)
   브레이크포인트: 1279 / 859 / 767
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 토큰
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-tint: #eef2ff;     /* hover · 선택 배경 */
  --label-border: #c7d2fe;

  /* Ink (DS_V2) */
  --text-strong: #1e293b;
  --text: #334155;
  --ink-700: #475569;
  --text-muted: #64748b;
  --text-disabled: #cbd5e1;
  --line: #e2e8f0;

  /* 홈페이지 공용 (slate) */
  --heading: #1e293b;
  --body-strong: #475569;
  --body: #64748b;
  --gnb-line: #e2e8f0;
  --bg-subtle: #f1f5f9;
  --bg-page: #f8fafc;
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;

  /* Layout */
  --side: 120px;               /* 페이지 좌우 여백 (1440 기준 내용 1200) */
  --content: 1200px;
  --pad-x: max(var(--side), calc((100% - var(--content)) / 2));

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset · 기본 타이포
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: -0.002em;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; letter-spacing: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
/* 아이콘 — icon/*.svg 를 마스크로 써서 글자색(currentColor)을 따르게 함 */
.ico {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
          mask: var(--ico) center / contain no-repeat;
}
.ico--menu   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E"); width: 24px; height: 24px; }
.ico--search { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.ico--prev   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 6-6 6 6 6'/%3E%3C/svg%3E"); }
.ico--next   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E"); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { width: 100%; overflow-x: clip; }

/* --------------------------------------------------------------------------
   3. GNB — 홈페이지 실측
   -------------------------------------------------------------------------- */
.gnb {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--pad-x);
  background: #fff;
  border-bottom: 1px solid var(--gnb-line);
  letter-spacing: -0.375px;
  line-height: 21px;
}
.gnb__left { display: flex; align-items: center; gap: 40px; }
.gnb__logo img { width: 130px; height: 33px; object-fit: contain; object-position: left center; }
.gnb__nav { display: flex; align-items: center; gap: 24px; }
.gnb__nav a { font-size: 15px; font-weight: 600; color: var(--body-strong); white-space: nowrap; }
.gnb__nav a:hover { color: var(--heading); }
.gnb__nav a[aria-current="page"] { color: var(--primary); }
.gnb__item { position: relative; }
.gnb__dropdown {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 390px;
  margin-top: 12px;
  padding: 12px 12px 24px;
  background: #fff;
  border: 1px solid var(--gnb-line);
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  transition: opacity .15s ease, visibility 0s linear .6s;
}
.gnb__item:hover .gnb__dropdown,
.gnb__item:focus-within .gnb__dropdown { visibility: visible; opacity: 1; transition: opacity .15s ease; }
.gnb__ddrow { display: block; padding: 12px; border-radius: 12px; }
.gnb__ddrow:hover { background: var(--bg-subtle); }
.gnb__ddtitle { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--heading); }
.gnb__dddesc { margin-top: 2px; font-size: 13px; color: var(--body); }
.badge-soon { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 9999px; background: var(--bg-subtle); color: var(--body); font-size: 12px; font-weight: 600; }
.gnb__right { display: flex; align-items: center; gap: 8px; }
.gnb__btn { display: inline-flex; align-items: center; padding: 4px 16px; border-radius: 50px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.gnb__btn--ghost { border: 1px solid rgba(204, 204, 204, .8); color: #3e3f3f; }
.gnb__btn--ghost:hover { background: var(--bg-subtle); }
.gnb__btn--primary { background: var(--primary); color: #fff; }
.gnb__btn--primary:hover { background: var(--primary-strong); }
.gnb__menu { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; color: var(--body-strong); cursor: pointer; align-items: center; justify-content: center; }
.gnb__mobile { display: none; }

/* --------------------------------------------------------------------------
   4. 배경 · Hero (02.활용사례 글로우)
   -------------------------------------------------------------------------- */
.main { position: relative; overflow: hidden; }
.glow { position: absolute; pointer-events: none; user-select: none; max-width: none; }
.glow--1 { left: calc(50% - 820px); top: -330px; width: 957px; height: 631px; }
.glow--2 { left: calc(50% + 200px); top: -40px; width: 675px; height: 571px; }
.glow--3 { left: calc(50% - 1040px); top: -100px; width: 667px; height: 564px; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px var(--pad-x) 40px;
  text-align: center;
}
.block-label {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--label-border);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}
.hero__headline { font-size: 40px; font-weight: 700; color: var(--heading); text-wrap: balance; }


/* --------------------------------------------------------------------------
   5. 공통 조각
   -------------------------------------------------------------------------- */
.wrap { position: relative; padding: 0 var(--pad-x) 96px; display: flex; flex-direction: column; gap: 24px; }
.section-head { font-size: 20px; font-weight: 600; color: var(--text-strong); }

/* --------------------------------------------------------------------------
   6. 분류 탭 — 가운데 정렬, 밑줄형 44
   -------------------------------------------------------------------------- */
/* 좁은 화면에서는 줄바꿈 — 항상 가운데 정렬 */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.tab {
  flex: none;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
}
.tab:hover { color: var(--text-strong); }
.tab[aria-pressed="true"] { border-bottom-color: var(--primary); color: var(--primary); font-weight: 600; }

/* --------------------------------------------------------------------------
   7. 공지 목록 — 열 이름 + 행 (분류 · 제목 · 게시일)
   -------------------------------------------------------------------------- */
.list { min-width: 0; }
.list .section-head { padding-bottom: 12px; border-bottom: 1px solid var(--text-strong); }
.list__cols,
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px; align-items: center; column-gap: 24px; padding: 0 4px; }
.list__cols { height: 48px; border-bottom: 1px solid var(--text-strong); font-size: 15px; font-weight: 500; color: var(--text-strong); }
.list__cols span:first-child,
.list__cols span:last-child { text-align: center; }

.rows li { border-bottom: 1px solid var(--line); }
.row { min-height: 72px; }
.row__cls { text-align: center; font-size: 16px; color: var(--text-muted); white-space: nowrap; }
.row__title { font-size: 17px; font-weight: 500; color: var(--text-strong); transition: color .15s; }
.row:hover .row__title { color: var(--primary-strong); }
.row__date { text-align: center; font-size: 16px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 40px; }
.pager__btn { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 6px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text); }
.pager__btn:hover,
.pager__btn[aria-current="page"] { background: var(--primary-tint); color: var(--primary); }
.pager__btn[aria-current="page"] { font-weight: 600; }
.pager__btn.is-disabled { color: var(--text-disabled); pointer-events: none; }
button.pager__btn { border: 0; background: none; cursor: pointer; font: inherit; font-size: 15px; font-weight: 500; color: var(--text); }
button.pager__btn:hover,
button.pager__btn[aria-current="page"] { background: var(--primary-tint); color: var(--primary); }
button.pager__btn[aria-current="page"] { font-weight: 600; }
button.pager__btn:disabled { background: none; color: var(--text-disabled); cursor: default; }
.list__empty { padding: 72px 0; border-bottom: 1px solid var(--line); text-align: center; font-size: 15px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   /* 푸터 규칙은 shell.css로 통일(2026-11-10) */
/* 푸터 규칙은 shell.css로 통일(2026-11-10) */

/* --------------------------------------------------------------------------
   9. 반응형
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  :root { --side: 48px; }
}

@media (max-width: 859px) {
  :root { --side: 24px; }
  .hero { padding-top: 64px; padding-bottom: 40px; }
  .hero__headline { font-size: 32px; }
}

@media (max-width: 767px) {
  :root { --side: 16px; }
  .gnb__nav, .gnb__right { display: none; }
  .gnb__menu { display: inline-flex; }
  .gnb__mobile[hidden] { display: none; }
  .gnb__mobile:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 8px var(--pad-x) 20px;
    background: #fff;
    border-bottom: 1px solid var(--gnb-line);
    box-shadow: 0 8px 16px rgba(15, 23, 42, .06);
  }
  .gnb__mobile > a { padding: 14px 0; font-size: 16px; font-weight: 600; color: var(--body-strong); border-bottom: 1px solid var(--bg-subtle); }
  .gnb__mobile > a[aria-current="page"] { color: var(--primary); }
  .gnb__mobile-btns { display: flex; gap: 8px; padding-top: 16px; }

  .hero { padding-top: 48px; padding-bottom: 32px; gap: 12px; }
  .hero__headline { font-size: 26px; }
  .tab { padding: 0 12px; font-size: 15px; }

  /* 행: 분류 · 날짜 한 줄, 제목 아래 줄 */
  .list__cols { display: none; }
  .row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "cls date" "title title"; row-gap: 8px; column-gap: 12px; min-height: 0; padding: 18px 0; }
  .row__cls { grid-area: cls; text-align: left; font-size: 14px; }
  .row__date { grid-area: date; text-align: right; font-size: 14px; }
  .row__title { grid-area: title; font-size: 16px; }

  /* 푸터 규칙은 shell.css로 통일(2026-11-10) */
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
