@charset "utf-8";
/* ==========================================================================
   다입찰 홈페이지 디자인 시스템 — 컴포넌트
   tokens.css 다음에 불러온다.
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-heading);
  line-height: var(--lh);
}
p, h1, h2, h3, h4, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

.page { width: 100%; overflow: hidden; }
.section { padding: var(--space-section) var(--pad-x); }
.section--sm { padding: var(--space-section-sm) var(--pad-x); }
.section--white { background: var(--surface); }
.narrow { width: var(--narrow-width); margin: 0 auto; }
.num { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   1. Typography
   ========================================================================== */
.t-display { font-size: var(--fs-display); font-weight: 700; letter-spacing: -1.5px; }
.t-h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -1.2px; }
.t-h2 { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -1px; }
.t-h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.6px; }
.t-title { font-size: var(--fs-title); font-weight: 700; letter-spacing: -0.45px; }
.t-lead { font-size: var(--fs-lead); font-weight: 500; letter-spacing: -0.425px; color: var(--text-body-strong); }
.t-body { font-size: var(--fs-body); font-weight: 500; letter-spacing: -0.375px; color: var(--text-body); }
.t-sm { font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.35px; color: var(--text-body); }
.t-meta { font-size: var(--fs-xs); font-weight: 500; letter-spacing: -0.325px; color: var(--text-muted); }

/* 섹션 머리 — 라벨 + 제목 + 설명 */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); text-align: center; margin-bottom: var(--space-12); }
.sec-head--left { align-items: flex-start; text-align: left; }
.sec-head__title { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -1px; }
.sec-head__desc { font-size: var(--fs-lead); font-weight: 500; letter-spacing: -0.425px; color: var(--text-body); }

/* ==========================================================================
   2. Badge · Label · Tag
   ========================================================================== */
.label {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px;
  border-radius: var(--radius-pill); background: var(--indigo-50); color: var(--brand-500);
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.35px; white-space: nowrap;
}
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: var(--radius-pill); font-size: var(--fs-2xs); font-weight: 600;
  letter-spacing: -0.3px; white-space: nowrap; background: var(--bg-subtle); color: var(--text-body);
}
.badge--brand { background: var(--brand-50); color: var(--brand-500); }
.badge--success { background: var(--success-bg); color: var(--success-fg); }
.badge--warning { background: var(--warning-bg); color: var(--warning-fg); }
.badge--danger { background: var(--danger-bg); color: var(--danger-fg); }
.badge--purple { background: var(--purple-50); color: var(--purple-700); }
.badge--beta { background: var(--grad-beta); color: #fff; }

/* ==========================================================================
   3. Button
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: 52px; padding: 0 30px; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 600; letter-spacing: -0.4px; white-space: nowrap;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-500); color: #fff; box-shadow: 0 4px 8px rgba(0,0,0,.08); }
.btn--primary:hover { background: var(--brand-700); }
.btn--white { background: var(--surface); color: var(--text-body-strong); box-shadow: 0 4px 8px rgba(0,0,0,.08); }
.btn--white:hover { color: var(--brand-500); }
.btn--ghost { border: 1px solid var(--line); background: var(--surface); color: var(--text-body-strong); }
.btn--ghost:hover { border-color: var(--brand-300); color: var(--brand-500); }
.btn--sm { height: 40px; padding: 0 18px; font-size: var(--fs-sm); }
.btn--block { width: 100%; }
/* 보조 동작 — 목록 / 링크 복사 (ghost·sm 기반, 아이콘 16px) */
.btn-icon { width: 16px; height: 16px; flex: none; }
.btn--copied, .btn--copied:hover { border-color: var(--brand-300); color: var(--brand-500); }
.btn[disabled] { background: var(--bg-subtle); color: var(--text-disabled); box-shadow: none; cursor: not-allowed; }

/* ==========================================================================
   4. 베타 띠 (GNB 위, 전 페이지 공통)
   ========================================================================== */
.beta-bar {
  display: flex; align-items: center; justify-content: center; gap: var(--space-3);
  height: var(--beta-bar-h); padding: 0 var(--pad-x);
  background: var(--grad-beta); color: #fff;
  font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.35px;
}
.beta-bar__tag {
  height: 22px; padding: 0 9px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.2); font-size: 11px; font-weight: 700; letter-spacing: .5px;
  display: inline-flex; align-items: center;
}
.beta-bar__link { text-decoration: underline; text-underline-offset: 3px; opacity: .9; }
.beta-bar__link:hover { opacity: 1; }

