/* eunjo works 사이트 모양. 값은 ila-tokens.css 에서만 가져온다 — 여기서 색·크기를 새로 만들지 않는다. */

body {
  padding: 0;
  max-width: none;
  background: var(--paper);
}

header.top, main, footer {
  max-width: 960px;
  margin: 0 auto;
  padding-left: var(--pad-body);
  padding-right: var(--pad-body);
}

header.top {
  padding-top: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
}

nav.main, nav.legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  font-size: var(--t-ui);
  line-height: var(--lh-ui);
}

nav a {
  color: var(--ink-3);
  text-decoration: none;
}

nav a:first-child {
  color: var(--ink);
  font-weight: 600;
}

/* 〔261104 씨니〕 모든 쪽의 홈 단추 */
nav a.home {
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: var(--s1) var(--s3);
}

nav a[aria-current="page"] {
  color: var(--signature-text);
}

main {
  padding-top: var(--s7);
  padding-bottom: var(--s8);
}

main h1 {
  font-size: var(--t-doc-title);
  line-height: var(--lh-doc-title);
  color: var(--ink);
  margin: 0 0 var(--s5);
}

main h2 {
  font-size: var(--t-heading);
  line-height: var(--lh-heading);
  color: var(--ink);
  margin: var(--s7) 0 var(--s3);
}

main p, main li {
  max-width: var(--measure);
}

.draft {
  display: inline-block;
  font-size: var(--t-eyebrow);
  line-height: var(--lh-eyebrow);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: var(--s1) var(--s3);
  margin: 0 0 var(--s5);
}

.note {
  font-size: var(--t-dense);
  line-height: var(--lh-dense);
  color: var(--muted);
}

table.dl {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-ui);
  line-height: var(--lh-ui);
  margin: var(--s4) 0;
}

table.dl th, table.dl td {
  text-align: left;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

table.dl thead th {
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

table.dl code {
  font-family: var(--font-mono);
  font-size: var(--t-dense);
}

footer {
  border-top: 1px solid var(--line);
  padding-top: var(--s5);
  padding-bottom: var(--s7);
  font-size: var(--t-dense);
  line-height: var(--lh-dense);
  color: var(--muted);
}

footer nav.legal a:first-child {
  color: var(--ink-3);
  font-weight: 400;
}

.biz {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  margin: var(--s4) 0 var(--s2);
}

/* 〔261103 다온〕 안내장(MD에서 뽑은 글) · 씨니 글 목록 */
table.doc {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-ui);
  line-height: var(--lh-ui);
  margin: var(--s4) 0;
}

table.doc th, table.doc td {
  text-align: start;
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

table.doc thead th {
  color: var(--muted);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

main h3 {
  font-size: var(--t-ui);
  line-height: var(--lh-ui);
  color: var(--ink);
  margin: var(--s5) 0 var(--s2);
}

main blockquote {
  margin: var(--s4) 0;
  padding-inline-start: var(--s4);
  border-inline-start: 2px solid var(--line);
  color: var(--ink-3);
}

main code {
  font-family: var(--font-mono);
  font-size: var(--t-dense);
}

/* 〔261104 씨니〕 안내장 머리 · 꼬리의 「결과 입력」 단추 */
a.results {
  display: inline-block;
  color: var(--on-signature);
  background: var(--signature);
  border-radius: var(--r-pill);
  padding: var(--s2) var(--s4);
  text-decoration: none;
  font-weight: 600;
}

ul.posts {
  list-style: none;
  padding: 0;
}

ul.posts li {
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line-soft);
}

@media (max-width: 560px) {
  header.top, main, footer {
    padding-left: var(--pad-body-phone);
    padding-right: var(--pad-body-phone);
  }
  table.dl, table.doc { display: block; overflow-x: auto; }
}
