@charset "utf-8";

/* ==========================================================================
   다입찰 — 블로그 목록 (/blog)
   PC 1440 기준 시안(디자인 캔버스 「블로그 목록」)을 반응형으로 옮김.
   헤더 · 좌우 여백 · 푸터: 다입찰 홈페이지(/product) 실측값
   색: 다입찰 DS_V2 + 키컬러 사용 기준(파란색은 버튼 · 링크 · 현재 위치 · 선택 상태)
   타이포: 자간 -0.2%, 행간 1.3 (헤더 · 푸터 · 개별 지정 제외)
   브레이크포인트: 1099 / 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: #334155;
  --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"); }
.ico--close  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"); }
.ico--check  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ico--mail   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-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: #334155; }
.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: 96px var(--pad-x) 72px;
  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; }
.hero__subcopy { font-size: 17px; font-weight: 500; color: var(--body-strong); }

/* --------------------------------------------------------------------------
   5. 공통 조각
   -------------------------------------------------------------------------- */
.wrap { position: relative; padding: 0 var(--pad-x); display: flex; flex-direction: column; gap: 24px; }
.section-head { font-size: 20px; font-weight: 600; color: var(--text-strong); }
.cat-label { color: var(--primary); font-size: 14px; font-weight: 500; }
.meta { font-size: 13px; color: var(--text-muted); }
.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1200 / 630;
  border-radius: 12px;
  background: var(--bg-subtle);
  color: var(--body);
  font-size: 14px;
  overflow: hidden;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--sm { border-radius: 8px; font-size: 12px; }

/* --------------------------------------------------------------------------
   6. 최신 글 3열
   -------------------------------------------------------------------------- */
.latest { display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.latest__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.latest-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.latest-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.latest-card .cat-label { font-size: 13px; }
.latest-card__title { font-size: 22px; font-weight: 600; color: var(--text-strong); transition: color .15s; }
.latest-card:hover .latest-card__title { color: var(--primary-strong); }

/* --------------------------------------------------------------------------
   7. 전체 글 + 카테고리
   -------------------------------------------------------------------------- */
.board { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 24px; align-items: start; }
.list { padding-top: 16px; min-width: 0; }
.list__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--text-strong); }
.search { position: relative; width: 280px; }
.search__icon { position: absolute; left: 14px; top: 11px; color: var(--text-muted); pointer-events: none; }
.search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: #fff;
  font-size: 15px;
  color: var(--text-strong);
  -webkit-appearance: none;
  appearance: none;
}
.search input::placeholder { color: var(--text-disabled); }
.search input:focus { outline: none; border-color: var(--primary); }

.rows li { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 36px; padding: 28px 0; align-items: start; }
.row__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row__title { font-size: 20px; font-weight: 600; color: var(--text-strong); transition: color .15s; }
.row:hover .row__title { color: var(--primary-strong); }
.row__summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.cats { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; }
.cat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  padding: 0 12px 0 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.cat__count { font-size: 14px; }
.cat:hover,
.cat[aria-pressed="true"] { background: var(--primary-tint); color: var(--primary); }
.cat[aria-pressed="true"] { font-weight: 600; }

/* --------------------------------------------------------------------------
   8. 뉴스레터 구독
   -------------------------------------------------------------------------- */
.newsletter { position: relative; padding: 48px var(--pad-x) 70px; }
.newsletter__inner { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 40px; border-top: 1px solid var(--line); text-align: center; }
.newsletter__title { font-size: 36px; font-weight: 700; line-height: 1.4; color: var(--text-strong); }
.newsletter__desc { font-size: 14px; color: var(--ink-700); }
.nl-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.nl-open:hover { background: var(--primary-strong); }

/* 구독 모달 안 입력 */
.nl-form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; text-align: left; }
.nl-form__field { display: flex; flex-direction: column; gap: 8px; }
.nl-form__label { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.nl-form__input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 15px; color: var(--text-strong); }
.nl-form__input::placeholder { color: var(--text-disabled); }
.nl-form__input:focus { outline: none; border-color: var(--primary); }
.nl-form__actions { margin-top: 12px; text-align: center; }

