@charset "utf-8";
/* ==========================================================================
   rb.BoardFactory — 메인화면

   목업 mockup/css/style.css 의 3~13절과 16절(반응형)을 그대로 옮긴 것이다.
   port_main_css.py 가 만든다. 목업을 고치고 다시 돌리면 반영된다.

   손댄 것은 충돌하는 클래스 이름 둘뿐이다. 나머지 244개는 그누보드/리빌더
   CSS 와 겹치지 않아 그대로 쓴다 (전수 대조로 확인).
       .btn    -> .bf-btn      그누보드 default.css 와 충돌
       .inner  -> .bf-inner    그누보드 default.css 와 충돌

   포함 섹션
      3. 메인 비주얼
      4. 퀵 카테고리
      5. 본문 레이아웃
      6. 보드DB 갤러리
      7. 게시글 리스트
      8. 자료실 리스트
      9. 띠배너
     10. 콘텐츠샵
     11. 사이드바 위젯
     12. 하단 와이드 배너
     13. 푸터
     16. 반응형
   ========================================================================== */

/* ==========================================================================
   4. 퀵 카테고리
   ========================================================================== */
.sec-quick { padding: 26px 0 0; }
/* ==========================================================================
   5. 본문 레이아웃
   ========================================================================== */
.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side-w);
  gap: var(--gap);
  padding-top: 34px; padding-bottom: 60px;
  align-items: start;
}
.content-main { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.content-side { display: flex; flex-direction: column; gap: 18px; }

/* 섹션 박스 공통 */
.sec {
  padding: 26px 28px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.sec-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.sec-tit {
  font-size: var(--md-tit-size, 21px); font-weight: var(--md-tit-weight, 700); color: var(--ink-900);
  letter-spacing: -.7px;
}
/* 리빌더 모듈설정의 제목 색 · 크기 · 굵기 — 스킨이 섹션에 --md-tit-* 로 넘긴다(skin.lib.php bf_md).
   고른 색은 라이트에서만 쓴다 — 다크 바탕에서 안 보이는 색일 수 있다. */
:root:not([data-theme="dark"]) .sec-tit { color: var(--md-tit-color, var(--ink-900)); }
.sec-tit strong { color: var(--sky-t2); font-weight: 800; }
.sec-desc {
  padding-left: 2px;
  font-size: 13.5px; color: var(--ink-400);
}
.sec-more {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: auto;
  font-size: 13.5px; font-weight: 600; color: var(--ink-500);
  transition: color .2s;
}
.sec-more .ico { width: 14px; height: 14px; stroke-width: 2.4; transition: transform .2s; }
.sec-more:hover { color: var(--sky-t2); }
.sec-more:hover .ico { transform: translateX(3px); }
.sec-more-ico {
  width: 28px; height: 28px; justify-content: center;
  border-radius: 50%; background: var(--sky-50); color: var(--sky-t2);
}
.sec-more-ico .ico { width: 15px; height: 15px; }
.sec-more-ico:hover { background: var(--sky-100); }
.sec-more-ico:hover .ico { transform: none; }

/* 탭 버튼 */
.tab-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.tab-btn {
  height: 34px; padding: 0 15px;
  border-radius: var(--r-full);
  background: var(--sky-50);
  font-size: 14px; font-weight: 600; color: var(--ink-500);
  transition: all .2s;
}
.tab-btn:hover { background: var(--sky-100); color: var(--sky-t3); }
.tab-btn.on { background: var(--sky-500); color: #fff; box-shadow: 0 3px 10px rgba(62,159,222,.28); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }


/* ==========================================================================
   6. 보드DB 갤러리 → rb.css/part/gallery.css
   ========================================================================== */


/* ==========================================================================
   7. 게시글 리스트
   ========================================================================== */
.post-list li + li { border-top: 1px dashed var(--line); }
.post-list a {
  display: flex; align-items: center; gap: 12px;
  height: 46px; padding: 0 4px;
  border-radius: var(--r-xs);
  transition: background .18s;
}
.post-list a:hover { background: var(--sky-50); }
.p-cate {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; height: 23px; padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--sky-100); color: var(--sky-t3);
  font-size: 12px; font-weight: 600;
}
.p-cate.c-rev { background: #E4F8F3; color: #0F9D86; }
.p-cate.c-qna { background: #FFF3E5; color: #D9821B; }
:root[data-theme="dark"] .p-cate.c-rev { background: #113630; color: #4FD9B8; }
:root[data-theme="dark"] .p-cate.c-qna { background: #3A2C17; color: #F3B155; }
.p-tit {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; color: var(--ink-700);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.post-list a:hover .p-tit { color: var(--sky-t3); text-decoration: underline; }
.p-reply {
  flex: none;
  font-family: var(--font-en);
  font-size: 12px; font-weight: 700; color: var(--point);
}
.p-reply::before { content: '['; }
.p-reply::after { content: ']'; }
.p-new {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--mint); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
}
.p-info {
  flex: none;
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--ink-400);
}
.p-info em { color: var(--ink-500); font-weight: 500; }
.p-view { display: inline-flex; align-items: center; gap: 3px; }
.p-view .ico { width: 13px; height: 13px; }

/* 점 리스트 (공지/이벤트) */
.dot-list li + li { border-top: 1px dashed var(--line); }
.dot-list a {
  display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 4px;
  border-radius: var(--r-xs);
  transition: background .18s;
}
.dot-list a:hover { background: var(--sky-50); }
.dot-list .p-tit::before {
  content: ''; flex: none;
  width: 4px; height: 4px; margin-right: 4px;
  border-radius: 50%; background: var(--sky-300);
}
.dot-list .p-date { flex: none; font-size: 12.5px; color: var(--ink-400); }
.dot-list a:hover .p-tit { color: var(--sky-t3); }


/* ==========================================================================
   8. 자료실 리스트 → rb.css/part/file.css
   ========================================================================== */


/* ==========================================================================
   9. 띠배너
   ========================================================================== */

/* ==========================================================================
   10. 콘텐츠샵
   ========================================================================== */

/* 공지 / 이벤트 2단 */
.sec-half { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; }
.sec-half .sec-tit { font-size: var(--md-tit-size, 19px); }


/* ==========================================================================
   11. 사이드바 위젯
   ========================================================================== */
.widget {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.widget-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-bottom: 13px; margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.widget-tit {
  display: flex; align-items: center; gap: 6px;
  font-size: 16px; font-weight: 700; color: var(--ink-900);
}
.widget-tit .ico { width: 17px; height: 17px; color: var(--sky-t1); }


/* --- 11-1. 아웃로그인 --- */


.chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--ink-500); }
/* 이 체크박스는 CSS 로 직접 그린다(테두리 · 둥근 모서리 · 체크 표시). 그러려면
   브라우저 기본 그림을 꺼야 한다 — 목업 reset.css:62 가 하던 일이다.

   우리 base.css 는 그 규칙을 전역으로 옮기지 않고 체크박스·라디오를 일부러
   뺐다. 그누보드·영카트 폼의 체크박스는 스스로 그리지 않아서, 전역으로 끄면
   아예 안 보이기 때문이다. 대신 직접 그리는 부품에만 여기서 켠다. */
.chk input {
  width: 16px; height: 16px;
  -webkit-appearance: none; appearance: none;
  border: 1px solid var(--ink-300); border-radius: 4px;
  background: var(--surface);
  cursor: pointer; transition: all .15s;
}
.chk input:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 2px; }
.chk input:checked {
  background: var(--sky-500); border-color: var(--sky-500);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m3.5 8.4 3 3 6-6.4'/%3E%3C/svg%3E");
  background-size: 100%;
}


.mem-lv {
  display: block; margin-top: 2px;
  font-size: 11px; font-weight: 600; color: var(--sky-t2);
}
.mem-gauge { display: block; height: 6px; border-radius: var(--r-full); background: var(--sky-100); overflow: hidden; }
.mem-gauge i { display: block; height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--sky-400), var(--sky-600)); }

/* ==========================================================================
   12. 하단 와이드 배너
   ========================================================================== */


/* ==========================================================================
   16. 반응형
   ========================================================================== */

/* ---------- 1440 이하 ---------- */
@media (max-width: 1440px) {
  :root { --inner: 1200px; --gap: 24px; }
}

/* ---------- 1280 이하 ---------- */
@media (max-width: 1280px) {
  :root { --side-w: 280px; }
  .header-main .bf-inner { gap: 20px; }
  .header-search { max-width: none; }
  .rank-roll-view { width: 130px; }
  .gnb-link { padding: 0 18px; font-size: 16px; }
  .gnb-link::after { left: 18px; right: 18px; }
}

/* ---------- 1080 이하 : 사이드바 하단 이동 ---------- */
@media (max-width: 1080px) {
  .header-util a { width: 50px; }
  .util-txt { display: none; }
  .search-keyword { display: none; }

  .content-wrap { grid-template-columns: minmax(0, 1fr); }
  .content-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }


}

