/* ============================================================
   희온수학 (HEEON MATH) — 블로그 공개 스타일
   "수학은 '계산'이 아니라 '판단'입니다."
   Dark editorial luxury: charcoal ink + gold, serif display.
   (웹지원센터 블로그 엔진 이식 · 희온수학 리브랜딩)
   ============================================================ */

:root {
  --hm-ink:      #0d1015;
  --hm-ink-2:    #141922;
  --hm-ink-3:    #1c2330;
  --hm-line:     rgba(201,165,76,.22);
  --hm-hairline: rgba(255,255,255,.08);
  --hm-gold:     #c9a54c;
  --hm-gold-2:   #e8cf7f;
  --hm-gold-3:   #8f742f;
  --hm-text-d:   #ece7db;
  --hm-text-dim: #a8aeb9;
  --hm-serif:    'Noto Serif KR', 'Nanum Myeongjo', serif;
  --hm-sans:     'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  --hm-radius:   14px;
  --hm-radius-sm: 10px;
  --hm-container: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

.blog-body {
  font-family: var(--hm-sans);
  font-size: 17px;
  line-height: 1.85;
  background: var(--hm-ink);
  color: var(--hm-text-d);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.blog-body a { color: inherit; }
img { max-width: 100%; }

.blog-container {
  width: 100%;
  max-width: var(--hm-container);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
.blog-main { display: block; }

/* ---------- brand + top nav (shared hero/mini) ---------- */
.blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--hm-text-d);
}
.blog-brand-logo { height: 40px; width: auto; display: block; }
.blog-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.blog-brand-text b {
  font-family: var(--hm-serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .04em;
  color: var(--hm-text-d);
}
.blog-brand-text span {
  font-size: 11px;
  letter-spacing: .42em;
  color: var(--hm-gold);
  font-weight: 600;
}
.blog-top-nav { display: flex; align-items: center; gap: 6px; }
.blog-top-nav a {
  text-decoration: none;
  color: var(--hm-text-dim);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.blog-top-nav a:hover { color: var(--hm-gold-2); }
.blog-top-nav a.is-here {
  color: var(--hm-gold-2);
  background: rgba(201,165,76,.10);
  border: 1px solid var(--hm-line);
}

/* ---------- hero (listing) ---------- */
.blog-hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(201,165,76,.10), transparent 60%),
    linear-gradient(180deg, #10141b 0%, var(--hm-ink) 100%);
  border-bottom: 1px solid var(--hm-line);
  padding-bottom: 0;
}
.blog-hero-motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.blog-hero > *:not(.blog-hero-motif) { position: relative; z-index: 1; }

.blog-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.blog-hero-inner {
  padding-top: 30px;
  padding-bottom: 40px;
  text-align: center;
}
.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--hm-gold);
}
.blog-hero-eyebrow::before,
.blog-hero-eyebrow::after {
  content: '';
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hm-gold));
}
.blog-hero-eyebrow::after { background: linear-gradient(90deg, var(--hm-gold), transparent); }
.blog-hero-title {
  font-family: var(--hm-serif);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  color: #fff;
}
.blog-hero-sub {
  max-width: 760px;
  margin: 0 auto 26px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--hm-text-dim);
}

/* language pills */
.blog-hero-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 26px;
  max-width: 900px;
}
.blog-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 12.5px;
  color: var(--hm-text-dim);
  padding: 7px 13px;
  border: 1px solid var(--hm-hairline);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  transition: all .16s;
}
.blog-lang-pill strong { color: var(--hm-gold); font-weight: 700; letter-spacing: .04em; }
.blog-lang-pill:hover { border-color: var(--hm-line); color: var(--hm-text-d); }
.blog-lang-pill.is-active {
  background: linear-gradient(180deg, rgba(201,165,76,.20), rgba(201,165,76,.08));
  border-color: var(--hm-gold);
  color: #fff;
}
.blog-lang-pill.is-active strong { color: var(--hm-gold-2); }