/* ==========================================================================
   5. GNB
   ========================================================================== */
.gnb {
  position: relative; z-index: 30;  /* 상단 고정 안 함 (2026-11-05 결정) */
  display: flex; align-items: center; justify-content: space-between;
  height: var(--gnb-h); padding: 0 var(--pad-x);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.gnb__left { display: flex; align-items: center; gap: var(--space-10); }
.gnb__logo img { width: 116px; height: auto; }
.gnb__nav { display: flex; align-items: center; gap: var(--space-6); }
.gnb__nav > a, .gnb__item > a {
  font-size: 15px; font-weight: 600; letter-spacing: -0.375px; color: var(--text-body-strong);
}
.gnb__nav a:hover, .gnb__nav a[aria-current="page"] { color: var(--brand-500); }
.gnb__item { position: relative; }
/* 드롭다운 메뉴 아래화살표 */
.gnb__item > a { display: inline-flex; align-items: center; gap: 4px; }
.gnb__item > a::after {
  content: ""; width: 12px; height: 12px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s ease;
}
.gnb__item:hover > a::after, .gnb__item:focus-within > a::after { transform: rotate(180deg); }
.gnb__dropdown {
  visibility: hidden; opacity: 0; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); width: 280px; margin-top: 12px; padding: var(--space-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); transition: opacity .15s ease, visibility 0s linear .4s;
}
.gnb__item:hover .gnb__dropdown, .gnb__item:focus-within .gnb__dropdown { visibility: visible; opacity: 1; transition: opacity .15s ease; }
.gnb__ddrow { display: block; padding: var(--space-3); border-radius: var(--radius-md); }
.gnb__ddrow:hover { background: var(--bg-subtle); }
.gnb__ddtitle { display: flex; align-items: center; gap: var(--space-2); font-size: 15px; font-weight: 700; }
.gnb__dddesc { margin-top: 2px; font-size: var(--fs-xs); color: var(--text-body); }
.gnb__right { display: flex; align-items: center; gap: var(--space-2); }
.gnb__btn {
  display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600; letter-spacing: -0.375px; white-space: nowrap;
}
.gnb__btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.gnb__btn--ghost { border: 1px solid rgba(204,204,204,.8); color: #3e3f3f; }
.gnb__btn--primary { background: var(--brand-500); color: #fff; }
/* hover — §3 버튼(.btn--ghost / .btn--primary)과 같은 값 */
.gnb__btn--ghost:hover { border-color: var(--brand-300); color: var(--brand-500); }
.gnb__btn--primary:hover { background: var(--brand-700); }
.gnb__btn:active { transform: translateY(1px); }

/* ==========================================================================
   /* 푸터 규칙은 shell.css로 통일(2026-11-10) */
/* 푸터 규칙은 shell.css로 통일(2026-11-10) */
/* 마이너 — 카피라이트 · 문의 이메일 · 대표전화 */
/* 푸터 규칙은 shell.css로 통일(2026-11-10) */

/* ==========================================================================
   7. Card
   ========================================================================== */
.card {
  position: relative; padding: 28px 26px; border: 1px solid var(--line);
  border-radius: var(--radius-md); background: var(--surface);
}
.card--hover { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card--hover:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__title { font-size: 17px; font-weight: 700; letter-spacing: -0.425px; }
.card__desc { margin-top: var(--space-2); font-size: var(--fs-sm); font-weight: 500; color: var(--text-body); }


/* 번호 카드 (.num-card) — 3개 나란히, 가운데 정렬 큰 번호 + hover 떠오름 그림자
   쓰는 곳: 서비스 소개 「놓친 공고」, 시작하기·알림 받기·조직 「짚어둘 것」 */
.num-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: stretch; padding: var(--space-6) 0 var(--space-10); }
.num-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-4);
  padding: 36px 32px 40px; border: 1px solid var(--line); border-radius: var(--space-6);
  background: var(--surface); text-align: center;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.num-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 2px 8px rgba(15,23,42,.04), 0 24px 48px -12px rgba(66,56,201,.18); }
