body {
  margin: 0;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--chch-text);
  background:
    radial-gradient(circle at top, var(--chch-bg-radial), transparent 32%),
    linear-gradient(180deg, var(--chch-bg-start) 0%, var(--chch-bg-mid) 48%, var(--chch-bg-end) 100%);
}

a {
  color: var(--chch-link);
  text-decoration: none;
}

a:hover {
  color: var(--chch-link-hover);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

.blog-v4-page {
  min-width: 320px;
}

.blog-v4-header {
  position: relative;
  padding: 10px 0;
}

.blog-v4-header-inner,
.blog-v4-content,
.blog-v4-footer-inner,
.blog-v4-footer-bottom {
  width: 1240px;
  margin: 0 auto;
}

.blog-v4-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.blog-v4-brand-block {
  min-width: 0;
}

.blog-v4-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.blog-v4-brand-kr {
  font-size: 34px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.04em;
  color: var(--chch-card-heading);
}

.blog-v4-brand-en {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #89afd5;
}

.blog-v4-header-tools {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}

.blog-v4-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-v4-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--chch-button-border);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #6483a3;
  font-size: 13px;
  font-weight: 700;
}

.blog-v4-nav a.is-active,
.blog-v4-nav a:hover {
  border-color: #9fcaf1;
  background: var(--chch-surface-hover);
  color: var(--chch-link);
}

.blog-v4-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--chch-border);
  border-radius: 18px;
  background: var(--chch-search-bg);
  box-shadow: var(--chch-shadow-card);
  box-sizing: border-box;
}

.blog-v4-search input[type="text"] {
  width: 160px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #4c6884;
  font-size: 14px;
  min-width: 0;
  flex: 1 1 auto;
  box-sizing: border-box;
}

.blog-v4-search button {
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #3d90ea 0%, #7dbef6 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.blog-v4-content {
  padding-top: 20px;
  padding-bottom: 42px;
}

.blog-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, .82fr);
  gap: 24px;
  align-items: start;
}

.blog-home-main,
.blog-home-side {
  min-width: 0;
}

.blog-panel,
.blog-side-card,
.blog-hero {
  background: var(--chch-surface);
  border: 1px solid var(--chch-border);
  border-radius: 28px;
  box-shadow: var(--chch-shadow);
}

.blog-hero,
.blog-panel,
.blog-side-card {
  padding: 24px;
}

.blog-double-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 20px;
  margin-top: 20px;
}

.blog-panel-latest,
.blog-panel-discovery {
  margin-top: 20px;
}

.blog-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.blog-section-heading-compact {
  margin-bottom: 14px;
}

.blog-section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #90b4d8;
}

.blog-section-heading h2,
.blog-section-heading h3,
.blog-side-heading h4 {
  margin: 6px 0 0;
  color: var(--chch-card-heading);
  letter-spacing: -.04em;
}

.blog-section-heading h2 {
  font-size: 38px;
  line-height: 1.02;
}

.blog-section-heading h3 {
  font-size: 28px;
  line-height: 1.08;
}

.blog-side-heading h4 {
  font-size: 24px;
  line-height: 1.08;
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr);
  gap: 18px;
}

.blog-hero-primary {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(0, 1.05fr);
  gap: 18px;
  min-width: 0;
}

.blog-hero-media {
  display: flex;
  align-items: stretch;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #80bbf4 0%, #d6ebff 100%);
}

.blog-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-hero-media-empty,
.blog-mini-story-media span {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}

.blog-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.blog-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--chch-chip-bg);
  color: var(--chch-chip-text);
  font-size: 12px;
  font-weight: 700;
  align-self: flex-start;
}

.blog-chip-soft {
  background: #f3f8fd;
  color: #6886a5;
}

.blog-hero-copy h3 {
  margin: 14px 0 12px;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -.05em;
}

.blog-hero-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #7391ae;
}

.blog-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #8ba6c0;
  font-size: 13px;
}

.blog-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3d90ea 0%, #7cbef6 100%);
  color: #fff;
  font-weight: 700;
}

.blog-hero-secondary {
  display: grid;
  gap: 14px;
}

.blog-mini-story {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--chch-border);
  border-radius: 18px;
  background: var(--chch-surface-soft);
}

.blog-mini-story-media {
  display: block;
  position: relative;
  height: 86px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #88bff2 0%, #cfe7ff 100%);
}

.blog-mini-story-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-mini-story-media span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-mini-story-copy {
  min-width: 0;
}

.blog-mini-story-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #88a6c4;
}

.blog-mini-story-copy h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.blog-ranked-list,
.blog-side-list {
  display: grid;
  gap: 12px;
}

.blog-ranked-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--chch-border);
}

.blog-ranked-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.blog-ranked-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--chch-chip-bg);
  color: var(--chch-card-heading);
  font-size: 14px;
  font-weight: 700;
}

.blog-ranked-copy h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.blog-ranked-meta,
.blog-latest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  color: #8aa5be;
  font-size: 12px;
}

.blog-topic-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-topic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--chch-button-border);
  border-radius: 999px;
  background: var(--chch-surface-soft);
  color: #5e7ea0;
  font-size: 13px;
  font-weight: 700;
}

.blog-topic-chip:hover {
  border-color: #9fcaf1;
  background: var(--chch-surface-hover);
  color: var(--chch-link);
}

.blog-topic-chip.topic-md {
  font-size: 15px;
  min-height: 40px;
  padding: 0 18px;
  background: #edf6ff;
  color: #3d7cc7;
  border-color: #b3d4f0;
}

.blog-topic-chip.topic-lg {
  font-size: 17px;
  min-height: 44px;
  padding: 0 20px;
  background: #dbeeff;
  color: #2968b0;
  border-color: #8bb8e2;
  font-weight: 800;
}