/* search */
.blog-hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 4px 6px 4px 16px;
  background: rgba(10,12,16,.6);
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  color: var(--hm-gold);
}
.blog-hero-search input[type="search"] {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--hm-text-d);
  font-family: var(--hm-sans);
  font-size: 15px;
  padding: 11px 8px;
  outline: none;
}
.blog-hero-search input[type="search"]::placeholder { color: var(--hm-text-dim); }

/* category tabs */
.blog-tabs-wrap { padding-bottom: 0; transform: translateY(50%); }
.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px;
  background: var(--hm-ink-2);
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.blog-tab {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--hm-text-dim);
  padding: 9px 16px;
  border-radius: 999px;
  transition: all .16s;
  white-space: nowrap;
}
.blog-tab:hover { color: var(--hm-gold-2); background: rgba(201,165,76,.08); }
.blog-tab.is-active {
  color: var(--hm-ink);
  background: linear-gradient(180deg, var(--hm-gold-2), var(--hm-gold));
  font-weight: 700;
}

/* ---------- mini header (single post) ---------- */
.blog-mini-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,16,21,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hm-line);
}
.blog-mini-header .blog-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

/* ---------- listing layout ---------- */
.blog-grid-wrap {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 44px;
  padding-top: 76px;   /* clearance for floating tabs */
  padding-bottom: 72px;
}
.blog-main-col { min-width: 0; }

/* featured */
.blog-featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 40px;
}
.blog-feat-card {
  border: 1px solid var(--hm-hairline);
  border-radius: var(--hm-radius);
  overflow: hidden;
  background: var(--hm-ink-2);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.blog-feat-card:hover {
  transform: translateY(-4px);
  border-color: var(--hm-line);
  box-shadow: 0 22px 50px rgba(0,0,0,.5);
}
.blog-feat-link { text-decoration: none; color: inherit; display: block; }
.blog-feat-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.blog-feat-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,16,21,.78));
}
.blog-feat-cat, .blog-card-cat {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--hm-gold-2);
}
.blog-feat-cat {
  position: absolute;
  left: 16px; bottom: 14px;
  padding: 5px 11px;
  background: rgba(13,16,21,.72);
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.blog-feat-body { padding: 20px 22px 24px; }
.blog-feat-title {
  font-family: var(--hm-serif);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.4;
  margin: 0 0 10px;
  color: #fff;
}
.blog-feat-excerpt {
  font-size: 14.5px;
  color: var(--hm-text-dim);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-feat-meta, .blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--hm-text-dim);
}

/* listing head */
.blog-listing-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hm-line);
}
.blog-listing-head h2 {
  font-family: var(--hm-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  color: var(--hm-text-d);
}
.blog-count { color: var(--hm-gold); font-size: 15px; }

.blog-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--hm-text-dim);
  border: 1px dashed var(--hm-line);
  border-radius: var(--hm-radius);
}

/* card grid */
.blog-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.blog-grid--compact { grid-template-columns: repeat(3, 1fr); }
.blog-card {
  border: 1px solid var(--hm-hairline);
  border-radius: var(--hm-radius);
  overflow: hidden;
  background: var(--hm-ink-2);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--hm-line);
  box-shadow: 0 20px 44px rgba(0,0,0,.5);
}
.blog-card-link { text-decoration: none; color: inherit; display: block; }
.blog-card-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--hm-hairline);
}
.blog-card-body { padding: 18px 18px 20px; }
.blog-card-cat { margin-bottom: 9px; }
.blog-card-title {
  font-family: var(--hm-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.42;
  margin: 0 0 9px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--hm-text-dim);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-auto-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--hm-gold);
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  padding: 1px 7px;
}

/* pager */
.blog-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 40px;
}
.blog-pager a {
  min-width: 40px;
  text-align: center;
  text-decoration: none;
  color: var(--hm-text-dim);
  padding: 9px 12px;
  border: 1px solid var(--hm-hairline);
  border-radius: 10px;
  transition: all .16s;
}
.blog-pager a:hover { border-color: var(--hm-line); color: var(--hm-gold-2); }
.blog-pager a.is-current {
  color: var(--hm-ink);
  background: linear-gradient(180deg, var(--hm-gold-2), var(--hm-gold));
  border-color: var(--hm-gold);
  font-weight: 700;
}

