:root {
  --theme: #6b4eff;
  --text: #111;
  --muted: #9aa0a6;
  --bg: #fff;
  --panel: #f7f7f8;
  --border: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Noto Sans KR", "Helvetica Neue", Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}
a {
  color: var(--theme);
  text-decoration: none;
}
.container {
  max-width: 480px;
  margin: 0 auto;
}

/* minimalist top-left back chevron */
.back-home,
.pd-back {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #000;
  font-size: 20px;
}
.page-header,
header {
  position: relative;
}

/* one-line list layout helpers for board items */
.board-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}
.board-item .title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.board-item .writer,
.board-item .date {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.board-item .like-btn {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.board-item .like-btn i {
  font-size: 16px;
  color: #ee6d7b;
}
.board-item .like-count,
.board-item .comment-count {
  width: auto;
  min-width: 16px;
  text-align: left;
  font-size: 13px;
}
.board-item .comment i {
  font-size: 16px;
  color: #8ab4f8;
}

/* FAB write (theme color) */
.fab-write {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: var(--theme);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  z-index: 10;
}
.fab-write:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

/* 공통: 뒤로가기 버튼 위치/모양 */
.back-btn,
.back-home,
.pd-back,
#backHomeBtn {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: transparent;
  border: none;
  text-decoration: none;
  font-size: 20px; /* 아이콘 크기 통일 */
}

/* 제목과 겹치지 않도록 헤더 좌측 패딩 통일 */
.page-header,
.pd-header {
  position: relative;
  padding-left: 44px; /* ← 버튼 지름(32) + 여백 */
}


/* === Back button unified top-left position === */
.back-btn, .back-home, .pd-back, #backHomeBtn {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: transparent;
  border: none;
  text-decoration: none;
  font-size: 20px;
}
/* Reserve space so title doesn't overlap */
.page-header, .pd-header { position: relative; padding-left: 44px; }

/* boards grid (added) */
.boards-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;padding:16px}
.board-card{display:block;background:var(--card,#fff);border:1px solid var(--border,#e5e7eb);border-radius:16px;padding:16px;transition:transform .12s ease,border-color .12s}
.board-card:hover{transform:translateY(-3px);border-color:var(--brand,#6aa8ff)}
.board-card h3{margin:0 0 4px;font-size:18px}
.board-card p{margin:0;color:var(--muted,#6b7280)}
