[v-cloak] {
  display: none !important;
}

/* SNS 첫 로그인 닉네임 폼 (런타임이 [data-gb-social-register] 자리에 넣음). 글자색은 블록 CSS가 정한다. */
.gb-social-register-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.6rem;
}
.gb-social-register-form .gb-social-register-title {
  margin: 0;
  font-weight: 600;
}
.gb-social-register-form .btnset {
  margin: 0;
}

/* 기존 Quill/스마트에디터 HTML 호환 (상세 본문) */
.gb-read-body img,
.ql-editor img,
.ck-content img {
  max-width: 100%;
  height: auto;
}
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }

/* CKEditor 5 글쓰기/수정 */
.gb-ckeditor-host,
#editor .ck.ck-editor,
#edit-editor .ck.ck-editor {
  width: 100%;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}
#editor .ck.ck-toolbar,
#edit-editor .ck.ck-toolbar,
.form-editor .ck.ck-toolbar,
.gb-ckeditor-ui .ck.ck-toolbar {
  border: none;
  border-bottom: 1px solid #ccc;
}
/* attachTo 시 #editor 는 display:none 되고, 실제 편집면은 형제 .ck-editor 안 .ck-content */
.form-editor .ck.ck-editor .ck-content.ck-editor__editable,
.gb-ckeditor-ui .ck-content.ck-editor__editable,
.ck.ck-editor .ck-editor__editable_inline {
  height: 300px !important;
  min-height: 300px !important;
  max-height: 300px !important;
}
.ck.ck-editor__editable_inline {
  padding: 0 var(--ck-spacing-standard);
  border: 1px solid #0000;
  overflow: auto;
  border: none;
  border-top: 1px solid;
}
.form-editor .ck-source-editing-area,
.gb-ckeditor-ui .ck-source-editing-area,
.form-editor .ck-source-editing-area textarea,
.gb-ckeditor-ui .ck-source-editing-area textarea {
  height: 300px !important;
  min-height: 300px !important;
  max-height: 300px !important;
}

.ck-content table:not([style]),
.gb-read-body table:not([style]),
.ql-editor table:not([style]) {
  width: 100%;
  border-collapse: collapse;
}
.ck-content table[style],
.ck-content figure.table:not(.layout-table) > table[style] {
  border: none !important;
  width: auto;
  height: auto;
}
.ck-content table[style] td,
.ck-content table[style] th,
.ck-content figure.table > table[style] td,
.ck-content figure.table > table[style] th,
.ck-content table td[style],
.ck-content table th[style] {
  border: none !important;
  min-width: 0 !important;
}
.ck-content figure.media,
.gb-read-body figure.media {
  margin: 1rem 0;
}
.ck-content figure.media iframe,
.gb-read-body figure.media iframe {
  max-width: 100%;
}

.gnuboard-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40rem;
  text-align: center;
}

.gnuboard-empty img {
  width: 25rem;
  height: 6.8rem;
  object-fit: cover;
}

.gnuboard-empty strong {
  display: block;
  font-size: 2rem;
  line-height: 3rem;
  font-weight: 700;
  margin: 1.6rem 0 .4rem;
}

.gnuboard-empty p {
  font-size: 1.4rem;
  line-height: 2rem;
}