.num-card__index { color: var(--brand-300); font-size: 28px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.num-card__title { font-size: 22px; font-weight: 700; letter-spacing: -0.55px; color: var(--text-heading); word-break: keep-all; }
.num-card__desc { font-size: var(--fs-body); font-weight: 500; line-height: 1.75; letter-spacing: -0.375px; color: var(--text-body); word-break: keep-all; }
@media (max-width: 1099px) { .num-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .num-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 767px) {
  .num-cards { grid-template-columns: minmax(0, 1fr); }
  .num-card { padding: 28px 20px 32px; gap: var(--space-3); }
  .num-card__title { font-size: 19px; }
  .num-card__desc br { display: none; }
}
@media (prefers-reduced-motion: reduce) { .num-card { transition: none; } .num-card:hover { transform: none; } }

/* ==========================================================================
   8. 실시간 입찰 지표 (Stat)
   ========================================================================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
}
.stat { padding: var(--space-6) var(--space-8); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat__key { font-size: var(--fs-sm); font-weight: 600; color: var(--text-body); }
.stat__value {
  margin-top: var(--space-2); font-size: var(--fs-stat); font-weight: 800; letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums; color: var(--text-heading);
}
.stat__unit { margin-left: 2px; font-size: 18px; font-weight: 700; color: var(--text-body-strong); }
.live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--success-fg);
}
.live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2); animation: live 1.8s ease-in-out infinite;
}
@keyframes live { 50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); } }

/* ==========================================================================
   9. 실시간 공고 피드 (3단 리스트)
   ========================================================================== */
.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-12); }
.feed__col { min-width: 0; }
.feed__head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: var(--space-4); border-bottom: 2px solid var(--line-strong);
}
.feed__title { font-size: 19px; font-weight: 700; letter-spacing: -0.475px; }
.feed__more { font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); }
.feed__more:hover { color: var(--brand-500); }
.feed__list { position: relative; }
.feed__item { display: flex; align-items: flex-start; gap: var(--space-4); padding: 18px 0; border-bottom: 1px solid var(--line-subtle); }
.feed__main { flex: 1; min-width: 0; }
.feed__name {
  font-size: var(--fs-body); font-weight: 600; letter-spacing: -0.375px; color: var(--text-heading);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feed__meta { display: flex; align-items: center; gap: var(--space-2); margin-top: 6px; font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; }
.feed__meta > * + *::before { content: "|"; margin-right: var(--space-2); color: var(--line); }
.feed__meta b { font-weight: 700; color: var(--text-body-strong); }
.feed__side { flex: none; font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; }
.feed__side--rate { color: var(--rate-fg); }
.feed__side--today { color: var(--brand-500); }
.feed__side--soon { color: #60a5fa; }
/* 아래로 갈수록 흐려지는 처리 — 비회원에게 일부만 보여 준다 */
.feed__list--fade::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--surface) 92%);
  pointer-events: none;
}
.feed-gate { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); margin-top: var(--space-8); }

/* ==========================================================================
   10. 알림톡 목업 (카카오톡 채팅 화면)
   ========================================================================== */
