/* 김워잭 팬 커뮤니티 — 색: 노랑·빨강·검정 (썸네일 색) */
:root {
  --ink: #141414; --paper: #F6F3EC; --white: #FFFFFF; --red: #E8212B; --red-dark: #C4141D; --yellow: #FFD400;
  --soft: #FFF4B8; --rule: #E4DFD3; --muted: #555555; --text2: #3A3A3A; --blue: #1F5FAD;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Noto Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; line-height: 1.5; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: 8px 12px; z-index: 9; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--text2); font-size: 14px; line-height: 1.6; }
.inline { display: inline; margin: 0; }

/* 상단 */
.top { background: var(--white); border-bottom: 3px solid var(--ink); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; background: var(--white); display: block; }
.brand-name { font-family: 'Black Han Sans', sans-serif; font-size: 32px; line-height: 1; }
.brand-tag { font-size: 12px; font-weight: 700; background: var(--ink); color: var(--yellow); padding: 3px 8px; }
.search { flex: 1 1 320px; display: flex; max-width: 520px; }
.search input { flex: 1; min-width: 0; padding: 11px 14px; border: 3px solid var(--ink); border-right: 0; border-radius: 0; background: var(--white); }
.search button { font-weight: 900; padding: 0 20px; border: 3px solid var(--ink); background: var(--ink); color: var(--white); cursor: pointer; }
.me-links { display: flex; gap: 8px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.shop-link { font-weight: 700; font-size: 14px; padding: 10px 8px; color: var(--muted); }
.btn-line { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: 9px 14px; border: 2px solid var(--ink); background: var(--white); cursor: pointer; font-size: 15px; }
.btn-line.yellow { background: var(--yellow); }
.gnb { border-top: 2px solid var(--ink); background: var(--ink); }
.gnb-in { max-width: 1240px; margin: 0 auto; padding: 0 20px; display: flex; gap: 0 4px; font-weight: 700; font-size: 16px; overflow-x: auto; scrollbar-width: none; }
.gnb-in::-webkit-scrollbar { display: none; }
.gnb a { padding: 12px 16px; color: var(--white); white-space: nowrap; }
.gnb a.on, .gnb a:hover { color: var(--yellow); }

/* 틀 */
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px 20px 56px; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 24px; align-items: start; }
.wrap.home { grid-template-columns: 230px minmax(0, 1fr) 260px; }
.wrap.narrow { grid-template-columns: minmax(0, 760px); justify-content: center; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.box { background: var(--white); border: 3px solid var(--ink); }
.box > h2, .box-h { margin: 0; padding: 12px 18px; font-size: 16px; font-weight: 900; border-bottom: 3px solid var(--ink); }
.hello { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.hello-t { font-size: 17px; }
.boards a { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 500; }
.boards a:last-child { border-bottom: 0; }
.boards a.on { background: var(--soft); font-weight: 900; }
.tag-hot { font-size: 12px; font-weight: 700; color: var(--red); }

/* 버튼 */
.btn { display: inline-block; text-align: center; font-weight: 900; padding: 11px 20px; border: 3px solid var(--ink); background: var(--white); cursor: pointer; font-size: 16px; }
.btn.red { background: var(--red); color: var(--white); }
.btn.red:hover { color: var(--white); filter: brightness(1.05); }
.btn.black { background: var(--ink); color: var(--white); }
.btn.yellow { background: var(--yellow); }
.btn.block { display: block; width: 100%; }
.btn.shadow { box-shadow: 4px 4px 0 var(--ink); }
.btn.small { padding: 6px 12px; font-size: 14px; border-width: 2px; }
.btn-text { background: none; border: 0; padding: 2px 4px; color: var(--muted); font-size: 13px; cursor: pointer; }
.btn-text:hover { color: var(--red); }

/* 공지 띠 */
.notice-strip { background: var(--soft); border: 3px solid var(--ink); padding: 12px 18px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.notice-strip b { color: var(--red-dark); }

/* 홈 목록 */
.sec-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 3px solid var(--ink); background: var(--ink); color: var(--white); }
.sec-h h2 { margin: 0; font-size: 20px; font-weight: 900; }
.sec-h a { font-size: 14px; font-weight: 700; color: var(--yellow); }
.rank { margin: 0; padding: 0; list-style: none; }
.rank li { border-bottom: 1px solid var(--rule); }
.rank li:last-child { border-bottom: 0; }
.rank a { display: flex; align-items: center; gap: 12px; padding: 11px 18px; }
.rank .n { width: 26px; font-family: 'Black Han Sans', sans-serif; font-size: 20px; }
.rank .n.hot3 { color: var(--red); }
.rank .b { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 64px; }
.one-line { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmt { color: var(--red); font-weight: 700; font-size: 14px; }
.empty { padding: 28px 18px; text-align: center; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; border-bottom: 3px solid var(--ink); }
.tabs a { font-weight: 700; font-size: 15px; padding: 12px 18px; border-right: 2px solid var(--ink); background: var(--white); }
.tabs a.on { background: var(--ink); color: var(--yellow); }
.latest a { display: flex; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--rule); }
.latest a:last-child { border-bottom: 0; }
.latest .who, .latest .t { font-size: 13px; color: var(--muted); white-space: nowrap; }
.art-h { display: flex; justify-content: space-between; align-items: baseline; }
.art-h h2 { margin: 0; font-size: 20px; font-weight: 900; }
.arts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.art { display: flex; flex-direction: column; background: var(--white); border: 3px solid var(--ink); }
.art .pic { aspect-ratio: 1; background: var(--rule); border-bottom: 3px solid var(--ink); overflow: hidden; }
.art .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art .cap { padding: 8px 10px; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.write-box { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.write-box h2 { margin: 0; padding: 0; border: 0; font-size: 17px; font-weight: 900; }
.goods { display: flex; flex-direction: column; background: var(--yellow); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); overflow: hidden; }
.goods .g-t { padding: 18px 18px 0; display: flex; flex-direction: column; gap: 4px; }
.goods .g-k { font-size: 13px; font-weight: 900; color: var(--red-dark); }
.goods .g-n { font-family: 'Black Han Sans', sans-serif; font-size: 24px; line-height: 1.2; }
.goods img { width: 62%; align-self: flex-end; display: block; margin-top: -10px; }
.top3 { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.top3 h2 { margin: 0; padding: 0; border: 0; font-size: 16px; font-weight: 900; }
.ad { min-height: 0; }

/* 게시판 목록 */
.board-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.board-h h1 { margin: 0; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 42px; line-height: 1.1; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-weight: 700; font-size: 15px; padding: 7px 14px; border: 2px solid var(--ink); background: var(--white); }
.chips a.on { background: var(--ink); color: var(--white); }
.sort { display: flex; gap: 4px; font-size: 14px; font-weight: 700; }
.sort a { padding: 6px 10px; color: var(--muted); }
.sort a.on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { border-bottom: 1px solid var(--rule); }
.plist li:last-child { border-bottom: 0; }
.plist li.pin { background: var(--soft); }
.prow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 11px 16px; }
.prow .ptag { font-weight: 700; font-size: 14px; color: var(--text2); }
.pin .ptag { color: var(--red-dark); }
.prow .ptitle { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin .ptitle { font-weight: 900; }
.prow .pmeta { display: flex; gap: 14px; font-size: 13px; color: var(--muted); white-space: nowrap; align-items: center; }
.pmeta .pwho { min-width: 110px; }
.has-img { font-size: 12px; color: var(--blue); font-weight: 700; margin-left: 4px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; font-weight: 700; }
.pager a { padding: 8px 13px; border: 2px solid var(--ink); background: var(--white); }
.pager a.on { background: var(--ink); color: var(--white); }

/* 등급 */
.lv { display: inline-block; font-size: 11px; font-weight: 900; color: var(--white); padding: 1px 5px; line-height: 1.5; vertical-align: 1px; }
.lv-low { background: #6B6B6B; } .lv-mid { background: var(--blue); } .lv-top { background: #7A3FB0; } .lv-admin { background: var(--red-dark); }

/* 글 보기 */
.crumb { font-size: 14px; color: var(--muted); display: flex; gap: 8px; }
.post-h { padding: 22px 26px; border-bottom: 3px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.post-h .bname { align-self: flex-start; font-size: 13px; font-weight: 900; background: var(--ink); color: var(--yellow); padding: 3px 9px; }
.post-h h1 { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.4; word-break: break-word; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.post-body { padding: 26px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.85; word-break: break-word; }
.post-body p { margin: 0; white-space: pre-wrap; }
.post-body a { color: var(--blue); text-decoration: underline; }
.post-img { display: block; max-width: 100%; height: auto; border: 2px solid var(--ink); }
.post-act { padding: 0 26px 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.post-act .up { font-size: 17px; padding: 12px 24px; box-shadow: 4px 4px 0 var(--ink); }
.post-act .up.on { background: var(--yellow); }
.post-own { padding: 0 26px 18px; display: flex; justify-content: flex-end; gap: 8px; }
.hidden-note { padding: 14px 18px; background: #FBE4E4; border: 3px solid var(--ink); font-weight: 700; }
.cmts h2 { margin: 0; padding: 14px 22px; font-size: 18px; font-weight: 900; border-bottom: 3px solid var(--ink); }
.cm { padding: 14px 22px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.cm.re { padding-left: 54px; background: #FAF8F2; }
.cm-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.cm-h .t { color: var(--muted); }
.cm-h .acts { margin-left: auto; display: flex; gap: 4px; }
.cm-b { font-size: 16px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.cm-b.gone { color: var(--muted); font-style: italic; }
.writer-mark { font-size: 11px; font-weight: 700; color: var(--red); border: 1px solid var(--red); padding: 0 4px; }
details.reply summary { list-style: none; cursor: pointer; font-size: 13px; color: var(--muted); display: inline-block; }
details.reply summary::-webkit-details-marker { display: none; }
details.reply form { margin-top: 8px; }
.cm-form { padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.cm-form textarea, .field textarea, .field input[type=text], .field select { width: 100%; padding: 12px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); }
.cm-form textarea { resize: vertical; }
.cm-form .btn { align-self: flex-end; }
.login-need { padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* 글쓰기 */
.form { padding: 22px 26px; display: flex; flex-direction: column; gap: 18px; }
.form h1 { margin: 0; font-size: 26px; font-weight: 900; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.field small { font-weight: 400; color: var(--muted); }
.field textarea { min-height: 320px; resize: vertical; font-weight: 400; line-height: 1.7; }
.row2 { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.keep { display: flex; flex-wrap: wrap; gap: 10px; }
.keep label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 400; font-size: 13px; }
.keep img { width: 96px; height: 96px; object-fit: cover; border: 2px solid var(--ink); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.form-act { display: flex; justify-content: flex-end; gap: 10px; }

/* 안내 */
.flash { padding: 12px 18px; border: 3px solid var(--ink); font-weight: 700; }
.flash.ok { background: #E3F4E1; }
.flash.err { background: #FBE4E4; }
.doc { padding: 26px 30px; line-height: 1.85; font-size: 16px; }
.doc h1 { margin: 0 0 12px; font-size: 28px; font-weight: 900; }
.doc h2 { font-size: 19px; margin: 26px 0 8px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { border: 1px solid #BDB7A8; padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: #F0ECE2; }

/* 로그인 */
.login { padding: 34px 30px; display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.login img.face { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--ink); }
.login h1 { margin: 0; font-family: 'Black Han Sans', sans-serif; font-weight: 400; font-size: 34px; }
.kakao { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 360px; background: #FEE500; color: #191919; border-radius: 10px; padding: 15px 20px; font-weight: 700; font-size: 17px; border: 0; }
.kakao:hover { color: #191919; filter: brightness(0.97); }
.kakao svg { width: 22px; height: 22px; }
.small-print { font-size: 13px; color: var(--muted); line-height: 1.7; }
.small-print a { text-decoration: underline; }

/* 내 정보 */
.mine { padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; }
.mine .who { display: flex; align-items: center; gap: 14px; }
.mine .who img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; }
.bar { height: 12px; border: 2px solid var(--ink); background: var(--white); }
.bar i { display: block; height: 100%; background: var(--red); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 180px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 0; }

/* 운영 */
.adm table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm th, .adm td { border-bottom: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.adm th { background: var(--ink); color: var(--white); }
.adm .acts { display: flex; gap: 6px; flex-wrap: wrap; }

/* 하단 */
.foot { border-top: 3px solid var(--ink); background: var(--ink); color: #CFCFCF; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 32px 20px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.8; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 700; }
.foot-nav a { color: var(--white); }
.foot-nav a.hl { color: var(--yellow); }
.copy { color: #8F8F8F; }

/* 태블릿 */
@media (max-width: 1080px) {
  .wrap.home { grid-template-columns: 220px minmax(0, 1fr); }
  .wrap.home .right { grid-column: 2; }
}
/* 휴대폰 */
@media (max-width: 760px) {
  .top-in { padding: 10px 16px; gap: 10px 12px; }
  .brand img { width: 40px; height: 40px; border-width: 2px; }
  .brand-name { font-size: 26px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { padding: 9px 12px; border-width: 2px; border-right: 0; }
  .search button { border-width: 2px; padding: 0 14px; }
  .me-links { gap: 6px; }
  .shop-link { display: none; }
  .btn-line { padding: 7px 10px; font-size: 14px; }
  .gnb-in { padding: 0 8px; font-size: 15px; }
  .gnb a { padding: 11px 11px; }
  .wrap, .wrap.home { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 40px; gap: 16px; }
  .wrap.home .right { grid-column: auto; }
  .wrap > .side { order: 2; }
  .wrap .boards { display: none; }
  .board-h h1 { font-size: 32px; }
  .prow { grid-template-columns: minmax(0, 1fr); padding: 11px 14px; }
  .prow .ptag { display: none; }
  .prow .ptitle { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .pmeta .pwho { min-width: 0; }
  .post-h { padding: 18px; } .post-h h1 { font-size: 22px; }
  .post-body { padding: 18px; font-size: 16px; }
  .post-act, .post-own { padding-left: 18px; padding-right: 18px; }
  .cm { padding: 12px 16px; } .cm.re { padding-left: 34px; }
  .cm-form, .login-need { padding: 14px 16px; }
  .form { padding: 18px; }
  .row2 { grid-template-columns: 1fr; }
  .doc { padding: 20px; }
  .arts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .latest .t { display: none; }
}
@media (max-width: 440px) {
  .brand-tag { display: none; }
  .brand { gap: 8px; }
}
