/* ==========================================================================
   Gewriter Blog — gw-blog.css (2026-11 전면 개편)
   /blog 목록(blog_index.html) · 상세(blog_post_db.html · 정적 빌드용 blog_post.html) 전용.
   gw.css(토큰·헤더·푸터·버튼) 위에 얹는다. 템플릿에서 마지막 CSS 로 링크.

   주의: 카드·추천 글·이전/다음 글·분류 칩 마크업은 app/services/blog/render.py 가 Tailwind 클래스로
   만들어 {{POSTS}} / {{POST_NAV}} / {{CATEGORY_CHIP}} 자리에 끼워 넣는다(Jinja 아님, 문자열 치환).
   그 마크업은 건드리지 않고 #gwb-posts · .gwb-postnav · .gwb-cat 범위 안에서만 덮어쓴다 —
   ID 범위라 Tailwind 유틸리티(최대 0,3,0)보다 항상 이긴다. render.py 카드 구조를 바꾸면 여기도 확인할 것.
   ========================================================================== */

.gwb { background: #fff; }

/* ---------- 공통: 어두운 히어로 배경(랜딩 히어로와 같은 글로우 + 격자) ---------- */
.gwb-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--gw-ink); color: #fff; }
.gwb-dark__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.gwb-dark__glow {
  position: absolute; left: 50%; top: -40%; width: min(1100px, 140vw); aspect-ratio: 1.7; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(30, 215, 96, .22), rgba(30, 215, 96, .05) 55%, transparent 72%); filter: blur(8px);
}
.gwb-dark__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 20%, #000 20%, transparent 75%);
}

/* ==========================================================================
   목록 /blog
   ========================================================================== */
