:root {
  --bg: #f6f4f1;
  --card: #fff;
  --line: #e7e2dc;
  --text: #2d2a26;
  --muted: #8b847b;
  --accent: #e07a5f;
  --accent-dark: #c4644b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 15px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.top { background: var(--card); border-bottom: 1px solid var(--line); padding: 14px 24px; }
.logo { font-size: 20px; font-weight: 800; color: var(--accent); }
.logo:hover { text-decoration: none; }

.wrap { max-width: 1040px; margin: 20px auto; padding: 0 16px; display: flex; gap: 20px; }
.side { width: 200px; flex-shrink: 0; }
.main { flex: 1; min-width: 0; }

.side-box, .card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.side-box { padding: 14px; }
.side-title { font-weight: 700; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: block; padding: 7px 8px; border-radius: 6px; }
.side li a.on, .side li a:hover { background: #fbeee9; color: var(--accent-dark); text-decoration: none; font-weight: 600; }

.card { padding: 20px 22px; margin-bottom: 16px; }
.card h2 { margin: 0 0 14px; font-size: 18px; }
.card h2 small { color: var(--muted); font-weight: 400; font-size: 13px; }
.card h3 { margin: 0 0 12px; font-size: 16px; }

.flash { background: #fff4d6; border: 1px solid #f1dc9c; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 6px;
  padding: 8px 14px; font-size: 14px; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: #f3f0ec; }
.btn.danger { background: #d9534f; }
.btn.sm { padding: 4px 8px; font-size: 12px; }

input, textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; width: 100%; background: #fff; }
input:focus, textarea:focus { outline: 2px solid #f4c3b5; border-color: var(--accent); }
textarea { resize: vertical; }

.board-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.board-head h2 { margin: 0; }
table.list { width: 100%; border-collapse: collapse; }
table.list th { font-size: 13px; color: var(--muted); font-weight: 500; border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--line); padding: 9px 6px; }
table.list td { border-bottom: 1px solid var(--line); padding: 10px 6px; text-align: center; font-size: 14px; }
table.list td.t { text-align: left; }
.no, .num { width: 60px; color: var(--muted); }
.who { width: 110px; }
.date { width: 70px; color: var(--muted); }
.cnt { color: var(--accent); font-size: 13px; font-weight: 600; margin-left: 4px; }
.empty { color: var(--muted); text-align: center; padding: 30px 0 !important; }

.pager { text-align: center; margin: 16px 0 6px; }
.pager a { display: inline-block; min-width: 30px; padding: 5px 8px; border-radius: 5px; }
.pager a.on { background: var(--accent); color: #fff; }
.search { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.search input { max-width: 260px; }

.simple-list { margin: 0; padding-left: 0; list-style: none; }
ol.simple-list { padding-left: 20px; list-style: decimal; }
.simple-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.simple-list li:last-child { border-bottom: 0; }
.tag { font-size: 12px; background: #f3f0ec; padding: 2px 7px; border-radius: 4px; margin-right: 6px; color: var(--muted); }
.meta { color: var(--muted); font-size: 13px; margin-left: 6px; }

.crumb { color: var(--accent-dark); font-size: 13px; font-weight: 600; }
.post-title { font-size: 22px; margin: 6px 0 8px; }
.post-meta { margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.post-body { white-space: pre-wrap; line-height: 1.75; min-height: 120px; word-break: break-word; }
.post-actions { display: flex; gap: 6px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
form.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
form.inline input { width: 120px; padding: 7px 9px; }

.comments { list-style: none; margin: 0 0 16px; padding: 0; }
.comments li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-head { display: flex; align-items: center; gap: 4px; }
.c-del { margin-left: auto; font-size: 12px; color: var(--muted); }
.c-del summary { cursor: pointer; }
.c-del[open] summary { margin-bottom: 4px; }
.c-body { white-space: pre-wrap; margin-top: 4px; line-height: 1.6; }
.c-form, .write { display: flex; flex-direction: column; gap: 8px; }
.c-form .btn { align-self: flex-end; }
.row { display: flex; gap: 8px; }

@media (max-width: 720px) {
  .wrap { flex-direction: column; }
  .side { width: 100%; }
  .side ul { display: flex; flex-wrap: wrap; gap: 4px; }
  .who, .no, .num { display: none; }
  .row { flex-direction: column; }
}
