/* KLOSCAD — Notion 페이지를 옮긴 정적 사이트 스타일 (Notion 기본 테마에 맞춤) */
:root {
  --text: rgb(55, 53, 47);
  --text-2: rgba(55, 53, 47, 0.65);
  --text-3: rgba(55, 53, 47, 0.45);
  --line: rgba(55, 53, 47, 0.09);
  --line-2: rgba(55, 53, 47, 0.16);
  --hover: rgba(55, 53, 47, 0.06);
  --bg: #ffffff;
  --panel: rgb(247, 247, 245);
  --accent: #2383e2;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", Arial, sans-serif,
    "Segoe UI Emoji", "Segoe UI Symbol";
  /* Notion colours */
  --gray: rgb(120, 119, 116); --brown: rgb(159, 107, 83); --orange: rgb(217, 115, 13); --yellow: rgb(203, 145, 47);
  --green: rgb(68, 131, 97); --blue: rgb(51, 126, 169); --purple: rgb(144, 101, 176); --pink: rgb(193, 76, 138);
  --red: rgb(212, 76, 71);
  --gray-bg: rgb(241, 241, 239); --brown-bg: rgb(244, 238, 238); --orange-bg: rgb(251, 236, 221);
  --yellow-bg: rgb(251, 243, 219); --green-bg: rgb(237, 243, 236); --blue-bg: rgb(231, 243, 248);
  --purple-bg: rgba(244, 240, 247, 0.8); --pink-bg: rgba(249, 238, 243, 0.8); --red-bg: rgb(253, 235, 236);
  /* tag colours */
  --tag-default: rgba(227, 226, 224, 0.5); --tag-gray: rgb(227, 226, 224); --tag-brown: rgb(238, 224, 218);
  --tag-orange: rgb(250, 222, 201); --tag-yellow: rgb(253, 236, 200); --tag-green: rgb(219, 237, 219);
  --tag-blue: rgb(211, 229, 239); --tag-purple: rgb(232, 222, 238); --tag-pink: rgb(245, 224, 233);
  --tag-red: rgb(255, 226, 221);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); padding: 0 16px; height: 45px; display: flex; align-items: center; font-size: 14px; }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--text-2); overflow: hidden; white-space: nowrap; }
.crumbs a { text-decoration: none; color: var(--text); padding: 2px 6px; border-radius: 4px; }
.crumbs a:hover { background: var(--hover); }
.crumbs span { overflow: hidden; text-overflow: ellipsis; }

