/* ============================================================
   블로그 (blog.html · blog/*.html) — 노션 '블로그 글' DB에서 생성되는 페이지
   Figma 프레임이 없는 페이지다(대표 지시로 신설). 서브페이지의 표현을 그대로 빌려 쓴다 —
   어두운 표지 + 파란 글로우(서비스5), Pretendard 700 48px 헤드라인, Montserrat 라벨,
   #2b75ff 포인트, 5px 모서리, 1360px 콘텐츠 폭(푸터와 동일: left 280).
   다른 서브페이지와 달리 글 길이가 가변이라 프레임 안은 절대 좌표가 아닌 흐름 배치다.
   HTML은 scripts/blog/templates/ → scripts/blog/sync.mjs가 생성한다.
   ============================================================ */

.is-hidden { display: none !important; }

/* 파란 글로우 — 서비스5 CTA와 같은 SVG·같은 좌표 */
.bl-glow { position: absolute; max-width: none; transform: rotate(180deg); pointer-events: none; }
.bl-glow.g1 { left: -536px; top: -828px; width: 3163px; height: 1931px; }
.bl-glow.g2 { left: -236px; top: -530px; width: 2563px; height: 794px; }

/* ---------------- 목록 표지 ---------------- */
.bl-hero { height: 640px; background: #000; }
.bl-hero-in {
  position: absolute;
  left: 0; right: 0; top: 236px;
  display: flex; flex-direction: column; align-items: center;
  z-index: 5;
}
.bl-eyebrow {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 16px; line-height: normal;
  letter-spacing: 1.6px;
  color: var(--blue);
}
.bl-hero-h {
  margin: 28px 0 0;
  font-family: 'Pretendard Variable'; font-weight: 700; font-size: 48px; line-height: 1.3;
  color: #fff; text-align: center; white-space: nowrap;
}
.bl-hero-d {
  margin-top: 32px;
  font-family: 'Pretendard Variable'; font-weight: 500; font-size: 24px; line-height: normal;
  color: #fff; opacity: .6; text-align: center;
}

/* ---------------- 목록 ---------------- */
.bl-list { background: #fff; padding: 100px 280px 180px; min-height: 600px; }

.bl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 64px; }
.bl-filters button {
  padding: 11px 22px;
  border-radius: 5px;
  background: var(--gray100);
  font-family: 'Pretendard Variable'; font-weight: 600; font-size: 16px; line-height: normal;
  color: rgba(2, 2, 2, .5);
  transition: background-color .18s ease, color .18s ease;
}
.bl-filters button:hover { color: var(--ink); }
.bl-filters button.is-on { background: var(--ink); color: #fff; }

.bl-card-link { display: block; text-decoration: none; color: inherit; }
.bl-card-ph {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  overflow: hidden;
  background: var(--gray100);
}
.bl-card-ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
/* 사진이 없는 글 — COMPANY 5.1의 빈 그래픽을 가운데 작게 */
.bl-card-ph img.is-empty { object-fit: contain; padding: 18%; opacity: .7; }
.bl-card-link:hover .bl-card-ph img { transform: scale(1.06); }

.bl-cat {
  font-family: 'Pretendard Variable'; font-weight: 600; font-size: 15px; line-height: normal;
  color: var(--blue);
}
.bl-card-t {
  margin: 12px 0 0;
  font-family: 'Pretendard Variable'; font-weight: 700; font-size: 24px; line-height: 1.4;
  letter-spacing: -0.24px;
  color: var(--ink);
  word-break: keep-all;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  transition: color .18s ease;
}
.bl-card-link:hover .bl-card-t { color: var(--blue); }
.bl-card-d {
  margin-top: 12px;
  font-family: 'Pretendard Variable'; font-weight: 400; font-size: 16px; line-height: 1.6;
  color: rgba(2, 2, 2, .5);
  word-break: keep-all;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.bl-card-m {
  margin-top: 20px;
  font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 14px; line-height: normal;
  color: rgba(2, 2, 2, .3);
}
.bl-card-tx { padding-top: 24px; }

/* 최신 글 1건 — 사진 왼쪽 800, 글 오른쪽 */
.bl-card.is-featured .bl-card-link { display: flex; align-items: center; gap: 72px; }
.bl-card.is-featured .bl-card-ph { width: 800px; flex-shrink: 0; }
.bl-card.is-featured .bl-card-tx { padding-top: 0; min-width: 0; }
.bl-card.is-featured .bl-cat { font-size: 17px; }
.bl-card.is-featured .bl-card-t { margin-top: 18px; font-size: 38px; line-height: 1.35; letter-spacing: -0.38px; -webkit-line-clamp: 3; }
.bl-card.is-featured .bl-card-d { margin-top: 22px; font-size: 19px; -webkit-line-clamp: 3; }
.bl-card.is-featured .bl-card-m { margin-top: 32px; font-size: 15px; }

.bl-grid {
  margin-top: 96px; padding-top: 96px;
  border-top: 1px solid rgba(2, 2, 2, .08);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 72px 40px;
}
/* 카테고리로 거른 결과에 최신 글이 빠지면 구분선·여백도 함께 접는다 */
.bl-list.no-featured .bl-grid { margin-top: 0; padding-top: 0; border-top: 0; }

.bl-none, .bl-empty .d {
  font-family: 'Pretendard Variable'; font-weight: 400; font-size: 18px; line-height: normal;
  color: rgba(2, 2, 2, .4); text-align: center;
}
.bl-none { padding: 120px 0; }
.bl-empty { display: flex; flex-direction: column; align-items: center; padding: 60px 0 20px; }
.bl-empty img { width: 320px; height: auto; opacity: .8; }
.bl-empty .t {
  margin-top: 40px;
  font-family: 'Pretendard Variable'; font-weight: 700; font-size: 28px; line-height: normal;
  color: var(--ink);
}
.bl-empty .d { margin-top: 14px; }

/* ---------------- 글 ---------------- */
.bp { background: #fff; }
.bp-head { position: relative; background: #000; overflow: hidden; padding: 230px 0 210px; }
.bp.no-cover .bp-head { padding-bottom: 120px; }
.bp-head-in {
  position: relative; z-index: 5;
  width: 1100px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.bp-crumb, .bp-meta { display: flex; align-items: center; gap: 14px; }
.bp-crumb {
  font-family: 'Pretendard Variable'; font-weight: 600; font-size: 17px; line-height: normal;
  color: var(--blue);
}
.bp-crumb a {
  font-family: 'Montserrat', sans-serif; letter-spacing: 1.2px;
  color: rgba(255, 255, 255, .5); text-decoration: none;
  transition: color .18s ease;
}
.bp-crumb a:hover { color: #fff; }
.bp-crumb .sep, .bp-meta .sep { width: 1px; height: 12px; background: rgba(255, 255, 255, .25); }
.bp-title {
  margin: 28px 0 0;
  font-family: 'Pretendard Variable'; font-weight: 700; font-size: 52px; line-height: 1.35;
  letter-spacing: -0.52px;
  color: #fff;
  word-break: keep-all;
}
.bp-meta {
  margin-top: 40px;
  font-family: 'Pretendard Variable'; font-weight: 400; font-size: 17px; line-height: normal;
  color: rgba(255, 255, 255, .5);
}
.bp-meta time { font-family: 'Montserrat', sans-serif; font-weight: 500; }

.bp-main { position: relative; padding-bottom: 160px; }
/* 대표 이미지는 어두운 표지에 절반 걸쳐 올라온다 */
.bp-cover {
  position: relative; z-index: 6;
  width: 1100px; margin: -130px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 5px; overflow: hidden;
  background: var(--gray100);
}
.bp-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---- 노션 본문 ---- */
.bp-content {
  width: 820px; margin: 96px auto 0;
  font-family: 'Pretendard Variable'; font-weight: 400; font-size: 21px; line-height: 1.85;
  letter-spacing: -0.1px;
  color: rgba(2, 2, 2, .82);
  word-break: keep-all; overflow-wrap: anywhere;
}
.bp-content > *:first-child { margin-top: 0; }
.bp-content p { margin-top: 28px; }
.bp-content .nb-gap { height: 28px; }
.bp-content .nb-indent { margin-left: 32px; }
.bp-content h2 {
  margin: 96px 0 0;
  font-weight: 700; font-size: 34px; line-height: 1.4; letter-spacing: -0.34px;
  color: var(--ink);
}
.bp-content h3 {
  margin: 64px 0 0;
  font-weight: 700; font-size: 26px; line-height: 1.45; letter-spacing: -0.26px;
  color: var(--ink);
}
.bp-content h2 + p, .bp-content h3 + p { margin-top: 20px; }
.bp-content strong { font-weight: 700; color: var(--ink); }
.bp-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bp-content a:hover { text-decoration-thickness: 2px; }
.bp-content code {
  padding: 3px 8px; border-radius: 5px;
  background: var(--gray100);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .86em;
  color: var(--ink);
}

.bp-content ul, .bp-content ol { margin: 24px 0 0; padding-left: 30px; }
.bp-content li { margin-top: 10px; padding-left: 6px; }
.bp-content li::marker { color: var(--blue); font-weight: 600; }
.bp-content li > ul, .bp-content li > ol { margin-top: 6px; }
.bp-content li p { margin-top: 10px; }
.bp-content ul.nb-todo { list-style: none; padding-left: 0; }
.bp-content ul.nb-todo > li { position: relative; padding-left: 38px; }
.nb-check {
  position: absolute; left: 0; top: 9px;
  width: 22px; height: 22px;
  border: 1.5px solid rgba(2, 2, 2, .25); border-radius: 5px;
}
.nb-todo > li.is-done > .nb-check { background: var(--blue); border-color: var(--blue); }
.nb-todo > li.is-done > .nb-check::after {
  content: ''; position: absolute; left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.nb-todo > li.is-done > span { color: rgba(2, 2, 2, .4); text-decoration: line-through; }

.bp-content blockquote {
  margin: 48px 0 0; padding: 4px 0 4px 32px;
  border-left: 3px solid var(--blue);
  font-weight: 500; font-size: 24px; line-height: 1.7;
  color: var(--ink);
}
.bp-content blockquote p:first-child { margin-top: 0; }

.nb-callout {
  margin-top: 48px; padding: 32px 36px;
  display: flex; gap: 18px;
  border-radius: 5px;
  background: var(--paper);
  border-left: 3px solid var(--blue);
}
.nb-callout .ic { flex-shrink: 0; font-size: 24px; line-height: 1.6; }
.nb-callout .tx { min-width: 0; font-size: 19px; line-height: 1.8; }
.nb-callout .tx > *:first-child { margin-top: 0; }

.bp-content hr { margin: 72px 0 0; border: 0; height: 1px; background: rgba(2, 2, 2, .1); }

/* 이미지·동영상은 본문(820)보다 넓게 — 표지 이미지와 같은 1100 */
.nb-img, .nb-video { margin: 64px -140px 0; }
.nb-img img { width: 100%; height: auto; border-radius: 5px; }
.nb-video .fr { position: relative; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: #000; }
.nb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bp-content figcaption {
  margin-top: 16px;
  font-size: 15px; line-height: 1.6;
  color: rgba(2, 2, 2, .4); text-align: center;
}
/* 다단 안에서는 넓힐 자리가 없다 */
.nb-cols .nb-img, .nb-cols .nb-video, .nb-callout .nb-img, li .nb-img, .nb-toggle .nb-img { margin-left: 0; margin-right: 0; }

.nb-code { margin-top: 48px; }
.nb-code pre {
  padding: 32px 36px; border-radius: 5px;
  background: var(--ink);
  overflow-x: auto;
}
.nb-code pre code {
  padding: 0; background: none;
  font-size: 16px; line-height: 1.7;
  color: rgba(255, 255, 255, .86);
  white-space: pre; word-break: normal; overflow-wrap: normal;
}
.nb-eq { margin-top: 40px; padding: 24px; border-radius: 5px; background: var(--paper); font-size: 18px; text-align: center; overflow-x: auto; }

.nb-table { margin-top: 48px; overflow-x: auto; }
.nb-table table { width: 100%; border-collapse: collapse; font-size: 18px; line-height: 1.6; }
.nb-table th, .nb-table td { padding: 16px 20px; border-bottom: 1px solid rgba(2, 2, 2, .08); text-align: left; vertical-align: top; }
.nb-table th { font-weight: 600; color: var(--ink); background: var(--paper); border-bottom-color: rgba(2, 2, 2, .14); }

.nb-cols { margin-top: 28px; display: flex; gap: 40px; }
.nb-cols .col { flex: 1 1 0; min-width: 0; }
.nb-cols .col > *:first-child { margin-top: 0; }

.nb-toggle { margin-top: 24px; border-bottom: 1px solid rgba(2, 2, 2, .1); }
.nb-toggle summary { padding: 8px 0 20px; font-weight: 600; color: var(--ink); cursor: pointer; }
.nb-toggle summary::marker { color: var(--blue); }
.nb-toggle .in { padding: 0 0 28px 26px; }
.nb-toggle .in > *:first-child { margin-top: 0; }

.bp-content a.nb-bookmark {
  margin-top: 40px; padding: 24px 28px;
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid rgba(2, 2, 2, .1); border-radius: 5px;
  text-decoration: none;
  transition: border-color .18s ease;
}
.bp-content a.nb-bookmark:hover { border-color: var(--blue); }
.nb-bookmark .h { font-weight: 600; font-size: 18px; line-height: 1.5; color: var(--ink); }
.nb-bookmark .u { font-size: 14px; line-height: 1.5; color: rgba(2, 2, 2, .4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 노션 글자색·배경색 — 사이트 팔레트에 맞춰 채도를 낮춘 대응색 */
.nc-gray { color: rgba(2, 2, 2, .45); }
.nc-brown { color: #8a5a3c; }
.nc-orange { color: #d9730d; }
.nc-yellow { color: #b8860b; }
.nc-green { color: #1f8a5b; }
.nc-blue { color: var(--blue); }
.nc-purple { color: #6b4fd8; }
.nc-pink { color: #cf3f87; }
.nc-red { color: #e03e3e; }
.nc-gray-bg { background: rgba(2, 2, 2, .06); }
.nc-brown-bg { background: #f3eeea; }
.nc-orange-bg { background: #fdf0e3; }
.nc-yellow-bg { background: #fdf6d8; }
.nc-green-bg { background: #e6f4ec; }
.nc-blue-bg { background: #e8f0ff; }
.nc-purple-bg { background: #efebfd; }
.nc-pink-bg { background: #fcebf3; }
.nc-red-bg { background: #fdeaea; }
span[class^="nc-"][class$="-bg"] { padding: 2px 4px; border-radius: 3px; }

/* ---- 이전/다음 · 목록으로 ---- */
.bp-pager {
  width: 1100px; margin: 140px auto 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(2, 2, 2, .1); border-bottom: 1px solid rgba(2, 2, 2, .1);
}
.bp-pager-i { padding: 40px 0; display: flex; flex-direction: column; gap: 12px; text-decoration: none; min-width: 0; }
.bp-pager-i.next { align-items: flex-end; text-align: right; padding-left: 40px; border-left: 1px solid rgba(2, 2, 2, .1); }
.bp-pager-i.prev { padding-right: 40px; }
.bp-pager-i .l { font-family: 'Pretendard Variable'; font-weight: 500; font-size: 15px; color: rgba(2, 2, 2, .4); }
.bp-pager-i .t {
  max-width: 100%;
  font-family: 'Pretendard Variable'; font-weight: 600; font-size: 20px; line-height: 1.5;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .18s ease;
}
.bp-pager-i:hover .t { color: var(--blue); }
.bp-back {
  width: 165px; margin: 64px auto 0; padding: 10.5px 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 5px;
  background: var(--ink);
  font-family: 'Pretendard Variable'; font-weight: 500; font-size: 18px; line-height: 1.4;
  color: #fff; text-decoration: none; white-space: nowrap;
  transition: background-color .18s ease;
}
.bp-back:hover { background: var(--blue); }

/* ---------------- CTA (서비스5와 같은 글로우·버튼, 높이만 낮춤) ---------------- */
.bl-cta { height: 560px; background: #000; }
.bl-cta-in {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 5;
}
.bl-cta-h {
  margin: 0;
  font-family: 'Pretendard Variable'; font-weight: 700; font-size: 48px; line-height: normal;
  color: #fff; text-align: center; white-space: nowrap;
}
.bl-cta-d {
  margin-top: 33px;
  font-family: 'Pretendard Variable'; font-weight: 500; font-size: 28px; line-height: normal;
  color: #fff; opacity: .6; text-align: center;
}
.bl-cta-btns { margin-top: 70px; display: flex; align-items: center; gap: 6px; }
.bl-cta-btns .btn {
  width: 165px; padding: 10.5px 30px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Pretendard Variable'; font-size: 18px; line-height: 1.4;
  text-decoration: none; white-space: nowrap;
}
.bl-cta-btns .btn.white { background: #fff; color: #000; font-weight: 600; }
.bl-cta-btns .btn.blue { background: var(--blue); color: #fff; font-weight: 500; }
