/* =========================================================================
   myip_faq_b3 — FAQ 게시판 스킨 (company/business3.html 과 같은 디자인)
   게시판 상·하단(head.bbs.php 등) 안에서 동작하도록 모든 선택자는 .fq3 아래.
   ========================================================================= */
.fq3 {
  --b3-blue: #0f52ba;
  --b3-blue-2: #1673ea;
  --b3-navy: #14213d;
  --b3-yellow: #ffe14d;
  --b3-ink: #111827;
  --b3-ink-2: #3f4856;
  --b3-ink-3: #5b6472;
  --b3-line: #e3e7ee;
  --b3-tint: #eef4ff;
  --b3-ease: cubic-bezier(.16, 1, .3, 1);

  width: 100%;
  margin: 8px 0 40px;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--b3-ink);
  word-break: keep-all;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  display: flow-root; /* 휴대폰에서 옆의 float 사이드바에 내용이 일부만 감기지 않도록 독립 영역으로 */
}
.fq3 *, .fq3 *::before, .fq3 *::after { box-sizing: border-box; }
/* 기존 default.css / common.css 의 h1~h6·p 규칙(dotum, 12px, left, break-all) 무력화 */
.fq3 * { font-family: inherit; }
.fq3 :where(h2, h3, p, ol, ul, li, figure) { margin: 0; padding: 0; }
.fq3 :where(ol, ul) { list-style: none; }
.fq3 :where(p, li, a, span, b, h2, h3) { word-break: keep-all; overflow-wrap: break-word; }
.fq3 a { color: inherit; text-decoration: none; }
.fq3 ::selection { background: var(--b3-yellow); color: var(--b3-ink); }
.fq3 :focus-visible { outline: 3px solid var(--b3-blue); outline-offset: 3px; border-radius: 8px; }
.fq3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 버튼 ---------- */
.fq3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 2px solid transparent; font-size: 14px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--b3-ease); }
.fq3-btn:active { transform: translateY(1px); }
.fq3-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fq3-btn--blue { background: var(--b3-blue); color: #fff !important; }
.fq3-btn--blue:hover { background: var(--b3-navy); }
.fq3-btn--line { border-color: var(--b3-blue); background: #fff; color: var(--b3-blue) !important; }
.fq3-btn--line:hover { background: var(--b3-blue); color: #fff !important; }
.fq3-btn--ghost { background: var(--b3-tint); color: var(--b3-ink-2) !important; border: 0; }
.fq3-btn--ghost:hover { background: #dfe9fb; color: var(--b3-ink) !important; }
.fq3-btn--yellow { background: var(--b3-yellow); color: var(--b3-navy) !important; }
.fq3-btn--yellow:hover { background: #fff; }

/* ---------- 머리: 파란 띠 ---------- */
.fq3-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 28px 30px; border-radius: 22px; background: var(--b3-blue); color: #fff; }
.fq3-hero__title { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.25; color: #fff; text-align: left; }
.fq3-hero__sub { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--b3-yellow); }
.fq3-hero__tel { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); color: #fff !important; transition: background-color .2s; }
.fq3-hero__tel:hover { background: rgba(255, 255, 255, .2); }
.fq3-hero__tel svg { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--b3-yellow); fill: none; stroke: var(--b3-navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.fq3-hero__tel span { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; color: #fff; line-height: 1.3; }
.fq3-hero__tel b { font-size: 18px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ---------- 자주 찾는 질문 ---------- */
.fq3-top { margin-top: 14px; padding: 18px 20px; border-radius: 18px; background: var(--b3-tint); }
.fq3-top ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.fq3-top a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 6px; border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--b3-ink); transition: background-color .2s, color .2s; }
.fq3-top a:hover { background: #fff; color: var(--b3-blue); }
.fq3-top li:first-child a { color: var(--b3-blue); }
.fq3-no { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; background: var(--b3-blue); color: #fff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- 검색 ---------- */
.fq3-search { display: flex; gap: 8px; margin-top: 22px; }
.fq3-search select, .fq3-search__input { height: 48px; border-radius: 14px; border: 1.5px solid var(--b3-line); background: #fff; font: inherit; font-size: 15px; color: var(--b3-ink); transition: border-color .2s; }
.fq3-search select { flex: none; padding: 0 12px; }
.fq3-search__input { flex: 1; min-width: 0; padding: 0 16px; }
.fq3-search__input::placeholder { color: var(--b3-ink-3); }
.fq3-search select:hover, .fq3-search__input:hover { border-color: #c9d2df; }
.fq3-search select:focus, .fq3-search__input:focus { outline: none; border-color: var(--b3-blue); box-shadow: 0 0 0 3px var(--b3-tint); }
.fq3-search .fq3-btn { min-height: 48px; border-radius: 14px; padding: 0 20px; }

/* ---------- 분류 탭 ---------- */
.fq3-tabs { display: flex; gap: 6px; margin-top: 16px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.fq3-tabs::-webkit-scrollbar { display: none; }
.fq3-tabs a { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--b3-line); background: #fff; font-size: 14px; font-weight: 700; color: var(--b3-ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.fq3-tabs a:hover { border-color: var(--b3-blue); color: var(--b3-blue); }
.fq3-tabs a[aria-current="page"] { background: var(--b3-navy); border-color: var(--b3-navy); color: #fff; }

/* ---------- 목록 ---------- */
.fq3-list__head { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 8px; padding-bottom: 10px; border-bottom: 2px solid var(--b3-ink); font-size: 14px; color: var(--b3-ink-3); }
.fq3-list__head b { color: var(--b3-blue); font-variant-numeric: tabular-nums; }
.fq3-check-all { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fq3-item { position: relative; display: flex; align-items: center; border-bottom: 1px solid var(--b3-line); }
.fq3-item__check { flex: none; width: 18px; height: 18px; margin: 0 4px 0 6px; accent-color: var(--b3-blue); }
.fq3-item__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 16px 8px; border-radius: 12px; transition: background-color .2s; }
.fq3-item__link:hover { background: var(--b3-tint); }
.fq3-item.is-current .fq3-item__link { background: var(--b3-tint); }
.fq3-q, .fq3-a { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; font-size: 15px; font-weight: 800; }
.fq3-q { background: var(--b3-tint); color: var(--b3-blue); }
.fq3-item__link:hover .fq3-q, .fq3-item.is-current .fq3-q { background: var(--b3-blue); color: #fff; }
.fq3-item__body { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.fq3-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: #fff; border: 1px solid #c9d7f0; font-size: 12px; font-weight: 700; color: var(--b3-blue); white-space: nowrap; }
.fq3-tag--notice { background: var(--b3-navy); border-color: var(--b3-navy); color: var(--b3-yellow); }
.fq3-item__title { font-size: 16px; font-weight: 700; letter-spacing: -0.025em; color: var(--b3-ink); }
.fq3-item__link:hover .fq3-item__title { color: var(--b3-blue); }
.fq3-item__cmt { font-size: 13px; font-weight: 800; color: var(--b3-blue-2); }
.fq3-mark { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--b3-ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fq3-mark--reply { stroke: var(--b3-blue); }
.fq3-new { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--b3-yellow); color: var(--b3-navy); font-size: 10px; font-weight: 800; }
.fq3-item__meta { flex: none; display: flex; gap: 12px; font-size: 13px; color: var(--b3-ink-3); font-variant-numeric: tabular-nums; }
.fq3-item__go { flex: none; width: 18px; height: 18px; fill: none; stroke: #9aa4b2; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--b3-ease), stroke .2s; }
.fq3-item__link:hover .fq3-item__go { transform: translateX(3px); stroke: var(--b3-blue); }
.fq3-empty { padding: 40px 12px; text-align: center; color: var(--b3-ink-2); }
.fq3-empty p:first-child { font-size: 17px; font-weight: 800; color: var(--b3-ink); margin-bottom: 6px; }
.fq3-empty a { color: var(--b3-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 버튼 줄 / 페이지 ---------- */
.fq3-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fq3-actions > div { display: flex; flex-wrap: wrap; gap: 6px; }
.fq3-page { margin-top: 22px; text-align: center; }
.fq3-page .pg_wrap, .fq3-page .pg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.fq3-page .pg_page, .fq3-page .pg_current, .fq3-page__part { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 12px; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fq3-page .pg_page, .fq3-page__part { background: #fff; border: 1.5px solid var(--b3-line); color: var(--b3-ink-2); transition: border-color .2s, color .2s; }
.fq3-page .pg_page:hover, .fq3-page__part:hover { border-color: var(--b3-blue); color: var(--b3-blue); }
.fq3-page .pg_current { background: var(--b3-blue); color: #fff; }
.fq3-page .sound_only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 추가 문의 (남색 띠) ---------- */
.fq3-help { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-top: 36px; padding: 22px 26px; border-radius: 18px; background: #0c1226; color: #c3cad8; }
.fq3-help b { color: #fff; font-weight: 800; }
.fq3-help > div { display: flex; align-items: center; gap: 16px; }
.fq3-help__tel { font-weight: 800; color: var(--b3-yellow) !important; font-variant-numeric: tabular-nums; }

/* ---------- 글 보기 ---------- */
.fq3-view__head { padding: 26px 28px; border-radius: 22px; background: var(--b3-tint); }
.fq3-view__tags { display: flex; align-items: center; gap: 8px; }
.fq3-view__head .fq3-q { background: var(--b3-blue); color: #fff; }
.fq3-view__title { margin-top: 14px !important; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.35; color: var(--b3-ink); text-align: left; text-wrap: balance; }
.fq3-view__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px !important; font-size: 13px; color: var(--b3-ink-3); font-variant-numeric: tabular-nums; }
.fq3-attach { margin-top: 12px; display: grid; gap: 6px; }
.fq3-attach a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--b3-line); font-size: 14px; color: var(--b3-ink-2); transition: border-color .2s; }
.fq3-attach a:hover { border-color: var(--b3-blue); color: var(--b3-blue); }
.fq3-attach svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fq3-attach small { color: var(--b3-ink-3); }
.fq3-view__body { display: flex; gap: 16px; margin-top: 24px; padding: 4px 4px 28px; border-bottom: 1px solid var(--b3-line); }
.fq3-a { background: var(--b3-yellow); color: var(--b3-navy); }
.fq3-view__content { flex: 1; min-width: 0; padding-top: 3px; font-size: 16px; line-height: 1.85; color: var(--b3-ink-2); overflow-wrap: anywhere; }
.fq3-view__content img { max-width: 100% !important; height: auto !important; border-radius: 10px; }
/* 본문의 표는 스크립트가 .fq3-scroll 로 감싸서, width= 로 고정된 넓은 표도 표 모양 그대로 가로 스크롤 */
.fq3-scroll { max-width: 100%; overflow-x: auto; margin: 10px 0; }
.fq3-view__content #writeContents { font-size: inherit; line-height: inherit; }
.fq3-vote { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.fq3-vote b { font-variant-numeric: tabular-nums; }
.fq3-sign { margin-top: 16px; padding: 14px 0; border-top: 1px solid var(--b3-line); text-align: center; }
.fq3-adjacent { display: grid; gap: 6px; margin-top: 24px; }
.fq3-adjacent a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--b3-line); transition: border-color .2s, background-color .2s; }
.fq3-adjacent a:hover { border-color: var(--b3-blue); background: var(--b3-tint); }
.fq3-adjacent span { flex: none; font-size: 13px; font-weight: 700; color: var(--b3-blue); }
.fq3-adjacent b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--b3-ink); }

/* ---------- 댓글 (원본 댓글 스킨 구조 위에 덧입힘) ---------- */
.fq3-comments { margin-top: 20px; font-size: 15px; color: var(--b3-ink-2); }
.fq3-comments td[bgcolor] { background: var(--b3-line) !important; }
.fq3-cmt__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 2px 4px; }
.fq3-cmt__who { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.fq3-cmt__who strong { font-weight: 800; color: var(--b3-ink); }
.fq3-cmt__date, .fq3-cmt__ip { font-size: 13px; color: var(--b3-ink-3); font-variant-numeric: tabular-nums; }
.fq3-cmt__tools { display: flex; align-items: center; gap: 4px; }
.fq3-cmt__body { padding: 4px 2px 14px; font-size: 15px; line-height: 1.75; color: var(--b3-ink-2); overflow-wrap: anywhere; }
.fq3-cmt__secret { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--b3-ink-2); cursor: pointer; }
.fq3-cmt__secret input { width: 16px; height: 16px; accent-color: var(--b3-blue); }
.fq3-comments table { border-collapse: collapse; }
.fq3-comments img[src*="co_title_bg"], .fq3-comments td[background] { background: none !important; }
.fq3 #comment_write { margin-top: 12px; }
.fq3 #comment_write > table, .fq3 #comment_write table[bgcolor] { background: none !important; }
.fq3 #comment_write table { background-image: none !important; border: 0 !important; }
.fq3 #comment_write textarea.tx { width: 100%; min-height: 120px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--b3-line); background: #fff; font: inherit; font-size: 15px; color: var(--b3-ink); resize: vertical; }
.fq3 #comment_write textarea.tx:focus { outline: none; border-color: var(--b3-blue); box-shadow: 0 0 0 3px var(--b3-tint); }
.fq3 #comment_write input.ed { height: 36px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--b3-line); font: inherit; font-size: 14px; }
.fq3-cwrite { margin-left: 8px; min-height: 120px; border-radius: 14px; }
.fq3-cbtn { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; margin-left: 2px; border-radius: 8px; background: var(--b3-tint); font-size: 12px; font-weight: 700; color: var(--b3-ink-2); }
.fq3-cbtn:hover { background: var(--b3-blue); color: #fff; }

/* =========================================================================
   반응형
   ========================================================================= */
/* 휴대폰: 사이드바 틀(css/yn_submenu.css)이 767px 이하에서 화면 폭에 맞춰지므로 그 기준으로 */
@media (max-width: 767px) {
  .fq3-hero { padding: 22px 20px; border-radius: 18px; }
  .fq3-hero__tel { width: 100%; }
  .fq3-top ol { grid-template-columns: minmax(0, 1fr); }
  .fq3-search { flex-wrap: wrap; }
  .fq3-search select { flex: 1 1 100%; }
  .fq3-item__link { flex-wrap: wrap; gap: 6px 12px; padding: 14px 4px; }
  .fq3-item__meta { width: 100%; padding-left: 42px; }
  .fq3-item__go { display: none; }
  .fq3-view__head { padding: 20px; }
  .fq3-help { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .fq3 *, .fq3 *::before, .fq3 *::after { transition-duration: .01ms !important; }
}
