/* Notion block rendering + project detail header */

.detail-head { margin: 36px 0 8px; }
.back {
  display: inline-block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.back:hover { color: var(--accent-ink); }
.detail-head h1 { margin-bottom: 10px; }
.detail-summary { font-size: 1.15rem; color: var(--ink-soft); margin: 4px 0 22px; }

.props {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px 18px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.prop { display: contents; }
.prop__k { color: var(--ink-faint); font-size: 0.9rem; }
.prop__v { font-size: 0.95rem; }

/* Body */
.notion-body { margin-top: 30px; font-size: 1.06rem; }
.notion-body > * + * { margin-top: 2px; }
.notion-body .nb-h { margin: 1.4em 0 0.4em; }
.notion-body p { margin: 0.5em 0; }

.nb-quote {
  border-left: 3px solid var(--ink);
  padding: 2px 0 2px 18px;
  margin: 14px 0;
  color: var(--ink);
}

.nb-callout {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  margin: 16px 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.nb-callout[data-c="blue"] { background: var(--b-blue); }
.nb-callout[data-c="green"] { background: var(--b-green); }
.nb-callout[data-c="gray"] { background: var(--bg-soft); }
.nb-callout[data-c="pink"] { background: var(--b-pink); }
.nb-callout[data-c="yellow"] { background: var(--b-yellow); }
.nb-callout[data-c="orange"] { background: var(--b-orange); }
.nb-callout[data-c="purple"] { background: var(--b-purple); }
.nb-callout[data-c="red"] { background: var(--b-red); }
.nb-callout[data-c="brown"] { background: var(--b-brown); }
.nb-callout__icon { font-size: 1.2rem; line-height: 1.5; flex: 0 0 auto; }
.nb-callout__body { flex: 1; min-width: 0; }
.nb-callout__body > :first-child { margin-top: 0; }

.nb-figure { margin: 22px 0; }
.nb-figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.nb-figure figcaption { text-align: center; color: var(--ink-faint); font-size: 0.85rem; margin-top: 8px; }

.nb-toggle { margin: 8px 0; }
.nb-toggle summary { cursor: pointer; font-weight: 500; padding: 4px 0; }
.nb-toggle > :not(summary) { margin-left: 18px; }

.nb-todo { display: flex; align-items: flex-start; gap: 8px; margin: 5px 0; }
.nb-todo .done { color: var(--ink-faint); text-decoration: line-through; }

.nb-columns { display: flex; gap: 24px; margin: 12px 0; }
@media (max-width: 640px) { .nb-columns { flex-direction: column; } } /* 모바일에선 세로 스택 */
.nb-column { flex: 1 1 0; min-width: 0; }

.nb-table-wrap { overflow-x: auto; margin: 16px 0; }
.nb-table { border-collapse: collapse; font-size: 0.92rem; }
.nb-table th, .nb-table td { border: 1px solid var(--line-strong); padding: 8px 12px; text-align: left; }
.nb-table th { background: var(--bg-soft); font-weight: 600; }

/* 북마크 카드 */
.nb-bookmark { display:flex; gap:8px; align-items:baseline; border:1px solid var(--line);
  border-radius:var(--radius); padding:10px 12px; text-decoration:none; color:inherit; }
.nb-bookmark:hover { background: var(--hover); }
.nb-bookmark__url { color: var(--t-blue); font-size:0.88rem; word-break:break-all; }
.nb-bookmark__cap { color: var(--ink-soft); font-size:0.85rem; }

/* 서브페이지 링크 카드 */
.nb-childpage { display:flex; gap:8px; align-items:center; border:1px solid var(--line);
  border-radius:var(--radius); padding:10px 12px; text-decoration:none; color:inherit; margin:4px 0; }
.nb-childpage:hover { background:var(--hover); }
.nb-childpage__t { font-weight:600; border-bottom:1px solid var(--line-strong); }

/* 동영상/임베드 */
.nb-embed { position:relative; aspect-ratio:16/9; margin:6px 0; }
.nb-embed iframe { width:100%; height:100%; border:0; border-radius:var(--radius); }
.nb-video { width:100%; border-radius:var(--radius); }

/* 목차(요약 보기) */
html { scroll-behavior: smooth; }
.nb-toc { background:var(--bg-soft); border:1px solid var(--line); border-radius:var(--radius);
  padding:10px 14px; margin:10px 0 18px; }
.nb-toc summary { cursor:pointer; font-weight:600; font-size:0.92rem; }
.nb-toc__i { display:block; padding:3px 0; color:var(--ink-soft); text-decoration:none; font-size:0.9rem; }
.nb-toc__i:hover { color:var(--ink); text-decoration:underline; }
.nb-toc__i.lv2 { padding-left:14px; }
.nb-toc__i.lv3 { padding-left:28px; }

/* 맨 위로 버튼 */
.top-btn { position:fixed; right:22px; bottom:80px; width:42px; height:42px; z-index:150;
  border:1px solid var(--line); border-radius:50%; background:var(--card); color:var(--ink);
  font-size:1.1rem; cursor:pointer; box-shadow:var(--shadow-lg); transition:opacity .2s; }
.top-btn.hidden { opacity:0; pointer-events:none; }
.top-btn:hover { background:var(--hover); }

/* 접이식 섹션 (긴 문서 기본 접힘) */
.nb-sec { border-bottom:1px solid var(--line); margin:4px 0; }
.nb-sec__t { cursor:pointer; font-size:1.4rem; font-weight:700; letter-spacing:-0.02em;
  padding:12px 0; list-style-position:outside; color:var(--ink); }
.nb-sec__t:hover { color: var(--t-blue); }
.nb-sec__body { padding: 4px 0 18px; }
.nb-sec[open] > .nb-sec__t { border-bottom:none; }