/* ---------- sidebar ---------- */
.blog-side-col { min-width: 0; }
.blog-side-card {
  background: var(--hm-ink-2);
  border: 1px solid var(--hm-hairline);
  border-radius: var(--hm-radius);
  padding: 20px;
  margin-bottom: 22px;
}
.blog-side-title {
  font-family: var(--hm-serif);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hm-line);
  color: var(--hm-text-d);
}
.blog-side-cats { list-style: none; margin: 0; padding: 0; }
.blog-side-cats li { margin-bottom: 4px; }
.blog-side-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none;
  color: var(--hm-text-dim);
  padding: 9px 12px;
  border-radius: var(--hm-radius-sm);
  transition: all .16s;
}
.blog-side-cats a:hover { background: rgba(201,165,76,.08); color: var(--hm-gold-2); }
.blog-side-cats a.is-active { background: rgba(201,165,76,.12); color: var(--hm-gold-2); }
.blog-side-cat-count {
  font-size: 12px;
  color: var(--hm-text-dim);
  background: var(--hm-ink-3);
  border-radius: 999px;
  padding: 1px 9px;
}
.blog-side-recent { list-style: none; margin: 0; padding: 0; }
.blog-side-recent li { padding: 11px 0; border-bottom: 1px solid var(--hm-hairline); }
.blog-side-recent li:last-child { border-bottom: 0; padding-bottom: 0; }
.blog-side-recent a { text-decoration: none; color: inherit; display: block; }
.blog-side-recent-title {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--hm-text-d);
  transition: color .16s;
}
.blog-side-recent a:hover .blog-side-recent-title { color: var(--hm-gold-2); }
.blog-side-recent-date { margin: 0; font-size: 12px; color: var(--hm-text-dim); }

/* admin box */
.blog-admin-box { border-color: var(--hm-line); }
.blog-admin-btn {
  display: block;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--hm-text-d);
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--hm-hairline);
  border-radius: var(--hm-radius-sm);
  transition: all .16s;
}
.blog-admin-btn:last-child { margin-bottom: 0; }
.blog-admin-btn:hover { border-color: var(--hm-line); color: var(--hm-gold-2); }
.blog-admin-btn--primary {
  color: var(--hm-ink);
  background: linear-gradient(180deg, var(--hm-gold-2), var(--hm-gold));
  border-color: var(--hm-gold);
}
.blog-admin-btn--primary:hover { color: var(--hm-ink); filter: brightness(1.05); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.blog-post { padding-bottom: 72px; }
.blog-post-head { padding: 40px 0 28px; border-bottom: 1px solid var(--hm-line); }
.blog-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 22px;
  color: var(--hm-text-dim);
}
.blog-crumbs a { text-decoration: none; color: var(--hm-text-dim); transition: color .16s; }
.blog-crumbs a:hover { color: var(--hm-gold-2); }
.blog-crumbs .sep { color: var(--hm-gold-3); }

.blog-translate-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--hm-gold-2);
  background: rgba(201,165,76,.08);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-sm);
  padding: 11px 15px;
  margin-bottom: 20px;
}
.blog-translate-notice svg { width: 18px; height: 18px; flex: none; }

.blog-post-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hm-gold-2);
  margin-bottom: 14px;
}
.blog-post-title {
  font-family: var(--hm-serif);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  color: #fff;
}
.blog-post-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--hm-text-dim);
  margin: 0 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--hm-gold);
}
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--hm-text-dim);
}
.blog-post-meta .sep { color: var(--hm-gold-3); }
.blog-post-author { color: var(--hm-gold-2); font-weight: 600; }

.blog-post-cover {
  margin: 30px auto;
  max-width: var(--hm-container);
}
.blog-post-cover img {
  width: 100%;
  border-radius: var(--hm-radius);
  border: 1px solid var(--hm-hairline);
  display: block;
}

.blog-post-body { max-width: 820px; padding-top: 8px; }

