:root {
  --jjoob-ink: #111111;
  --jjoob-subtle: #767676;
  --jjoob-faint: #f7f7f9;
  --jjoob-line: #ececf0;
  --jjoob-brand: #6757d7;
  --jjoob-brand-soft: #f0efff;
  --jjoob-danger: #d64b4b;
  --page-padding: 16px;
}

* { box-sizing: border-box; }
html { background: #ffffff; }
body {
  margin: 0;
  color: var(--jjoob-ink);
  background: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Apple SD Gothic Neo", Pretendard, "Noto Sans KR", sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.plaza-header {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 56px;
  border-bottom: 1px solid var(--jjoob-line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.plaza-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 720px);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--page-padding);
}
.plaza-header-left { display: inline-flex; align-items: center; gap: 4px; }
.header-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--jjoob-ink);
  transition: background-color .15s ease;
  margin-left: -6px;
}
.header-back-link:hover { background-color: var(--jjoob-faint); }
.header-back-link svg { width: 20px; height: 20px; }
.plaza-brand { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; }
.plaza-wordmark { color: var(--jjoob-brand); font-size: 21px; font-weight: 800; letter-spacing: -.9px; }
.plaza-brand-section { color: var(--jjoob-ink); font-size: 14px; font-weight: 700; }
.plaza-utility { display: inline-flex; align-items: center; gap: 10px; }
.utility-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--jjoob-subtle); font-size: 13px; font-weight: 600; }
.utility-link:hover { color: var(--jjoob-ink); }

.plaza-shell { width: min(100%, 720px); min-height: calc(100vh - 56px); margin: 0 auto; padding: 24px var(--page-padding) calc(32px + env(safe-area-inset-bottom)); }
.home-heading, .board-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.home-heading, .board-heading.has-description { align-items: flex-start; }
.home-heading h1, .board-heading h1, .write-heading h1 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: -.65px; }
.home-heading p, .board-heading p { margin: 5px 0 0; color: var(--jjoob-subtle); font-size: 13px; line-height: 1.45; }

.button-primary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--jjoob-brand);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.button-primary.compact { min-height: 40px; padding: 0 13px; border-radius: 9px; font-size: 13px; white-space: nowrap; }
.button-primary:disabled { cursor: not-allowed; opacity: .42; }
.button-primary:not(:disabled):active { transform: translateY(1px); }

.board-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 calc(var(--page-padding) * -1) 28px;
  padding: 0 var(--page-padding) 3px;
  scrollbar-width: none;
}
.board-tabs::-webkit-scrollbar { display: none; }
.board-tab {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid var(--jjoob-line);
  border-radius: 999px;
  color: var(--jjoob-subtle);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}
