/* =========================
   Community Header
========================= */

.community-back {
  margin-bottom: 15px;
}

.community-back a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s ease;
}

.community-back a:hover {
  color: #000;
}

.community-write-title {
  font-size: 20px;
  font-weight: 700;
  color: #1E40AF;
  margin-bottom: 16px;
  line-height: 1.3;
  
  word-break: keep-all;

  overflow-wrap: break-word;
  
  position: relative;
  z-index: 1;
  
}

.community-single-card,
.community-single-content {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.community-single-content {
  overflow-wrap: anywhere;
  word-break: normal;
}

.community-single-content > * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Rich text pasted from external editors can retain non-wrapping styles. */
.community-single-content [style*="white-space"] {
  white-space: normal !important;
}

.community-single-content pre,
.community-single-content pre code {
  max-width: 100%;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  word-break: normal;
  box-sizing: border-box;
}

.community-single-content code {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.community-single-content a{
  word-break: break-all;
}

.community-post-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 20px;
}

.community-edit-link,
.community-hide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #fff;
  color: #1e40af;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.community-edit-link:hover,
.community-hide-button:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.community-hide-button {
  color: #b42318;
}

.community-hide-button:hover {
  border-color: #f04438;
  background: #fff1f0;
}

/* =========================
   Layout
========================= */

.community-single-card {
  max-width: 900px;
}

/* =========================
   Post Content
========================= */

.community-single-content {
  font-size: 13px;
  line-height: 1.8;
}

.community-single-content p {
  margin-bottom: 18px;
}

/* =========================
   Pagination
========================= */

.community-pagination {
  margin-top: 30px;
  text-align: center;
}

.community-pagination a,
.community-pagination span {
  display: inline-block;
  padding: 6px 10px;
  margin: 0 3px;
  border-radius: 6px;
  text-decoration: none;
}

.community-pagination .current {
  background: #4e6cf1;
  color: #fff;
}

/* =========================
   Comments Area
========================= */

#comments {
  margin-top: 50px;
}

#respond {
  margin-top: 30px;
}

#respond .comment-reply-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #2563EB;
}

/* =========================
   Comment Form
========================= */

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #D6E4FF;
  background: #FAFBFF;
  font-size: 14px;
  outline: none;
  transition: 0.2s ease;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form textarea:focus,
.comment-form input:focus {
  border-color: #2563EB;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* submit button */

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.form-submit input[type="submit"] {
  background: linear-gradient(135deg, #2563EB, #3B82F6);
  color: #fff;
  border: none;
  border-radius: 12px;
  height: 46px;
  padding: 0 24px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s ease;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
}

.form-submit input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.35);
}

.form-submit input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* =========================
   Comment List
========================= */

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list li {
  margin-bottom: 18px;
}

/* reply indentation */

.comment-list .children {
  list-style: none;
  margin-left: 50px;
  padding-left: 16px;
  border-left: 2px solid #eee;
}

/* =========================
   Comment Card
========================= */

.comment-body {
  display: flex;
  flex-direction: column;
  background: #F8FAFF;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 14px 18px;
}

/* =========================
   Author Section
========================= */

.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-author img {
  border-radius: 50%;
}

/* name */

.comment-author strong {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}

/* =========================
   Comment Meta
========================= */

.comment-meta {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.community-comments .sce-edit-button-main,
.community-comments .comment-edit-link {
  display: none !important;
}

.community-comments{

    margin-top:24px;

}
/* =========================
   Comment Content
========================= */

.comment-content {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
}

.ab-comment-edit-textarea {
  width: 100%;
  min-height: 80px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 10px;
  box-sizing: border-box;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.ab-comment-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ab-comment-save,
.ab-comment-cancel {
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
}

.ab-comment-save {
  background: #FF6A00;
  color: #fff;
}

.ab-comment-cancel {
  background: #F3F4F6;
  color: #374151;
}

/* =========================
   Reply Link
========================= */

.reply a,
.comment-reply-link {
  font-size: 11px;
  color: #2563EB;
  text-decoration: none;
}

.reply {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  color: #9CA3AF;
}

.reply a:hover,
.comment-reply-link:hover {
  text-decoration: underline;
}

/* =========================
   Cookie checkbox
========================= */

.comment-form-cookies-consent {
  font-size: 13px;
  color: #555;
}

.sce-edit-button-main{
    color:#666 !important;
}

/* ordered / unordered lists */

.community-single-content ol {
  list-style-type: decimal !important;
  padding-left: 28px !important;
  margin: 16px 0 !important;
}

.community-single-content ul {
  list-style-type: disc !important;
  padding-left: 28px !important;
  margin: 16px 0 !important;
}

.community-single-content li {
  display: list-item !important;
  margin-bottom: 10px;
  line-height: 1.8;
}

.logged-in-as{
  display:none !important;
}

/******************
  좋아요 추가 2026.6.25
  *****************/

.community-like-wrap{

    display:flex;
    justify-content:center;
    align-items:center;
    gap:24px;

    margin:30px 0;
    padding:16px 0;

    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
}

.community-like-count{

    font-size:16px;
    font-weight:600;
    color:#555;
}

.community-like-btn{

    border:none;
    background:none;
    cursor:pointer;

    font-size:16px;
    font-weight:600;

    color:#666;
}

.community-like-btn.liked{

    color:#ff7a00;
}

/* ==========================
   Town Square Detail  광고 추가 2026.6.26
========================== */

.ab-ts-detail-adsense{

    width:100%;
    margin:0;

}

.ab-ts-detail-banner{

    position:relative;

    display:block;

    width:100%;

    border-radius:16px;

    overflow:hidden;

}

/* Sponsored Badge */

.ab-sponsored-badge{

    position:absolute;
    top:10px;
    left:10px;
    z-index:10;

    display:flex;
    align-items:center;
    gap:4px;

    padding:4px 10px;

    background:rgba(0,0,0,.72);
    color:#fff;

    font-size:11px;
    font-weight:600;

    border-radius:999px;

    backdrop-filter:blur(4px);
}

.ab-sponsored-badge svg{

    width:14px;

    height:14px;

    display:block;

    fill:currentColor;
}

.ab-ts-detail-banner img{

    width:100%;

    display:block;

}

/* ==========================
   Mobile Sponsored Badge
========================== */

@media (max-width:768px){

    .ab-sponsored-badge{

        top:6px;
        left:6px;

        gap:3px;

        padding:2px 6px;

        font-size:9px;

        font-weight:600;
    }

    .ab-sponsored-badge svg{

        width:10px;
        height:10px;
    }

}
.ab-author-profile-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.ab-author-profile-link:hover {
  color: #f97316;
  text-decoration: underline;
}
