/* ===== 개발 노트 ===== */

:root {
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "D2Coding", Consolas, "Liberation Mono", Menlo, monospace;
  --code-bg: #0B1713;
  /* 코드 색: 소나무색 바탕에 맞춘 색 */
  --hl-comment: #6F8C82;
  --hl-keyword: #F08D7E;
  --hl-string: #A9D58B;
  --hl-number: #E9C46A;
  --hl-title: #7FC4EC;
  --hl-attr: #93D3C1;
  --hl-type: #C9A7F2;
}
:root[data-theme="light"] {
  --code-bg: #F4F8F5;
  --hl-comment: #5B6F68;
  --hl-keyword: #B3302A;
  --hl-string: #2F7A2F;
  --hl-number: #8A5A00;
  --hl-title: #1E66A8;
  --hl-attr: #23695A;
  --hl-type: #7440B0;
}

/* ----- 단추, 대화상자, 알림 ----- */

.til-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.til-btn[hidden] { display: none; }
.til-btn:hover:not(:disabled) { border-color: var(--ink-soft); color: inherit; }
.til-btn:disabled { opacity: 0.5; cursor: default; }
.til-btn--primary { border-color: var(--seal); background: var(--seal); color: #fff; }
.til-btn--primary:hover:not(:disabled) { border-color: var(--seal); color: #fff; filter: brightness(1.08); }
.til-btn--danger { border-color: transparent; color: var(--seal); }
.til-btn--danger:hover:not(:disabled) { border-color: var(--seal); color: var(--seal); }
.til-btn--small { padding: 0.3rem 0.7rem; font-size: 0.875rem; }

.til-back { color: var(--ink-soft); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.til-back:hover { color: var(--ink); }

.til-badge {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--seal);
  border-radius: 999px;
  color: var(--seal);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  vertical-align: middle;
}
.til-badge[hidden] { display: none; }

.til-tag { color: var(--ink-soft); font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.til-tag:hover { color: var(--seal); }

.til-notice {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--seal);
  border-radius: 10px;
  background: color-mix(in srgb, var(--seal) 8%, transparent);
}
.til-notice[hidden] { display: none; }
.til-notice__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }

.til-dialog {
  width: min(32rem, calc(100% - 2rem));
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.til-dialog::backdrop { background: rgba(5, 12, 10, 0.6); }
.til-dialog h2 { font-size: 1.25rem; font-weight: 700; }
.til-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.til-dialog__text { margin-top: 0.6rem; color: var(--ink-soft); line-height: 1.6; }
.til-dialog__error { margin-top: 0.75rem; color: var(--seal); font-weight: 600; }
.til-dialog__error[hidden] { display: none; }
.til-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; margin-top: 1.5rem; }

.til-field { display: grid; gap: 0.35rem; margin-top: 1rem; font-size: 0.9375rem; font-weight: 600; }
.til-field input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--tile);
  color: inherit;
  font: inherit;
  font-weight: 400;
}

.til-history { display: grid; max-height: 55vh; margin: 1rem 0 0; padding: 0; overflow: auto; list-style: none; }
.til-history li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
}
.til-history li div { display: grid; min-width: 0; }
.til-history span { color: var(--ink-soft); font-size: 0.875rem; }
.til-history .til-history__now { color: var(--seal); font-weight: 600; }
.til-history .til-history__empty { justify-content: flex-start; color: var(--ink-soft); }

/* ----- 목록 ----- */

