/* ------------------------------------------------------------------ */
/* Community                                                           */
/* ------------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.notepad-list {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  position: sticky;
  top: 24px;
}

.notepad-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 11px;
  padding: 11px 12px;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.notepad-item:hover {
  background: var(--surface-2);
}

.notepad-item.active {
  background: var(--accent-soft);
  border-color: rgba(15, 118, 110, 0.18);
}

.notepad-item-title {
  font-weight: 650;
  font-size: 13px;
  line-height: 1.35;
}

.notepad-item-meta {
  font-size: 10.5px;
  color: var(--ink-faint);
}

.notepad-item-excerpt {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notepad-view {
  padding: 28px 32px 34px;
  min-height: 500px;
}

.notepad-view-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.notepad-title-input {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  width: 100%;
  border: 0;
  border-bottom: 1px dashed transparent;
  background: transparent;
  color: var(--ink);
  outline: none;
  padding: 0 0 3px;
}

.notepad-title-input:hover {
  border-bottom-color: var(--line-strong);
}

.notepad-title-input:focus {
  border-bottom-color: var(--accent);
  box-shadow: none;
}

.notepad-view-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.notepad-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-faint);
}

.notepad-meta .save-status {
  margin-left: auto;
}

.notepad-content {
  width: 100%;
  min-height: 380px;
  border: 0;
  background: transparent;
  resize: vertical;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  outline: none;
  padding: 0;
}

.notepad-read {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  max-width: 74ch;
  overflow-wrap: anywhere;
}

.readonly-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