.phone {
  width: 340px; padding: 12px; border-radius: 44px; background: #111827;
  box-shadow: var(--shadow-lg);
}
.phone__screen { overflow: hidden; border-radius: 34px; background: var(--kakao-bg); }
.phone__status { display: flex; justify-content: space-between; padding: 14px 26px 6px; font-size: 12px; font-weight: 700; color: var(--kakao-ink); }
.phone__chat-head { display: flex; align-items: center; gap: 8px; padding: 8px 18px 12px; font-size: 15px; font-weight: 700; color: var(--kakao-ink); }
.phone__body { padding: 4px 14px 22px; min-height: 520px; }
.kakao-date { margin: 4px auto 14px; width: fit-content; padding: 4px 12px; border-radius: var(--radius-pill); background: rgba(0,0,0,.12); font-size: 11px; color: #fff; }
.kakao-msg { display: flex; gap: 8px; }
.kakao-profile {
  flex: none; width: 38px; height: 38px; border-radius: 14px; background: var(--surface);
  display: grid; place-items: center; overflow: hidden;
}
.kakao-profile img { width: 30px; }
.kakao-sender { font-size: 12px; color: #4b5563; margin-bottom: 4px; }
.kakao-msg > div { min-width: 0; flex: 1; }
.kakao-bubble { width: 100%; max-width: 236px; overflow: hidden; border-radius: 4px 14px 14px 14px; background: var(--surface); }
.kakao-bubble__top { padding: 9px 14px; background: var(--kakao-yellow); font-size: 12px; font-weight: 700; color: var(--kakao-ink); }
.kakao-bubble__body { padding: 14px; font-size: 13px; line-height: 1.55; color: var(--kakao-ink); }
.kakao-bubble__title { font-weight: 700; margin-bottom: 8px; }
.kakao-bubble__rows { display: grid; gap: 2px; margin-bottom: 10px; }
.kakao-bubble__foot { font-size: 11px; color: #6b7280; line-height: 1.5; }
.kakao-bubble__btn {
  display: block; margin: 0 14px 14px; padding: 10px 0; border-radius: 6px; background: #f3f4f6;
  text-align: center; font-size: 13px; font-weight: 600; color: var(--kakao-ink);
}
.kakao-time { align-self: flex-end; font-size: 11px; color: #4b5563; }

/* ==========================================================================
   11. Form (문의하기)
   ========================================================================== */
.form { display: grid; gap: var(--space-6); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
/* align-content:start — 같은 줄 옆 칸에 도움말이 있어 칸 높이가 늘어나도 라벨~입력 간격 8px 유지 */
.field { display: grid; gap: var(--space-2); align-content: start; }
.field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-value); }
.field__label em { color: var(--danger-fg); font-style: normal; margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); font-size: var(--fs-body); color: var(--text-heading);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.textarea { height: 160px; padding: 14px 16px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.field__help { font-size: var(--fs-2xs); color: var(--text-muted); }
.field--error .input { border-color: var(--danger-fg); }
.field--error .field__help { color: var(--danger-fg); }
/* 선택 칩 (문의 유형) */
.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 1px solid var(--line);
  border-radius: var(--radius-pill); background: var(--surface); font-size: var(--fs-sm); font-weight: 600;
  color: var(--text-body-strong); cursor: pointer; transition: all .15s ease;
}
.chip input:checked + span { border-color: var(--brand-500); background: var(--brand-50); color: var(--brand-500); }
.chip input:focus-visible + span { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-sm); color: var(--text-body-strong); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand-500); }

/* ==========================================================================
   12. Tabs · Search · Pagination
   ========================================================================== */
.tabs { display: flex; gap: var(--space-2); }
.tab {
  height: 40px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--surface); font-size: var(--fs-sm); font-weight: 600; color: var(--text-body-strong);
}
.tab[aria-selected="true"] { border-color: var(--text-heading); background: var(--text-heading); color: #fff; }
.search {
  display: flex; align-items: center; gap: var(--space-3); height: 56px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow-sm);
}
.search:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
.search input { flex: 1; border: none; background: none; font-size: 16px; }
.search input:focus { outline: none; }
.search svg { flex: none; color: var(--text-muted); }
/* 페이지 번호 — 블로그 목록 기준. 이전/다음은 아이콘 + aria-label, 끝 페이지에서 .is-disabled */
.pager { display: flex; justify-content: center; align-items: center; gap: var(--space-1); margin-top: var(--space-10); }
.pager a {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: var(--radius-sm);
  font-size: var(--fs-body); font-weight: 500; color: var(--text-body-strong); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.pager a:hover,
.pager a[aria-current="page"] { background: var(--indigo-50); color: var(--brand-500); }
.pager a[aria-current="page"] { font-weight: 600; }
.pager a.is-disabled, .pager a[aria-disabled="true"] { color: var(--text-disabled); background: none; pointer-events: none; }

/* ==========================================================================
   12-1. 분류 메뉴 (세로 탭) — 목록 옆에 세우는 카테고리
   nav.cat > p.cat__title + .tabs.tabs--vertical > button.tab(+ .tab__count)
   ≤859 에서 목록 위 가로 탭으로 바뀐다
   ========================================================================== */
.cat { min-width: 0; }
.cat__title {
  padding-bottom: var(--space-4); border-bottom: 2px solid var(--line-strong);
  font-size: var(--fs-title); font-weight: 700; letter-spacing: -0.45px; color: var(--text-heading);
}
/* 블로그 목록 기준: 항목 48px · 16px/500, hover·선택은 indigo-50 바탕 + brand-500 글자 */
.tabs--vertical { flex-direction: column; gap: 2px; padding-top: var(--space-3); }
.tabs--vertical .tab {
  display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px;
  padding: 0 var(--space-3) 0 var(--space-4); border: 0; border-radius: var(--radius-sm);
  background: transparent; font-size: 16px; font-weight: 500; color: var(--text-heading); text-align: left; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.tabs--vertical .tab:hover,
.tabs--vertical .tab[aria-selected="true"] { background: var(--indigo-50); color: var(--brand-500); }
.tabs--vertical .tab[aria-selected="true"] { font-weight: 600; }
.tab__count { margin-left: var(--space-2); font-size: var(--fs-sm); font-weight: inherit; color: inherit; font-variant-numeric: tabular-nums; }
@media (max-width: 859px) {
  .cat__title { display: none; }
  /* 목록 위 가로 칩 줄 — 화면 끝까지 붙여 스와이프 */
  .tabs--vertical {
    flex-direction: row; gap: var(--space-2); padding: 0 var(--pad-x); margin: 0 calc(-1 * var(--pad-x));
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad-x); scrollbar-width: none;
  }
  .tabs--vertical::-webkit-scrollbar { display: none; }
  .tabs--vertical .tab {
    width: auto; flex: none; height: 40px; gap: 6px; padding: 0 var(--space-4); scroll-snap-align: start;
    border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); font-size: var(--fs-sm); white-space: nowrap;
  }
  .tabs--vertical .tab[aria-selected="true"] { border-color: var(--brand-500); background: var(--indigo-50); }
  .tabs--vertical .tab__count { margin-left: 0; }
}