.board-tab.is-active { border-color: var(--jjoob-ink); color: #fff; background: var(--jjoob-ink); }

.feed-section, .directory-section, .comments { margin-top: 30px; }
.feed-section:first-of-type { margin-top: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; min-height: 28px; margin-bottom: 7px; }
.section-heading h2 { margin: 0; font-size: 16px; letter-spacing: -.3px; }
.feed-list, .directory-list { border-top: 1px solid var(--jjoob-line); }
.feed-loading { margin: 0; padding: 23px 0; color: var(--jjoob-subtle); font-size: 13px; text-align: center; }

.post-row {
  display: block;
  min-height: 76px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--jjoob-line);
  background: #fff;
}
.post-row:active { background: var(--jjoob-faint); }
.post-kicker { display: flex; align-items: center; gap: 5px; margin-bottom: 5px; color: var(--jjoob-subtle); font-size: 12px; line-height: 1; }
.post-board-pill { display: inline-flex; align-items: center; min-height: 20px; padding: 0 6px; border-radius: 5px; color: #494949; background: var(--jjoob-faint); font-size: 11px; font-weight: 650; }
.post-row h3 { display: -webkit-box; overflow: hidden; margin: 0; color: var(--jjoob-ink); font-size: 15px; font-weight: 650; letter-spacing: -.22px; line-height: 1.42; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.post-row .meta { display: flex; gap: 0; overflow: hidden; margin-top: 7px; color: var(--jjoob-subtle); font-size: 12px; line-height: 1.2; white-space: nowrap; }
.post-row .meta span + span::before { content: "·"; margin: 0 6px; color: #bebebe; }
.empty-state { padding: 34px 0 30px; border-bottom: 1px solid var(--jjoob-line); text-align: center; }
.empty-state p { margin: 0 0 12px; color: var(--jjoob-subtle); font-size: 14px; }
.empty-state .text-link { color: var(--jjoob-brand); font-size: 13px; font-weight: 700; }

.directory-section { padding-top: 2px; }
.directory-row { display: flex; min-height: 64px; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--jjoob-line); }
.directory-row:active { background: var(--jjoob-faint); }
.board-symbol { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; background: var(--jjoob-faint); font-size: 16px; }
.directory-copy { display: grid; min-width: 0; gap: 3px; flex: 1; }
.directory-copy strong { font-size: 14px; letter-spacing: -.2px; }
.directory-copy small { overflow: hidden; color: var(--jjoob-subtle); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.row-chevron { color: #b6b6ba; font-size: 23px; font-weight: 300; }

.board-heading { margin-bottom: 23px; }
.board-title-wrap { min-width: 0; }
.board-chip { display: inline-flex; align-items: center; min-height: 22px; margin-bottom: 7px; padding: 0 7px; border-radius: 6px; background: var(--jjoob-faint); color: #555; font-size: 11px; font-weight: 700; }
.board-chip-benefit { background: #eef8ed; color: #317842; }
.board-chip-restaurant { background: #fff2e9; color: #a55b1e; }
.board-chip-free { background: var(--jjoob-brand-soft); color: #5c4bc2; }
.board-feed { margin-top: 0; }

.post-detail { padding: 0 0 26px; border-bottom: 1px solid var(--jjoob-line); }
.post-detail .eyebrow { margin: 0 0 8px; color: var(--jjoob-subtle); font-size: 12px; font-weight: 650; }
.post-detail h1 { margin: 0; font-size: 22px; letter-spacing: -.6px; line-height: 1.42; }
.post-detail .meta { display: flex; gap: 0; margin-top: 10px; color: var(--jjoob-subtle); font-size: 12px; }
.post-detail .post-body { margin: 24px 0 0; white-space: pre-wrap; font-size: 15px; line-height: 1.75; word-break: break-word; }
.actions { display: flex; gap: 8px; margin-top: 24px; }
.secondary { min-height: 38px; padding: 0 12px; border: 1px solid var(--jjoob-line); border-radius: 9px; color: #444; background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }

.comments { margin-top: 26px; }
.comment-list { border-top: 1px solid var(--jjoob-line); }
.comment { padding: 15px 2px; border-bottom: 1px solid var(--jjoob-line); }
.comment strong { font-size: 13px; }
.comment p { margin: 6px 0 0; white-space: pre-wrap; font-size: 14px; line-height: 1.55; word-break: break-word; }
.comment.tombstone { color: var(--jjoob-subtle); }
.comment-compose { margin-top: 16px; }
.comment-compose textarea, .write-form textarea, .write-form input, .write-form select {
  width: 100%;
  border: 1px solid #dedee4;
  border-radius: 9px;
  outline: none;
  color: var(--jjoob-ink);
  background: #fff;
  font-size: 15px;
}
.comment-compose textarea { min-height: 88px; padding: 12px; resize: vertical; line-height: 1.55; }
.comment-compose textarea:focus, .write-form textarea:focus, .write-form input:focus, .write-form select:focus { border-color: var(--jjoob-brand); box-shadow: 0 0 0 3px rgba(103, 87, 215, .12); }
.compose-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.text-link { color: var(--jjoob-subtle); font-size: 12px; }

.write-heading { margin-bottom: 22px; }
.back-link { display: inline-flex; min-height: 32px; align-items: center; margin-bottom: 10px; color: var(--jjoob-subtle); font-size: 13px; font-weight: 600; }
.login-prompt { margin-bottom: 18px; padding: 11px 12px; border-radius: 9px; color: #655a1d; background: #fff8df; font-size: 13px; }
.login-prompt a { color: inherit; font-weight: 750; text-decoration: underline; }
.write-form { display: grid; gap: 9px; }
.field-label { margin-top: 12px; font-size: 13px; font-weight: 700; }
.write-form select, .write-form input { height: 46px; padding: 0 12px; }
.write-form textarea { min-height: 220px; padding: 12px; resize: vertical; line-height: 1.6; }
.write-submit { display: flex; justify-content: flex-end; margin-top: 14px; }
.form-message { min-height: 18px; margin: 0; color: var(--jjoob-danger); font-size: 13px; text-align: right; }

@media (min-width: 721px) {
  :root { --page-padding: 24px; }
  .plaza-shell { padding-top: 36px; }
  .home-heading h1, .board-heading h1, .write-heading h1 { font-size: 24px; }
  .post-row { padding-top: 16px; padding-bottom: 16px; }
}


/* request status presentation */
.request-status-guide { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 14px; padding:12px 14px; border:1px solid #f1d7ad; border-radius:12px; background:#fffaf1; color:#75420e; font-size:13px; }
.request-row-top { display:flex; gap:6px; align-items:center; margin-bottom:7px; }
.request-status-badge, .request-answer-pill { display:inline-flex; align-items:center; min-height:22px; padding:0 8px; border-radius:999px; font-size:11px; font-weight:800; line-height:1; }
.request-status-badge { background:#eef1f5; color:#566170; }
.request-status--reviewing { background:#ecebff; color:#5046a3; }
.request-status--answered { background:#e8f2ff; color:#1766a3; }
.request-status--planned { background:#e8edff; color:#304c9b; }
.request-status--in_progress { background:#fff0d6; color:#975000; }
.request-status--completed { background:#e4f6ea; color:#13743d; }
.request-status--resolved { background:#e0f7f2; color:#0d766c; }
.request-status--on_hold { background:#f1f1f1; color:#666; }
.request-answer-pill { background:#f3f6fa; color:#546476; }
.request-reply-preview { display:-webkit-box; overflow:hidden; margin:7px 0 0; color:#657080; font-size:13px; line-height:1.45; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.request-reply-preview strong { color:#315b8c; }
.request-detail-header { margin-bottom: 16px; }
.request-detail-header .request-status-badge { margin-bottom: 10px; min-height: 24px; padding: 0 10px; font-size: 12px; }
.request-detail-header h1 { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.35; letter-spacing: -.6px; }
.request-detail-header .post-meta { margin-top: 8px; color: var(--jjoob-subtle); font-size: 12.5px; }

.request-post-view .post-body { margin: 20px 0 0; font-size: 15px; line-height: 1.7; color: var(--jjoob-ink); white-space: pre-wrap; word-break: break-word; }

.actions--center { display: flex; justify-content: center; margin: 22px 0 26px; }
.like-btn { min-height: 40px; padding: 0 20px; border: 1px solid #d8e2ed; border-radius: 999px; background: #fff; color: #2d4b6e; font-size: 14px; font-weight: 750; cursor: pointer; transition: all .15s ease; }
.like-btn:hover { background: #f4f8fc; border-color: #bccfe3; }
.like-btn:active { transform: translateY(1px); }

.request-outcome { margin: 22px 0; padding: 16px; border: 1px solid #dce8f4; border-radius: 14px; background: #f7fbff; }
.request-outcome h2 { margin: 0; font-size: 17px; }
.request-outcome p { margin: 9px 0 0; white-space: pre-wrap; line-height: 1.6; }

.request-replies-section { margin-top: 6px; padding-top: 22px; border-top: 1px solid #edf2f7; }
.request-replies { display: grid; gap: 12px; }
.operator-reply-card { padding: 18px 20px; border: 1px solid #d4e3f3; border-left: 4px solid #3168a8; border-radius: 14px; background: #f8fbfe; }
.operator-reply-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #235896; font-size: 13.5px; font-weight: 750; }
.operator-reply-heading span { color: #748496; font-size: 12px; font-weight: 400; }
.operator-reply-card p { margin: 12px 0 0; white-space: pre-wrap; line-height: 1.68; font-size: 14.5px; color: #2d3748; word-break: break-word; }

.empty-reply-card { padding: 18px 20px; border: 1px solid #e3e8ee; border-radius: 14px; background: #f9fafb; color: #4a5568; }
.empty-reply-header { margin-bottom: 6px; }
.empty-reply-badge { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 750; color: #4a5568; }
.empty-reply-card p { margin: 0; font-size: 13px; line-height: 1.55; color: #718096; }

.comment-count-badge { color: var(--jjoob-brand); font-size: 13.5px; font-weight: 750; margin-left: 2px; }

.request-back-wrap { display: flex; justify-content: flex-end; margin: 0 0 16px; }
.request-back-wrap--bottom { margin: 28px 0 0; }
.request-back-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid #dbe4ee; border-radius: 9px; background: #fff; color: #365b82; font-size: 13px; font-weight: 750; text-decoration: none; }
.request-back-link:hover { border-color: #aebfd0; background: #f6f9fc; }

.post-nav-top { margin-bottom: 16px; }
.post-nav-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--jjoob-line); }
.back-link { display: inline-flex; align-items: center; min-height: 36px; color: var(--jjoob-subtle); font-size: 13px; font-weight: 650; }
.back-link:hover { color: var(--jjoob-brand); }

.load-more-wrap { display: flex; justify-content: center; margin: 20px 0 8px; }
.load-more-btn { min-height: 42px; padding: 0 20px; border-radius: 10px; font-size: 13px; font-weight: 700; width: 100%; max-width: 320px; }

:focus-visible { outline: 2px solid var(--jjoob-brand); outline-offset: 2px; }