/* source card (top) */
.blog-source-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--hm-ink-2);
  border: 1px solid var(--hm-hairline);
  border-left: 3px solid var(--hm-gold);
  border-radius: var(--hm-radius-sm);
  padding: 14px 18px;
  margin: 26px 0;
}
.blog-source-row { display: flex; align-items: center; gap: 14px; }
.blog-source-logo {
  flex: none;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hm-ink);
  border: 1px solid var(--hm-line);
  border-radius: 10px;
}
.blog-source-logo img { width: 30px; height: 30px; object-fit: contain; }
.blog-source-name { font-size: 14.5px; color: var(--hm-text-d); }
.blog-source-name strong { color: var(--hm-gold-2); }
.blog-source-url { font-size: 12.5px; color: var(--hm-text-dim); margin-top: 2px; }
.blog-source-url a { color: var(--hm-gold); text-decoration: none; }
.blog-source-url a:hover { text-decoration: underline; }

/* ── article body typography ── */
.blog-post-content {
  font-size: 18px;
  line-height: 1.95;
  color: var(--hm-text-d);
}
.blog-post-content > * + * { margin-top: 1.2em; }
.blog-post-content h2 {
  font-family: var(--hm-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin: 1.8em 0 .7em;
  padding-top: .3em;
  color: #fff;
}
.blog-post-content h3 {
  font-family: var(--hm-serif);
  font-size: 21px;
  font-weight: 700;
  margin: 1.6em 0 .6em;
  color: var(--hm-gold-2);
}
.blog-post-content h4 { font-size: 18px; font-weight: 700; margin: 1.4em 0 .5em; color: var(--hm-text-d); }
.blog-post-content p { margin: 0; }
.blog-post-content a { color: var(--hm-gold-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hm-gold-3); }
.blog-post-content a:hover { text-decoration-color: var(--hm-gold-2); }
.blog-post-content ul, .blog-post-content ol { margin: 1em 0; padding-left: 1.4em; }
.blog-post-content li { margin: .4em 0; }
.blog-post-content li::marker { color: var(--hm-gold); }
.blog-post-content blockquote {
  margin: 1.4em 0;
  padding: 6px 20px;
  border-left: 3px solid var(--hm-gold);
  color: var(--hm-text-dim);
  font-style: italic;
}
.blog-post-content img, .blog-post-content video {
  max-width: 100%;
  height: auto;
  border-radius: var(--hm-radius-sm);
  border: 1px solid var(--hm-hairline);
  display: block;
  margin: 1.4em auto;
}
.blog-post-content figure { margin: 1.4em 0; }
.blog-post-content figcaption { text-align: center; font-size: 13px; color: var(--hm-text-dim); margin-top: 8px; }
.blog-post-content hr { border: 0; border-top: 1px solid var(--hm-line); margin: 2em 0; }
.blog-post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em;
  background: var(--hm-ink-3);
  border: 1px solid var(--hm-hairline);
  border-radius: 6px;
  padding: 1px 6px;
}
.blog-post-content pre {
  background: var(--hm-ink-3);
  border: 1px solid var(--hm-hairline);
  border-radius: var(--hm-radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
}
.blog-post-content pre code { background: none; border: 0; padding: 0; }
.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.blog-post-content th, .blog-post-content td {
  border: 1px solid var(--hm-hairline);
  padding: 10px 14px;
  text-align: left;
}
.blog-post-content th { background: var(--hm-ink-3); color: var(--hm-gold-2); font-weight: 700; }

/* tags */
.blog-post-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--hm-line);
}
.blog-post-tags li {
  font-size: 13px;
  color: var(--hm-gold);
  background: rgba(201,165,76,.08);
  border: 1px solid var(--hm-line);
  border-radius: 999px;
  padding: 5px 13px;
}