.gwb-hero { padding: calc(var(--gw-header-h) + 96px) 0 72px; text-align: center; }
.gwb-hero__in { width: min(1200px, calc(100% - 48px)); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.gwb-hero__kicker {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px;
  border: 1px solid var(--gw-ink-line-2); border-radius: 999px; background: rgba(255, 255, 255, .04);
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gw-ink-text-2);
}
.gwb-hero__kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--gw-neon); box-shadow: 0 0 0 4px rgba(30, 215, 96, .16); }
.gwb-hero__title { margin-top: 26px; font-size: clamp(40px, 5.4vw, 76px); font-weight: 200; line-height: 1.1; letter-spacing: -0.05em; color: #fff; }
/* data-i18n-html 이 en/ja 에서 innerHTML 을 바꿔도 같은 모양이 되도록 클래스 대신 요소로 칠한다 */
.gwb-hero__title span { font-weight: 700; color: var(--gw-neon); }
.gwb-hero__sub { margin-top: 22px; max-width: 640px; font-size: clamp(15px, 1.3vw, 18px); line-height: 1.75; font-weight: 300; color: var(--gw-ink-text-2); text-wrap: balance; }
.gwb-hero__sub span { color: #fff; font-weight: 600; }

/* 목록 본문 */
.gwb-list { background: #fff; }
#gwb-posts { --gwb-bleed: 88px; width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 120px; }

/* ---------- 추천(최신) 글 — 어두운 히어로 안에 놓인다 ----------
   카드 둘레를 box-shadow 로 화면 끝까지 칠하고(clip-path 로 위는 카드 윗선, 아래는 --gwb-bleed 까지)
   히어로와 이어진 어두운 면을 만든다. 그림자는 스크롤 영역을 늘리지 않아 가로 스크롤이 생기지 않는다. */
#gwb-posts > article:first-child {
  margin: 0 0 calc(var(--gwb-bleed) + 72px);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--gw-r-xl);
  background: linear-gradient(180deg, #151917, #101311);
  box-shadow: 0 0 0 100vmax var(--gw-ink) !important;
  clip-path: inset(-3px -100vmax calc(-1 * var(--gwb-bleed)) -100vmax);
  transform: none !important;
  transition: border-color .25s var(--gw-ease);
}
#gwb-posts > article:first-child:hover { border-color: rgba(30, 215, 96, .4); }
@media (min-width: 768px) {
  #gwb-posts > article:first-child > div { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  #gwb-posts > article:first-child > div > div { grid-column: span 1 / span 1; }
}
#gwb-posts > article:first-child > div > div:first-child { padding: 56px 56px 52px; }
#gwb-posts > article:first-child > div > div:first-child > div:first-child { gap: 10px 14px; margin-bottom: 0; }
/* '최신 글' 표식 */
#gwb-posts > article:first-child > div > div:first-child > div:first-child > span:first-child {
  padding: 0; border: 0; background: none; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--gw-neon);
}
#gwb-posts > article:first-child > div > div:first-child > div:first-child > span:first-child > span {
  width: 6px; height: 6px; background: var(--gw-neon); box-shadow: 0 0 0 4px rgba(30, 215, 96, .16);
}
/* 분류 칩(어두운 면) */
#gwb-posts > article:first-child [class*="ring-1"] {
  height: 24px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .18); background: transparent; box-shadow: none;
  font-size: 12px; font-weight: 500; color: var(--gw-ink-text-2); border-radius: 999px;
}
#gwb-posts > article:first-child > div > div:first-child > div:first-child > span:last-child { font-size: 13px; font-weight: 400; color: var(--gw-ink-text-3); font-variant-numeric: tabular-nums; }
#gwb-posts > article:first-child > div > div:first-child > div:first-child svg { color: rgba(255, 255, 255, .35); }
#gwb-posts > article:first-child h2 {
  margin-top: 24px; font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; line-height: 1.32; letter-spacing: -0.04em; color: #fff;
  transition: color .2s;
}
#gwb-posts > article:first-child:hover h2 { color: var(--gw-neon); }
#gwb-posts > article:first-child h2 + div { margin-top: 18px; font-size: 17px; line-height: 1.75; font-weight: 300; color: rgba(244, 244, 245, .62); }
#gwb-posts > article:first-child h2 + div strong, #gwb-posts > article:first-child h2 + div b { color: rgba(255, 255, 255, .92); font-weight: 600; }
#gwb-posts > article:first-child h2 + div + span { margin-top: 36px; gap: 8px; font-size: 15px; font-weight: 600; color: var(--gw-neon); }
#gwb-posts > article:first-child:hover h2 + div + span { gap: 12px; }
/* 오른쪽 그림 면 */
#gwb-posts > article:first-child > div > div:last-child {
  min-height: 360px; border-left: 1px solid rgba(255, 255, 255, .08);
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(30, 215, 96, .26), transparent 55%),
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 40px 40px,
    #0d100f;
}
#gwb-posts > article:first-child > div > div:last-child > div:nth-child(1) { width: 300px; height: 300px; right: -90px; top: -110px; border-color: rgba(30, 215, 96, .35); }
#gwb-posts > article:first-child > div > div:last-child > div:nth-child(2) { width: 200px; height: 200px; right: -20px; top: 30px; border-color: rgba(30, 215, 96, .2); }
#gwb-posts > article:first-child > div > div:last-child > div:nth-child(3) { right: 28px; top: 26px; font-size: 11px; font-weight: 600; letter-spacing: .22em; color: rgba(255, 255, 255, .45); }
#gwb-posts > article:first-child > div > div:last-child > div:nth-child(4) { left: 32px; bottom: 32px; gap: 12px; }
#gwb-posts > article:first-child > div > div:last-child > div:nth-child(4) > span:first-child {
  width: 44px; height: 44px; border-radius: 12px; background: var(--gw-neon); box-shadow: 0 10px 30px -10px rgba(30, 215, 96, .7);
}
#gwb-posts > article:first-child > div > div:last-child > div:nth-child(4) > span:first-child svg { width: 22px; height: 22px; color: #04150b; }
#gwb-posts > article:first-child > div > div:last-child > div:nth-child(4) > span:last-child { font-size: 14px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }

/* ---------- '아티클 · 총 N개' 머리 ---------- */
#gwb-posts > article + div {
  margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--gw-text); align-items: flex-end;
}
#gwb-posts > article + div > h2 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.04em; color: var(--gw-text); }
#gwb-posts > article + div > span { font-size: 14px; font-weight: 500; color: var(--gw-text-3); font-variant-numeric: tabular-nums; }

/* ---------- 글 목록 — 상자 없이 가는 선으로 나누는 2열 ---------- */
#gwb-posts > article + div + div { gap: 0 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { #gwb-posts > article + div + div { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#gwb-posts > article + div + div > article {
  border: 0; border-bottom: 1px solid var(--gw-line); border-radius: 0; background: transparent; box-shadow: none;
  transform: none !important; overflow: visible;
}
#gwb-posts > article + div + div > article > span:first-child {
  top: auto; bottom: -1px; height: 1px; background: var(--gw-green); background-image: none;
}
#gwb-posts > article + div + div > article > div { padding: 34px 0 30px; }
#gwb-posts > article + div + div > article > div > div:first-child { margin-bottom: 14px; gap: 10px; font-size: 13px; font-weight: 400; color: var(--gw-text-3); font-variant-numeric: tabular-nums; }
#gwb-posts > article + div + div > article > div > div:first-child svg { display: none; }
#gwb-posts > article + div + div > article [class*="ring-1"] {
  order: -1; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none;
  font-size: 13px; font-weight: 600; color: var(--gw-green); gap: 10px;
}
#gwb-posts > article + div + div > article [class*="ring-1"]::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--gw-line-2); }
#gwb-posts > article + div + div > article h2 {
  font-size: clamp(19px, 1.65vw, 23px); font-weight: 600; line-height: 1.45; letter-spacing: -0.032em; color: var(--gw-text);
}
#gwb-posts > article + div + div > article:hover h2 { color: var(--gw-green); }
#gwb-posts > article + div + div > article h2 + div {
  margin-top: 12px; font-size: 15.5px; line-height: 1.7; color: var(--gw-text-2); -webkit-line-clamp: 2;
}
#gwb-posts > article + div + div > article h2 + div strong { color: var(--gw-text); font-weight: 600; }
#gwb-posts > article + div + div > article > div > div:last-child { padding-top: 20px; }
#gwb-posts > article + div + div > article > div > div:last-child > div { display: none; }
#gwb-posts > article + div + div > article > div > div:last-child > span { gap: 6px; font-size: 14px; font-weight: 600; color: var(--gw-text); }
#gwb-posts > article + div + div > article:hover > div > div:last-child > span { gap: 10px; color: var(--gw-green); }

