@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. 배경 (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; }


/* --------------------------------------------------------------------------
   5. 공지 상세 — 위치 · 제목 · 게시일 (폭 800 가운데)
   -------------------------------------------------------------------------- */
.post { position: relative; width: min(800px, calc(100% - 2 * var(--side))); margin: 0 auto; padding: 56px 0 96px; }
.crumbs { display: flex; gap: 6px; margin-bottom: 20px; font-size: 13px; color: var(--text-muted); }
.crumbs span { color: var(--text-disabled); }
.crumbs a:hover { color: var(--primary-strong); }
.post__title { font-size: 32px; font-weight: 700; line-height: 1.4; color: var(--text-strong); text-wrap: pretty; }
.post__date { margin-top: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--text-strong); font-size: 14px; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   6. 본문 — 블로그 상세 .prose 와 같은 규칙
   -------------------------------------------------------------------------- */
.prose { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; font-size: 17px; color: var(--text); }
.prose p, .prose li, .prose blockquote, .prose td, .prose th { line-height: 1.8; }
.prose p { margin: 0; }
.prose__lead { color: var(--ink-700); }
.prose strong { font-weight: 600; color: var(--text-strong); }
.prose h2 { margin: 20px 0 0; font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--text-strong); }
.prose blockquote { margin: 0; padding: 16px 20px; border-radius: 12px; background: #f8fafc; font-size: 16px; color: var(--text-strong); }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 15px; }
.prose th, .prose td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose th { width: 120px; background: #f8fafc; font-weight: 600; color: var(--text-strong); white-space: nowrap; }

/* --------------------------------------------------------------------------
   7. 이전 글 · 다음 글 · 목록
   -------------------------------------------------------------------------- */
.post-nav { margin-top: 56px; border-top: 1px solid var(--text-strong); }
.post-nav__row { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; column-gap: 24px; min-height: 64px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.post-nav__key { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.post-nav__title { font-size: 14px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
a.post-nav__row:hover .post-nav__title { color: var(--primary-strong); }
.post-nav__row.is-empty .post-nav__title { color: #94a3b8; }

.post__foot { margin-top: 40px; display: flex; justify-content: center; }
.list-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 16px; font-weight: 600; color: var(--text-strong); }
.list-btn:hover { border-color: var(--primary); color: var(--primary); }

/* --------------------------------------------------------------------------
   /* 푸터 규칙은 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; }
}

@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; }

  .post { padding-top: 32px; padding-bottom: 72px; }
  .post__title { font-size: 24px; }
  .prose { margin-top: 28px; font-size: 16px; gap: 16px; }
  .prose h2 { margin-top: 12px; font-size: 20px; }
  .prose th { width: 88px; }
  .post-nav__row { grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; padding: 0 4px; }

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

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