/* 마고 게시판 — 여백을 줄이고 한눈에 많이 보이게 (2026-11-29). 길드원 공략(.how-*)과 본문(.arc-*)은 community.css */
#communityRoot, #oldFilesRoot { max-width:1064px; margin:0 auto; background:none; border:0; box-shadow:none; padding:0; }
#view-community .msub, #view-oldfiles .msub { margin:8px auto; }
#comSub, #libSub { margin:10px auto 10px; padding:6px 10px; gap:6px; border-radius:20px; }
#comSub .msubbtn, #libSub .msubbtn { padding:5px 14px; font-size:13px; }
#fileKinds { margin:0 auto 8px; padding:0 8px; gap:4px; background:none; border:0; box-shadow:none; flex-wrap:wrap; justify-content:center; }
#fileKinds .msubbtn { padding:3px 11px; font-size:12.5px; }
#fileKinds em { font-style:normal; font-size:11px; opacity:.7; }
.bd { max-width:1040px; margin:0 auto; padding:0 8px 20px; font-family:'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; font-size:13.5px; }
.bd small { color:var(--sub); }
.bd-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:4px 0 6px; border-bottom:2px solid var(--gold); }
.bd-bar > b { color:var(--gold-bright); font-size:16px; }
.bd-bar a { color:var(--gold-bright); text-decoration:none; }
.bd-sp, .bd-search { margin-left:auto; }
.bd-search { display:flex; gap:4px; }
.bd input, .bd textarea { font:inherit; background:var(--panel); color:var(--text); border:1px solid var(--border); border-radius:4px; padding:4px 8px; }
.bd-search input { width:190px; }
.bd-btn, .bd-pages button { display:inline-block; font:inherit; font-size:12.5px; line-height:1.5; padding:3px 10px; border-radius:4px; border:1px solid var(--border); background:var(--panel2); color:var(--text); cursor:pointer; text-decoration:none; }
.bd-bar a.bd-btn { color:var(--text); }
.bd-btn.main, .bd-pages button.on { background:var(--gold); border-color:var(--gold); color:#1a1408; font-weight:700; }
.bd-btn:disabled { opacity:.5; cursor:default; }
.bd-guest { padding:5px 8px; background:var(--panel); border-bottom:1px solid var(--border); color:var(--sub); font-size:12.5px; }
.bd-empty { text-align:center; color:var(--sub); padding:24px 0; line-height:2.2; }
.bd-table { width:100%; border-collapse:collapse; table-layout:fixed; }
.bd-table th { font-weight:400; font-size:12px; color:var(--sub); padding:3px 6px; border-bottom:1px solid var(--border); text-align:left; }
.bd-table td { padding:4px 6px; border-bottom:1px solid rgba(74,58,30,.55); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bd-table tbody tr:hover { background:var(--panel); }
.bd-table .w { width:110px; } .bd-table .d { width:72px; } .bd-table .v { width:44px; text-align:right; }
.bd-table td.w, .bd-table td.d, .bd-table td.v { color:var(--sub); font-size:12.5px; }
.bd-table td.t a { color:var(--text); text-decoration:none; }
.bd-table td.t a:hover { color:var(--gold-bright); }
.bd em { color:var(--gold); font-style:normal; font-size:11.5px; }
.bd i { font-style:normal; font-size:11px; }
.bd-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(152px, 1fr)); gap:6px; padding-top:6px; }
.bd-card { display:flex; flex-direction:column; min-width:0; background:var(--panel); border:1px solid var(--border); border-radius:4px; text-decoration:none; color:var(--text); overflow:hidden; }
.bd-card:hover { border-color:var(--gold); }
.bd-card span { display:flex; align-items:center; justify-content:center; position:relative; width:100%; padding-top:75%; background:#000; }
.bd-card img, .bd-card span i { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
.bd-card span i { display:flex; align-items:center; justify-content:center; color:var(--sub); }
.bd-card b, .bd-card small { padding:0 5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bd-card b { font-weight:400; padding-top:3px; font-size:12.5px; }
.bd-card small { font-size:11px; padding-bottom:3px; }
.bd-pages { display:flex; justify-content:center; flex-wrap:wrap; gap:4px; margin-top:10px; }
.bd-pages button { min-width:30px; }
.bd-post h2 { margin:8px 0 2px; font-size:18px; color:var(--gold-bright); overflow-wrap:anywhere; }
.bd-meta { color:var(--sub); font-size:12px; margin-bottom:5px; }
.bd-meta b { color:var(--text); }
.bd-files { list-style:none; margin:0 0 6px; padding:0; }
.bd-files:not(:empty) { background:var(--panel); border:1px solid var(--border); border-radius:4px; padding:3px 10px; margin:6px 0; }
.bd-files li { padding:1px 0; overflow-wrap:anywhere; }
.bd-files a { color:var(--gold-bright); }
.bd-files img { height:34px; vertical-align:middle; border-radius:3px; }
.bd-copy { margin-bottom:5px; }
.bd .arc-body { border-radius:4px; padding:10px 12px; font-size:13.5px; line-height:1.6; }
.bd-cmts h3 { margin:12px 0 4px; font-size:13.5px; color:var(--gold-bright); border-bottom:1px solid var(--border); padding-bottom:3px; }
.bd-cmt { padding:4px 0; border-bottom:1px solid rgba(74,58,30,.55); }
.bd-cmt.d1 { margin-left:18px; } .bd-cmt.d2 { margin-left:36px; } .bd-cmt.d3 { margin-left:50px; }
.bd-cmt .bd-meta { margin-bottom:1px; }
.bd .bd-cmt .arc-body { background:none; color:var(--text); padding:0; font-size:13px; }
.bd .bd-cmt .arc-body a { color:var(--gold-bright); }
.bd .bd-cmt .arc-body [style] { color:inherit !important; background:none !important; }
.bd-cdel { font:inherit; font-size:11px; background:none; border:0; color:var(--sub); text-decoration:underline; cursor:pointer; }
.bd-cform { display:flex; gap:6px; margin-top:6px; }
.bd-cform textarea { flex:1; resize:vertical; }
.bd-nav { display:flex; flex-direction:column; margin-top:12px; border-top:1px solid var(--border); }
.bd-nav a { padding:4px 2px; color:var(--text); text-decoration:none; border-bottom:1px solid rgba(74,58,30,.55); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bd-nav a:hover { color:var(--gold-bright); }
.bd-form { display:flex; flex-direction:column; gap:6px; padding-top:8px; align-items:flex-start; }
.bd-form input[name=title], .bd-form textarea, .bd-form .bd-files { align-self:stretch; }
.bd-form textarea { resize:vertical; line-height:1.6; }
.bd-msg { margin:0; color:var(--gold-bright); min-height:1em; }
.bd-save { align-self:flex-end; padding:5px 26px !important; }
/* 로그인 */
.authbtn { display:inline-flex; align-items:center; gap:6px; height:40px; padding:0 14px; border-radius:11px; border:1px solid var(--gold-bright, #e8c766); background:rgba(16,11,6,.86); color:#f3e6c4; font:700 13.5px 'Malgun Gothic', sans-serif; cursor:pointer; box-shadow:0 2px 10px rgba(0,0,0,.45); white-space:nowrap; }
.authbtn:hover, .authbtn:focus-visible { background:#c9a227; color:#1a1408; outline:none; }
.authbtn span { font-size:15px; }
.authbtn b { max-width:130px; overflow:hidden; text-overflow:ellipsis; }
.authbtn em { font-style:normal; font-weight:400; font-size:11px; opacity:.75; }
#authFloat { display:none; position:fixed; top:5px; right:8px; z-index:41; height:34px; padding:0 11px; font-size:12.5px; }
html.auth-float #authFloat { display:inline-flex; }
@media (max-width:1040px) { #authFloat { padding:0 9px; } #authFloat b { display:none; } }
@media (min-width:761px) and (max-width:1040px) { html.auth-float .tabs { padding-right:50px; } }
@media (max-width:760px) { #authFloat { top:42px; right:6px; height:32px; } html.auth-float .tabs .tab[data-search] { margin-right:44px; } }
.au-back { position:fixed; inset:0; z-index:100001; background:rgba(6,4,2,.82); display:flex; align-items:flex-start; justify-content:center; padding:9vh 12px 12px; overflow:auto; }
.au { position:relative; width:min(360px, 100%); background:var(--panel); border:1px solid var(--gold); border-radius:8px; padding:14px 18px 16px; color:var(--text); font-family:'Malgun Gothic', sans-serif; font-size:13.5px; }
.au h3 { margin:0 0 8px; color:var(--gold-bright); }
.au-x { position:absolute; top:8px; right:10px; background:none; border:0; color:var(--sub); font-size:15px; cursor:pointer; }
.au-note { margin:0 0 8px; color:var(--gold-bright); }
.au-form { display:flex; flex-direction:column; gap:8px; }
.au-form label { display:flex; flex-direction:column; gap:3px; }
.au-form label[hidden] { display:none; }
.au-form input { font:inherit; font-size:16px; background:var(--bg); color:var(--text); border:1px solid var(--border); border-radius:4px; padding:7px 9px; }
.au-msg { margin:0; color:var(--gold-bright); font-size:12.5px; min-height:1em; }
.au-go { font:inherit; font-weight:700; background:var(--gold); color:#1a1408; border:0; border-radius:4px; padding:8px; cursor:pointer; }
.au-go:disabled { opacity:.5; }
.au details { margin-top:10px; color:var(--sub); font-size:12px; }
.au details ul { padding-left:16px; margin:6px 0 0; line-height:1.6; }
@media (max-width:640px) { .bd-table thead { display:none; } .bd-table, .bd-table tbody { display:block; } .bd-table tr { display:flex; flex-wrap:wrap; column-gap:8px; padding:4px 2px; border-bottom:1px solid var(--border); } .bd-table td { border:0; padding:0; } .bd-table td.t { width:100%; } .bd-table .w, .bd-table .d, .bd-table .v { width:auto; text-align:left; font-size:11.5px; } .bd-table td.v::before { content:"조회 "; }
  .bd-search { order:3; width:100%; margin:0; } .bd-search input { flex:1; width:auto; } .bd-write { margin-left:auto; } .bd-grid { grid-template-columns:repeat(2, 1fr); } .bd input, .bd textarea { font-size:16px; } }
/* 휴대폰: 떠 있는 단추는 작게 */
#authFloat em { display:none; } #authFloat b { max-width:90px; }
@media (max-width:760px) { .authbtn { padding:0 10px; } }

/* ── 길드 회관 테마 (2026-11-29): 회관 margo 테마와 같은 색 ── */
.bd { --h-main:#17110b; --h-panel:#1d150d; --h-head:#21170e; --h-input:#120c06; --h-hover:#2b1f10; --h-line:#4a3519; --h-acc:#d9a441; --h-acc2:#ffd27a; --h-text:#f3e2b8; --h-sub:#b09a6a;
  --sub:var(--h-sub); --text:var(--h-text); --border:var(--h-line); --panel:var(--h-panel); --panel2:var(--h-head); --gold:var(--h-acc); --gold-bright:var(--h-acc2); color:var(--h-text); }
.bd input, .bd textarea { background:var(--h-input); }
.bd input:focus, .bd textarea:focus { outline:none; border-color:var(--h-acc); }
.bd-bar { background:var(--h-head); border:1px solid var(--h-line); border-bottom:2px solid var(--h-acc); border-radius:8px 8px 0 0; padding:6px 10px; }
.bd-guest { border:1px solid var(--h-line); border-top:0; }
.bd-table { background:var(--h-panel); border:1px solid var(--h-line); border-top:0; border-collapse:separate; border-spacing:0; }
.bd-table th { background:var(--h-main); border-bottom:1px solid var(--h-line); padding-left:10px; }
.bd-table td { border-bottom:1px solid rgba(74,53,25,.7); padding-left:10px; }
.bd-table tbody tr:last-child td { border-bottom:0; }
.bd-table tbody tr:hover { background:var(--h-hover); }
.bd-grid { background:var(--h-main); border:1px solid var(--h-line); border-top:0; border-radius:0 0 8px 8px; padding:8px; }
.bd-card { background:var(--h-panel); border-radius:6px; transition:border-color .15s, transform .15s, box-shadow .15s; }
.bd-card:hover { transform:translateY(-2px); box-shadow:0 5px 14px rgba(0,0,0,.5); background:var(--h-hover); }
.bd-card span { background:var(--h-input); }
.bd-post { margin-top:8px; background:var(--h-panel); border:1px solid var(--h-line); border-radius:8px; overflow:hidden; }
.bd-post header { background:var(--h-head); border-bottom:1px solid var(--h-line); padding:8px 14px 7px; }
.bd-post header h2 { margin:0 0 2px; font-size:17px; }
.bd-post header .bd-meta { margin:0; }
.bd-post > .bd-files:not(:empty) { margin:8px 12px 0; background:var(--h-input); }
.bd-post > .bd-copy { margin:8px 12px 0; }
.bd .arc-body { background:none; color:var(--h-text); border-radius:0; padding:12px 14px; }
.bd .bd-post.g > .arc-body { text-align:center; }
.bd .arc-body a { color:var(--h-acc2); text-decoration:underline; }
.bd .arc-body img { border-radius:4px; }
.bd .arc-body td, .bd .arc-body th { border-color:var(--h-line); }
.bd .arc-body pre { background:var(--h-input); border:1px solid var(--h-line); }
.bd .arc-body blockquote { margin:6px 0; padding:4px 10px; border-left:3px solid var(--h-acc); background:var(--h-input); }
.bd .arc-body hr { border:0; border-top:1px solid var(--h-line); }
.bd .arc-body .noimg { color:var(--h-sub); }
.bd-cmts { margin-top:8px; background:var(--h-panel); border:1px solid var(--h-line); border-radius:8px; padding:0 12px 10px; }
.bd-cmts h3 { margin:0 -12px 4px; padding:6px 12px; background:var(--h-head); border-bottom:1px solid var(--h-line); border-radius:8px 8px 0 0; }
.bd-cmt { border-bottom:1px solid rgba(74,53,25,.7); }
.bd .bd-cmt .arc-body { padding:2px 0 1px; }
.bd-cmt.d1, .bd-cmt.d2, .bd-cmt.d3 { border-left:2px solid var(--h-line); padding-left:8px; }
.bd-nav { margin-top:8px; background:var(--h-panel); border:1px solid var(--h-line); border-radius:8px; overflow:hidden; }
.bd-nav:empty { display:none; }
.bd-nav a { padding:5px 12px; border-bottom-color:rgba(74,53,25,.7); }
.bd-nav a:last-child { border-bottom:0; }
.bd-nav a:hover { background:var(--h-hover); }
.bd-form { background:var(--h-panel); border:1px solid var(--h-line); border-top:0; border-radius:0 0 8px 8px; padding:10px 12px 12px; }
.bd-empty { background:var(--h-panel); border:1px solid var(--h-line); border-top:0; border-radius:0 0 8px 8px; }
@media (max-width:640px) { .bd-table tr { padding:5px 0; border-bottom:1px solid var(--h-line); } .bd-table tbody tr:last-child { border-bottom:0; } .bd-table td { padding-left:0; border-bottom:0; } .bd-table td.t { padding:0 10px; } .bd-table td.w { padding-left:10px; } .bd .arc-body { padding:10px; } }
