/* ==========================================================================
   app-notes.css — the notebook.

   Evernote's three columns, minus everything Evernote added after 2008. The
   page itself is monospaced and unjustified because these were written in a
   plain text editor and setting them in a proportional face makes them look
   composed, which they are not.
   ========================================================================== */

.nb-wrap > .nb-books { flex: 0 0 132px; }
.nb-wrap > .nb-list  { flex: 0 0 246px; }
.nb-wrap > .nb-page  { flex: 1 1 320px; min-width: 260px; }

.nb-books .nb-book { display: flex; align-items: baseline; gap: 6px; }
.nb-book .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nb-book .when { font-variant-numeric: tabular-nums; opacity: .6; }
.nb-book.sel .when { color: rgba(255,255,255,.8); opacity: 1; }
.nb-book.empty .nm, .nb-book.empty .when { opacity: .4; }

.nb-year {
  padding: 3px 7px 2px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; color: #55524a;
  background: var(--gray-lt);
  border-top: 1px solid var(--lo); border-bottom: 1px solid var(--lo);
  box-shadow: inset 0 1px 0 var(--hi);
  position: sticky; top: 0; z-index: 1;
}
.nb-year:first-child { border-top: none; }

/* .col .row is two classes, so this has to be too. */
.nb-list .nb-row { display: block; padding: 4px 7px 5px; line-height: 1.3; }
.nb-list .nb-t {
  display: block; font-weight: 700; font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nb-list .nb-s {
  display: block; font-size: 10.5px; opacity: .72; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nb-list .nb-d {
  display: block; font-family: var(--mono); font-size: 9.5px;
  opacity: .5; margin-top: 2px; font-variant-numeric: tabular-nums;
}
.nb-list .nb-row.sel .nb-s,
.nb-list .nb-row.sel .nb-d { opacity: .8; }

.nb-head { margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--lo); box-shadow: 0 1px 0 var(--hi); }
.nb-head h2 { margin: 0 0 2px; }
.nb-body {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font-family: var(--mono); font-size: 12px; line-height: 1.55;
  color: #17140f; max-width: 62ch;
}

@media (max-width: 700px) {
  .nb-wrap > .nb-books { flex: 0 0 96px; }
  .nb-wrap > .nb-list  { flex: 0 0 150px; }
}
