/* Published notes reuse the exact notebook used by the writing workflow. */
.notebook-modal.is-published-unified .note-type-switch {
    display: none !important;
}

.notebook-modal.is-published-unified .notebook-navigation,
.notebook-modal.is-published-unified .notebook-navigation--checklist {
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
}

.notebook-modal.is-published-unified .notebook-navigation [data-page-previous] {
    grid-column: 1;
}

.notebook-modal.is-published-unified .notebook-navigation [data-page-counter] {
    grid-column: 2;
}

.notebook-modal.is-published-unified .notebook-navigation [data-page-next] {
    grid-column: 3;
}

.notebook-modal.is-published-unified .notebook-flow {
    top: 0;
    left: 0;
    display: flex;
    gap: var(--page-gap);
    width: max-content;
    height: var(--page-height);
    column-count: initial;
    column-gap: 0;
    white-space: normal;
}

.notebook-modal.is-published-unified .published-notebook-page {
    flex: 0 0 var(--page-width);
    width: var(--page-width);
    height: var(--page-height);
    margin: 0;
    padding: var(--paper-padding-y) 24px var(--paper-padding-y) 48px;
    overflow: hidden;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: #4b414b;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    caret-color: #b5457c;
}

.notebook-modal.is-published-unified .published-notebook-page[readonly] {
    cursor: default;
    user-select: text;
}

.notebook-modal.is-published-unified .published-notebook-page:not([readonly]):focus {
    outline: 1px dotted rgba(143, 72, 108, 0.48);
    outline-offset: -5px;
}

.published-page-measure {
    position: fixed;
    left: -10000px;
    top: -10000px;
    width: var(--page-width);
    height: var(--page-height);
    padding: var(--paper-padding-y) 24px var(--paper-padding-y) 48px;
    overflow: hidden;
    resize: none;
    border: 0;
    font: inherit;
    font-size: 16px;
    line-height: 24px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    visibility: hidden;
}

.published-notebook-title-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    width: 790px;
    min-height: 39px;
    margin-top: 14px;
    padding: 5px 8px;
    color: #684e5e;
    background: #f2d9e6;
}

.published-notebook-title-row[hidden] {
    display: none !important;
}

.published-note-title-input {
    width: 100%;
    min-height: 28px;
    padding: 3px 6px;
    border: 2px solid;
    border-color: #756b71 #fff #fff #756b71;
    background: #fffafb;
    color: #514650;
    font: inherit;
}

.notebook-modal.is-published-checklist .checklist-editor:not([hidden]) {
    width: var(--spread-width);
    height: var(--page-height);
    padding: 0;
}

.notebook-modal.is-published-checklist .checklist-editor__paper {
    position: relative;
    width: var(--spread-width) !important;
    height: var(--page-height) !important;
    overflow: auto;
    border: 1px solid #baa88b;
    background:
        linear-gradient(90deg,
            transparent 0 calc(50% - 15px),
            rgba(93, 62, 48, 0.13) calc(50% - 14px),
            #bd7899 calc(50% - 1px) calc(50% + 1px),
            rgba(93, 62, 48, 0.13) calc(50% + 14px),
            transparent calc(50% + 15px)),
        linear-gradient(90deg, transparent 0 34px, rgba(229, 128, 158, 0.44) 35px 36px, transparent 37px),
        repeating-linear-gradient(to bottom, transparent 0 31px, rgba(226, 136, 164, 0.48) 31px 32px),
        #f7ecd1;
    box-shadow: inset 0 0 22px rgba(117, 91, 55, 0.10);
}

.notebook-modal.is-published-checklist .checklist-editor__items {
    padding: 24px 48px 42px;
}

.notebook-modal.is-published-checklist .published-checklist-row input[type="text"][readonly] {
    cursor: default;
    user-select: text;
}

.notebook-modal.is-published-checklist .published-checklist-row input[type="checkbox"]:disabled {
    opacity: 0.9;
}

.published-checklist-row.is-checked input[type="text"],
.checklist-editor__row.is-checked input[type="text"] {
    color: #8f7c87;
    opacity: 0.7;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.published-note-empty {
    margin: 5px 0;
    color: #8a7480;
}
