@charset "utf-8";
/* ============================================================
   wetee.kr custom theme — neo-brutalist, card-based, mobile-first
   linkjuso1.com(주소히어) 디자인 시스템 적용판. 게시판 구조/타이틀/설명은 원본 유지,
   시각 스킨(색상·테두리·그림자·타이포)만 교체.
   Loaded after default.css, overrides the legacy fixed-width theme.
   ============================================================ */

:root {
  --wt-primary: #FF3D2E;
  --wt-primary-dark: #d92a1d;
  --wt-primary-light: #ff6b5e;
  --wt-blue: #2E5BFF;
  --wt-yellow: #FFC400;
  --wt-green: #00B37E;
  --wt-purple: #7A3CFF;
  --wt-orange: #FF7A1A;
  --wt-ink: #111111;
  --wt-ink-soft: #444444;
  --wt-muted: #6b7280;
  --wt-bg: #FFFDF5;
  --wt-card: #ffffff;
  --wt-border: #111111;
  --wt-radius: 4px;
  --wt-bd: 2.5px solid #111111;
  --wt-bd-sm: 2px solid #111111;
  --wt-shadow: 4px 4px 0 #111111;
  --wt-shadow-sm: 3px 3px 0 #111111;
  --wt-shadow-hover: 6px 6px 0 #111111;
}

html, body {
  background: var(--wt-bg);
}
body, input, button, textarea, select {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
               "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 15px;
  color: var(--wt-ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--wt-ink); }
a:hover { color: var(--wt-primary); }

/* ---------- unlock fixed desktop-only widths ---------- */
#hd, #wrapper, #ft { min-width: 0; }
#hd_wrapper, #tnb .inner, #gnb .gnb_wrap, #container_wr, #ft_wr, #hd_pop {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 24px;
}
#container_wr { display: flex; flex-wrap: wrap; gap: 24px; padding-left: 24px; padding-right: 24px; }
#container { float: none; width: 100%; margin: 24px 0 0; min-height: 0; }
#aside { float: none; width: 100%; margin: 0 0 24px; padding: 0; }
@media (min-width: 960px) {
  #container_wr { flex-wrap: nowrap; align-items: flex-start; }
  #container { flex: 1 1 auto; width: auto; margin-top: 32px; }
  #aside { flex: 0 0 260px; width: 260px; margin: 32px 0 0; }
}

/* ---------- header ---------- */
#hd { background: var(--wt-card); border-bottom: var(--wt-bd); }
#tnb { background: var(--wt-yellow); border-bottom: var(--wt-bd); font-weight: 800; }
#hd_define li, #hd_qnb li { border-right-color: rgba(17,17,17,0.15); }
#hd_define li a { color: var(--wt-ink); }
#hd_define li.active a { color: var(--wt-primary); font-weight: 900; }
#hd_qnb li a { color: var(--wt-ink); font-weight: 800; }
#hd_qnb .visit .visit-num { background: var(--wt-primary); color: #fff; border: 1.5px solid #111; }

#hd_wrapper { height: auto; padding-top: 20px; padding-bottom: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
#logo { float: none; padding: 0; }
#logo img { height: 34px; width: auto; display: block; }

.hd_sch_wr { float: none; width: auto; flex: 1 1 260px; max-width: 460px; margin-left: 0; padding: 0; }
#hd_sch { border-radius: var(--wt-radius); border: var(--wt-bd); background: #fff; overflow: hidden; box-shadow: var(--wt-shadow-sm); }
#hd_sch #sch_stx { float: left; width: calc(100% - 54px); height: 44px; padding-left: 16px; background: transparent; color: var(--wt-ink); border-radius: 0; font-size: 1em; font-weight: 600; }
#hd_sch #sch_submit { float: left; width: 54px; height: 44px; background: var(--wt-primary); color: #fff; border-radius: 0; border-left: var(--wt-bd-sm); font-weight: 900; }

/* GNB main nav */
#gnb { background: var(--wt-card); }
#gnb #gnb_1dul { border-bottom: var(--wt-bd); overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#gnb #gnb_1dul::-webkit-scrollbar { display: none; }
#gnb .gnb_1dli { float: none; display: inline-block; line-height: 52px; }
.gnb_1da { color: var(--wt-ink); font-weight: 800; }
#gnb .gnb_1dli:hover > a { color: var(--wt-primary); }
#gnb .gnb_menu_btn { background: var(--wt-primary); border: var(--wt-bd-sm); border-radius: var(--wt-radius); margin: 9px 8px 9px 0; height: 38px; width: 44px; box-shadow: var(--wt-shadow-sm); }
.gnb_wrap .gnb_empty { padding: 14px 0; line-height: 1.4; font-size: 0.85em; color: var(--wt-muted); }
#gnb #gnb_1dul { min-height: 0; }
.gnb_wrap .gnb_empty a { color: var(--wt-primary); }