/* ---------- 900 이하 : 모바일 전환 ---------- */
@media (max-width: 900px) {
  :root { --header-h: 58px; }

  .header-top { display: none; }
  .header-main .bf-inner { height: 58px; gap: 8px; padding: 0 10px; }
  .bf-btn-mo { display: flex; }
  .logo { flex: 1 1 auto; }
  .logo a { gap: 8px; }
  .logo-mark { width: 34px; height: 34px; border-radius: 10px; }
  .logo-mark .ico { width: 19px; height: 19px; }
  .logo-txt strong { font-size: 19px; }
  .logo-txt em { font-size: 8px; letter-spacing: 1.8px; }
  .header-search { display: none; }
  .header-util { gap: 0; }
  .header-util li:nth-child(2) { display: none; }
  .header-util a { width: 42px; padding: 0; }
  .util-cnt { top: 2px; margin-left: 1px; }

  #bf_header { position: sticky; top: 0; }
  #bf_gnb {
    border-top: 1px solid var(--line-soft);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #bf_gnb::-webkit-scrollbar { display: none; }
  #bf_gnb .bf-inner { padding: 0 10px; }
  .gnb-list { flex-wrap: nowrap; }
  .gnb-link { height: 46px; padding: 0 14px; font-size: 15px; white-space: nowrap; }
  .gnb-link::after { left: 14px; right: 14px; }
  .gnb-sub { display: none; }
  .gnb-right { display: none; }
  body.is-sticky #bf_gnb { position: static; box-shadow: none; animation: none; }

  .mo-search, .mo-drawer { display: block; }
  .mo-tabbar { display: flex; }

  .bf-inner { padding: 0 14px; }
  .sec-visual { padding-top: 16px; }

  .sec-quick { padding-top: 16px; }

  .content-wrap { padding-top: 18px; padding-bottom: 30px; gap: 16px; }
  .content-main { gap: 16px; }
  .content-side { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .sec { padding: 18px 16px 20px; border-radius: var(--r-md); }
  .sec-head { padding-bottom: 13px; margin-bottom: 14px; gap: 6px 10px; }
  .sec-tit { font-size: 18px; }
  .sec-desc { display: none; }
  .sec-more { font-size: 12.5px; }
  .tab-btns {
    order: 3; width: 100%;
    flex-wrap: nowrap; overflow-x: auto;
    -ms-overflow-style: none; scrollbar-width: none;
    padding-bottom: 2px;
  }
  .tab-btns::-webkit-scrollbar { display: none; }
  .tab-btn { flex: none; height: 32px; padding: 0 13px; font-size: 13px; }

  /* order 는 .post-list 안에서만 — 전역으로 두면 서브페이지 게시판 목록의
     말머리(.p-cate)까지 제목 뒤로 밀린다 */
  .post-list a { height: auto; flex-wrap: wrap; padding: 11px 4px; gap: 8px; }
  .post-list .p-tit { flex: 1 1 100%; order: 2; }
  .post-list .p-cate { order: 1; }
  .post-list .p-info { order: 3; flex: 1 1 100%; gap: 10px; }
  .p-tit { white-space: normal; font-size: 14.5px; line-height: 1.45; }

  .sec-half { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dot-list a { height: auto; padding: 11px 4px; }
  .dot-list .p-tit { white-space: normal; line-height: 1.45; font-size: 14.5px; }

  #bf_top { right: 14px; bottom: 72px; width: 46px; height: 46px; }
  #bf_top .ico { width: 17px; height: 17px; }


}

/* ---------- 프린트 ---------- */
@media print {
  #bf_header, #bf_top, .mo-tabbar { display: none !important; }
  body { background: var(--surface); }
  .sec, .widget { box-shadow: none; border: 1px solid #ddd; }


}

/* ---------- 모션 최소화 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}