/* ==========================================================================
   12-2. 분류 탭 (밑줄형) — 공지사항 목록 상단 카테고리
   .tabs.tabs--line > button.tab[aria-selected] · 가운데 정렬, 선택 항목만 파란 글자 + 2px 밑줄
   ========================================================================== */
.tabs--line { flex-wrap: wrap; justify-content: center; gap: var(--space-1); }
.tabs--line .tab {
  flex: none; height: 44px; padding: 0 var(--space-4); border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; font-size: 16px; font-weight: 500; letter-spacing: -0.4px; color: var(--text-body); white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.tabs--line .tab:hover { color: var(--text-heading); }
.tabs--line .tab[aria-selected="true"] { border-bottom-color: var(--brand-500); background: none; color: var(--brand-500); font-weight: 600; }
@media (max-width: 767px) {
  /* 좁은 화면에서도 가로 스크롤 대신 줄바꿈 · 가운데 정렬 유지 */
  .tabs--line { overflow-x: visible; margin: 0; padding: 0; }
  .tabs--line .tab { padding: 0 var(--space-3); font-size: var(--fs-body); }
}

/* ==========================================================================
   13. Accordion (FAQ)
   ========================================================================== */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__q {
  display: flex; align-items: center; gap: var(--space-4); padding: 22px 4px; cursor: pointer;
  font-size: 17px; font-weight: 600; letter-spacing: -0.425px; list-style: none;
}
.acc__q::-webkit-details-marker { display: none; }
.acc__q::before { content: "Q"; flex: none; width: 28px; height: 28px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--brand-50); color: var(--brand-500); font-size: 13px; font-weight: 700; }
.acc__q::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform .2s ease; }
.acc__item[open] .acc__q::after { transform: rotate(-135deg); }
.acc__a { padding: 0 4px 24px 48px; font-size: var(--fs-body); line-height: var(--lh-read); color: var(--text-body); }

/* ==========================================================================
   13-1. Breadcrumb (현재 위치) — 상세 화면 상단의 트리형 경로
   마지막 항목 = 현재 위치(aria-current="page"), 구분 기호 › 는 CSS가 그린다
   ========================================================================== */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: 500; letter-spacing: -0.35px; color: var(--text-body); }
.crumb li { display: inline-flex; align-items: center; gap: var(--space-2); min-width: 0; }
.crumb li + li::before { content: "›"; color: var(--text-muted); }
.crumb a { transition: color .15s ease; }
.crumb a:hover { color: var(--brand-500); }
.crumb [aria-current="page"] { font-weight: 600; color: var(--text-heading); }

/* ==========================================================================
   14. 페이지 머리 (서브 페이지 공통)
   ========================================================================== */
