/*
 * 게시판 허브 3쪽(board/index.html · board/landings.html · board/tags/index.html) 고유 스타일
 * 공통 기반(css/site.css) 위에 얹는다. 디자인 원본: Board · Landings · Tags (.dc.html)
 * 기준 폭: 900px(주), 600px(보조). 휴대폰 좌우 여백 18px.
 */

/* ---------- 공통 틀 ---------- */
.bh-wrap{max-width:1360px;margin:0 auto;padding:56px 40px 30px;box-sizing:border-box}
.bh-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px 24px;margin-bottom:26px}
.bh-head h2{margin:0;font-weight:900;font-size:44px;line-height:1.3}
.bh-count{font-size:17px;font-weight:400;color:#6B6158}
.bh-link{font-size:18px;font-weight:700}
.bh-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.bh-more{display:flex;justify-content:center;margin-top:28px}
.bh-more[hidden],.btn[hidden],.post[hidden],.kw[hidden],.tg-sec[hidden],.cho[hidden]{display:none}
.tb-img{height:auto}
.tb-acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}

/* ---------- 태그 칩 줄(게시판) ---------- */
.bh-tags{padding-bottom:6px}
.tag-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.tag-h{margin-right:8px;font-weight:900;font-size:20px}

/* ---------- 최신 글 카드 ---------- */
.bh-latest{padding-top:30px;padding-bottom:80px}
.post{position:relative;display:flex;flex-direction:column;gap:10px;padding:28px 30px 26px;background:#FFFFFF;border:2px solid #1B1714;text-decoration:none;color:#1B1714;transition:transform .3s,box-shadow .3s}
.post::before{content:"";position:absolute;left:-2px;top:-2px;bottom:-2px;width:8px;background:#B8231B;transform:scaleY(0);transform-origin:50% 0;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.post:hover{transform:translate(-4px,-4px);box-shadow:8px 8px 0 #EDBE2F;color:#1B1714}
.post:hover::before,.post:focus-visible::before{transform:scaleY(1)}
.post-meta{font-size:16px;color:#6B6158}
.post .t{font-family:'Hahmlet',serif;font-weight:900;font-size:26px;line-height:1.35;word-break:keep-all}
.t-sub{font-weight:500;color:#6B6158}
.post-sum{font-size:17px;line-height:1.75;color:#463F38}
.post-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.mini{display:inline-flex;align-items:center;padding:2px 10px;background:#F2EBDC;font-size:15px;font-weight:700}

/* ---------- 거리 기준 상담 안내 ---------- */
.dist{background:#FFFFFF;border-top:2px solid #1B1714;border-bottom:2px solid #1B1714}
.dist-in{padding-top:80px;padding-bottom:80px}
.dist-tag{display:inline-block;padding:4px 14px;background:#1B1714;color:#FFFFFF;font-size:16px;font-weight:700}
.dist h2{margin:16px 0 10px;font-weight:900;font-size:44px;line-height:1.3}
.dist-lead{margin:0 0 32px;color:#463F38}
.dist-grid{gap:24px}
.dist-box{display:flex;flex-direction:column;gap:14px;padding:30px;border:2px solid #1B1714;background:#FAF6EE}
.dist-h{display:flex;align-items:center;gap:12px}
.dist-h .hj{font-weight:900;font-size:24px;line-height:1.35}
.dist-box ul{margin:0;padding-left:22px;font-size:18px;line-height:1.9}
.dist-acts{display:flex;flex-wrap:wrap;gap:10px}
.dist-acts .btn{min-height:54px}
.dist-note{font-size:16px;color:#6B6158}
.dist-foot{margin:22px 0 0;font-size:17px;color:#463F38}

/* ---------- 꿈해몽 낮은 띠 보조 ---------- */
.dream-chips li{margin:0}
.dream-go{font-size:18px;font-weight:700;color:#FFFFFF}
.dream-sm .dream-ct{margin:0}

/* ---------- 키워드 검색 ---------- */
.bh-kw{padding-top:80px;padding-bottom:110px}
.kw-intro{margin:0 0 22px;max-width:760px;color:#463F38}
.kw-search{position:relative;display:block;max-width:640px;margin-bottom:14px}
.kw-search svg{position:absolute;left:18px;top:20px;pointer-events:none}
.search{width:100%;min-height:64px;padding:0 20px 0 56px;box-sizing:border-box;border:2px solid #1B1714;background:#FFFFFF;font:inherit;font-size:20px;color:#1B1714;border-radius:0;-webkit-appearance:none;appearance:none}
.kw-status{margin:0 0 22px;font-size:17px;color:#6B6158}
.kws{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.kw{display:flex;flex-direction:column;gap:4px;padding:18px 20px;background:#FFFFFF;border:2px solid #1B1714;text-decoration:none;color:#1B1714;animation:pop .45s cubic-bezier(.2,.8,.2,1) both;transition:background .25s}
.kw:hover{background:#EDBE2F;color:#1B1714}
.kw-l{font-size:14px;font-weight:700;color:#9E1E17}
.kw-t{font-weight:700;font-size:19px;line-height:1.4;word-break:keep-all}
.kw-s{font-weight:500;color:#6B6158}
.kw-empty{margin:0;padding:28px;border:2px dashed #1B1714;background:#FFFFFF;font-size:18px}
.kw-empty[hidden]{display:none}
@keyframes pop{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* ---------- 키워드 모음(landings) ---------- */
.bh-land{padding-bottom:70px}
.ix-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:36px}
.ix{display:grid;place-items:center;min-width:64px;min-height:64px;padding:4px;box-sizing:border-box;border:2px solid #1B1714;background:#FFFFFF;font-family:'Hahmlet',serif;font-weight:900;font-size:26px;line-height:1.1;color:#1B1714;text-decoration:none;cursor:pointer;transition:background .25s,color .25s,transform .25s}
.ix small{display:block;font-family:'Noto Sans KR',sans-serif;font-weight:700;font-size:13px;text-align:center}
.ix:hover{transform:translateY(-3px);color:#1B1714}
.ix.on{background:#B8231B;border-color:#B8231B;color:#FFFFFF}
.cho{margin-bottom:48px}
.cho-head{display:flex;align-items:baseline;gap:14px;padding-bottom:12px;margin-bottom:22px;border-bottom:3px solid #1B1714}
.cho-head h2{margin:0;font-weight:900;font-size:56px;line-height:1;color:#B8231B}
.cho-n{font-size:19px;font-weight:700}
.chips{display:flex;flex-wrap:wrap;gap:10px}
.chip{display:inline-flex;align-items:center;min-height:48px;padding:0 18px;border:2px solid #1B1714;background:#FFFFFF;font-size:18px;font-weight:700;text-decoration:none;color:#1B1714;transition:background .25s}
.chip:hover{background:#EDBE2F;color:#1B1714}
.back-sec{padding-top:10px;padding-bottom:110px;text-align:center}
.back-sec p{margin:0 0 14px;color:#6B6158}

/* ---------- 태그 모음(tags) ---------- */
.bh-tg{padding-bottom:70px}
.tab-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:44px}
.tab{display:inline-flex;align-items:center;gap:10px;min-height:56px;padding:0 20px;border:2px solid #1B1714;background:#FFFFFF;font-size:18px;font-weight:700;color:#1B1714;text-decoration:none;cursor:pointer;transition:background .25s,color .25s,transform .25s}
.tab:hover{transform:translateY(-3px);color:#1B1714}
.tab.on{background:#1B1714;color:#FFFFFF}
.tab.on:hover{color:#FFFFFF}
.tab .n{display:inline-grid;place-items:center;min-width:30px;height:30px;padding:0 6px;box-sizing:border-box;background:#EDBE2F;color:#1B1714;font-size:15px}
.tg-list{display:flex;flex-direction:column;gap:56px}
.tg-sec{scroll-margin-top:24px}
.tg-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 14px;padding-bottom:12px;border-bottom:3px solid #1B1714}
.tg-head h2{margin:0;font-weight:900;font-size:44px;line-height:1.3}
.tg-n{font-size:18px;font-weight:700;color:#9E1E17}
.tg-desc{margin:14px 0 18px;color:#463F38}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.card{display:flex;flex-direction:column;gap:4px;padding:20px 22px;background:#FFFFFF;border:2px solid #1B1714;text-decoration:none;color:#1B1714;animation:pop .45s cubic-bezier(.2,.8,.2,1) both;transition:transform .3s,box-shadow .3s}
.card:hover{transform:translate(-4px,-4px);box-shadow:8px 8px 0 #EDBE2F;color:#1B1714}
.card-lab{font-size:14px;font-weight:700;color:#9E1E17}
.card-k{font-weight:900;font-size:22px;line-height:1.4;word-break:keep-all}
.card-sub{font-weight:500;font-size:16px;color:#6B6158}
.card-sum{font-size:16px;line-height:1.6;color:#463F38}

/* ---------- 반응형 ---------- */
@media (max-width:900px){
  .bh-wrap{padding:36px 18px 24px}
  .bh-head h2{font-size:32px}
  .bh-grid2{grid-template-columns:minmax(0,1fr);gap:18px}
  .post{padding:22px 20px 20px}
  .post .t{font-size:22px}
  .dist-in{padding-top:56px;padding-bottom:56px}
  .dist h2{font-size:30px}
  .dist-box{padding:22px 18px}
  .dist-h .hj{font-size:21px}
  .dist-acts .btn{flex:1 1 100%}
  .bh-latest{padding-bottom:56px}
  .bh-kw{padding-top:56px;padding-bottom:70px}
  .kws{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid3{grid-template-columns:minmax(0,1fr)}
  .tg-head h2{font-size:30px}
  .cho-head h2{font-size:44px}
  .tb-acts .btn{flex:1 1 100%}
}
.tb h1{word-break:keep-all}
.bh-head .bh-count{white-space:nowrap}
@media (max-width:900px){.tb-txt>.tb-acts{grid-column:1 / -1}}
@media (max-width:600px){
  .tb h1{font-size:36px}
  .kws{grid-template-columns:minmax(0,1fr)}
  .search{font-size:18px}
  .ix{min-width:56px;min-height:56px;font-size:22px}
  .tab{min-height:52px;padding:0 16px;font-size:17px}
  .bh-more .btn{width:100%}
}
