/* A NOTE, OPENED FULL (Alison, 2026-11-25). The note's own sheet grown to fill the page under the header, with the
   app's one writing page and formatting bar on it (static/js/screens/lab/note-page.js). Every colour is the sheet's own or one of
   the app's tokens, so dark mode and both looks follow.
   On a wide screen it starts under the wave or the Lab band (--np-top, measured when it opens), so the header stays
   the header. On a phone it takes the whole screen, as the sheet nearly does already. */
#note-detail-modal.note-full {
  top: var(--np-top, 0px); align-items: stretch; justify-content: stretch;
  background: var(--dkb-fffdf6ff, #fffdf6); overflow-y: auto;
}
#note-detail-modal.note-full .note-detail-box {
  flex: 1 1 auto; width: 100% !important; max-width: none !important; min-height: 100%; height: auto; max-height: none !important;
  margin: 0; border-radius: 0; box-shadow: none;
  box-sizing: border-box; background-image: none; overflow: visible;
  padding-left: max(16px, calc((100% - 780px) / 2)) !important; padding-right: max(16px, calc((100% - 780px) / 2)) !important;
}
/* Her title, in the house title face, at the top. */
#note-detail-modal.note-full .is-band .note-detail-title-input {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.2;
}
/* The small sheet's own drawing of the words, its plain box and Add a line give way to the page. */
#note-detail-modal.note-full #note-detail-rendered,
#note-detail-modal.note-full #note-detail-text,
#note-detail-modal.note-full .note-detail-add-row,
#note-detail-modal.note-full #note-detail-full { display: none !important; }
.np-editor { margin: 0.75rem 0 1rem; }
.np-text, .np-editor .wys {
  display: block; width: 100%; box-sizing: border-box; min-height: 46vh; padding: 0.4rem 0 2rem; border: 0; outline: none; resize: none;
  background: transparent; color: var(--dkt-navy, var(--navy, #2D4860));
  font-family: 'Inter', system-ui, sans-serif; font-size: 1.05rem; line-height: 1.7;
}
/* THE BAR IS NEVER INVISIBLE: faint while the note is open, full strength with the cursor in the writing. The same
   rule as a project's sections (.pd-sec-body .fmt-bar in style.css). */
.np-editor .fmt-bar { opacity: 0.55; transition: opacity 0.15s ease; position: sticky; top: 0; z-index: 2; padding: 4px 0;
  background: var(--dkb-fffdf6ff, #fffdf6); }
.np-editor:focus-within .fmt-bar { opacity: 1; }
#note-detail-full[hidden] { display: none; }
/* How docked beside it (the app's page dock): the note keeps the left. */
body.how-page-docked #note-detail-modal.note-full { right: var(--pd-how-w); }
body.note-full-open { overflow: hidden; }
@media (max-width: 760px) {
  .np-text, .np-editor .wys { font-size: 1rem; min-height: 40vh; }
}