/* 인기 블로그 대문 썸네일 */
.blog-thumb-grid { display:flex; flex-wrap:wrap; gap:8px; }
.blog-thumb-item { display:flex; flex-direction:column; align-items:center; text-decoration:none; transition:transform .15s; width:48px; }
.blog-thumb-item:hover { transform:translateY(-1px); }
.blog-thumb-img { display:block; width:48px; height:48px; border-radius:10px; background-size:cover; background-position:center; background-color:var(--chch-chip-bg); border:1px solid var(--chch-border); }
.blog-thumb-name { margin-top:4px; font-size:9px; color:#4c6884; font-weight:600; text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:48px; }

/* 최신글 상위 3건 — 썸네일 카드 */
.blog-latest-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.blog-latest-card {
  border: 1px solid var(--chch-card-border);
  border-radius: 20px;
  background: var(--chch-card-bg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}

.blog-latest-card:hover {
  box-shadow: 0 8px 24px rgba(51,102,153,.12);
  transform: translateY(-2px);
}

.blog-latest-card-thumb {
  display: block;
  height: 160px;
  overflow: hidden;
  background: linear-gradient(135deg, #88bff2 0%, #cfe7ff 100%);
}

.blog-latest-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-latest-card-body {
  padding: 16px;
}

.blog-latest-card-body h4 {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.blog-latest-card-excerpt {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: #7391ae;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 나머지 글 — 컴팩트 리스트 */
.blog-latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.blog-latest-item {
  padding: 16px;
  border: 1px solid var(--chch-card-border);
  border-radius: 16px;
  background: var(--chch-card-bg-soft);
}

.blog-latest-item h4 {
  margin: 10px 0 0;
  font-size: 17px;
  line-height: 1.4;
}

.blog-discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.blog-discovery-card {
  padding: 20px;
  border: 1px solid var(--chch-border);
  border-radius: 22px;
  background: var(--chch-card-bg-soft);
}

.blog-discovery-card h4 {
  margin: 0 0 14px;
  color: var(--chch-card-heading);
  font-size: 22px;
  line-height: 1.15;
}

.blog-discovery-list {
  display: grid;
  gap: 12px;
}

.blog-discovery-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--chch-border);
}

.blog-discovery-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.blog-discovery-item h5 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.blog-discovery-item p {
  margin: 6px 0 0;
  color: #7d98b2;
  font-size: 13px;
  line-height: 1.6;
}

.blog-discovery-item span {
  flex: 0 0 auto;
  color: #8ca7c0;
  font-size: 12px;
  font-weight: 700;
}

.blog-side-stack {
  display: grid;
  gap: 18px;
}

.blog-side-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.blog-login-embed {
  overflow: hidden;
}

.blog-v4-login-form,
.blog-v4-login-state {
  display: grid;
  gap: 14px;
}

.blog-v4-login-fields {
  display: grid;
  gap: 10px;
}

.blog-v4-login-fields input[type="text"],
.blog-v4-login-fields input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--chch-border);
  border-radius: 14px;
  background: var(--chch-surface-soft);
  color: #4d6984;
  font-size: 14px;
  box-sizing: border-box;
}

.blog-v4-login-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.blog-v4-login-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7894af;
  font-size: 13px;
  margin-top: -2px;
}

.blog-v4-login-submit,
.blog-v4-login-link-primary,
.blog-v4-login-link-secondary,
.blog-v4-login-links a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--chch-button-border);
  border-radius: 12px;
  background: var(--chch-surface-soft);
  color: #6081a2;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}

.blog-v4-login-submit,
.blog-v4-login-link-primary {
  border-color: #9fcaf1;
  background: linear-gradient(135deg, #3d90ea 0%, #7cbef6 100%);
  color: #fff;
}

.blog-v4-login-link-secondary,
.blog-v4-login-links a.button {
  background: var(--chch-surface-hover);
  color: #2e7dcb;
}

.blog-v4-login-link-availability {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #f1d6b6;
  border-radius: 12px;
  background: #fff4e8;
  color: #b56a1f;
  font-size: 13px;
  font-weight: 700;
  box-sizing: border-box;
}

.blog-v4-login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-v4-login-links-utility {
  gap: 8px;
}

.blog-v4-login-links-secondary {
  margin-top: -4px;
}

.blog-v4-login-inline-link,
.blog-v4-login-inline-link a,
.blog-v4-login-inline-link .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6383a3 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}

.blog-v4-login-inline-link img {
  max-height: 18px;
  width: auto;
}

.blog-memo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.blog-memo-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--chch-button-border);
  border-radius: 999px;
  background: var(--chch-surface-soft);
  color: #6282a2;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.blog-memo-tabs a.is-active {
  border-color: #9fcaf1;
  background: var(--chch-surface-hover);
  color: #2e7dcb;
}

.blog-memo-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

.blog-memo-toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--chch-button-border);
  border-radius: 12px;
  background: var(--chch-surface-soft);
  color: #6282a2;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.blog-memo-toolbar-button.primary {
  border-color: #9fcaf1;
  background: linear-gradient(135deg, #3d90ea 0%, #7cbef6 100%);
  color: #fff;
}

.blog-memo-toolbar-button.danger {
  border-color: #f0c4bc;
  background: #fff4f1;
  color: #c85747;
}

.blog-memo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--chch-border);
  border-radius: 20px;
  background: var(--chch-card-bg-soft);
}

.blog-memo-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.blog-memo-table th,
.blog-memo-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--chch-border);
  color: #5a7692;
  font-size: 13px;
  text-align: left;
  vertical-align: middle;
}

.blog-memo-table th {
  background: var(--chch-surface-soft);
  color: #6b89a8;
  font-size: 12px;
  font-weight: 700;
}

.blog-memo-col-number {
  min-width: 52px;
  white-space: nowrap;
}

.blog-memo-title-cell a {
  color: #2e7dcb;
  font-weight: 700;
  text-decoration: none;
}

.blog-memo-status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--chch-button-border);
  border-radius: 50%;
  background: var(--chch-surface-soft);
  color: #6f8cab;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.blog-memo-status-icon.is-unread {
  border-color: #f0c4bc;
  background: #fff4f1;
  color: #c85747;
}

.blog-memo-empty {
  padding: 30px 24px;
  border: 1px dashed var(--chch-button-border);
  border-radius: 20px;
  background: var(--chch-card-bg-soft);
  color: #7a94af;
  font-size: 14px;
  text-align: center;
}

.blog-memo-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.blog-memo-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--chch-button-border);
  border-radius: 12px;
  background: var(--chch-surface-soft);
  color: #6885a2;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.blog-memo-pagination a.is-active {
  border-color: #9fcaf1;
  background: var(--chch-surface-hover);
  color: #2e7dcb;
}

