
/* Blog Archive — 워드프레스 글 목록과 동일한 카드·탭·사이드바 */
.gm-blog {
  --gm-navy: var(--text);
  --gm-cobalt: var(--primary);
  --gm-soft: color-mix(in srgb, var(--primary) 8%, var(--bg));
  margin: 0 auto 56px;
}
.gm-blog-page { padding: clamp(2.2rem, 5vw, 4.2rem) 0 var(--section-space); }
.gm-blog-head {
  padding: 8px 0 22px;
  border-bottom: 1px solid #e5eaf1;
  text-align: center;
}
.gm-blog-h1 {
  margin: 0 0 10px;
  color: var(--gm-navy);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  word-break: keep-all;
}
.gm-blog-lead {
  margin: 0 auto 20px;
  max-width: 660px;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
  word-break: keep-all;
}
.gm-blog-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
}
.gm-blog-tab {
  position: relative;
  padding: 6px 2px;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.gm-blog-tab span { margin-left: 3px; font-weight: 500; opacity: 0.75; }
.gm-blog-tab:hover { color: var(--gm-navy); }
.gm-blog-tab.is-active { color: var(--gm-cobalt); }
.gm-blog-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--gm-cobalt);
}
.gm-blog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 44px;
  align-items: start;
  padding-top: 30px;
}
.gm-blog-main { min-width: 0; }
.gm-blog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.gm-blog-bar-title {
  margin: 0;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--gm-navy);
  color: var(--gm-navy);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
  word-break: keep-all;
}
.gm-blog-share { display: flex; flex: none; gap: 8px; }
.gm-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  padding: 0;
  border: 1px solid #dfe6ef;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.gm-share-btn:hover { border-color: var(--gm-cobalt); color: var(--gm-cobalt); }
.gm-share-copy.is-copied { border-color: #16a34a; color: #16a34a; }
.gm-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 26px;
}
.gm-bcard { display: flex; flex-direction: column; min-width: 0; }
.gm-bcard[hidden] { display: none; }
.gm-bcard-thumb {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: #eef3fa;
  aspect-ratio: 4 / 3;
  line-height: 0;
}
.gm-bcard-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gm-bcard:hover .gm-bcard-thumb img { transform: scale(1.04); }
.gm-bcard-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  color: #b6c4d6;
  font-size: 1.6rem;
}
.gm-bcard-body { padding-top: 14px; }
.gm-bcard-cat {
  display: inline-block;
  margin-bottom: 7px;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none !important;
}
.gm-bcard-cat:hover { color: var(--gm-cobalt); }
.gm-bcard-title {
  margin: 0 0 12px;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.gm-bcard-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--gm-navy);
  text-decoration: none !important;
}
.gm-bcard-title a:hover { color: var(--gm-cobalt); }
.gm-bcard-date { color: #a3b0c2; font-size: 0.8rem; }
.gm-blog-empty { padding: 60px 0; color: #64748b; text-align: center; }
.gm-blog-side { min-width: 0; }
.gm-side-block { margin-bottom: 30px; }
.gm-side-title {
  margin: 0 0 14px;
  color: var(--gm-navy);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
}
.gm-tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.gm-tag-chip {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.79rem;
  font-weight: 500;
  text-decoration: none !important;
  word-break: keep-all;
}
.gm-tag-chip:hover,
.gm-tag-chip.is-active {
  background: color-mix(in srgb, var(--gm-cobalt) 10%, transparent);
  color: var(--gm-cobalt);
}
.gm-pop-list { list-style: none; margin: 0; padding: 0; }
.gm-pop-list li {
  display: flex;
  gap: 9px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}
.gm-pop-list li:last-child { border-bottom: 0; }
.gm-pop-num {
  flex: none;
  color: var(--gm-cobalt);
  font-size: 0.85rem;
  font-weight: 700;
}
.gm-pop-list a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-width: 0;
  color: #334155;
  font-size: 0.85rem;
  line-height: 1.45;
  text-decoration: none !important;
  word-break: keep-all;
}
.gm-pop-list a:hover { color: var(--gm-cobalt); }
.gm-side-cta {
  padding: 20px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: var(--gm-soft);
  text-align: center;
}
.gm-side-cta-title {
  margin: 0 0 5px;
  color: var(--gm-navy);
  font-size: 0.96rem;
  font-weight: 700;
}
.gm-side-cta-desc {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.83rem;
  line-height: 1.55;
  word-break: keep-all;
}
.gm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.2;
}
.gm-btn-sm { padding: 9px 12px; font-size: 12px; border-radius: 10px; }
.gm-btn-primary { background: var(--gm-cobalt); color: #fff !important; }
.gm-btn-kakao { background: #FEE500; color: #191600 !important; }
.gm-side-cta .gm-btn { width: 100%; margin-bottom: 7px; }
.gm-blog-pager { margin-top: 40px; }
.gm-blog-pager ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.gm-blog-pager li { margin: 0; }
.gm-blog-pager .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px; height: 34px;
  padding: 0 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none !important;
}
.gm-blog-pager .page-numbers:hover { border-color: var(--gm-cobalt); color: var(--gm-cobalt); }
.gm-blog-pager .page-numbers.current {
  border-color: var(--gm-cobalt);
  background: var(--gm-cobalt);
  color: #fff;
}
.gm-blog-pager .page-numbers.dots { border-color: transparent; background: transparent; }
@media (max-width: 900px) {
  .gm-blog-body { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .gm-blog-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px;
    align-items: start;
  }
  .gm-side-cta { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .gm-blog-h1 { font-size: 1.55rem; }
  .gm-blog-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gm-blog-tabs::-webkit-scrollbar { display: none; }
  .gm-blog-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .gm-bcard-title { font-size: 1rem; }
  .gm-blog-side { grid-template-columns: minmax(0, 1fr); }
}
