/* 회원 앱 커뮤니티 게시판 */
.page-head--board .page-head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.board-guide-link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--app-gold, #c9a227);
  text-decoration: none;
}
.board-cat-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 12px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.board-cat-scroll::-webkit-scrollbar { display: none; }
.board-cat-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--app-text-muted);
  background: var(--app-surface-2, var(--app-surface-muted));
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.board-cat-chip.is-active {
  color: #1a1208;
  background: linear-gradient(180deg, #e8c96a 0%, #c9a227 100%);
  border-color: rgba(201, 162, 39, 0.4);
}
.board-cat-badge {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--app-gold);
  background: var(--app-gold-soft);
  vertical-align: middle;
}
.board-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.board-write-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1208;
  background: linear-gradient(180deg, #e8c96a 0%, #c9a227 100%);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.2);
}
.board-sanction-hint {
  margin: 0;
  font-size: 12px;
  color: #dc2626;
}
.board-sanction-hint--info {
  color: var(--app-text-muted, #64748b);
}
.board-alert {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.board-alert--warn {
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
}
.board-alert a { color: #b45309; font-weight: 600; }
.board-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 8px;
}
.board-pager__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 18px;
  text-decoration: none;
  color: var(--app-text, #0f172a);
  background: var(--app-surface-2, #f1f5f9);
}
.board-pager__info { font-size: 13px; color: var(--app-text-muted, #64748b); }

/* 목록 — 무한 스크롤 · 읽음 표시 */
.board-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 2px;
  font-size: 12px;
  color: var(--app-text-muted, #64748b);
}
.board-list-meta__total { font-weight: 700; color: var(--app-text, #0f172a); }
.board-list-card { position: relative; min-height: 80px; }
.board-list-loading {
  margin: 0;
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--app-text-muted, #94a3b8);
}
.board-list-sentinel {
  height: 1px;
  margin: 0;
  padding: 0;
}
.board-list-end {
  margin: 0;
  padding: 12px 16px 4px;
  text-align: center;
  font-size: 12px;
  color: var(--app-text-muted, #94a3b8);
}
.app-list__item--read .app-list__title {
  font-weight: 500;
  color: var(--app-text-muted, #64748b);
}
.app-list__read-mark {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--app-text-subtle, #cbd5e1);
}
.board-list-card .app-list__ad-break {
  list-style: none;
  border-top: 1px solid var(--app-border-soft, #e2e8f0);
}
.board-list-card .app-list__ad-break .app-ad-banner {
  margin: 8px 12px;
}
.board-article .app-ad-banner--inset {
  margin: 16px 0 4px;
}

/* 상세 */
.board-carpool-meta {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  background: var(--app-surface-2, var(--app-surface-muted));
  border: 1px solid var(--app-border);
  color: var(--app-text);
}
.board-carpool-meta p { margin: 4px 0; }
.board-article__body { white-space: pre-wrap; word-break: break-word; }
.board-rich-wrap {
  white-space: normal;
  color: var(--board-rich-body, var(--app-text-muted));
}

/* 스크랩 원문 HTML (포커라이프·WSOP·APT 등) */
.board-rich__html {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--board-rich-body, var(--app-text-muted));
  word-break: break-word;
}
.board-rich--news .board-rich__html {
  font-size: 16px;
  line-height: 1.85;
}
.board-rich--news .board-rich__html p,
.board-rich--news .board-rich__html .board-rich__para {
  margin: 0 0 20px;
}
.board-rich--news .board-rich__html .board-rich__lead {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--app-border-soft, #e2e8f0);
}
.board-rich--news .board-rich__html h2,
.board-rich--news .board-rich__html .board-rich__h2,
.board-rich--news .board-rich__html h3,
.board-rich--news .board-rich__html .board-rich__h3 {
  margin-top: 28px;
}
.board-rich__html p,
.board-rich__html .board-rich__para { margin: 0 0 16px; color: var(--board-rich-body, var(--app-text-muted)); }
.board-rich__html .board-rich__para:first-of-type {
  font-size: 17px;
  line-height: 1.7;
  color: var(--board-rich-lead, var(--app-text));
  font-weight: 500;
}
.board-rich__html h2,
.board-rich__html .board-rich__h2 {
  margin: 28px 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--board-rich-heading, var(--app-text));
}
.board-rich__html h3,
.board-rich__html .board-rich__h3 {
  margin: 22px 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--board-rich-heading, var(--app-text));
}
.board-rich__html ul,
.board-rich__html .board-rich__ul {
  margin: 0 0 16px 1.2em;
  padding: 0;
  color: var(--board-rich-body, var(--app-text-muted));
}
.board-rich__html li { margin: 0 0 8px; }
.board-rich__html img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 8px 0;
}
.board-rich__html a { color: var(--board-rich-link, var(--app-gold)); }
.board-rich__html b,
.board-rich__html strong { font-weight: 700; color: var(--board-rich-heading, var(--app-text)); }
.board-rich__table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  -webkit-overflow-scrolling: touch;
}
.board-rich__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}
.board-rich__table td,
.board-rich__table th {
  padding: 8px 10px;
  border: 1px solid var(--board-rich-table-border, var(--app-border));
  color: var(--board-rich-body, var(--app-text-muted));
  vertical-align: top;
}
.board-rich__table tr:first-child td {
  font-weight: 700;
  background: var(--board-rich-table-head-bg, var(--app-surface-muted));
  color: var(--board-rich-heading, var(--app-text));
}

/* 운영 피드 리치 본문 */
.board-rich {
  font-size: 15px;
  line-height: 1.75;
  color: var(--board-rich-body, var(--app-text));
}
.board-rich__kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--app-gold, #a8841e);
}
.board-rich__kicker--news { color: var(--board-rich-kicker-news, #0d9488); }
.board-rich__lead {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--board-rich-lead, var(--app-text));
}
.board-rich__lead--news { font-size: 16px; }
.board-rich__para {
  margin: 0 0 12px;
  color: var(--board-rich-body, var(--app-text-muted));
}
.board-rich__em {
  color: var(--app-gold, #a8841e);
  font-weight: 700;
}
.board-rich--news .board-rich__em { color: var(--board-rich-em-news, #0f766e); }
.board-rich__list {
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
}
.board-rich__list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--app-surface-2, var(--app-surface-muted));
  border: 1px solid var(--app-border-soft);
  color: var(--board-rich-body, var(--app-text-muted));
}
.board-rich__list-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #a8841e, #c9a227);
}
.board-rich--news .board-rich__list-num {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}
.board-rich__list-text { flex: 1; min-width: 0; }
.board-rich__callout {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 4px solid var(--app-gold, #a8841e);
  background: linear-gradient(90deg, rgba(168, 132, 30, 0.08), transparent);
}
.board-rich__callout p { margin: 0; font-size: 14px; color: var(--board-rich-callout-text, var(--app-text-muted)); }
.board-rich__tagline {
  margin: 18px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--app-border-soft);
  font-size: 12px;
  color: var(--app-text-subtle);
  text-align: right;
}
.board-rich__figure {
  margin: 0 0 14px;
  padding: 0;
}
.board-rich__figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.board-rich__figure--side-right {
  float: right;
  width: 38%;
  max-width: 140px;
  margin: 4px 0 10px 14px;
}
.board-rich__figure--side-left {
  float: left;
  width: 38%;
  max-width: 140px;
  margin: 4px 14px 10px 0;
}
.board-rich__figure--side-right img,
.board-rich__figure--side-left img {
  max-height: 120px;
}
.board-rich__figure--inset,
.board-rich__figure--center {
  width: 78%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.board-rich__figure--inset img { max-height: 160px; }
.board-rich-wrap::after,
.board-rich::after {
  content: "";
  display: table;
  clear: both;
}

.board-article__images { margin-top: 14px; }
.board-article__image {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.board-article__source {
  margin-top: 12px;
  font-size: 12px;
}
.board-article__source a { color: var(--app-gold, #a8841e); }
.board-article__actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--app-border, #e2e8f0);
}
.board-report-btn {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--app-text-muted);
  background: var(--app-surface-2, var(--app-surface-muted));
  border: 1px solid var(--app-border);
  cursor: pointer;
}
.board-report-btn--ghost { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
.board-report-btn--sm { margin-top: 8px; padding: 6px 10px; font-size: 11px; }

/* 댓글 */
.board-comments { margin-top: 12px; }
.board-comments__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--app-text);
}
.board-comment-list { list-style: none; margin: 0; padding: 0; }
.board-comment {
  padding: 12px 0;
  border-bottom: 1px solid var(--app-border, #e2e8f0);
}
.board-comment:last-child { border-bottom: none; }
.board-comment__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.board-comment__author { font-size: 13px; font-weight: 700; color: var(--app-text); }
.board-comment__date { font-size: 11px; color: var(--app-text-muted); }
.board-comment__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--app-text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.board-comment-form { margin-top: 14px; }
.board-comment-form__input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--app-text);
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  resize: vertical;
  box-sizing: border-box;
}
.board-comment-form__submit {
  margin-top: 8px;
  width: 100%;
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1208;
  background: linear-gradient(180deg, #e8c96a 0%, #c9a227 100%);
  border: none;
  cursor: pointer;
}

/* 글쓰기 */
.board-write-form { padding: 16px; }
.board-write-field { margin-bottom: 14px; }
.board-write-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--app-text);
}
.board-write-input,
.board-write-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--app-text);
  border: 1px solid var(--app-border);
  background: var(--app-surface);
  box-sizing: border-box;
}
.board-write-textarea { resize: vertical; min-height: 160px; }
.board-write-notice {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--app-text-muted, #64748b);
}
.board-write-notice a { color: var(--app-gold, #a8841e); }
.board-write-submit {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #1a1208;
  background: linear-gradient(180deg, #e8c96a 0%, #c9a227 100%);
  border: none;
  cursor: pointer;
}

/* 운영 안내 */
.board-guide { padding: 18px 16px 24px; }
.board-guide__title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.board-guide__section {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--app-text-muted);
}
.board-guide__section h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--app-text);
}
.board-guide__section ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.board-guide__section li { margin-bottom: 4px; }
.board-guide__emph {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--app-text-muted);
  background: var(--app-surface-2, var(--app-surface-muted));
}
.board-guide__section--warn {
  padding: 14px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.board-guide__section--warn h2 { color: #c2410c; }

/* 신고 모달 */
.board-modal[hidden] { display: none !important; }
.board-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.board-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}
.board-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0));
  border-radius: 16px 16px 0 0;
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  -webkit-overflow-scrolling: touch;
}
.board-modal__label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--app-text, #0f172a);
}
.board-modal__required { color: #dc2626; }
.board-report-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.board-reason-chip {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--app-text);
  background: var(--app-surface-2, var(--app-surface-muted));
  border: 2px solid transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.board-reason-chip.is-selected {
  color: #1a1208;
  background: rgba(201, 162, 39, 0.15);
  border-color: #c9a227;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.25);
}
body.board-modal-open { overflow: hidden; }
.board-modal__title { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.board-modal__desc { margin: 0 0 14px; font-size: 12px; color: var(--app-text-muted, #64748b); }
.board-modal__textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--app-text);
  background: var(--app-surface-muted);
  border: 1px solid var(--app-border);
  box-sizing: border-box;
  resize: none;
}
.board-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.board-modal__btn {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.board-modal__btn--ghost {
  color: var(--app-text-muted);
  background: var(--app-surface-2, var(--app-surface-muted));
}
.board-modal__btn--primary {
  color: #1a1208;
  background: linear-gradient(180deg, #e8c96a 0%, #c9a227 100%);
}

[data-app-theme="dark"] .board-cat-chip.is-active {
  color: #1a1208;
}