/* ---------- 글이 하나도 없을 때(render.py _EMPTY_POSTS_HTML) ---------- */
#gwb-posts > div:only-child {
  margin-top: 72px; padding: 88px 24px; border: 1px dashed var(--gw-line-2); border-radius: var(--gw-r-lg); box-shadow: none; background: var(--gw-bg-soft);
}
#gwb-posts > div:only-child > div:first-child { border-radius: 14px; background: #fff; color: var(--gw-text-3); box-shadow: inset 0 0 0 1px var(--gw-line); }
#gwb-posts > div:only-child > p:first-of-type { font-size: 18px; font-weight: 700; color: var(--gw-text); letter-spacing: -0.03em; }
#gwb-posts > div:only-child > p + p { color: var(--gw-text-2); }
#gwb-posts > div:only-child > a {
  height: 44px; padding: 0 18px; border: 1px solid var(--gw-line-2); border-radius: 8px; background: #fff;
  color: var(--gw-text); font-size: 14px; font-weight: 600; text-decoration: none;
}
#gwb-posts > div:only-child > a:hover { border-color: var(--gw-text); color: var(--gw-text); text-decoration: none; }

/* ---------- 목록 시작하기 띠 — JS 가 2번째 줄 뒤(4번째 카드 다음)로 옮긴다. JS 가 없으면 목록 아래에 남는다 ---------- */
.gwb-band {
  position: relative; isolation: isolate; overflow: hidden; margin: 56px 0 0; padding: 44px 48px; border-radius: var(--gw-r-xl);
  background: var(--gw-ink); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; align-items: center;
}
#gwb-posts .gwb-band { grid-column: 1 / -1; margin: 40px 0; }
.gwb-wrap-band { width: min(1200px, calc(100% - 48px)); margin: -56px auto 120px; }
.gwb-wrap-band[hidden] { display: none; }
.gwb-wrap-band .gwb-band { margin: 0; }
.gwb-band .gwb-dark__glow { left: 0; top: auto; bottom: -80%; width: 800px; transform: none; }
.gwb-band__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gw-neon); }
.gwb-band__kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.gwb-band__title { margin-top: 14px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 200; line-height: 1.35; letter-spacing: -0.05em; }
.gwb-band__title b { font-weight: 700; color: var(--gw-neon); }
.gwb-band__desc { margin-top: 12px; font-size: 14.5px; line-height: 1.7; font-weight: 300; color: var(--gw-ink-text-2); }
.gwb-band__sub { margin-top: 12px; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--gw-ink-text-2); }
.gwb-band__sub svg { color: var(--gw-neon); flex: none; }

/* ==========================================================================
   상세 /blog/{slug}
   ========================================================================== */
.gwb-progress { position: fixed; left: 0; right: 0; top: var(--gw-header-h); height: 2px; z-index: 499; pointer-events: none; }
.gwb-progress > span { display: block; height: 100%; background: var(--gw-neon); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }

.gwb-layout {
  width: min(1100px, calc(100% - 48px)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 720px) 220px; column-gap: 96px; justify-content: center;
}
@media (max-width: 1199px) { .gwb-layout { grid-template-columns: minmax(0, 720px); } }

