/* design-ai mkdocs-material theme overrides */

/* Pretendard for Korean + Latin (variable font from CDN) */
@font-face {
  font-family: "Pretendard";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/variable/woff2/PretendardVariable.woff2") format("woff2-variations");
}

/* Apply Pretendard to Korean characters; keep Inter for Latin readability */
:root {
  --md-text-font: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --md-code-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Korean character font fallback (for content that mixes scripts) */
:lang(ko), :lang(ko-KR), .md-typeset :is(*[lang="ko"], *[lang="ko-KR"]) {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

/* Brand color tweak — slightly more saturated indigo for headlines */
:root {
  --md-primary-fg-color: #4f46e5;
  --md-primary-fg-color--light: #6366f1;
  --md-primary-fg-color--dark: #3730a3;
  --md-accent-fg-color: #7c3aed;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #818cf8;
  --md-primary-fg-color--light: #a5b4fc;
  --md-primary-fg-color--dark: #6366f1;
  --md-accent-fg-color: #c4b5fd;
}

/* Code blocks: tighter line-height for dense knowledge files */
.md-typeset pre code {
  line-height: 1.55;
}

/* Tables: bring out the headers a bit */
.md-typeset table:not([class]) th {
  font-weight: 600;
  background-color: rgba(99, 102, 241, 0.05);
}

/* Korean-specific reading optimization */
.md-typeset {
  font-feature-settings: "kern", "ss01", "ss02";
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Preserve Korean word boundaries (don't break mid-syllable) */
.md-typeset h1, .md-typeset h2, .md-typeset h3 {
  word-break: keep-all;
}

/* Coverage banner on home page */
.md-content__inner h1:first-of-type + p strong {
  display: inline-block;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header search field tweak for Korean input */
.md-search__input {
  font-family: var(--md-text-font);
}

/* Korean copy in admonitions */
.md-typeset .admonition :lang(ko) {
  line-height: 1.7; /* Korean needs more leading */
}

/* Footer */
.md-footer-meta {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}