.til { padding-bottom: clamp(3rem, 8vw, 5rem); }
.til-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.til-head__tools { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.til-filters { display: grid; gap: 0.9rem; padding-top: 1.75rem; }
.til-filters__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.til-search {
  flex: 1 1 16rem;
  max-width: 26rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--tile);
  color: inherit;
  font: inherit;
}
.til-search:focus { border-color: var(--ink-soft); outline: none; }
.til-search:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
/* 공개 여부 거르기: 전체 / 공개 / 비공개 */
.til-seg { display: inline-flex; flex: none; padding: 3px; border: 1px solid var(--rule); border-radius: 10px; }
.til-seg[hidden] { display: none; }
.til-seg button {
  padding: 0.3rem 0.8rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.til-seg button:hover { color: var(--ink); }
.til-seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.til-seg__n { margin-left: 0.35em; opacity: 0.65; font-weight: 500; font-variant-numeric: tabular-nums; }

.til-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.til-chips[hidden] { display: none; }
.til-chip {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  font-size: 0.875rem;
  cursor: pointer;
}
.til-chip:hover { border-color: var(--ink-soft); }
.til-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.til-chip__n { margin-left: 0.35em; opacity: 0.65; font-variant-numeric: tabular-nums; }

.til-count { margin-top: 1.75rem; color: var(--ink-soft); font-size: 0.875rem; }
.til-list { margin: 0.5rem 0 0; padding: 0; list-style: none; }
.til-item {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) auto;
  gap: 0.25rem 1.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--rule);
}
.til-item__date { padding-top: 0.25rem; color: var(--ink-soft); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.til-item__title { font-size: 1.1875rem; font-weight: 700; }
.til-item__title a { text-decoration: none; }
.til-item__title a:hover { text-decoration: underline; }
.til-item__title .til-badge { margin-left: 0.5rem; }
.til-item__summary { margin-top: 0.3rem; color: var(--ink-soft); }
.til-item__labels { display: flex; flex-wrap: wrap; gap: 0.15rem 0.75rem; margin-top: 0.5rem; }
.til-item__cover { width: 8.5rem; aspect-ratio: 16 / 10; border: 1px solid var(--rule); border-radius: 8px; object-fit: cover; }
.til-empty { display: grid; justify-items: start; gap: 1rem; padding: 2.5rem 0; border-top: 1px solid var(--rule); color: var(--ink-soft); }

/* ----- 노트 한 편 ----- */

.til-post { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 8vw, 5rem); }
.til-article { min-width: 0; max-width: 46rem; }
.til-article__head { padding-bottom: 1.75rem; border-bottom: 1px solid var(--rule); }
.til-article__head h1 { margin-top: 0.6rem; font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.til-article__summary { margin-top: 0.75rem; color: var(--ink-soft); font-size: 1.0625rem; }
.til-article__summary[hidden],
.til-article__labels[hidden],
.til-article__actions[hidden],
.til-article__cover[hidden] { display: none; }
.til-article__meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 1rem; color: var(--ink-soft); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.til-article__labels { display: flex; flex-wrap: wrap; gap: 0.15rem 0.75rem; margin-top: 0.5rem; }
.til-article__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 1.25rem; }
.til-article__cover { display: block; width: 100%; margin-top: 1.75rem; border: 1px solid var(--rule); border-radius: 12px; }

.til-toc ol { margin: 0; padding: 0; list-style: none; }
.til-toc__title { margin-bottom: 0.6rem; color: var(--ink-soft); font-size: 0.875rem; font-weight: 700; }
.til-toc__item a {
  display: block;
  padding: 0.3rem 0 0.3rem 0.9rem;
  border-left: 2px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  text-decoration: none;
}
.til-toc__item--h3 a { padding-left: 1.7rem; font-size: 0.85rem; }
.til-toc__item a:hover { color: var(--ink); }
.til-toc__item a[aria-current] { border-left-color: var(--seal); color: var(--ink); font-weight: 600; }
.til-toc__top { display: inline-block; margin-top: 1rem; color: var(--ink-soft); font-size: 0.8125rem; text-decoration: none; }
.til-toc__top:hover { color: var(--ink); }

.til-toc--inline { margin-top: 1.5rem; padding: 0.75rem 1rem; border: 1px solid var(--rule); border-radius: 10px; }
.til-toc--inline[hidden] { display: none; }
.til-toc--inline summary { font-weight: 600; cursor: pointer; }
.til-toc--inline ol { margin-top: 0.6rem; }

.til-aside { display: none; }

@media (min-width: 1080px) {
  .has-toc .til-post { grid-template-columns: minmax(0, 46rem) 14rem; justify-content: space-between; column-gap: 4rem; }
  .til-aside:not([hidden]) { display: block; }
  .til-aside__inner { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow: auto; }
  .has-toc .til-toc--inline { display: none; }
}

.til-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 3.5rem; }
.til-pager[hidden] { display: none; }
.til-pager__link {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-decoration: none;
}
.til-pager__link:hover { border-color: var(--ink-soft); color: inherit; }
.til-pager__link--newer { text-align: right; }
.til-pager__kind { color: var(--ink-soft); font-size: 0.8125rem; }
.til-pager__title { font-weight: 650; }