.consent { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.consent input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.consent__text { color: var(--ink-700); font-weight: 500; }
.consent__req { color: var(--text-muted); font-weight: 400; }
.consent__link { margin-left: auto; font-size: 13px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.consent__link:hover { color: var(--text-strong); }
.hp { position: absolute; left: -9999px; }

/* --------------------------------------------------------------------------
   9. Footer — 홈페이지 실측
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   10. 반응형
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
  :root { --side: 48px; }
  .newsletter__title { font-size: 30px; }
}

@media (max-width: 1099px) {
  .board { grid-template-columns: minmax(0, 1fr) 200px; }
  .row { grid-template-columns: minmax(0, 1fr) 180px; column-gap: 24px; }
  .latest-card__title { font-size: 19px; }
}

@media (max-width: 859px) {
  :root { --side: 24px; }
  .hero { padding-top: 64px; padding-bottom: 48px; }
  .hero__headline { font-size: 32px; }
  .latest__grid { grid-template-columns: 1fr 1fr; }
  .latest__grid .latest-card:nth-child(3) { display: none; }

  /* 카테고리 → 목록 위 가로 칩 줄 */
  .board { display: flex; flex-direction: column; gap: 16px; }
  /* 카테고리 칩: 가로 슬라이드 (화면 끝까지 붙여 스와이프) */
  .cats { order: -1; align-self: stretch; flex-direction: row; gap: 8px; min-width: 0; margin: 0 calc(-1 * var(--pad-x)); padding: 16px var(--pad-x) 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad-x); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cats.is-dragging { cursor: grabbing; scroll-snap-type: none; }
  .cats.is-dragging .cat { pointer-events: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { flex: none; scroll-snap-align: start; height: 40px; padding: 0 16px; gap: 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; white-space: nowrap; }
  .cat[aria-pressed="true"] { border-color: var(--primary); }
  .list { width: 100%; padding-top: 0; }
}

@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: 40px; gap: 12px; }
  .hero__headline { font-size: 26px; }
  .hero__subcopy { font-size: 15px; }

  .latest__grid { grid-template-columns: 1fr; gap: 28px; }
  .latest__grid .latest-card:nth-child(3) { display: flex; }
  .latest-card__title { font-size: 18px; }

  .list__head { flex-wrap: wrap; }
  .search { width: 100%; }

  .row { display: flex; flex-direction: column; gap: 14px; padding: 24px 0; }
  .row .thumb { order: -1; width: 100%; }
  .row__title { font-size: 17px; }

  .newsletter { padding-top: 40px; padding-bottom: 56px; }
  .newsletter__title { font-size: 24px; }
  .modal__panel { padding: 28px 20px 24px; }

}

/* --------------------------------------------------------------------------
   뉴스레터 구독 모달
   -------------------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.modal__panel {
  position: relative;
  width: min(440px, 100%);
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .18);
  text-align: center;
}
.modal__panel * { line-height: 1.3; letter-spacing: -0.002em; }
.modal__x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text-muted); cursor: pointer; }
.modal__x:hover { background: var(--bg-subtle); color: var(--text-strong); }
.modal__x .ico { width: 20px; height: 20px; }
.modal__step[hidden] { display: none; }
.modal__icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; }
.modal__icon .ico { width: 28px; height: 28px; }
.modal__icon--mail { background: var(--primary-tint); color: var(--primary); }
.modal__icon--done { background: #dcfce7; color: #15803d; }
.modal__title { margin: 16px 0 0; font-size: 22px; font-weight: 700; color: var(--text-strong); }
.modal__title--done { margin-bottom: 12px; }
.modal__title:focus { outline: none; }
.modal__sent { margin: 0; padding: 16px 0; background: #f8fafc; font-size: 15px; color: var(--ink-700); }
.modal__sent strong { color: var(--text-strong); font-weight: 600; word-break: break-all; }
.modal__note { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }
.modal__close--done { margin-top: 16px; }
.modal__close { width: 120px; height: 48px; border: 0; border-radius: 999px; background: var(--primary); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.modal__close:hover { background: var(--primary-strong); }


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