.blog-memo-view {
  border: 1px solid var(--chch-border);
  border-radius: 20px;
  background: var(--chch-card-bg-soft);
  overflow: hidden;
}

.blog-memo-view-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  border-top: 1px solid var(--chch-border);
}

.blog-memo-view-row:first-child {
  border-top: 0;
}

.blog-memo-view-row strong {
  padding: 16px 18px;
  background: var(--chch-surface-soft);
  color: #6b89a8;
  font-size: 12px;
}

.blog-memo-view-row div {
  padding: 16px 18px;
  color: var(--chch-text);
  font-size: 14px;
  line-height: 1.8;
  background: var(--chch-card-bg);
}

.blog-memo-view-row.is-body div {
  min-height: 180px;
}

.blog-memo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.blog-memo-write-form {
  display: grid;
  gap: 16px;
}

.blog-memo-form-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.blog-memo-form-row label {
  padding-top: 12px;
  color: #6b89a8;
  font-size: 13px;
  font-weight: 700;
}

.blog-memo-form-field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.blog-memo-input,
.blog-memo-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--chch-border-strong);
  border-radius: 14px;
  background: var(--chch-card-bg);
  color: #4d6984;
  font-size: 14px;
}

.blog-memo-textarea {
  min-height: 220px;
  resize: vertical;
}

.blog-v4-login-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-v4-login-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--chch-chip-bg);
  overflow: hidden;
}

.blog-v4-login-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-v4-login-user-copy strong {
  display: block;
  color: var(--chch-card-heading);
  font-size: 16px;
}

.blog-v4-login-user-copy span {
  display: block;
  margin-top: 3px;
  color: #7f9ab3;
  font-size: 12px;
}

.blog-v4-login-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-v4-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--chch-stat-bg);
  font-size: 11px;
  color: #607b97;
}
.blog-v4-login-pill strong {
  color: #1e3a5f;
  font-size: 11px;
  margin: 0;
}

.blog-v4-login-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--chch-card-heading);
  font-size: 15px;
  line-height: 1.2;
}

.blog-side-list-item {
  padding-top: 10px;
  border-top: 1px solid var(--chch-border);
}

.blog-side-list-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.blog-side-list-item a {
  display: block;
  font-size: 14px;
  line-height: 1.6;
}

.blog-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-quick-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--chch-button-border);
  border-radius: 999px;
  background: var(--chch-surface-soft);
  color: #6787a8;
  font-size: 13px;
  font-weight: 700;
}

.blog-quick-links a:hover {
  border-color: #9fcaf1;
  background: var(--chch-surface-hover);
  color: var(--chch-link);
}

.blog-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.blog-stat-box {
  padding: 16px;
  border-radius: 18px;
  background: var(--chch-stat-bg);
  text-align: center;
}

.blog-stat-box strong {
  display: block;
  color: var(--chch-card-heading);
  font-size: 24px;
  line-height: 1.1;
}

.blog-stat-box span {
  display: block;
  margin-top: 6px;
  color: #7f9ab4;
  font-size: 12px;
}

.blog-v4-footer {
  margin-top: 18px;
  padding: 26px 0 30px;
  border-top: 1px solid var(--chch-footer-border);
  background: var(--chch-footer-bg);
}

.blog-v4-footer-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 18px;
}

.blog-v4-footer-copy strong,
.blog-v4-footer-verse strong {
  display: block;
  color: var(--chch-card-heading);
  font-size: 18px;
}

.blog-v4-footer-copy p,
.blog-v4-footer-verse p {
  margin: 8px 0 0;
  color: #7694b0;
  font-size: 13px;
  line-height: 1.7;
}

.blog-v4-footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
  color: #7a95ae;
  font-size: 12px;
}

.blog-v4-footer-meta {
  display: grid;
  gap: 6px;
}

.blog-v4-footer-meta p {
  margin: 0;
  line-height: 1.7;
}

.blog-v4-footer-meta a {
  color: var(--chch-link);
}

.blog-v4-footer-family {
  display: grid;
  gap: 8px;
}

.blog-v4-footer-family label {
  color: #87a3bf;
  font-size: 12px;
  font-weight: 700;
}

.blog-v4-footer-family select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--chch-border);
  border-radius: 14px;
  background: var(--chch-card-bg-strong);
  color: #5c7894;
  font-size: 13px;
  box-sizing: border-box;
}

.v4-scroll-controls {
  position: fixed;
  right: 24px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  pointer-events: none;
}

.v4-scroll-controls.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.v4-scroll-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid #cfe5d6;
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 28px rgba(134,184,148,.18);
  color: #2f8b5a;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.v4-scroll-button:hover {
  background: #edf8f0;
  border-color: #9fd2af;
}

.v4-scroll-button[hidden] {
  display: none !important;
}

html[data-theme="dark"] .v4-scroll-button {
  border-color: #2b425d;
  background: #13253a;
  color: #dbe7f7;
}

html[data-theme="dark"] .v4-scroll-button:hover {
  border-color: #3e648b;
  background: #173250;
  color: #8fc7ff;
}

.blog-category-summary p {
  margin: 12px 0 0;
  color: #7f96ae;
  font-size: 14px;
  line-height: 1.7;
}

.blog-category-path {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.blog-category-topcats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.blog-category-path a,
.blog-category-path strong {
  color: var(--chch-card-heading);
  font-weight: 700;
}

.blog-category-path span {
  color: #7f96ae;
  font-weight: 700;
}

.blog-category-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.blog-category-topcats .blog-chip em {
  margin-left: 6px;
  font-style: normal;
  opacity: .72;
}

.blog-category-topcats .blog-chip.is-active {
  background: var(--chch-surface-hover);
  color: var(--chch-card-heading);
  border-color: var(--chch-border-strong);
}

.blog-category-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--chch-border);
  border-radius: 20px;
  background: var(--chch-card-bg-soft);
}

.blog-category-item-copy {
  min-width: 0;
}

.blog-category-item-copy h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.blog-category-item-copy p {
  margin: 8px 0 0;
  color: #768ca4;
  font-size: 14px;
  line-height: 1.7;
}

.blog-category-item-meta {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  text-align: right;
  color: #8ba1b8;
  font-size: 12px;
  font-weight: 700;
}

.blog-category-pagination {
  margin-top: 24px;
}