/* SNS 로그인 아이콘 */
.btnset-icon.ico-kakao::before,
.btnset-icon.ico-naver::before,
.btnset-icon.ico-google::before,
.btnset-icon.ico-facebook::before {
  content: "";
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  background: no-repeat center / contain;
}
.btnset-icon.ico-kakao::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%2226%22%20viewBox%3D%220%200%2026%2026%22%3E%3Cg%20transform%3D%22translate%28-356%20-1293%29%22%3E%3Cg%20transform%3D%22translate%28356%201293%29%22%3E%3Cpath%20d%3D%22M-3098.326-48.6c-7.18%2C0-13%2C4.637-13%2C10.354%2C0%2C3.636%2C2.354%2C6.831%2C5.912%2C8.678l-1.225%2C5.091%2C5.864-3.6a16.375%2C16.375%2C0%2C0%2C0%2C2.449.186c7.18%2C0%2C13-4.635%2C13-10.354s-5.821-10.354-13-10.354%22%20transform%3D%22translate%283111.326%2049.682%29%22%20fill%3D%22%23371c1d%22%2F%3E%3Crect%20width%3D%2226%22%20height%3D%2226%22%20fill%3D%22none%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.btnset-icon.ico-naver::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%2226%22%20viewBox%3D%220%200%2026%2026%22%3E%3Crect%20width%3D%2226%22%20height%3D%2226%22%20fill%3D%22%23e50025%22%20opacity%3D%220%22%2F%3E%3Cpath%20d%3D%22M17.178%2C5v9.082L10.846%2C5H4V23h6.823V13.918L17.156%2C23H24V5Z%22%20transform%3D%22translate%28-1%20-1%29%22%20fill%3D%22%232db400%22%2F%3E%3C%2Fsvg%3E");
}
.btnset-icon.ico-google::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20width%3D%2226%22%20height%3D%2226%22%20viewBox%3D%220%200%2026%2026%22%3E%3Cdefs%3E%3CclipPath%20id%3D%22a%22%3E%3Cpath%20d%3D%22M423.511%2C267.237v4.642h6.458a5.521%2C5.521%2C0%2C0%2C1-2.395%2C3.622v3.011h3.878a11.7%2C11.7%2C0%2C0%2C0%2C3.578-8.82%2C13.779%2C13.779%2C0%2C0%2C0-.218-2.455Z%22%20transform%3D%22translate%28-423.511%20-267.237%29%22%20fill%3D%22none%22%2F%3E%3C%2FclipPath%3E%3CclipPath%20id%3D%22b%22%3E%3Cpath%20d%3D%22M288.824%2C323.276v3.109A12%2C12%2C0%2C0%2C0%2C299.547%2C333a11.457%2C11.457%2C0%2C0%2C0%2C7.941-2.907l-3.878-3.011a7.239%2C7.239%2C0%2C0%2C1-10.778-3.8Z%22%20transform%3D%22translate%28-288.824%20-323.276%29%22%20fill%3D%22none%22%2F%3E%3C%2FclipPath%3E%3CclipPath%20id%3D%22c%22%3E%3Cpath%20d%3D%22M274.069%2C226.955a12.014%2C12.014%2C0%2C0%2C0%2C0%2C10.778l4.009-3.109a7.094%2C7.094%2C0%2C0%2C1%2C0-4.56v-3.109Z%22%20transform%3D%22translate%28-272.793%20-226.955%29%22%20fill%3D%22none%22%2F%3E%3C%2FclipPath%3E%3CclipPath%20id%3D%22d%22%3E%3Cpath%20d%3D%22M288.824%2C150.534l4.009%2C3.109a7.151%2C7.151%2C0%2C0%2C1%2C6.714-4.947%2C6.482%2C6.482%2C0%2C0%2C1%2C4.587%2C1.795l3.442-3.442a11.531%2C11.531%2C0%2C0%2C0-8.029-3.125%2C12%2C12%2C0%2C0%2C0-10.723%2C6.611%22%20transform%3D%22translate%28-288.824%20-143.923%29%22%20fill%3D%22none%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3Cg%20transform%3D%22translate%28-669%20-1265%29%22%3E%3Cg%20transform%3D%22translate%28329.539%20912%29%22%3E%3Crect%20width%3D%2226%22%20height%3D%2226%22%20transform%3D%22translate%28339.461%20353%29%22%20fill%3D%22%23fff%22%20opacity%3D%220%22%2F%3E%3Cg%20transform%3D%22translate%28340.702%20354.001%29%22%3E%3Cg%20transform%3D%22translate%280%200%29%22%3E%3Cg%20transform%3D%22translate%2812%209.818%29%22%3E%3Cg%20transform%3D%22translate%280%200%29%22%20clip-path%3D%22url%28%23a%29%22%3E%3Crect%20width%3D%2224.852%22%20height%3D%2224.607%22%20transform%3D%22translate%28-6.666%20-6.666%29%22%20fill%3D%22%233269b1%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%281.276%2014.279%29%22%3E%3Cg%20transform%3D%22translate%280%200%29%22%20clip-path%3D%22url%28%23b%29%22%3E%3Crect%20width%3D%2231.997%22%20height%3D%2223.052%22%20transform%3D%22translate%28-6.666%20-6.666%29%22%20fill%3D%22%233d983e%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%280%206.611%29%22%3E%3Cg%20transform%3D%22translate%280%200%29%22%20clip-path%3D%22url%28%23c%29%22%3E%3Crect%20width%3D%2218.618%22%20height%3D%2224.111%22%20transform%3D%22translate%28-6.667%20-6.666%29%22%20fill%3D%22%23fbaa00%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3Cg%20transform%3D%22translate%281.276%200%29%22%3E%3Cg%20transform%3D%22translate%280%29%22%20clip-path%3D%22url%28%23d%29%22%3E%3Crect%20width%3D%2232.085%22%20height%3D%2223.052%22%20transform%3D%22translate%28-5.559%20-0.159%29%22%20fill%3D%22%23df2925%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.btnset-icon.ico-facebook::before {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%2226%22%20viewBox%3D%220%200%2026%2026%22%3E%3Cg%20transform%3D%22translate%2810.428%2010%29%22%3E%3Crect%20width%3D%2226%22%20height%3D%2226%22%20rx%3D%2213%22%20transform%3D%22translate%28-10.428%20-10%29%22%20fill%3D%22%233b579d%22%2F%3E%3Cg%20transform%3D%22translate%28-5.71%20-5.232%29%22%3E%3Cpath%20d%3D%22M-3417.8-49.351h1.665V-51.96h-2.495A3.385%2C3.385%2C0%2C0%2C0-3421.2-50.7a3.548%2C3.548%2C0%2C0%2C0-.692%2C2.515h0v1.957h-2.466v2.771h2.466V-36.3h2.843v-7.156h2.447l.342-2.771h-2.788v-1.957h0A1.139%2C1.139%2C0%2C0%2C1-3417.8-49.351Z%22%20transform%3D%22translate%283428.611%2052.192%29%22%20fill%3D%22%23fff%22%2F%3E%3Crect%20width%3D%2216%22%20height%3D%2215.954%22%20transform%3D%22translate%280.281%200.278%29%22%20fill%3D%22none%22%20opacity%3D%220.2%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