/* 어두운 머리 */
.gwb-ahero { padding: calc(var(--gw-header-h) + 64px) 0 72px; }
.gwb-ahero .gwb-dark__glow { left: 30%; top: -70%; }
.gwb-ahero__in > * { grid-column: 1 / -1; }
.gwb-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--gw-ink-text-3); min-width: 0; }
.gwb-crumb a { color: inherit; text-decoration: none; transition: color .15s; }
.gwb-crumb a:hover { color: #fff; }
.gwb-crumb i { font-style: normal; color: rgba(255, 255, 255, .25); }
.gwb-crumb span { color: var(--gw-ink-text-2); min-width: 0; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.gwb-ameta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; color: var(--gw-ink-text-3); font-variant-numeric: tabular-nums; }
.gwb-ameta__item { display: inline-flex; align-items: center; gap: 6px; }
.gwb-ameta__item svg { width: 15px; height: 15px; color: rgba(255, 255, 255, .35); }
.gwb-ameta__item[hidden] { display: none; }
.gwb-cat:empty { display: none; }
.gwb-cat > span {
  height: 26px; padding: 0 11px; border-radius: 999px; background: rgba(30, 215, 96, .1); box-shadow: inset 0 0 0 1px rgba(30, 215, 96, .32);
  font-size: 12.5px; font-weight: 600; color: var(--gw-neon);
}
.gwb-ahero h1 {
  margin-top: 18px; max-width: 920px; font-size: clamp(30px, 3.5vw, 48px); font-weight: 600; line-height: 1.3; letter-spacing: -0.042em; color: #fff;
  text-wrap: balance;
}

/* 본문 영역 */
.gwb-article { background: #fff; padding: 72px 0 112px; }
.gwb-main { min-width: 0; }

/* ---------- 오른쪽 레일: 목차(JS 가 h2·h3 로 채운다) + 시작하기 카드 — 1200px 이상에서만 ---------- */
.gwb-rail {
  position: sticky; top: calc(var(--gw-header-h) + 40px); align-self: start;
  max-height: calc(100vh - var(--gw-header-h) - 64px); display: flex; flex-direction: column; gap: 28px;
}
@media (max-width: 1199px) { .gwb-rail { display: none !important; } }
.gwb-toc { min-height: 0; overflow-y: auto; padding-bottom: 4px; }
.gwb-toc[hidden] { display: none; }
.gwb-toc__label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gw-text-3); }
.gwb-toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-left: 1px solid var(--gw-line); }
.gwb-toc li { margin: 0; }
.gwb-toc a {
  display: block; margin-left: -1px; padding: 6px 0 6px 16px; border-left: 1px solid transparent;
  font-size: 13.5px; line-height: 1.5; color: var(--gw-text-3); text-decoration: none; letter-spacing: -0.015em;
  transition: color .15s, border-color .15s;
}
.gwb-toc a:hover { color: var(--gw-text); }
.gwb-toc a.is-active { color: var(--gw-text); font-weight: 600; border-left-color: var(--gw-green); }
.gwb-toc li.lv3 a { padding-left: 28px; font-size: 13px; }

.gwb-railcta { flex: none; padding: 20px 18px 18px; border: 1px solid var(--gw-line); border-radius: var(--gw-r-lg); background: var(--gw-bg-soft); }
.gwb-railcta[hidden] { display: none; }
.gwb-railcta__kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gw-green); }
.gwb-railcta__title { margin-top: 8px; font-size: 15.5px; font-weight: 700; line-height: 1.45; letter-spacing: -0.03em; color: var(--gw-text); }
.gwb-railcta__promise { margin-top: 6px; display: flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.5; color: var(--gw-text-2); }
.gwb-railcta__promise::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gw-neon); box-shadow: 0 0 0 3px rgba(30, 215, 96, .18); }
.gwb-railcta .gw-btn { margin-top: 16px; }