.page-head { padding: 88px var(--pad-x) 56px; text-align: center; background: linear-gradient(to bottom, var(--indigo-50), var(--bg-page)); }
.page-head__title { margin-top: var(--space-4); font-size: var(--fs-h1); font-weight: 700; letter-spacing: -1.2px; }
.page-head__desc { margin-top: var(--space-3); font-size: var(--fs-lead); font-weight: 500; color: var(--text-body); }

/* ==========================================================================
   15. 레이아웃 컴포넌트 — 히어로 · 분할 · 그리드 · 클로징 (반응형 포함)
   ========================================================================== */
/* 히어로 — 홈은 .hero, 하위 페이지는 .page-head */
.hero { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); padding: var(--space-section) var(--pad-x); background: var(--grad-hero); text-align: center; }
.hero__eyebrow { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border: 1px solid var(--brand-300); border-radius: var(--radius-pill); background: rgba(255,255,255,.76); color: var(--brand-500); font-size: var(--fs-xs); font-weight: 600; }
.hero__title { font-size: var(--fs-display); font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; text-wrap: balance; }
.hero__desc { max-width: 700px; font-size: var(--fs-lead); font-weight: 500; color: var(--text-body-strong); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); }

/* 분할 — 글 + 그림 (좌우 → 좁은 화면에서 위아래) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.split--reverse > :first-child { order: 2; }
.split__text { display: grid; gap: var(--space-4); }

/* 카드 그리드 — 4 → 2 → 1열 자동 접힘 */
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 클로징 — 페이지 끝 가입 유도 박스 */
.closing { padding: 0 var(--pad-x) var(--space-section-sm); }
.closing__box { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); max-width: var(--narrow-width); margin: 0 auto; padding: var(--space-16); border-radius: var(--radius-2xl); background: var(--grad-closing); text-align: center; }
.closing__title { font-size: var(--fs-h1); font-weight: 700; line-height: 1.3; letter-spacing: -0.025em; color: #fff; text-shadow: 2px 2px 8px rgba(0,0,0,.2); text-wrap: balance; }
.closing__desc { font-size: var(--fs-lead); font-weight: 500; color: #fff; opacity: .9; }
/* 클로징 (뉴스레터) — 새 기준. 면 배경 bg-subtle, 박스·그라데이션 없음.
   기존 그라데이션 박스(.closing__box)는 화면 교체 전까지만 유지 */
.closing--newsletter { padding: 80px var(--pad-x); background: var(--grad-closing); }
.closing--newsletter .closing__box { max-width: none; padding: 0; border-radius: 0; background: none; gap: var(--space-3); }
.closing--newsletter .closing__title { font-size: var(--fs-h2); letter-spacing: -0.025em; line-height: 1.4; color: #0f1e4a; text-shadow: none; }
.closing--newsletter .closing__desc { font-size: var(--fs-sm); font-weight: 500; color: #1e3a8a; opacity: 1; }
.closing--newsletter .btn { margin-top: var(--space-4); }
.closing--newsletter .btn--primary, .hero .btn--primary { box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .5); }  /* 히어로·클로징 메인 버튼 — 파란 그림자 */
/* 히어로·클로징 메인 버튼만 hover 시 흰 바탕 + 파란 글자 (그 외 btn--primary는 brand-700) */
.closing--newsletter .btn--primary:hover, .hero .btn--primary:hover { background: var(--surface); color: var(--brand-500); }

/* 미디어 · 유틸리티 */
.media { display: block; max-width: 100%; height: auto; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }
.only-mobile { display: none !important; }  /* 표시 전환 유틸 — 반드시 이겨야 하므로 예외적으로 !important */
.br-pc { display: inline; }                    /* PC에서만 줄바꿈하는 <br class="br-pc"> */

/* ==========================================================================
   16. 반응형 — 모바일 메뉴 · 구간별 접기
   구간: ≤1279 · ≤1099 · ≤859 · ≤767 (tokens.css와 같음)
   ========================================================================== */
.gnb__menu { display: none; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--text-body-strong); }
.gnb__menu:hover { background: var(--bg-subtle); }
.gnb__menu svg { width: 24px; height: 24px; }
.gnb__menu .ic-close { display: none; }
.gnb__menu[aria-expanded="true"] .ic-open { display: none; }
.gnb__menu[aria-expanded="true"] .ic-close { display: block; }
.gnb__mobile { display: none; }

@media (max-width: 1099px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: var(--space-10); }
}
@media (max-width: 859px) {
  .split, .split--reverse { grid-template-columns: minmax(0, 1fr); }
  .split--reverse > :first-child { order: 0; }
  .closing__box { padding: var(--space-12) var(--space-8); }
  .sec-head { margin-bottom: var(--space-10); }
}
@media (max-width: 767px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: var(--space-4); }
  .hero__actions { flex-direction: column; align-self: stretch; }
  .hero__actions .btn { width: 100%; }
  .closing__box { padding: var(--space-10) var(--space-5); border-radius: var(--radius-xl); }
  .sec-head { margin-bottom: var(--space-8); gap: var(--space-3); }
  .only-pc { display: none !important; }
  .only-mobile { display: revert !important; }
  .br-pc { display: none; }
  .tabs { overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad-x)); padding: 0 var(--pad-x); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .feed__meta { flex-wrap: wrap; white-space: normal; row-gap: 2px; }
  .acc__q { padding: 18px 2px; font-size: 16px; gap: var(--space-3); }
  .acc__a { padding: 0 2px 20px 40px; font-size: var(--fs-sm); }
  .search { height: 50px; }
  .card { padding: var(--space-6) var(--space-5); }
}

