/* Nook — notes and import */

.note-body {
    line-height: 1.6;
}

.note-markup-ref-missing {
    color: var(--danger, #c62828);
}

.note-markup-embed {
    margin: 1.2rem 0;
}

.note-markup-embed-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.note-markup-embed .drag-handle {
    display: none;
}

.note-body h1,
.note-body h2,
.note-body h3,
.note-body h4,
.note-body h5,
.note-body h6 {
    margin: 1.6rem 0 0.8rem;
    line-height: 1.25;
}

.note-body h1:first-child,
.note-body h2:first-child,
.note-body h3:first-child,
.note-body h4:first-child,
.note-body h5:first-child,
.note-body h6:first-child,
.note-body p:first-child,
.note-body ul:first-child,
.note-body ol:first-child,
.note-body blockquote:first-child,
.note-body hr:first-child {
    margin-top: 0;
}

.note-body p {
    margin: 0 0 1.2rem;
}

.note-body ul,
.note-body ol {
    margin: 0 0 1.2rem;
    padding-left: 2.4rem;
}

.note-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: #f4f4f5;
    padding: 0.1em 0.35em;
    border-radius: 0.4rem;
}

.note-body a {
    color: inherit;
    text-decoration: underline;
}

.note-body del {
    opacity: 0.75;
}

.note-body hr {
    margin: 1.6rem 0;
    border: 0;
    border-top: 1px solid #e4e4e7;
}

.note-body blockquote {
    margin: 0 0 1.2rem;
    padding-left: 1.6rem;
    border-left: 3px solid #d4d4d8;
    color: #52525b;
}

.note-task-list {
    list-style: none;
    margin: 0 0 1.2rem;
    padding-left: 0;
}

.note-task-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.56rem;
}

.note-task-box {
    flex: none;
    line-height: 1.6;
}

.note-task-item.is-checked {
    opacity: 0.75;
}

.note-show-dates {
    margin-top: 0.4rem;
}

.note-markup-hint {
    display: block;
    margin-bottom: 0.56rem;
}

.import-preview-page {
    max-width: 76.8rem;
}

.import-preview-list,
.import-preview-skipped {
    margin: 1.2rem 0 1.6rem;
    padding-left: 2rem;
}

.import-preview-skipped li + li {
    margin-top: 0.56rem;
}

/* note-markup-editor */

.note-markup-editor-toolbar,
.note-markup-editor-preview {
    display: none;
}

.note-markup-editor.is-enhanced .note-markup-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.56rem;
    margin: 0.56rem 0 1.2rem;
}

.note-markup-editor.is-enhanced .note-markup-editor-preview {
    display: block;
}

.note-markup-editor.is-enhanced .note-markup-editor-panes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    align-items: start;
}

.note-markup-editor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.56rem;
    min-width: 3.2rem;
    min-height: 3.2rem;
}

.note-markup-editor-icon {
    display: block;
    width: 18px;
    height: 18px;
}

.note-markup-editor-btn--text {
    padding: 0.56rem 0.88rem;
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1;
    min-width: 3.76rem;
}

.note-markup-editor-textarea {
    width: 100%;
    min-height: 19.2rem;
    resize: vertical;
}

.note-markup-editor-preview {
    border: 1px solid var(--color-panel-border, #e4e4e7);
    border-radius: 8px;
    padding: 1.2rem 1.6rem;
    max-height: 38.4rem;
    overflow-y: auto;
    background: var(--color-panel-hover, #f4f4f5);
}

.note-markup-editor-preview-label {
    margin: 0 0 0.8rem;
    font-size: 1.36rem;
}

.note-markup-editor-preview-body:empty {
    min-height: 0;
}

@media (max-width: 768px) {
    .note-markup-editor.is-enhanced .note-markup-editor-panes {
        grid-template-columns: 1fr;
    }
}
