/* Notion Embed 기본 */
.notion-embed {
  font-family: 'Pretendard', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1f2937; /* text-gray-800 */
  margin: 1rem 0;
}

/* Heading */
.notion-embed h1 { font-size: 2rem; font-weight: 700; margin: 0.8em 0 0.4em; line-height: 1.25; }
.notion-embed h2 { font-size: 1.75rem; font-weight: 700; margin: 0.7em 0 0.35em; line-height: 1.2; }
.notion-embed h3 { font-size: 1.5rem; font-weight: 600; margin: 0.6em 0 0.3em; line-height: 1.15; }
.notion-embed h4 { font-size: 1.25rem; font-weight: 600; margin: 0.5em 0 0.25em; line-height: 1.1; }
.notion-embed h5 { font-size: 1.125rem; font-weight: 600; margin: 0.4em 0 0.2em; line-height: 1.05; }
.notion-embed h6 { font-size: 1rem; font-weight: 600; margin: 0.3em 0 0.15em; line-height: 1.0; }

/* Paragraph & Blockquote */
.notion-embed p { margin: 0.5em 0; }
.notion-embed blockquote {
  border-left: 4px solid #d1d5db; /* gray-300 */
  padding-left: 0.75em;
  color: #4b5563; /* gray-700 */
  font-style: italic;
  margin: 0.8em 0;
}

/* List */
.notion-embed ul,
.notion-embed ol {
  margin: 0.6em 0 0.6em 1.25em;
  padding: 0;
}
.notion-embed ul li { list-style-type: disc; margin-bottom: 0.3em; }
.notion-embed ul ul li { list-style-type: circle; }
.notion-embed ul ul ul li { list-style-type: square; }

.notion-embed ol li { list-style-type: decimal; margin-bottom: 0.3em; }
.notion-embed ol ol li { list-style-type: lower-alpha; }
.notion-embed ol ol ol li { list-style-type: lower-roman; }

/* To-Do */
.notion-embed input[type="checkbox"] {
  margin-right: 0.4em;
  transform: scale(1.1);
}

/* Table */
.notion-embed table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.notion-embed th,
.notion-embed td {
  border: 1px solid #e5e7eb; /* gray-200 */
  padding: 6px 12px;
  text-align: left;
}

/* Image */
.notion-embed img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 0.8em 0;
}

/* Code block */
.notion-embed pre {
  background-color: #f9fafb; /* gray-50 */
  padding: 0.75em 1em;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1em 0;
}
.notion-embed code {
  background-color: #f3f4f6; /* gray-100 */
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.95em;
}

/* Callout */
.notion-embed .callout {
  border-left: 4px solid #3b82f6; /* sky-500 */
  background-color: #f0f9ff; /* sky-50 */
  padding: 0.75em;
  border-radius: 0.5rem;
  margin: 1em 0;
}


/* notion embed 내부에서 긴 링크 처리 */
.notion-embed a {
  display: inline-block;
  max-width: 100%;
  word-break: break-all;       /* 단어 중간이라도 줄바꿈 */
  overflow-wrap: anywhere;     /* 최신 브라우저 대응 */
  white-space: normal;         /* 한 줄 고정 방지 */
  text-decoration: underline;
  color: #2563eb;              /* text-sky-600 */
}

.notion-embed img {
  max-width: 100%;
  height: auto;
  display: block;
}

.notion-embed p,
.notion-embed code,
.notion-embed pre {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notion-embed p:empty::before {
  content: "\00a0";  /* 공백 문자 */
  display: block;
  height: 1.2em;     /* 줄 높이 */
}
