/* 공통 스타일 — tools/build-site.mjs 가 아트보드 <helmet> 에서 추출. 직접 수정하지 마세요. */
body{margin:0}
html{scroll-behavior:smooth;scroll-padding-top:84px}
.ttc-top{position:fixed;right:24px;bottom:24px;z-index:60;width:52px;height:52px;display:flex;align-items:center;justify-content:center;background:#13489D;color:#FFFFFF;border-radius:50%;box-shadow:0 6px 18px rgba(15,26,46,.25);text-decoration:none}
.ttc-top:hover{background:#0B2550;color:#FFFFFF}
.ttc-top:focus-visible{outline:3px solid #EF781E;outline-offset:3px}
@supports (animation-timeline: scroll()){.ttc-top{animation:ttcShow linear both;animation-timeline:scroll(root);animation-range:0 480px}}
@keyframes ttcShow{from{opacity:0;visibility:hidden;transform:translateY(12px)}to{opacity:1;visibility:visible;transform:none}}
a{color:#0F1A2E}a:hover{color:#4B5563}

/* ── 헤더 ─────────────────────────────────────────────────────────
   넓은 화면: 로고 · 메뉴 · CTA 가 한 줄. (아트보드 원본 레이아웃)
   1300px 미만: 한 줄 바(로고 + [메뉴] 버튼)로 접고, 메뉴는 펼침 패널로. */
.ttc-menu {
  display: flex; flex: 1 1 auto; min-width: 0;
  flex-wrap: wrap; align-items: center; gap: 12px 40px;
}
.ttc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px }
.ttc-burger { display: none }

@media (max-width: 1299px) {
  .ttc-headbar {
    flex-wrap: nowrap !important;
    min-height: 60px !important;
    gap: 12px !important;
    position: relative;
  }
  .ttc-logo img { height: 30px !important }

  .ttc-burger {
    display: flex; align-items: center; gap: 8px;
    flex: none; margin-left: auto;
    min-height: 44px; padding: 0 12px 0 10px;
    border: 1px solid #0F1A2E; background: #FFFFFF; color: #0F1A2E;
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  }
  .ttc-burger:focus-visible { outline: 3px solid #EF781E; outline-offset: 2px }
  .ttc-burger__close { display: none }
  .ttc-header.is-open .ttc-burger { background: #13489D; color: #FFFFFF; border-color: #13489D }
  .ttc-header.is-open .ttc-burger__open { display: none }
  .ttc-header.is-open .ttc-burger__close { display: block }

  /* 펼침 패널 — 헤더 높이를 늘리지 않도록 헤더 바 아래에 띄웁니다. */
  .ttc-menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; flex-wrap: nowrap; gap: 0;
    align-items: stretch;
    background: #FFFFFF;
    border-top: 1px solid #0F1A2E; border-bottom: 1px solid #0F1A2E;
    box-shadow: 0 14px 28px rgba(15, 26, 46, .16);
    max-height: calc(100vh - 60px); overflow-y: auto;
    overscroll-behavior: contain;
  }
  .ttc-header.is-open .ttc-menu { display: flex }

  /* 원본 인라인 스타일의 flex-wrap: wrap 이 세로 배치에서 열 넘김을 일으키므로 끕니다. */
  .ttc-nav {
    flex: none !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  .ttc-nav > a {
    display: flex !important; align-items: center;
    min-height: 52px; padding: 0 clamp(20px, 4vw, 48px) !important;
    border-bottom: 1px solid #D4DCE8;
    font-size: 16px !important; font-weight: 600 !important;
  }
  .ttc-nav > a[aria-current="page"] {
    border-bottom: 1px solid #D4DCE8 !important;
    border-left: 4px solid #EF781E;
    padding-left: calc(clamp(20px, 4vw, 48px) - 4px) !important;
    background: #F3F6FA;
  }

  .ttc-cta { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0 !important }
  .ttc-cta > a {
    justify-content: center;
    min-height: 56px !important;
    padding: 0 clamp(20px, 4vw, 48px) !important;
    border-top: 0 !important; border-left: 0 !important; border-right: 0 !important;
  }
}

/* ── 도입 문의: 관심 사업 선택 칩 ── */
.ttc-chips { display: flex; flex-wrap: wrap; gap: 8px }
.ttc-chip {
  min-height: 44px; padding: 0 18px; font: inherit; font-size: 14px; cursor: pointer;
  background: #FFFFFF; color: #0F1A2E; border: 1.5px solid #8A919C; font-weight: 500;
}
.ttc-chip:hover { border-color: #13489D }
.ttc-chip[aria-pressed="true"] { background: #13489D; color: #FFFFFF; border-color: #13489D; font-weight: 700 }
.ttc-chip:focus-visible, .ttc-form :focus-visible { outline: 3px solid #EF781E; outline-offset: 2px }
.ttc-form { border: 0; margin: 0; position: relative }
.ttc-form button[disabled] { opacity: .55; cursor: progress }

/* ── 도입 문의: 전송 결과 안내 ── */
.ttc-formstatus {
  flex: 1 1 100%; margin: 0;
  padding: 14px 18px; font-size: 14.5px; line-height: 1.6;
  border-left: 3px solid #8A919C; background: #F3F6FA; color: #374151;
}
.ttc-formstatus.is-sending { border-left-color: #13489D }
.ttc-formstatus.is-ok      { border-left-color: #4F8C1F; background: #F1F8EA; color: #28510F }
.ttc-formstatus.is-error   { border-left-color: #B4322A; background: #FDF2F1; color: #7C241E }

/* ── 맨 위로 버튼: animation-timeline 미지원 브라우저는 site.js 가 토글 ── */
.ttc-top--js {
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.ttc-top--js.is-visible { opacity: 1; visibility: visible; transform: none }