.blog-category-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-category-pagination li a,
.blog-category-pagination li.active a,
.blog-category-pagination li.active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--chch-button-border);
  border-radius: 12px;
  background: var(--chch-surface-soft);
  color: #6080a0;
  font-size: 13px;
  font-weight: 700;
}

.blog-category-pagination li.active a,
.blog-category-pagination li.active {
  border-color: var(--chch-border-strong);
  background: var(--chch-surface-hover);
  color: var(--chch-card-heading);
}

@media (max-width: 1280px) {
  .blog-v4-header-inner,
  .blog-v4-content,
  .blog-v4-footer-inner,
  .blog-v4-footer-bottom {
    width: auto;
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 1024px) {
  .blog-home-grid,
  .blog-double-panels,
  .blog-hero-grid,
  .blog-hero-primary,
  .blog-discovery-grid,
  .blog-v4-footer-inner,
  .blog-v4-footer-bottom {
    grid-template-columns: 1fr;
  }

  .blog-v4-header-inner,
  .blog-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-v4-header-tools {
    width: 100%;
    align-items: stretch;
  }

  .blog-v4-search input[type="text"] {
    width: 100%;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
    line-height: 1.65;
  }

  .blog-v4-header-inner,
  .blog-v4-content,
  .blog-v4-footer-inner,
  .blog-v4-footer-bottom {
    margin-left: 14px;
    margin-right: 14px;
  }

  .blog-v4-brand-kr {
    font-size: 30px;
  }

  .blog-section-heading h2 {
    font-size: 32px;
  }

  .blog-section-heading h3,
  .blog-side-heading h4 {
    font-size: 26px;
  }

  .blog-hero,
  .blog-panel,
  .blog-side-card {
    padding: 20px;
    border-radius: 22px;
  }

  .blog-home-grid {
    gap: 18px;
  }

  .blog-double-panels,
  .blog-panel-latest,
  .blog-panel-discovery {
    margin-top: 18px;
  }

  .blog-section-heading {
    margin-bottom: 14px;
    gap: 10px;
  }

  .blog-hero-grid {
    gap: 14px;
  }

  .blog-hero-primary {
    gap: 14px;
  }

  .blog-hero-media {
    min-height: 220px;
    max-height: 220px;
  }

  .blog-chip {
    min-height: 28px;
    padding: 0 10px;
  }

  .blog-v4-search {
    width: 100%;
    max-width: 100%;
  }

  .blog-v4-search input[type="text"] {
    height: 46px;
    font-size: 16px;
  }

  .blog-v4-search button {
    min-width: 72px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 15px;
  }

  .blog-v4-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .blog-v4-nav a {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .blog-latest-grid,
  .blog-stat-grid,
  .blog-v4-login-stats {
    grid-template-columns: 1fr;
  }

  .blog-category-item {
    flex-direction: column;
  }

  .blog-category-item-meta {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: left;
  }

  .blog-mini-story {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .blog-v4-nav a,
  .blog-topic-chip,
  .blog-quick-links a,
  .blog-v4-login-submit,
  .blog-v4-login-link-primary,
  .blog-v4-login-link-secondary,
  .blog-v4-login-links a.button {
    min-height: 42px;
    font-size: 14px;
  }

  .blog-chip,
  .blog-mini-story-label,
  .blog-section-kicker,
  .blog-ranked-meta,
  .blog-latest-meta,
  .blog-discovery-item span,
  .blog-stat-box span,
  .blog-v4-login-user-copy span,
  .blog-v4-login-stat span {
    font-size: 12px;
  }

  .blog-hero-copy p,
  .blog-topic-note,
  .blog-discovery-item p,
  .blog-side-list-item a,
  .blog-v4-login-save,
  .blog-v4-login-inline-link,
  .blog-v4-login-inline-link a,
  .blog-v4-login-inline-link .button {
    font-size: 14px;
  }

  .blog-memo-form-row,
  .blog-memo-view-row {
    grid-template-columns: 1fr;
  }

  .blog-memo-form-row label {
    padding-top: 0;
  }

  .blog-hero-copy h3 {
    font-size: 28px;
    line-height: 1.18;
    margin: 10px 0 10px;
  }

  .blog-hero-copy p {
    line-height: 1.65;
  }

  .blog-hero-meta {
    margin-top: 14px;
    gap: 10px;
  }

  .blog-mini-story-copy h4,
  .blog-ranked-copy h4,
  .blog-latest-item h4,
  .blog-discovery-item h5 {
    font-size: 18px;
    line-height: 1.42;
  }

  .blog-v4-login-fields input[type="text"],
  .blog-v4-login-fields input[type="password"] {
    height: 46px;
    font-size: 16px;
  }

  .blog-v4-login-stat strong {
    font-size: 16px;
  }

  .blog-stat-box strong {
    font-size: 26px;
  }

  .blog-ranked-num {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .blog-mini-story {
    padding: 10px;
    border-radius: 16px;
  }

  .blog-mini-story-media {
    min-height: 68px;
  }

  .blog-mini-story-label {
    margin-bottom: 4px;
  }

  .blog-ranked-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .blog-ranked-num {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 13px;
  }

  .blog-latest-item,
  .blog-discovery-card {
    padding: 16px;
    border-radius: 18px;
  }

  .blog-side-list-item {
    padding-top: 12px;
  }

  .blog-discovery-item,
  .blog-ranked-item {
    padding-top: 14px;
  }
  .v4-scroll-controls {
    right: 14px;
    bottom: 76px;
    gap: 8px;
  }

  .v4-scroll-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .blog-v4-header-inner,
  .blog-v4-content,
  .blog-v4-footer-inner,
  .blog-v4-footer-bottom {
    margin-left: 12px;
    margin-right: 12px;
  }

  .blog-v4-brand-kr {
    font-size: 28px;
  }

  .blog-section-heading h2 {
    font-size: 29px;
  }

  .blog-section-heading h3,
  .blog-side-heading h4 {
    font-size: 24px;
  }

  .blog-hero-copy h3 {
    font-size: 24px;
  }

  .blog-mini-story {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  .blog-mini-story-media {
    min-height: 62px;
  }

  .blog-hero-media {
    min-height: 190px;
    max-height: 190px;
  }

  .blog-mini-story-copy h4,
  .blog-ranked-copy h4,
  .blog-latest-item h4,
  .blog-discovery-item h5 {
    font-size: 17px;
  }
}

/* ===================================================
   HAMBURGER MOBILE NAV  (≤1024px)
   =================================================== */

/* Sticky header */
.blog-v4-header {
  position: sticky;
  top: 0;
  z-index: 1300;
  background: var(--chch-header-bg);
  backdrop-filter: blur(8px);
}

/* Mobile nav wrapper — hidden on desktop */
.blog-v4-mobile-nav { display: none; }

/* Hamburger toggle button */
.blog-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--chch-button-border);
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  cursor: pointer;
}
.blog-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #4474a4;
  border-radius: 2px;
}

/* Dropdown panel */
.blog-mobile-panel { /* dropdown */
  display: none;
  position: fixed;
  top: 66px;
  right: 12px;
  width: 288px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--chch-button-border);
  border-radius: 22px;
  background: var(--chch-surface);
  box-shadow: var(--chch-shadow-strong);
  z-index: 1400;
  box-sizing: border-box;
}
.blog-mobile-panel.is-open { display: block; }
.blog-mobile-topbar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 16px;
}