.til-comments { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.til-comments[hidden] { display: none; }
.til-comments h2 { font-size: 1.25rem; font-weight: 700; }
.til-comments .lead { margin-top: 0.4rem; font-size: 0.9375rem; }

.til-lightbox { max-width: 96vw; max-height: 94vh; padding: 0; border: 0; background: transparent; }
.til-lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.til-lightbox img { display: block; max-width: 96vw; max-height: 94vh; object-fit: contain; cursor: zoom-out; }

/* ----- 본문 (마크다운) ----- */

.md { font-size: 1.0625rem; line-height: 1.85; }
.til-article .md { margin-top: 2rem; }
.md > :first-child { margin-top: 0; }
.md p,
.md ul,
.md ol { margin: 1em 0; }
.md ul,
.md ol { padding-left: 1.4em; }
.md li + li { margin-top: 0.3em; }
.md li > ul,
.md li > ol { margin: 0.3em 0; }
.md li::marker { color: var(--ink-soft); }
.md li:has(> input[type="checkbox"]) { margin-left: -1.4em; list-style: none; }
.md input[type="checkbox"] { margin: 0 0.5em 0 0; accent-color: var(--seal); vertical-align: -0.1em; }
.md strong { font-weight: 700; }
.md a { text-decoration-color: color-mix(in srgb, var(--seal) 60%, transparent); }

.md h2,
.md h3,
.md h4 { scroll-margin-top: 1.5rem; }
.md h2 { margin: 3rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 1.5rem; font-weight: 750; }
.md > h2:first-child { padding-top: 0; border-top: 0; }
.md h3 { margin: 2.25rem 0 0.75rem; font-size: 1.2rem; font-weight: 700; }
.md h4 { margin: 1.75rem 0 0.5rem; font-size: 1.05rem; font-weight: 700; }
.md-anchor { margin-right: 0.4em; color: var(--seal); font-weight: 600; text-decoration: none; opacity: 0.75; }
.md-anchor:hover { opacity: 1; }
/* 작은 소제목의 #은 왼쪽 여백에 두어, 숨겨져 있을 때 글이 들여 쓰여 보이지 않게 합니다 */
.md h3 { position: relative; }
.md h3 .md-anchor { position: absolute; right: 100%; opacity: 0; }
.md h3:hover .md-anchor,
.md h3 .md-anchor:focus-visible { opacity: 0.75; }

.md blockquote { margin: 1.25rem 0; padding: 0.1rem 0 0.1rem 1rem; border-left: 3px solid var(--rule); color: var(--ink-soft); }
.md hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--rule); }

.md :not(pre) > code {
  padding: 0.12em 0.4em;
  border-radius: 5px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.md-code { margin: 1.5rem 0; overflow: hidden; border: 1px solid var(--rule); border-radius: 10px; background: var(--code-bg); }
.md-code__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.25rem;
  padding: 0.2rem 0.4rem 0.2rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.75rem;
}
.md-code__name { font-family: var(--mono); letter-spacing: 0.02em; }
.md-code__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.75rem;
  cursor: pointer;
}
.md-code__copy:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }
.md-code__copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.md-code__copied[hidden] { display: none; }
.md pre { margin: 0; padding: 1rem 1.1rem; overflow-x: auto; font-family: var(--mono); font-size: 0.875rem; line-height: 1.65; tab-size: 2; }
.md pre code { font-family: inherit; }
.md-raw { white-space: pre-wrap; }

/* 코드 색 (highlight.js) */
.hljs-comment,
.hljs-quote { color: var(--hl-comment); } /* 기울이면 한글 주석이 억지로 기울어져 보여서 색만 바꿉니다 */
.hljs-keyword,
.hljs-selector-tag,
.hljs-tag,
.hljs-name,
.hljs-deletion { color: var(--hl-keyword); }
.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-template-tag,
.hljs-symbol { color: var(--hl-string); }
.hljs-number,
.hljs-literal,
.hljs-bullet { color: var(--hl-number); }
.hljs-title,
.hljs-section,
.hljs-selector-id,
.hljs-selector-class { color: var(--hl-title); }
.hljs-attr,
.hljs-attribute,
.hljs-property,
.hljs-variable,
.hljs-template-variable,
.hljs-params { color: var(--hl-attr); }
.hljs-type,
.hljs-built_in,
.hljs-class .hljs-title,
.hljs-meta { color: var(--hl-type); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }

/* 알림 상자: > [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], [!CAUTION] */
.md-callout {
  --c: #4D96D9;
  margin: 1.5rem 0;
  padding: 0.85rem 1.1rem;
  border-left: 4px solid var(--c);
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--c) 10%, transparent);
}
.md-callout--tip { --c: #5DAE6B; }
.md-callout--important { --c: #9B7FE0; }
.md-callout--warning { --c: #E9B949; }
.md-callout--caution { --c: var(--seal); }
.md-callout__title { margin: 0 0 0.25rem !important; color: color-mix(in srgb, var(--c) 70%, var(--ink)); font-size: 0.9375rem; font-weight: 700; }
.md-callout > :last-child { margin-bottom: 0; }
.md-callout p { margin: 0.4em 0; }

.md img { max-width: 100%; height: auto; border-radius: 8px; cursor: zoom-in; }
.md-figure { margin: 1.75rem 0; text-align: center; }
.md-figure img { border: 1px solid var(--rule); }
.md-figure figcaption { margin-top: 0.5rem; color: var(--ink-soft); font-size: 0.875rem; }

.md-table { margin: 1.5rem 0; overflow-x: auto; }
.md table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.6; }
.md th,
.md td { padding: 0.5rem 0.75rem; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.md th { background: var(--tile); font-weight: 700; }

/* ----- 쓰기 ----- */

.til-writing .top,
.til-writing .page { max-width: 96rem; }
.tw { padding-bottom: 3rem; }
.tw-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.tw-status { flex: 1; min-width: 10rem; color: var(--ink-soft); font-size: 0.875rem; }
.tw-bar__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tw-form { display: grid; gap: 0.5rem; margin-top: 1.25rem; }
.tw-form[hidden] { display: none; }
.tw-title,
.tw-summary {
  width: 100%;
  padding: 0.25rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
}
.tw-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
.tw-summary { color: var(--ink-soft); font-size: 1.0625rem; }
.tw-title:focus,
.tw-summary:focus { border-bottom-color: var(--seal); outline: none; }

.tw-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem 2rem;
  margin-block: 0.5rem 0.75rem;
  padding-block: 1rem;
  border-block: 1px solid var(--rule);
}
.tw-field { display: grid; gap: 0.35rem; font-size: 0.875rem; font-weight: 600; }
.tw-field--labels { flex: 1 1 18rem; max-width: 28rem; }
.tw-field input {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--tile);
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
}
.tw-hint { color: var(--ink-soft); font-size: 0.8125rem; font-weight: 400; }
.tw-cover__row { display: flex; align-items: center; gap: 0.5rem; min-height: 2.4rem; }
.tw-cover__img { width: 4.5rem; height: 3rem; border: 1px solid var(--rule); border-radius: 6px; object-fit: cover; }
.tw-cover__img[hidden] { display: none; }
.tw-public { display: flex; align-items: center; gap: 0.6rem; align-self: center; font-weight: 600; cursor: pointer; }
.tw-public input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--seal); }
.tw-public small { display: block; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 400; }

.tw-editor { border: 1px solid var(--rule); border-radius: 12px; background: var(--tile); }
.tw-editor:focus-within { border-color: var(--ink-soft); }
.tw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.tw-toolbar button[data-cmd] {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.45rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.tw-toolbar button[data-cmd]:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink); }
.tw-toolbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tw-toolbar__sep { width: 1px; height: 1.25rem; margin: 0 0.3rem; background: var(--rule); }
.tw-toolbar__space { flex: 1; }
.tw-tabs { display: inline-flex; padding: 2px; border: 1px solid var(--rule); border-radius: 8px; }
.tw-tabs button {
  padding: 0.2rem 0.7rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}
.tw-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.tw-panes { display: grid; grid-template-columns: minmax(0, 1fr); }
.tw-pane { position: relative; min-width: 0; }
.tw-pane--write textarea {
  display: block;
  width: 100%;
  height: calc(100vh - 15rem);
  min-height: 26rem;
  padding: 1.1rem 1.25rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: var(--sans); /* 고정폭 글꼴은 한글이 듬성듬성 보여서, 쓰기 칸은 본문 글꼴로 */
  font-size: 0.9375rem;
  line-height: 1.75;
  resize: vertical;
  tab-size: 2;
}
.tw-pane--write textarea:focus { outline: none; }
.tw-pane--preview { height: calc(100vh - 15rem); min-height: 26rem; padding: 1.1rem 1.5rem; overflow: auto; background: var(--paper); }
.tw-editor[data-view="write"] .tw-pane--preview,
.tw-editor[data-view="preview"] .tw-pane--write { display: none; }
.tw-drop {
  position: absolute;
  inset: 0.5rem;
  display: grid;
  place-items: center;
  border: 2px dashed var(--seal);
  border-radius: 10px;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  color: var(--seal);
  font-weight: 700;
  pointer-events: none;
}
.tw-drop[hidden] { display: none; }
.tw-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.5rem 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.tw-empty { color: var(--ink-soft); }

@media (min-width: 1000px) {
  .tw-panes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tw-editor[data-view] .tw-pane { display: block; } /* 쓰기/미리보기 탭 규칙보다 뒤에, 같은 세기로 */
  .tw-pane--preview { border-left: 1px solid var(--rule); border-bottom-right-radius: 0; }
  .tw-tabs { display: none; }
}

@media (max-width: 640px) {
  .til-item { grid-template-columns: minmax(0, 1fr); }
  .til-item__date { padding-top: 0; }
  .til-item__cover { display: none; }
  .til-pager { grid-template-columns: minmax(0, 1fr); }
  .tw-toolbar__space { flex-basis: 100%; height: 0; }
}