/* ---------- URL 입력 → 랜딩(글 끝·목록 띠 공통, 랜딩 .lp-cta__input 과 같은 모양) ---------- */
.gwb-urlform {
  display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px; border-radius: 14px;
  background: rgba(20, 24, 22, .8); border: 1px solid var(--gw-ink-line-2); transition: border-color .2s, box-shadow .2s;
}
.gwb-urlform:focus-within { border-color: rgba(30, 215, 96, .55); box-shadow: 0 0 0 4px rgba(30, 215, 96, .12); }
.gwb-urlform svg { flex: 0 0 18px; color: var(--gw-ink-text-3); }
.gwb-urlform input { flex: 1; min-width: 0; height: 46px; border: 0; outline: none; background: transparent; color: #fff; font: inherit; font-size: 16px; letter-spacing: -0.01em; }
.gwb-urlform input::placeholder { color: rgba(244, 244, 245, .38); }
.gwb-urlform .gw-btn { height: 46px; padding: 0 24px; border-radius: 10px; }

/* ---------- 글 끝 시작하기(랜딩 마지막 CTA 와 같은 잉크 + 네온) ---------- */
.gwb-cta {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 80px; padding: 56px 48px 44px; border-radius: var(--gw-r-xl);
  background: var(--gw-ink); color: #fff; text-align: center;
}
.gwb-cta[hidden] { display: none; }
.gwb-cta .gwb-dark__glow { top: auto; bottom: -55%; width: 900px; }
.gwb-cta .gwb-dark__grid { mask-image: radial-gradient(ellipse 70% 80% at 50% 60%, #000 15%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 60%, #000 15%, transparent 75%); }
.gwb-cta__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gw-neon); }
.gwb-cta__kicker::before, .gwb-cta__kicker::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6; }
.gwb-cta__title { margin: 18px auto 0; max-width: 560px; font-size: clamp(26px, 3vw, 38px); font-weight: 200; line-height: 1.3; letter-spacing: -0.05em; text-wrap: balance; }
.gwb-cta__title b { font-weight: 700; color: var(--gw-neon); }
.gwb-cta__desc { margin: 16px auto 0; max-width: 480px; font-size: 15px; line-height: 1.7; font-weight: 300; color: var(--gw-ink-text-2); text-wrap: balance; }
.gwb-cta .gwb-urlform { margin: 32px auto 0; max-width: 540px; text-align: left; }
.gwb-cta__sub { margin-top: 14px; display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 13.5px; color: var(--gw-ink-text-2); }
.gwb-cta__sub svg { color: var(--gw-neon); flex: none; }
.gwb-cta__link {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--gw-ink-line-2); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: border-color .2s, background-color .2s, gap .2s;
}
.gwb-cta__link:hover { border-color: #fff; background: rgba(255, 255, 255, .06); gap: 9px; }

/* ---------- 본문 중간 시작하기(JS 삽입, 닫기 가능) — .post-content 서식보다 앞서도록 범위를 겹쳐 쓴다 ---------- */
.post-content .gwb-icta {
  position: relative; display: flex; align-items: center; gap: 16px; margin: 2.4em 0; padding: 18px 52px 18px 18px;
  border: 1px solid var(--gw-line); border-radius: var(--gw-r-lg); background: var(--gw-bg-soft);
  font-size: 15px; line-height: 1.55; letter-spacing: -0.015em;
}
.post-content .gwb-icta__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--gw-ink); color: var(--gw-neon); }
.post-content .gwb-icta__icon svg { width: 20px; height: 20px; }
.post-content .gwb-icta__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.post-content .gwb-icta__title { font-size: 15.5px; font-weight: 700; color: var(--gw-text); letter-spacing: -0.03em; }
.post-content .gwb-icta__desc { font-size: 13.5px; color: var(--gw-text-2); }
.post-content a.gwb-icta__btn { flex: none; color: #fff; font-weight: 600; text-decoration: none; }
.post-content a.gwb-icta__btn:hover { color: #fff; }
.post-content .gwb-icta__close {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 999px; background: transparent;
  display: grid; place-items: center; color: var(--gw-text-3); cursor: pointer; transition: background-color .15s, color .15s;
}
.post-content .gwb-icta__close:hover { background: var(--gw-bg-muted); color: var(--gw-text); }

/* ---------- 이전/다음/최신 글 (render.py render_post_nav) ---------- */
.gwb-postnav nav { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--gw-line); }
.gwb-postnav nav > a:first-child {
  margin-bottom: 12px; gap: 16px; padding: 18px 20px; border: 1px solid var(--gw-line); border-radius: var(--gw-r-lg); background: var(--gw-bg-soft);
  box-shadow: none; transition: border-color .2s;
}
.gwb-postnav nav > a:first-child:hover { border-color: var(--gw-text); box-shadow: none; }
.gwb-postnav nav > a:first-child > span:first-child { width: 40px; height: 40px; border-radius: 10px; background: var(--gw-ink); box-shadow: none; }
.gwb-postnav nav > a:first-child > span:first-child svg { width: 20px; height: 20px; color: var(--gw-neon); }
.gwb-postnav nav > a:first-child > span:nth-child(2) > span:first-child { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--gw-green); }
.gwb-postnav nav > a:first-child > span:nth-child(2) > span:last-child { margin-top: 2px; font-size: 16px; font-weight: 600; letter-spacing: -0.025em; color: var(--gw-text); }
.gwb-postnav nav > a:first-child:hover > span:nth-child(2) > span:last-child { color: var(--gw-green); }
.gwb-postnav nav > a:first-child > svg { color: var(--gw-text-3); }
.gwb-postnav nav > div:not([class*="text-center"]) { gap: 12px; }
.gwb-postnav nav > div:not([class*="text-center"]) > a {
  padding: 20px 22px; border: 1px solid var(--gw-line); border-radius: var(--gw-r-lg); background: #fff;
  box-shadow: none; transform: none !important; transition: border-color .2s;
}
.gwb-postnav nav > div:not([class*="text-center"]) > a:hover { border-color: var(--gw-text); box-shadow: none; }
.gwb-postnav nav > div:not([class*="text-center"]) > a > span:first-child { font-size: 12.5px; font-weight: 600; color: var(--gw-text-3); }
.gwb-postnav nav > div:not([class*="text-center"]) > a > span:last-child { margin-top: 8px; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -0.025em; color: var(--gw-text); }
.gwb-postnav nav > div:not([class*="text-center"]) > a:hover > span:last-child { color: var(--gw-green); }
.gwb-postnav nav > div[class*="text-center"] { margin-top: 32px; }
.gwb-postnav nav > div[class*="text-center"] > a {
  height: 44px; padding: 0 18px; border: 1px solid var(--gw-line-2); border-radius: 8px; background: #fff;
  font-size: 14px; font-weight: 600; color: var(--gw-text); text-decoration: none; transition: border-color .15s;
}
.gwb-postnav nav > div[class*="text-center"] > a:hover { border-color: var(--gw-text); color: var(--gw-text); text-decoration: none; }