/* Mobile search inside panel */
.blog-mobile-search {
  display: flex;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  margin-bottom: 0;
}
.blog-mobile-search input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--chch-button-border);
  border-radius: 12px;
  background: var(--chch-surface-soft);
  color: #4d6884;
  font-size: 14px;
  box-sizing: border-box;
}
.blog-mobile-search button {
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #3d90ea 0%, #7dbef6 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Login widget — bv4w- classes */
.bv4w-form,
.bv4w-state  { display: grid; gap: 10px; }
.bv4w-fields { display: grid; gap: 8px; }
.bv4w-fields input[type="text"],
.bv4w-fields input[type="password"] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--chch-button-border);
  border-radius: 12px;
  background: var(--chch-surface-soft);
  color: #4d6884;
  font-size: 14px;
  box-sizing: border-box;
}
.bv4w-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.bv4w-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #7894af;
  cursor: pointer;
}
.bv4w-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--chch-button-border);
  border-radius: 12px;
  background: var(--chch-surface-soft);
  color: #6081a2;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.bv4w-btn-primary   { border-color: #9fcaf1; background: linear-gradient(135deg, #3d90ea 0%, #7cbef6 100%); color: #fff; }
.bv4w-btn-secondary { background: var(--chch-surface-hover); color: #2e7dcb; }
.bv4w-links  { display: flex; flex-wrap: wrap; gap: 8px; }
.bv4w-user   { display: flex; align-items: center; gap: 10px; }
.bv4w-nick   { color: var(--chch-card-heading); font-size: 15px; font-weight: 700; }
.bv4w-online { font-size: 11px; color: #7894af; background: var(--chch-surface-hover); border: 1px solid var(--chch-button-border); border-radius: 999px; padding: 2px 8px; }
.bv4w-stats  { display: flex; flex-wrap: wrap; gap: 6px; }
.bv4w-stat-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 8px; background: var(--chch-stat-bg); font-size: 11px; color: #607b97; text-decoration: none; }
.bv4w-stat-pill strong { color: #1e3a5f; font-size: 11px; margin: 0; }
.bv4w-actions { display: flex; gap: 8px; }
.bv4w-details { display: grid; gap: 10px; }
.bv4w-details-toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--chch-button-border);
  border-radius: 12px;
  background: var(--chch-surface-soft);
  color: #6d89a4;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.bv4w-details-toggle::-webkit-details-marker { display: none; }
.bv4w-details-toggle::after { content: '▾'; font-size: 12px; }
.bv4w-details[open] .bv4w-details-toggle {
  border-color: #9fcaf1;
  background: var(--chch-surface-hover);
  color: var(--chch-link);
}
.bv4w-details[open] .bv4w-details-toggle::after { transform: rotate(180deg); }
.bv4w-links-mobile,
.bv4w-actions-mobile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}
.bv4w-links-mobile .bv4w-btn,
.bv4w-actions-mobile .bv4w-btn {
  width: 100%;
}
.bv4w-links-mobile .bv4w-btn em {
  font-style: normal;
  font-size: 11px;
  opacity: .78;
}

/* ≤1024px overrides for hamburger layout */
@media (max-width: 1024px) {
  .blog-side-card-login { display: none; }
  .blog-v4-header {
    padding: 0 !important;
  }
  .blog-v4-header-inner { flex-direction: row !important; align-items: center !important; }
  .blog-v4-header-inner {
    min-height: 78px;
    padding: 10px 12px;
    box-sizing: border-box;
  }
  .blog-v4-header-tools { display: none !important; }
  .blog-v4-mobile-nav   { display: flex; align-items: center; }
  .blog-mobile-toggle   { display: flex; }
  .blog-v4-brand-block {
    display: flex;
    align-items: center;
    min-height: 46px;
    max-width: calc(100% - 64px);
  }
  .blog-v4-brand {
    justify-content: center;
    gap: 2px;
  }
  .blog-v4-brand-kr {
    font-size: 24px;
    line-height: 1;
  }
  .blog-v4-brand-en {
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: .18em;
  }
  .blog-v4-content {
    padding-top: 12px;
  }
}

/* ===================================================
   TABLET PORTRAIT HERO COMPACT  (681px – 1024px)
   primary: image-left + copy-right 나란히, 이미지 200px 상한
   secondary: 3-column 수평 배열
   =================================================== */
@media (min-width: 681px) and (max-width: 1024px) {
  .blog-hero-primary {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .blog-hero-media {
    min-height: 180px;
    max-height: 200px;
  }
  .blog-hero-copy h3 {
    font-size: 22px;
    margin: 8px 0 8px;
    line-height: 1.22;
  }
  .blog-hero-copy p {
    font-size: 13px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .blog-hero-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

.blog-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--chch-button-border);
  border-radius: 12px;
  background: var(--chch-search-bg);
  color: #5f82a8;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--chch-shadow-card);
}

.blog-theme-toggle-mobile {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 14px;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  color: #c8d6e8;
  background:
    radial-gradient(circle at top, rgba(84, 140, 201, .14), transparent 32%),
    linear-gradient(180deg, #0d1725 0%, #101b2a 46%, #0b1522 100%);
}

html[data-theme="dark"] a {
  color: #8fc7ff;
}

html[data-theme="dark"] a:hover {
  color: #bddfff;
}

html[data-theme="dark"] .blog-v4-header {
  background: rgba(12, 21, 33, .96);
}

html[data-theme="dark"] .blog-v4-brand-kr,
html[data-theme="dark"] .blog-section-heading h2,
html[data-theme="dark"] .blog-section-heading h3,
html[data-theme="dark"] .blog-side-heading h4,
html[data-theme="dark"] .blog-discovery-card h4,
html[data-theme="dark"] .blog-v4-footer-copy strong,
html[data-theme="dark"] .blog-v4-footer-verse strong {
  color: #f2f7ff;
}

html[data-theme="dark"] .blog-v4-brand-en,
html[data-theme="dark"] .blog-section-kicker,
html[data-theme="dark"] .blog-mini-story-label,
html[data-theme="dark"] .blog-ranked-meta,
html[data-theme="dark"] .blog-latest-meta,
html[data-theme="dark"] .blog-discovery-item span,
html[data-theme="dark"] .blog-v4-footer-family label,
html[data-theme="dark"] .blog-v4-footer-bottom,
html[data-theme="dark"] .blog-v4-footer-copy p,
html[data-theme="dark"] .blog-v4-footer-verse p,
html[data-theme="dark"] .blog-v4-footer-meta {
  color: #8da6c3;
}

html[data-theme="dark"] .blog-v4-nav a,
html[data-theme="dark"] .blog-theme-toggle,
html[data-theme="dark"] .blog-mobile-toggle,
html[data-theme="dark"] .blog-mobile-grid a,
html[data-theme="dark"] .blog-mobile-search input[type="text"],
html[data-theme="dark"] .blog-v4-search,
html[data-theme="dark"] .blog-v4-search input[type="text"],
html[data-theme="dark"] .blog-topic-chip,
html[data-theme="dark"] .blog-quick-links a,
html[data-theme="dark"] .blog-v4-footer-family select,
html[data-theme="dark"] .blog-memo-tabs a,
html[data-theme="dark"] .blog-memo-toolbar-button,
html[data-theme="dark"] .blog-memo-pagination a,
html[data-theme="dark"] .blog-category-pagination li a,
html[data-theme="dark"] .blog-category-pagination li.active a,
html[data-theme="dark"] .blog-category-pagination li.active,
html[data-theme="dark"] .blog-v4-login-fields input[type="text"],
html[data-theme="dark"] .blog-v4-login-fields input[type="password"],
html[data-theme="dark"] .blog-v4-login-submit,
html[data-theme="dark"] .blog-v4-login-link-primary,
html[data-theme="dark"] .blog-v4-login-link-secondary,
html[data-theme="dark"] .blog-v4-login-links a.button,
html[data-theme="dark"] .bv4w-fields input[type="text"],
html[data-theme="dark"] .bv4w-fields input[type="password"],
html[data-theme="dark"] .bv4w-btn {
  border-color: #29435f;
  background: #13253a;
  color: #cfe1f6;
  box-shadow: none;
}

html[data-theme="dark"] .blog-mobile-toggle span {
  background: #9fc6f0;
}

html[data-theme="dark"] .blog-v4-nav a.is-active,
html[data-theme="dark"] .blog-v4-nav a:hover,
html[data-theme="dark"] .blog-mobile-grid a:hover,
html[data-theme="dark"] .blog-mobile-grid a.is-active,
html[data-theme="dark"] .blog-topic-chip:hover,
html[data-theme="dark"] .blog-quick-links a:hover,
html[data-theme="dark"] .blog-memo-tabs a.is-active,
html[data-theme="dark"] .blog-memo-pagination a.is-active,
html[data-theme="dark"] .blog-category-pagination li.active a,
html[data-theme="dark"] .blog-category-pagination li.active {
  border-color: #2f88e6;
  background: #173250;
  color: #8fc7ff;
}

html[data-theme="dark"] .blog-v4-search button,
html[data-theme="dark"] .blog-mobile-search button,
html[data-theme="dark"] .blog-hero-cta,
html[data-theme="dark"] .blog-v4-login-submit,
html[data-theme="dark"] .blog-v4-login-link-primary,
html[data-theme="dark"] .blog-memo-toolbar-button.primary,
html[data-theme="dark"] .bv4w-btn-primary {
  border-color: #2f88e6;
  background: linear-gradient(135deg, #1f6fc6 0%, #4c9ee8 100%);
  color: #f5faff;
}

html[data-theme="dark"] .blog-v4-login-link-secondary,
html[data-theme="dark"] .blog-v4-login-links a.button,
html[data-theme="dark"] .bv4w-btn-secondary,
html[data-theme="dark"] .blog-v4-login-link-availability {
  border-color: #35506d;
  background: #173250;
  color: #a9cbf0;
}

html[data-theme="dark"] .blog-panel,
html[data-theme="dark"] .blog-side-card,
html[data-theme="dark"] .blog-hero,
html[data-theme="dark"] .blog-mini-story,
html[data-theme="dark"] .blog-latest-item,
html[data-theme="dark"] .blog-discovery-card,
html[data-theme="dark"] .blog-memo-table-wrap,
html[data-theme="dark"] .blog-memo-view,
html[data-theme="dark"] .blog-category-item,
html[data-theme="dark"] .blog-mobile-panel,
html[data-theme="dark"] .bv4w-details-toggle,
html[data-theme="dark"] .blog-stat-box,
html[data-theme="dark"] .blog-v4-login-stat,
html[data-theme="dark"] .bv4w-stat-pill,
html[data-theme="dark"] .bv4w-stat {
  border-color: #223954;
  background: linear-gradient(180deg, #122338 0%, #0f1d31 100%);
  box-shadow: 0 18px 36px rgba(2, 8, 18, .34);
}

html[data-theme="dark"] .blog-mini-story,
html[data-theme="dark"] .blog-latest-item,
html[data-theme="dark"] .blog-discovery-card,
html[data-theme="dark"] .blog-stat-box,
html[data-theme="dark"] .blog-v4-login-stat,
html[data-theme="dark"] .bv4w-stat-pill,
html[data-theme="dark"] .bv4w-stat {
  background: #122338;
}

html[data-theme="dark"] .blog-hero-media,
html[data-theme="dark"] .blog-mini-story-media,
html[data-theme="dark"] .blog-ranked-num,
html[data-theme="dark"] .blog-chip,
html[data-theme="dark"] .blog-chip-soft,
html[data-theme="dark"] .blog-v4-login-avatar,
html[data-theme="dark"] .bv4w-online {
  background: #173250;
  color: #9fcbf4;
}

html[data-theme="dark"] .blog-mini-story,
html[data-theme="dark"] .blog-ranked-item,
html[data-theme="dark"] .blog-side-list-item,
html[data-theme="dark"] .blog-discovery-item,
html[data-theme="dark"] .blog-memo-table th,
html[data-theme="dark"] .blog-memo-table td,
html[data-theme="dark"] .blog-memo-view-row,
html[data-theme="dark"] .blog-category-item {
  border-color: #20344d;
}

html[data-theme="dark"] .blog-hero-copy h3,
html[data-theme="dark"] .blog-mini-story-copy h4,
html[data-theme="dark"] .blog-ranked-copy h4,
html[data-theme="dark"] .blog-latest-item h4,
html[data-theme="dark"] .blog-discovery-item h5,
html[data-theme="dark"] .blog-category-item-copy h3,
html[data-theme="dark"] .blog-v4-login-user-copy strong,
html[data-theme="dark"] .bv4w-nick,
html[data-theme="dark"] .blog-stat-box strong,
html[data-theme="dark"] .blog-v4-login-stat strong,
html[data-theme="dark"] .bv4w-stat strong {
  color: #f2f7ff;
}

html[data-theme="dark"] .blog-hero-copy p,
html[data-theme="dark"] .blog-discovery-item p,
html[data-theme="dark"] .blog-category-item-copy p,
html[data-theme="dark"] .blog-side-list-item a,
html[data-theme="dark"] .blog-v4-login-save,
html[data-theme="dark"] .blog-v4-login-inline-link,
html[data-theme="dark"] .blog-v4-login-inline-link a,
html[data-theme="dark"] .blog-v4-login-inline-link .button,
html[data-theme="dark"] .blog-stat-box span,
html[data-theme="dark"] .blog-v4-login-user-copy span,
html[data-theme="dark"] .blog-v4-login-stat span,
html[data-theme="dark"] .bv4w-save,
html[data-theme="dark"] .bv4w-details-toggle,
html[data-theme="dark"] .bv4w-stat span {
  color: #9bb1ca;
}

html[data-theme="dark"] .blog-memo-table th,
html[data-theme="dark"] .blog-memo-view-row strong {
  background: #10253e;
  color: #9cc8ff;
}

html[data-theme="dark"] .blog-memo-view-row div,
html[data-theme="dark"] .blog-memo-empty,
html[data-theme="dark"] .blog-memo-input,
html[data-theme="dark"] .blog-memo-textarea,
html[data-theme="dark"] .blog-mobile-search input[type="text"],
html[data-theme="dark"] .blog-theme-toggle {
  background: #122338;
  color: #dbe7f7;
  border-color: #29435f;
}

html[data-theme="dark"] .blog-memo-empty {
  border-color: #29435f;
}

html[data-theme="dark"] .blog-v4-footer {
  border-top-color: #20344d;
  background: linear-gradient(180deg, rgba(11, 21, 34, .96) 0%, rgba(9, 18, 30, .96) 100%);
}

html[data-theme="dark"] .blog-latest-card {
  background: #0f1e30;
  border-color: #20344d;
}

html[data-theme="dark"] .blog-latest-card-body h4 a { color: #c8ddf2; }
html[data-theme="dark"] .blog-latest-card-excerpt { color: #7a9bba; }

/* ═══ 반응형 ═══ */

@media (max-width: 1024px) {
  .blog-home-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero-primary {
    grid-template-columns: 1fr;
  }
  .blog-hero-media {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .blog-home-shell {
    padding-top: 12px;
    padding-bottom: 24px;
  }
  .blog-hero,
  .blog-panel,
  .blog-side-card {
    padding: 16px;
    border-radius: 18px;
  }
  .blog-double-panels {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .blog-latest-featured {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .blog-latest-card-thumb {
    height: 180px;
  }
  .blog-latest-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .blog-discovery-grid {
    grid-template-columns: 1fr;
  }
  .blog-section-heading h2 { font-size: 28px; }
  .blog-section-heading h3 { font-size: 22px; }
  .blog-hero-copy h3 { font-size: 24px; }
  .blog-hero-media { min-height: 200px; }
  .blog-mini-story {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .blog-mini-story-media { height: 64px; }
}

/* ============================================================
 * bv5 — New Posts section (chch_blog_v5 redesign)
 * ============================================================ */

/* 카테고리 탭 */
.bv5-cat-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--blog-border, #e5e7eb);
  scrollbar-width: thin;
}
.bv5-cat-tabs::-webkit-scrollbar { height: 6px; }
.bv5-cat-tabs::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }

.bv5-cat-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--blog-border, #e5e7eb);
  background: var(--blog-surface, #fff);
  color: var(--blog-text-muted, #64748b);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s ease;
}
.bv5-cat-tab:hover {
  border-color: #336699;
  color: #336699;
}
.bv5-cat-tab-active {
  background: #336699;
  border-color: #336699;
  color: #fff;
}
.bv5-cat-tab-active:hover { color: #fff; }
.bv5-cat-count {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  color: inherit;
}
.bv5-cat-tab-active .bv5-cat-count {
  background: rgba(255,255,255,.22);
}

/* 하이라이트 (상위 3건) */
.bv5-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.bv5-featured-card {
  display: flex;
  flex-direction: column;
  background: var(--blog-surface, #fff);
  border: 1px solid var(--blog-border, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.bv5-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15,23,42,.08);
}
.bv5-featured-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f5f9;
}
.bv5-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.bv5-featured-card:hover .bv5-featured-thumb img { transform: scale(1.04); }
.bv5-featured-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}
.bv5-featured-body h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bv5-featured-body h4 a {
  color: var(--blog-text, #1a2a3a);
  text-decoration: none;
}
.bv5-featured-body h4 a:hover { color: #cc0000; }
.bv5-featured-excerpt {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--blog-text-muted, #64748b);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bv5-featured-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--blog-text-muted, #94a3b8);
  padding-top: 6px;
}

/* 피드 리스트 */
.bv5-feed {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.bv5-feed-item {
  border-bottom: 1px solid var(--blog-border, #eef2f6);
}
.bv5-feed-item:first-child { border-top: 1px solid var(--blog-border, #eef2f6); }
.bv5-feed-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 20px;
  padding: 18px 4px;
  text-decoration: none;
  color: inherit;
  transition: background .12s ease;
}
.bv5-feed-link:hover { background: rgba(51,102,153,.03); }
.bv5-feed-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.bv5-feed-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--blog-text, #1a2a3a);
  letter-spacing: -0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bv5-feed-link:hover .bv5-feed-title { color: #cc0000; }
.bv5-feed-excerpt {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--blog-text-muted, #64748b);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bv5-feed-meta {
  margin-top: 4px;
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--blog-text-muted, #94a3b8);
}
.bv5-feed-thumb {
  width: 140px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
}
.bv5-feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 페이지네이션 */
.bv5-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 26px 0 10px;
}
.bv5-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--blog-border, #e5e7eb);
  background: var(--blog-surface, #fff);
  color: var(--blog-text, #1a2a3a);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
}
.bv5-page-btn:hover {
  border-color: #336699;
  color: #336699;
}
.bv5-page-active {
  background: #336699;
  border-color: #336699;
  color: #fff;
  cursor: default;
}
.bv5-page-active:hover { color: #fff; }
.bv5-page-ellipsis {
  padding: 0 4px;
  color: var(--blog-text-muted, #94a3b8);
  font-weight: 700;
}

/* 빈 상태 */
.bv5-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--blog-text-muted, #64748b);
}
.bv5-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: .7;
}
.bv5-empty p {
  margin: 0 0 16px;
  font-size: 15px;
}

/* 반응형 */
@media (max-width: 900px) {
  .bv5-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bv5-featured-card:nth-child(3) { grid-column: span 2; }
  .bv5-featured-card:nth-child(3) { flex-direction: row; }
  .bv5-featured-card:nth-child(3) .bv5-featured-thumb {
    width: 40%; aspect-ratio: auto; height: auto; flex-shrink: 0;
  }
}
@media (max-width: 640px) {
  .bv5-featured { grid-template-columns: 1fr; }
  .bv5-featured-card:nth-child(3) { grid-column: auto; flex-direction: column; }
  .bv5-featured-card:nth-child(3) .bv5-featured-thumb { width: 100%; aspect-ratio: 16 / 10; }
  .bv5-feed-link {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 12px;
    padding: 14px 2px;
  }
  .bv5-feed-thumb { width: 96px; height: 72px; }
  .bv5-feed-title { font-size: 15px; }
  .bv5-feed-excerpt { -webkit-line-clamp: 2; font-size: 12.5px; }
  .bv5-cat-tab { padding: 7px 12px; font-size: 13px; }
}

/* 다크모드 */
html[data-theme="dark"] .bv5-cat-tab {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: #cbd5e1;
}
html[data-theme="dark"] .bv5-cat-tab:hover {
  border-color: #5b9bd5; color: #93c5fd;
}
html[data-theme="dark"] .bv5-cat-tab-active {
  background: #336699; border-color: #336699; color: #fff;
}
html[data-theme="dark"] .bv5-featured-card {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}
html[data-theme="dark"] .bv5-featured-body h4 a { color: #e2e8f0; }
html[data-theme="dark"] .bv5-featured-body h4 a:hover { color: #ff6b6b; }
html[data-theme="dark"] .bv5-feed-item,
html[data-theme="dark"] .bv5-feed-item:first-child {
  border-color: rgba(255,255,255,.08);
}
html[data-theme="dark"] .bv5-feed-link:hover { background: rgba(91,155,213,.06); }
html[data-theme="dark"] .bv5-feed-title { color: #e2e8f0; }
html[data-theme="dark"] .bv5-feed-link:hover .bv5-feed-title { color: #ff6b6b; }
html[data-theme="dark"] .bv5-page-btn {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
  color: #cbd5e1;
}
html[data-theme="dark"] .bv5-page-btn:hover { border-color: #5b9bd5; color: #93c5fd; }
html[data-theme="dark"] .bv5-page-active,
html[data-theme="dark"] .bv5-page-active:hover {
  background: #336699; border-color: #336699; color: #fff;
}

/* v5: Topics moved to sidebar — compact overrides */
.blog-side-card-topics .blog-section-heading,
.blog-side-card-topics .blog-section-heading-compact {
  margin-bottom: 10px;
}
.blog-side-card-topics .blog-section-heading h3,
.blog-side-card-topics .blog-section-heading h2 {
  font-size: 17px;
}
.blog-side-card-topics .blog-topic-cloud {
  gap: 6px;
}
.blog-side-card-topics .blog-topic-cloud a {
  font-size: 12.5px;
  padding: 5px 10px;
}
.blog-side-card-topics .blog-thumb-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px;
}
.blog-side-card-topics .blog-thumb-grid a,
.blog-side-card-topics .blog-thumb-grid img {
  height: auto;
  aspect-ratio: 4 / 3;
}

/* v5: wide trending panel spacing (replaces removed .blog-double-panels margin) */
.blog-panel-trending-wide { margin-top: 20px; }
@media (max-width: 720px) { .blog-panel-trending-wide { margin-top: 18px; } }

/* v5 메뉴얼 배너 (사이드바) */
.v5-manual-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background-color: #2563eb;
  background-image: url('https://chch.kr/numz/_assets/manual-banner-blog.png');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  min-height: 92px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(51,102,153,.22);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.v5-manual-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(51,102,153,.32);
  color: #fff;
}
.v5-manual-banner-icon {
  display: none;
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: rgba(255,255,255,.18);
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.v5-manual-banner-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.v5-manual-banner-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .78;
}
.v5-manual-banner-body strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.v5-manual-banner-desc {
  font-size: 11.5px;
  opacity: .85;
  line-height: 1.4;
  margin-top: 2px;
}
.v5-manual-banner-arrow {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 400;
  opacity: .7;
}
html[data-theme="dark"] .v5-manual-banner {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a5f 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
}
.v5-manual-banner-body { max-width: 60%; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
