/* 칼럼 목록 / 글 보기 */
.col-page { max-width: 1188px; padding-top: 200px; padding-bottom: 160px; }
.col-heading { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.col-heading span { margin-left: 4px; font-weight: 500; }

.col-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 22px; margin-top: 22px; }
.col-card { display: block; }
.col-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; background: #d9d9d9; overflow: hidden; }
.col-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.col-card:hover .col-thumb img { transform: scale(1.04); }
.col-new { position: absolute; top: 12px; right: 14px; padding: 3px 12px; border-radius: 20px; background: #222; color: #fff; font-size: 11px; font-weight: 700; }
.col-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 18px 8px 10px; }
.col-card-head h2 { font-size: 18px; font-weight: 500; color: var(--ink); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.col-card:hover h2 { color: var(--blue); }
.col-like { flex: none; font-size: 17px; color: #222; }
.col-like::first-letter { color: #ff5a5f; }
.col-meta { margin: 4px 8px 0; font-size: 13px; color: #555; }
.col-empty { padding: 120px 0; text-align: center; color: var(--muted); }

.col-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: 90px; }
.col-pager { grid-column: 2; display: flex; align-items: center; gap: 4px; }
.col-pager a { min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; font-size: 13px; color: #888; }
.col-pager a:hover { color: var(--blue); }
.col-pager a.is-on { background: var(--blue); color: #fff; }
.col-pager a.is-off { visibility: hidden; }
.col-tools { grid-column: 3; justify-self: end; display: flex; gap: 20px; }
.col-search { display: flex; align-items: center; width: 180px; height: 40px; background: #f2f2f2; }
.col-search input { flex: 1; min-width: 0; height: 100%; padding: 0 0 0 16px; border: 0; background: none; outline: none; font-size: 14px; }
.col-search button { width: 44px; height: 100%; border: 0; background: none; color: #888; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.col-write { display: inline-flex; align-items: center; justify-content: center; width: 100px; height: 40px; border-radius: 3px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
.col-write:hover { background: #0b86ec; }

/* 글 보기 (본문은 관리자 편집기(Quill) 결과라 quill.core.css 를 함께 씀) */
.col-article { max-width: 880px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.col-back { font-size: 15px; color: var(--muted); }
.col-back:hover { color: var(--blue); }
.col-hidden-note { color: #e5484d; }
.col-article-title { margin-top: 18px; font-size: 36px; line-height: 1.4; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.col-article .col-meta { margin: 14px 0 0; padding-bottom: 28px; border-bottom: 1px solid var(--line); font-size: 15px; }
.col-body, .col-body.ql-editor { height: auto; overflow: visible; padding: 40px 0 0; font-size: 18px; line-height: 1.9; color: var(--text); }
.col-body > * { cursor: auto; }
.col-body h2 { margin: 1.6em 0 .6em; font-size: 26px; line-height: 1.4; color: var(--ink); }
.col-body h3 { margin: 1.4em 0 .5em; font-size: 21px; line-height: 1.4; color: var(--ink); }
.col-body img { display: inline-block; margin: 12px 0; border-radius: 8px; }
.col-body a { color: var(--blue); text-decoration: underline; }
/* HTML 직접 입력 글: common.css 초기화로 없어진 기본 모양 되살림 */
.col-html p, .col-html ul, .col-html ol, .col-html table, .col-html blockquote { margin: 0 0 1em; }
.col-html ul { padding-left: 1.5em; list-style: disc; }
.col-html ol { padding-left: 1.5em; list-style: decimal; }
.col-html table { border-collapse: collapse; max-width: 100%; }
.col-html th, .col-html td { border: 1px solid var(--line); padding: 8px 12px; }
.col-html iframe, .col-html video { max-width: 100%; }
.col-article-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line); }
.col-like-btn { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 20px; border: 1px solid var(--line); border-radius: 23px; background: #fff; font-size: 17px; cursor: pointer; }
.col-like-btn .col-heart { color: #ff5a5f; font-size: 20px; }
.col-like-btn.is-on { border-color: #ffc5c7; background: #fff5f5; cursor: default; }

@media (max-width: 1024px) {
  .col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .col-page { padding-top: 110px; padding-bottom: 100px; }
  .col-grid { gap: 32px 14px; }
  .col-card-head { margin: 12px 2px 6px; }
  .col-card-head h2 { font-size: 16px; }
  .col-meta { margin-left: 2px; }
  .col-bottom { grid-template-columns: 1fr; margin-top: 56px; }
  .col-pager { grid-column: 1; justify-self: center; }
  .col-tools { grid-column: 1; justify-self: stretch; }
  .col-search { flex: 1; width: auto; }
  .col-article-title { font-size: 27px; }
  .col-body, .col-body.ql-editor { font-size: 16px; }
  .col-body h2 { font-size: 22px; }
  .col-body h3 { font-size: 19px; }
}