.cover { height: 30vh; min-height: 160px; max-height: 280px; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.page { max-width: 900px; margin: 0 auto; padding: 0 96px 80px; position: relative; }
.page.full { max-width: none; }
.page.no-cover { padding-top: 64px; }
.page.small { font-size: 14px; }
.page-title-icon { display: block; width: 78px; height: 78px; object-fit: contain; margin-top: -42px; position: relative; font-size: 70px; line-height: 1; }
.page.no-cover .page-title-icon { margin-top: 0; }
img.page-title-icon { border-radius: 4px; }
.page-title { font-size: 40px; font-weight: 700; line-height: 1.2; margin: 24px 0 12px; letter-spacing: -0.01em; word-break: keep-all; }
.page-body { padding-bottom: 30px; }

/* blocks */
p { margin: 2px 0; padding: 3px 2px; min-height: 1.5em; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.blank { height: 1.9em; }
h1, h2, h3 { font-weight: 600; margin: 1.4em 0 2px; padding: 3px 2px; line-height: 1.3; }
.page-body h1 { font-size: 1.875em; } .page-body h2 { font-size: 1.5em; } .page-body h3 { font-size: 1.25em; }
blockquote { margin: 4px 0; padding: 3px 14px; border-left: 3px solid currentColor; font-size: 1.05em; }
blockquote p { padding: 0; }
hr { border: 0; border-top: 1px solid var(--line-2); margin: 14px 0; }
ul, ol { margin: 2px 0; padding-left: 1.6em; }
li { padding: 3px 0; }
.indent { padding-left: 1.6em; }
code { font-family: "SFMono-Regular", Menlo, Consolas, monospace; background: rgba(135,131,120,.15); color: #eb5757; border-radius: 4px; padding: .1em .35em; font-size: 85%; }
.mention { text-decoration: none; border-bottom: 1px solid var(--line-2); font-weight: 500; }

.columns { display: flex; gap: 46px; margin: 4px 0; }
.column { min-width: 0; }
@media (max-width: 760px) {
  .page { padding: 0 16px 60px; }
  .page-title { font-size: 30px; }
  .columns { flex-direction: column; gap: 0; }
  .column { flex: 1 1 auto !important; }
}

.callout { display: flex; gap: 10px; padding: 16px 16px 16px 12px; border-radius: 4px; margin: 4px 0; }
.callout-icon { flex: none; width: 24px; height: 24px; font-size: 21px; line-height: 24px; text-align: center; }
.callout-body { min-width: 0; flex: 1; }
.callout-body > h3:first-child, .callout-body > h2:first-child, .callout-body > p:first-child { margin-top: 0; }

.toggle { margin: 2px 0; }
.toggle > summary { cursor: pointer; padding: 3px 2px; list-style: none; display: flex; gap: 6px; align-items: baseline; }
.toggle > summary::-webkit-details-marker { display: none; }
.toggle > summary::before { content: "▸"; color: var(--text-2); transition: transform .15s; display: inline-block; width: 1em; flex: none; }
.toggle[open] > summary::before { transform: rotate(90deg); }
.toggle > summary h1, .toggle > summary h2, .toggle > summary h3 { margin: 0; padding: 0; display: inline; }

figure { margin: 6px 0; }
figure.image img { display: block; border-radius: 2px; }
figure.image { max-width: 100%; }
figcaption { color: var(--text-2); font-size: 14px; padding: 6px 2px; }
figure.video video { width: 100%; border-radius: 2px; background: #000; }
figure.embed iframe { width: 100%; aspect-ratio: 16/9; border: 0; }

.page-link { display: flex; align-items: center; gap: 6px; text-decoration: none; padding: 3px 4px; border-radius: 4px; font-weight: 500; line-height: 1.4; }
.page-link span { border-bottom: 1px solid var(--line-2); }
.page-link:hover { background: var(--hover); }
.page-link.alias { color: var(--text-2); font-size: 14px; display: inline-flex; margin-bottom: 4px; }
.page-icon { width: 20px; height: 20px; flex: none; object-fit: contain; font-size: 18px; line-height: 20px; text-align: center; }
.glyph { display: inline-block; width: 18px; height: 18px; background:
  linear-gradient(var(--text-3), var(--text-3)) 3px 4px / 12px 2px no-repeat,
  linear-gradient(var(--text-3), var(--text-3)) 3px 8px / 12px 2px no-repeat,
  linear-gradient(var(--text-3), var(--text-3)) 3px 12px / 8px 2px no-repeat; }
.page-title-icon.glyph { display: none; }
.callout-icon.glyph { width: 20px; height: 20px; margin: 2px; }

.bookmark { display: block; border: 1px solid var(--line-2); border-radius: 4px; padding: 12px 14px; margin: 6px 0; text-decoration: none; }
.bookmark:hover { background: var(--hover); }
.bm-title { font-size: 14px; font-weight: 500; }
.bm-desc { font-size: 12px; color: var(--text-2); margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bm-url { font-size: 12px; color: var(--text-2); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file { padding: 4px 2px; }
.file a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.file a:hover { background: var(--hover); }
.file.off { color: var(--text-3); }
.lock { font-size: 12px; }

/* colours */
.c-gray { color: var(--gray); } .c-brown { color: var(--brown); } .c-orange { color: var(--orange); } .c-yellow { color: var(--yellow); }
.c-green { color: var(--green); } .c-blue { color: var(--blue); } .c-purple { color: var(--purple); } .c-pink { color: var(--pink); } .c-red { color: var(--red); }
.c-gray-bg { background: var(--gray-bg); } .c-brown-bg { background: var(--brown-bg); } .c-orange-bg { background: var(--orange-bg); }
.c-yellow-bg { background: var(--yellow-bg); } .c-green-bg { background: var(--green-bg); } .c-blue-bg { background: var(--blue-bg); }
.c-purple-bg { background: var(--purple-bg); } .c-pink-bg { background: var(--pink-bg); } .c-red-bg { background: var(--red-bg); }
.c-default-bg { background: var(--tag-default); }

/* database */
.db { margin: 10px 0 18px; }
.db-title { font-size: 1.25em; font-weight: 600; margin: 6px 0; }
.db-bar { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.db-tab { border: 0; background: none; font: inherit; font-size: 14px; color: var(--text-2); padding: 6px 8px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.db-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); font-weight: 500; }
.db-tab:hover { background: var(--hover); border-radius: 4px 4px 0 0; }
.db-search { margin-left: auto; font: inherit; font-size: 14px; border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 8px; width: 180px; max-width: 45vw; }
.db-count { font-size: 12px; color: var(--text-3); padding: 6px 2px; }
.db-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.db-table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.db-table th { text-align: left; font-weight: 400; color: var(--text-2); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px 8px; white-space: nowrap; position: sticky; top: 0; background: #fff; cursor: pointer; user-select: none; }
.db-table th:last-child, .db-table td:last-child { border-right: 0; }
.db-table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.db-table td.title { font-weight: 500; }
.db-table tr:hover td { background: rgba(55,53,47,.03); }
.db-table td .cellwrap { max-height: 7.5em; overflow: hidden; }
.db-table .open { cursor: pointer; border-bottom: 1px solid var(--line-2); }
.tag { display: inline-block; border-radius: 3px; padding: 0 6px; margin: 0 4px 2px 0; font-size: 13px; line-height: 1.5; white-space: nowrap; }
.tag.c-default-bg { background: var(--tag-default); } .tag.c-gray-bg { background: var(--tag-gray); } .tag.c-brown-bg { background: var(--tag-brown); }
.tag.c-orange-bg { background: var(--tag-orange); } .tag.c-yellow-bg { background: var(--tag-yellow); } .tag.c-green-bg { background: var(--tag-green); }
.tag.c-blue-bg { background: var(--tag-blue); } .tag.c-purple-bg { background: var(--tag-purple); } .tag.c-pink-bg { background: var(--tag-pink); }
.tag.c-red-bg { background: var(--tag-red); }
.file-link { display: inline-block; font-size: 13px; text-decoration: none; border-bottom: 1px solid var(--line-2); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.file-link::before { content: "🔒 "; font-size: 11px; }
.file-link.off { color: var(--text-3); }

.gallery-group { margin: 14px 0 6px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 8px 0; }
.card { border: 1px solid var(--line-2); border-radius: 4px; padding: 10px 12px; font-size: 13px; cursor: pointer; background: #fff; box-shadow: 0 1px 2px rgba(15,15,15,.04); }
.card:hover { background: var(--panel); }
.card .card-title { font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.card .card-prop { color: var(--text-2); margin: 2px 0; overflow: hidden; text-overflow: ellipsis; }

.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.board-col { flex: 0 0 260px; }
.board-col h4 { margin: 6px 0; font-size: 14px; font-weight: 500; }
.board-col .card { margin-bottom: 8px; }

.chart { padding: 8px 0; }
.chart svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-2); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.modal-bg { position: fixed; inset: 0; background: rgba(15,15,15,.6); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow: auto; }
.modal { background: #fff; border-radius: 6px; max-width: 760px; width: 100%; padding: 28px 32px 32px; box-shadow: 0 16px 48px rgba(15,15,15,.25); position: relative; }
.modal h2 { margin: 0 0 16px; font-size: 26px; line-height: 1.3; padding: 0; }
.modal .close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--text-2); }
.prop-row { display: flex; gap: 12px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.prop-row .k { flex: 0 0 140px; color: var(--text-2); }
.prop-row .v { flex: 1; min-width: 0; overflow-wrap: anywhere; }

.site-footer { text-align: center; color: var(--text-3); font-size: 12px; padding: 24px 16px 40px; border-top: 1px solid var(--line); }