@media (max-width: 1099px) {
  .feed { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .feed__col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 859px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .beta-bar { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-size: var(--fs-xs); text-align: center; row-gap: 4px; }
  .gnb__nav, .gnb__right { display: none; }
  .gnb__menu { display: inline-flex; }
  .gnb__mobile:not([hidden]) {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    padding: var(--space-2) var(--pad-x) var(--space-6); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .gnb__mobile > a { padding: 14px 0; font-size: 16px; font-weight: 600; color: var(--text-body-strong); border-bottom: 1px solid var(--bg-subtle); }
  .gnb__mobile > a[aria-current="page"] { color: var(--brand-500); }
  .gnb__mobile > a.gnb__mobile-sub { padding-left: 16px; font-size: 15px; font-weight: 500; }
  .gnb__mobile > a .badge { margin-left: 6px; vertical-align: 1px; }
  .gnb__mobile-btns { display: flex; gap: var(--space-2); padding-top: var(--space-4); }
  .gnb__mobile-btns .gnb__btn { flex: 1; justify-content: center; height: 44px; }
  .feed { grid-template-columns: 1fr; }
  .stat { padding: var(--space-4) var(--space-5); }
  .form__row { grid-template-columns: 1fr; }
  .page-head { padding: 56px var(--pad-x) 40px; }
  /* 푸터 규칙은 shell.css로 통일(2026-11-10) */
  .phone { width: 300px; }
  .btn { height: 48px; padding: 0 24px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  /* 접근성 리셋 — 모든 애니메이션을 확실히 끄기 위해 예외적으로 !important */
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 빈 상태 */
.empty { padding: 64px 0; text-align: center; font-size: var(--fs-body); color: var(--text-muted); }

/* 클로징(뉴스레터형) 반응형 높이 */
@media (max-width: 859px) { .closing--newsletter { padding: 64px var(--pad-x); } }
@media (max-width: 767px) { .closing--newsletter { padding: 56px var(--pad-x); } .closing--newsletter .closing__box { padding: 0; border-radius: 0; } }

/* ---- 클로징 2 · 구독형 (.closing.closing--subscribe) — 블로그 하단 「뉴스레터 구독」 기준
   흰 바탕 · 위 구분선 · 여백 48/70(≤767 40/56) · 제목 h2(40/30/24) · 설명 14 · 버튼 48px pill (일반 primary hover) */
.closing--subscribe { padding: 48px var(--pad-x) 70px; background: none; }
.closing--subscribe .closing__box { max-width: none; padding: 40px 0 0; border-top: 1px solid var(--line); border-radius: 0; background: none; gap: var(--space-3); }
.closing--subscribe .closing__title { font-size: var(--fs-h2); line-height: 1.4; letter-spacing: -0.025em; color: var(--text-heading); text-shadow: none; }
.closing--subscribe .closing__desc { font-size: var(--fs-sm); font-weight: 500; color: var(--text-body-strong); opacity: 1; }
.closing--subscribe .closing__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-3); }
.closing--subscribe .btn { height: 48px; font-size: 16px; }
@media (max-width: 767px) { .closing--subscribe { padding: 40px var(--pad-x) 56px; } .closing--subscribe .closing__box { padding: 40px 0 0; border-radius: 0; } }