/* ---------- 제휴/광고 배너 (상단, linkjuso1 디자인 이식) ---------- */
.wt_stitle_wrap { text-align: center; margin: 26px 0 16px; }
.wt_stitle {
  display: inline-block; font-weight: 900; font-size: 19px;
  background: var(--wt-ink); color: #fff; padding: 8px 18px;
  border-radius: var(--wt-radius); box-shadow: var(--wt-shadow);
}
.wt_stitle .cr { color: var(--wt-yellow); }

.wt_ad_banners {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 0 0 8px;
}
.wt_ad_ban {
  display: flex; align-items: center; gap: 16px;
  border: var(--wt-bd); border-radius: var(--wt-radius);
  padding: 20px 22px; min-height: 92px; color: #fff;
  box-shadow: var(--wt-shadow); transition: transform .12s ease, box-shadow .12s ease;
}
.wt_ad_ban:hover { transform: translate(-3px,-3px); box-shadow: var(--wt-shadow-hover); }
.wt_ad_ban .big { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.wt_ad_ban .sub { font-size: 13px; font-weight: 700; opacity: .95; margin-top: 4px; }
.wt_ad_ban .cta {
  margin-left: auto; background: #fff; border: 2px solid #111; color: #111;
  font-weight: 900; font-size: 13px; padding: 8px 13px; border-radius: var(--wt-radius);
  white-space: nowrap; flex: none;
}
.wt_ad_a { background: var(--wt-primary); }
.wt_ad_b { background: var(--wt-blue); }
.wt_ad_c { background: var(--wt-green); }
.wt_ad_d { background: var(--wt-yellow); color: #111; }
.wt_ad_d .big { color: #111; }
.wt_ad_e { background: var(--wt-purple); }
.wt_ad_f { background: var(--wt-orange); }
@media (max-width: 900px) {
  .wt_ad_banners { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wt_ad_banners { grid-template-columns: 1fr; }
  .wt_ad_ban .big { font-size: 19px; }
}

/* ---------- 배너 그리드 플러그인 (관리자 > 배너 그리드 관리) 사이트 톤에 맞춤 ---------- */
.bg-grid-wrap { margin: 0 0 8px; }
.bg-grid .bg-item {
  border: var(--wt-bd);
  border-radius: var(--wt-radius);
  box-shadow: var(--wt-shadow-sm);
  background: #fff;
  transition: box-shadow .12s ease, transform .12s ease;
}
.bg-grid a.bg-item:hover { box-shadow: var(--wt-shadow); transform: translate(-2px,-2px); }
@media (max-width: 768px) {
  /* 모바일 2열 폭은 화면상 여유가 없어 가로를 못 키우는 대신, 세로 비율을 30% 늘려 배너 면적을 키움.
     aspect-ratio + height:100% 조합이 그리드 stretch와 충돌해 무시되는 문제가 있어,
     구형 padding-bottom 비율 기법으로 완전히 대체(브라우저 호환성 이슈 없이 확실히 동작). */
  .bg-grid .bg-item {
    position: relative !important;
    height: 0 !important;
    padding-bottom: 32.8% !important; /* 104/317 */
    overflow: hidden;
  }
  .bg-grid .bg-item img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
  }
}

/* ---------- hero banner (index only) ---------- */
.home_hero {
  background: var(--wt-primary);
  border: var(--wt-bd);
  border-radius: var(--wt-radius);
  margin-top: 8px;
  padding: 40px 28px;
  color: #fff;
  box-shadow: var(--wt-shadow);
}
.home_hero_inner { max-width: 720px; }
.home_hero_title { font-size: 1.8em; font-weight: 900; margin-bottom: 8px; letter-spacing: -0.01em; }
.home_hero_desc { font-size: 1.05em; color: rgba(255,255,255,0.92); font-weight: 600; line-height: 1.5; }
@media (max-width: 640px) {
  .home_hero { padding: 28px 20px; margin-top: 8px; }
  .home_hero_title { font-size: 1.4em; }
}

/* ---------- board section cards (homepage grid) ---------- */
.board_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
@media (max-width: 900px) {
  .board_grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .board_grid { grid-template-columns: 1fr; }
}
.board_card {
  background: var(--wt-card);
  border: var(--wt-bd);
  border-radius: var(--wt-radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--wt-shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.board_card:hover { box-shadow: var(--wt-shadow-hover); transform: translate(-2px,-2px); }

/* reskin the .lat widget to sit inside a card cleanly */
.board_card .lat { margin-bottom: 0; }
.board_card .lat_title, .board_card .lat .lat_title { margin: 0 !important; line-height: 1 !important; font-size: 1em !important; }

/* 카테고리 헤더: 이모지 + 색상 (linkjuso1 스타일 이식) */
/* .lat .lat_title a{display:inline-block} (skin 기본 style.css)보다 우선하도록 선택자 강도를 높임 */
.board_card .lat .lat_title a.wt_ch,
.wt_ch {
  display: flex !important;
  width: 100% !important;
  box-sizing: border-box;
  align-items: center; gap: 8px;
  font-weight: 900; font-size: 16px; color: #fff !important;
  padding: 12px 16px; border-bottom: var(--wt-bd-sm);
  text-decoration: none;
}
.wt_ch:hover { color: #fff !important; }
.wt_ch_emoji { font-size: 18px; line-height: 1; }
.wt_ch_more { margin-left: auto; font-weight: 900; font-size: 18px; }
.wt_ch_k1 { background: var(--wt-primary); }
.wt_ch_k2 { background: var(--wt-blue); }
.wt_ch_k3 { background: var(--wt-green); }
.wt_ch_k4 { background: var(--wt-purple); }
.wt_ch_k5 { background: var(--wt-orange); }
.wt_ch_k6 { background: #111; }
.wt_ch_k7 { background: var(--wt-yellow); color: #111 !important; }
.wt_ch_k7:hover { color: #111 !important; }
.wt_ch_k8 { background: #0EA5C9; }

.board_card .lat ul { padding: 10px 16px 4px; }
.board_card .lat li { border-bottom: 1px dashed #ccc; margin-bottom: 8px; padding-bottom: 8px; }
.board_card .lat li:last-child { border-bottom: 0; }
.board_card .lat .wt_rk { display: inline-block; width: 20px; text-align: center; font-size: 12.5px; font-weight: 900; color: #111; }
.board_card .lat .wt_rk.wt_rk_m { font-size: 15px; }
.board_card .lat li a { font-size: 0.98em; font-weight: 700; color: var(--wt-ink-soft); }
.board_card .lat li a:hover { color: var(--wt-primary); }
.board_card .lt_info { padding: 4px 0 0 26px; font-size: 0.85em; color: var(--wt-muted); }
.board_card .lat .lt_more {
  position: static; display: block; width: auto; text-align: right;
  margin: 6px 16px 14px; color: var(--wt-primary); font-weight: 900; font-size: 0.85em;
}

/* legacy 3-col latest sections (top pic list / gallery), keep tidy if present */
.lt_wr { width: 100%; float: none; margin-bottom: 20px; }
.lt_wr:nth-child(3n+1) { clear: none; }
@media (min-width: 720px) {
  .lt_wr { width: 48%; float: left; }
  .lt_wr:nth-child(2n+1) { clear: both; margin-left: 0; }
  .lt_wr:nth-child(2n) { margin-left: 4%; }
}
@media (min-width: 1080px) {
  .lt_wr { width: 31.3%; }
  .lt_wr:nth-child(2n) { margin-left: 2%; }
  .lt_wr:nth-child(3n+1) { clear: both; margin-left: 0; }
  .lt_wr:nth-child(3n+2), .lt_wr:nth-child(3n) { margin-left: 2%; }
}

/* ---------- footer ---------- */
#ft { background: var(--wt-ink); border-top: var(--wt-bd); }
#ft_wr { max-width: 1200px; padding: 36px 20px; }
#ft_wr .ft_cnt { width: 100%; float: none; padding: 0 0 24px; }
@media (min-width: 860px) {
  #ft_wr { display: flex; flex-wrap: wrap; gap: 24px; }
  #ft_wr .ft_cnt { width: auto; flex: 1 1 220px; padding: 0; }
}
#ft_link a { font-weight: 800; opacity: 0.9; }
#ft_link a:hover { opacity: 1; color: var(--wt-yellow); }
#ft_company { color: #b7bcc4; }
#ft_copy { width: 100%; max-width: none; }

/* ---------- buttons / forms accent ---------- */
.btn_submit { background: var(--wt-primary); border: var(--wt-bd-sm); font-weight: 800; box-shadow: var(--wt-shadow-sm); }
.btn_submit:hover { background: var(--wt-primary-dark); }
.pg_current { background: var(--wt-primary); border-color: #111; color: #fff; font-weight: 900; }
input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(255, 61, 46, 0.18);
  border-color: var(--wt-primary) !important;
}

/* ---------- board list / view tables: keep usable on small screens ---------- */
.tbl_wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .tbl_head01 td, .tbl_head01 th, .tbl_head02 td, .tbl_head02 th { font-size: 0.92em; padding: 8px 4px; }
}

/* ---------- misc mobile polish ---------- */
@media (max-width: 640px) {
  body, input, button, textarea, select { font-size: 14px; }
  #hd_wrapper { padding-top: 12px; padding-bottom: 12px; }
  #logo img { height: 28px; }
  .hd_sch_wr { order: 3; flex-basis: 100%; max-width: none; }
  #hd_define, #hd_qnb { display: none; }
  .board_grid { grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
  .board_card { padding: 16px 16px 8px; }
  .wt_stitle { font-size: 16px; padding: 7px 14px; }
}