/* ==========================================================================
   본문 서식 .post-content — 마크다운(fenced_code·tables·toc·codehilite·nl2br·sane_lists)과
   관리자 편집기 HTML 이 내는 요소 전부. 17px / 1.85, 본문 폭 720px(한 줄 약 40자).
   ========================================================================== */
.post-content {
  font-size: 17px; line-height: 1.85; color: #27272a; letter-spacing: -0.012em;
  word-break: keep-all; overflow-wrap: break-word;
}
.post-content > :first-child { margin-top: 0 !important; }
.post-content > :last-child { margin-bottom: 0 !important; }

.post-content p { margin: 0 0 1.35em; }
.post-content > p:first-child { font-size: 1.12em; line-height: 1.8; color: var(--gw-text); letter-spacing: -0.02em; }

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 {
  color: var(--gw-text); scroll-margin-top: calc(var(--gw-header-h) + 28px); text-wrap: balance;
}
.post-content h1 { margin: 2.2em 0 .7em; font-size: 1.9em; font-weight: 700; line-height: 1.3; letter-spacing: -0.04em; }
.post-content h2 {
  margin: 1.8em 0 .8em; padding-top: 1.1em; border-top: 1px solid var(--gw-line);
  font-size: 1.65em; font-weight: 700; line-height: 1.38; letter-spacing: -0.038em;
}
.post-content h2:first-child, .post-content hr + h2 { padding-top: 0; border-top: 0; }
.post-content h3 { margin: 2.1em 0 .65em; font-size: 1.3em; font-weight: 700; line-height: 1.45; letter-spacing: -0.032em; }
.post-content h2 + h3 { margin-top: 1.2em; }
.post-content h4 { margin: 1.9em 0 .55em; font-size: 1.1em; font-weight: 700; line-height: 1.5; letter-spacing: -0.025em; color: #27272a; }
.post-content h5, .post-content h6 { margin: 1.7em 0 .5em; font-size: 1em; font-weight: 700; color: var(--gw-text-2); }

.post-content strong, .post-content b { font-weight: 700; color: var(--gw-text); }
.post-content em { font-style: italic; }
.post-content mark { padding: 0 .1em; background: linear-gradient(transparent 58%, rgba(30, 215, 96, .3) 58%); color: inherit; }
.post-content a {
  color: var(--gw-green); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: rgba(21, 128, 61, .35); text-underline-offset: .22em; overflow-wrap: anywhere;
  transition: color .15s, text-decoration-color .15s;
}
.post-content a:hover { color: var(--gw-green-hover); text-decoration-color: currentColor; }

/* 목록 — 점은 회색 작은 원, 번호는 그린 */
.post-content ul, .post-content ol { margin: 0 0 1.35em; padding-left: 1.5em; }
.post-content ul { list-style: none; padding-left: .3em; }
.post-content ul > li { position: relative; padding-left: 1.15em; }
.post-content ul > li::before {
  content: ""; position: absolute; left: .2em; top: .76em; width: 6px; height: 6px; border-radius: 50%; background: #a1a1aa;
}
.post-content ul ul > li::before { background: transparent; box-shadow: inset 0 0 0 1.5px #a1a1aa; }
.post-content ol { list-style: decimal; }
.post-content ol > li { padding-left: .35em; }
.post-content ol > li::marker { color: var(--gw-green); font-weight: 700; font-variant-numeric: tabular-nums; }
.post-content li { margin: .45em 0; }
.post-content li > p { margin: .35em 0; }
.post-content li > ul, .post-content li > ol { margin: .45em 0 .2em; }

/* 인용 — 핵심 요약 상자 */
.post-content blockquote {
  margin: 2em 0; padding: 1.15em 1.45em; border-left: 2px solid var(--gw-green); border-radius: 0 12px 12px 0;
  background: #f3f9f5; color: #1d2b22; font-size: .98em;
}
.post-content blockquote p { margin: .5em 0; }
.post-content blockquote > :first-child { margin-top: 0; }
.post-content blockquote > :last-child { margin-bottom: 0; }
.post-content blockquote strong { color: var(--gw-green-deep); }

/* 코드 */
.post-content code, .post-content kbd, .post-content samp {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}
.post-content :not(pre) > code {
  padding: .14em .42em; border: 1px solid var(--gw-line); border-radius: 6px; background: #f4f4f5;
  font-size: .86em; color: var(--gw-text); letter-spacing: 0; word-break: break-word;
}
.post-content pre {
  margin: 1.9em 0; padding: 20px 22px; border: 1px solid #1f2522; border-radius: 12px; background: var(--gw-ink);
  color: #d4d4d8; font-size: 14px; line-height: 1.7; letter-spacing: 0; overflow-x: auto; tab-size: 2;
  word-break: normal; overflow-wrap: normal;
}
.post-content pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; white-space: pre; }
.post-content .highlight { margin: 1.9em 0; }
.post-content .highlight pre { margin: 0; }
/* Pygments(codehilite) — 그린·무채색만 */
.post-content .highlight .c, .post-content .highlight .c1, .post-content .highlight .cm, .post-content .highlight .cs, .post-content .highlight .ch, .post-content .highlight .cp, .post-content .highlight .cpf { color: #71717a; font-style: italic; }
.post-content .highlight .k, .post-content .highlight .kc, .post-content .highlight .kd, .post-content .highlight .kn, .post-content .highlight .kp, .post-content .highlight .kr, .post-content .highlight .kt, .post-content .highlight .ow { color: var(--gw-neon); }
.post-content .highlight .nt { color: #7fd3a3; }
.post-content .highlight .na, .post-content .highlight .nb, .post-content .highlight .bp, .post-content .highlight .nv, .post-content .highlight .vc, .post-content .highlight .vg, .post-content .highlight .vi { color: #b3e6c8; }
.post-content .highlight .s, .post-content .highlight .s1, .post-content .highlight .s2, .post-content .highlight .sa, .post-content .highlight .sb, .post-content .highlight .sc, .post-content .highlight .sd, .post-content .highlight .se, .post-content .highlight .sh, .post-content .highlight .si, .post-content .highlight .sr, .post-content .highlight .ss, .post-content .highlight .sx, .post-content .highlight .dl { color: #f4f4f5; }
.post-content .highlight .m, .post-content .highlight .mi, .post-content .highlight .mf, .post-content .highlight .mh, .post-content .highlight .mo, .post-content .highlight .mb, .post-content .highlight .il { color: var(--gw-neon); }
.post-content .highlight .nf, .post-content .highlight .fm, .post-content .highlight .nc, .post-content .highlight .nn, .post-content .highlight .nd { color: #fff; font-weight: 600; }
.post-content .highlight .o, .post-content .highlight .p { color: #a1a1aa; }
.post-content .highlight .err { border: 0; background: none; color: inherit; }
.post-content .highlight .gd { color: #fca5a5; }
.post-content .highlight .gi { color: #86efac; }
.post-content .highlight .hll { background: rgba(30, 215, 96, .12); }

/* 표 — JS 가 .gwb-table-wrap 으로 감싸 표 안에서만 가로 스크롤 */
.post-content .gwb-table-wrap { margin: 1.9em 0; border: 1px solid var(--gw-line); border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-content table { width: 100%; max-width: 100%; margin: 1.9em 0; border-collapse: collapse; font-size: 15px; line-height: 1.6; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.post-content .gwb-table-wrap > table { margin: 0; }
.post-content td :not(pre) > code, .post-content td > code, .post-content th > code { white-space: nowrap; }
.post-content th, .post-content td { padding: 12px 16px; text-align: left; vertical-align: top; }
.post-content th { background: #fafafa; border-bottom: 1px solid var(--gw-line); font-size: 13.5px; font-weight: 600; color: var(--gw-text); }
.post-content td { border-top: 1px solid var(--gw-line); color: #3f3f46; }
.post-content tr:first-child > td { border-top: 0; }
.post-content thead + tbody tr:first-child > td { border-top: 0; }
.post-content table:not(.gwb-in-wrap) { border: 1px solid var(--gw-line); }
.post-content .gwb-table-wrap > table { border: 0; }
.post-content tbody tr:hover > td { background: #fcfcfb; }
.post-content th[align="right"], .post-content td[align="right"] { text-align: right; }
.post-content th[align="center"], .post-content td[align="center"] { text-align: center; }

/* 그림 */
.post-content img { display: block; max-width: 100%; height: auto; margin: 2em auto; border: 1px solid var(--gw-line); border-radius: 12px; }
.post-content p > img { margin: 0 auto; }
.post-content p:has(> img:only-child) { margin: 2em 0; }
.post-content figure { margin: 2em 0; }
.post-content figure img { margin: 0 auto; }
.post-content figcaption { margin-top: 12px; font-size: 13.5px; line-height: 1.6; color: var(--gw-text-3); text-align: center; }
.post-content video, .post-content iframe { display: block; max-width: 100%; margin: 2em auto; border-radius: 12px; }

.post-content hr { height: 1px; margin: 3.2em 0; border: 0; background: var(--gw-line); }

/* 마크다운 [TOC] 블록 */
.post-content .toc { margin: 0 0 2em; padding: 18px 22px; border: 1px solid var(--gw-line); border-radius: 12px; background: var(--gw-bg-soft); font-size: .92em; }
.post-content .toc ul { margin: 0; padding-left: 0; }
.post-content .toc ul ul { padding-left: 1em; }
.post-content .toc li { padding-left: 0; margin: .25em 0; }
.post-content .toc li::before { display: none; }
.post-content .toc a { color: var(--gw-text-2); font-weight: 400; text-decoration: none; }
.post-content .toc a:hover { color: var(--gw-green); }

/* ==========================================================================
   반응형
   ========================================================================== */
@media (max-width: 1024px) {
  #gwb-posts > article:first-child > div > div:first-child { padding: 44px 40px 40px; }
}
@media (max-width: 767px) {
  .gwb-hero { padding: calc(var(--gw-header-h) + 56px) 0 48px; }
  .gwb-hero__title { margin-top: 20px; }
  .gwb-hero__sub { margin-top: 16px; }
  #gwb-posts { --gwb-bleed: 56px; width: calc(100% - 40px); padding-bottom: 80px; }
  #gwb-posts > article:first-child { margin-bottom: calc(var(--gwb-bleed) + 48px); border-radius: var(--gw-r-lg); }
  #gwb-posts > article:first-child > div > div:first-child { padding: 28px 22px 26px; }
  #gwb-posts > article:first-child h2 { margin-top: 18px; }
  #gwb-posts > article:first-child h2 + div { font-size: 15.5px; }
  #gwb-posts > article:first-child h2 + div + span { margin-top: 24px; }
  #gwb-posts > article + div + div > article > div { padding: 26px 0 24px; }
  #gwb-posts > article + div + div > article h2 + div { font-size: 15px; }
  .gwb-band { grid-template-columns: minmax(0, 1fr); padding: 30px 22px 26px; gap: 22px; }
  #gwb-posts .gwb-band { margin: 28px 0; }
  .gwb-urlform { flex-wrap: wrap; padding: 8px; }
  .gwb-urlform svg { display: none; }
  .gwb-urlform input { flex-basis: 100%; padding: 0 8px; }
  .gwb-urlform .gw-btn { width: 100%; }

  .gwb-layout { width: calc(100% - 40px); }
  .gwb-ahero { padding: calc(var(--gw-header-h) + 40px) 0 44px; }
  .gwb-ameta { margin-top: 26px; font-size: 13px; }
  .gwb-ahero h1 { margin-top: 14px; font-size: clamp(26px, 7.2vw, 32px); line-height: 1.34; }
  .gwb-article { padding: 44px 0 80px; }
  .gwb-cta { margin-top: 56px; padding: 40px 20px 32px; border-radius: var(--gw-r-lg); }
  .gwb-cta__title { font-size: 25px; }
  .gwb-cta__sub { font-size: 12.5px; align-items: flex-start; text-align: left; }
  .gwb-cta__sub svg { margin-top: 3px; }
  .post-content .gwb-icta { flex-wrap: wrap; align-items: flex-start; padding: 16px 44px 16px 16px; gap: 12px 14px; }
  .post-content .gwb-icta__text { flex-basis: calc(100% - 56px); }
  .post-content a.gwb-icta__btn { width: 100%; }
  .gwb-postnav nav { margin-top: 44px; padding-top: 32px; }

  .post-content { font-size: 16px; line-height: 1.82; }
  .post-content > p:first-child { font-size: 1.08em; }
  .post-content h2 { margin-top: 1.7em; padding-top: 1em; font-size: 1.42em; }
  .post-content h3 { font-size: 1.2em; }
  .post-content h4 { font-size: 1.06em; }
  .post-content blockquote { padding: 1em 1.15em; }
  .post-content pre { padding: 16px 18px; font-size: 13px; border-radius: 10px; }
  .post-content table { font-size: 14px; }
  .post-content th, .post-content td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .gwb-progress { display: none; }
}