/* publisher / source box (bottom) */
.blog-publisher-box {
  margin: 34px 0 0;
  background: linear-gradient(180deg, var(--hm-ink-2), var(--hm-ink));
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius);
  padding: 24px;
}
.blog-pub-head h3 { margin: 0 0 18px; font-family: var(--hm-serif); font-size: 18px; color: var(--hm-gold-2); }
.blog-pub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 22px;
}
.blog-pub-label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--hm-text-dim); margin-bottom: 4px; }
.blog-pub-value { font-size: 14.5px; color: var(--hm-text-d); }
.blog-pub-value a { color: var(--hm-gold-2); text-decoration: none; }
.blog-pub-value a:hover { text-decoration: underline; }
.blog-pub-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.blog-pub-cta {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--hm-ink);
  background: linear-gradient(180deg, var(--hm-gold-2), var(--hm-gold));
  border: 1px solid var(--hm-gold);
  border-radius: 999px;
  padding: 10px 20px;
  transition: filter .16s;
}
.blog-pub-cta:hover { filter: brightness(1.06); }
.blog-pub-cta-ghost {
  color: var(--hm-gold-2);
  background: transparent;
  border-color: var(--hm-line);
}
.blog-pub-cta-ghost:hover { background: rgba(201,165,76,.08); filter: none; }
.blog-pub-cite { margin-top: 18px; color: var(--hm-text-dim); }
.blog-pub-cite code { font-size: 12px; color: var(--hm-gold); word-break: break-all; }

/* post admin */
.blog-post-admin { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.blog-post-admin a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--hm-text-d);
  padding: 9px 16px;
  border: 1px solid var(--hm-hairline);
  border-radius: var(--hm-radius-sm);
  transition: all .16s;
}
.blog-post-admin a:hover { border-color: var(--hm-line); color: var(--hm-gold-2); }
.b-admin-del:hover { color: #e88; border-color: rgba(238,136,136,.4); }

/* related */
.blog-related { padding: 48px 0 0; margin-top: 48px; border-top: 1px solid var(--hm-line); }
.blog-related-title { font-family: var(--hm-serif); font-size: 22px; font-weight: 700; margin: 0 0 22px; color: var(--hm-text-d); }

/* ---------- footer ---------- */
.blog-footer {
  border-top: 1px solid var(--hm-line);
  background: #0a0d12;
  padding: 40px 0 30px;
}
.blog-footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.blog-foot-brand { display: flex; align-items: center; gap: 14px; }
.blog-foot-brand img { height: 44px; width: auto; }
.blog-foot-name {
  margin: 0;
  font-family: var(--hm-serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--hm-text-d);
}
.blog-foot-name span { font-size: 12px; letter-spacing: .3em; color: var(--hm-gold); margin-left: 6px; }
.blog-foot-slogan { margin: 4px 0 0; font-size: 13px; color: var(--hm-text-dim); }
.blog-foot-meta { text-align: right; }
.blog-foot-addr { margin: 0 0 6px; font-size: 13px; color: var(--hm-text-dim); }
.blog-foot-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; font-size: 13px; }
.blog-foot-links a { color: var(--hm-text-dim); text-decoration: none; transition: color .16s; }
.blog-foot-links a:hover { color: var(--hm-gold-2); }
.blog-foot-links span { color: var(--hm-gold-3); }
.blog-footer-legal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hm-hairline);
  font-size: 12.5px;
  color: var(--hm-text-dim);
}
.blog-footer-legal strong { color: var(--hm-text-d); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .blog-grid-wrap { grid-template-columns: 1fr; gap: 34px; }
  .blog-side-col { order: 2; }
  .blog-grid--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .blog-body { font-size: 16px; }
  .blog-container { padding-left: 18px; padding-right: 18px; }
  .blog-topbar { flex-direction: column; gap: 14px; align-items: flex-start; }
  .blog-hero-inner { padding-top: 20px; padding-bottom: 34px; }
  .blog-featured-row { grid-template-columns: 1fr; }
  .blog-grid, .blog-grid--compact { grid-template-columns: 1fr; }
  .blog-pub-grid { grid-template-columns: 1fr; }
  .blog-post-content { font-size: 16.5px; }
  .blog-post-content h2 { font-size: 22px; }
  .blog-footer-grid { flex-direction: column; align-items: flex-start; }
  .blog-foot-meta { text-align: left; }
  .blog-foot-links { justify-content: flex-start; }
  .blog-tabs-wrap { transform: none; padding-top: 20px; }
  .blog-tabs { border-radius: var(--hm-radius); box-shadow: none; }
  .blog-grid-wrap { padding-top: 24px; }
}
