/* ==========================================================================
   Notes from the Workbench navigation (0.7.30)
   Latest five, month calendar and earlier / later buttons on a single note.
   Quiet by design: small type, hairlines, no fills until hover or "today".
   ========================================================================== */

/* Earlier / later buttons, directly under the article and above Export and share. */
.nc-note-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--nc-space-3);
  margin-block: var(--nc-space-6) var(--nc-space-5);
}

.nc-note-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--nc-space-2);
  min-height: var(--nc-target-min);
  padding-inline: var(--nc-space-4);
  border: var(--nc-rule-width) solid var(--nc-rule-strong);
  background: transparent;
  color: var(--nc-ink);
  font-family: var(--nc-font-operational);
  font-size: var(--nc-size-small);
  line-height: var(--nc-leading-meta);
  text-decoration: none;
  transition: background var(--nc-motion-micro) var(--nc-easing);
}

.nc-note-nav__btn--later { margin-inline-start: auto; }
.nc-note-nav__btn:hover { background: rgb(0 0 0 / 4%); }

/* Latest five */
.nc-note-recent { margin-block-end: var(--nc-space-6); }

.nc-note-recent__list {
  list-style: none;
  margin: var(--nc-space-3) 0 0;
  padding: 0;
  border-top: var(--nc-rule-width) solid var(--nc-rule);
}

.nc-note-recent__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: var(--nc-space-3);
  border-bottom: var(--nc-rule-width) solid var(--nc-rule-light);
}

.nc-note-recent__date {
  font-size: var(--nc-size-meta);
  letter-spacing: var(--nc-tracking-meta);
  color: var(--nc-ink-muted);
}

.nc-note-recent__link {
  font-size: var(--nc-size-small);
  line-height: var(--nc-leading-heading);
  color: var(--nc-ink);
  text-decoration: none;
}

.nc-note-recent__link:hover { text-decoration: underline; }
.nc-note-recent__link[aria-current="page"] { font-weight: 600; }

/* Calendar */
.nc-note-cal { margin-block-end: var(--nc-space-6); }
.nc-note-cal__bar { display: flex; justify-content: flex-end; gap: var(--nc-space-2); margin-block-start: var(--nc-space-2); }
.nc-note-cal__bar[hidden], .nc-note-cal__month[hidden] { display: none; }

.nc-note-cal__step {
  min-width: var(--nc-target-min);
  min-height: var(--nc-target-min);
  border: var(--nc-rule-width) solid var(--nc-rule-strong);
  background: transparent;
  color: var(--nc-ink);
  font: inherit;
  cursor: pointer;
}

.nc-note-cal__step:hover:not(:disabled) { background: rgb(0 0 0 / 4%); }
.nc-note-cal__step:disabled { opacity: 0.35; cursor: default; }

.nc-note-cal__month {
  width: 100%;
  margin-block-start: var(--nc-space-2);
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--nc-size-small);
  text-align: center;
}

.nc-note-cal__caption {
  padding-block-end: var(--nc-space-2);
  text-align: start;
  font-weight: 600;
}

.nc-note-cal__month th {
  padding-block: var(--nc-space-1);
  font-size: var(--nc-size-meta);
  font-weight: 400;
  letter-spacing: var(--nc-tracking-meta);
  color: var(--nc-ink-muted);
}

.nc-note-cal__month td { padding: 0; height: 34px; color: var(--nc-ink-muted); }

.nc-note-cal__day--note a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  background: var(--nc-clay-pale);
  color: var(--nc-ink);
  font-weight: 600;
  text-decoration: none;
}

.nc-note-cal__day--note a:hover { background: var(--nc-clay-pale-raised); text-decoration: underline; }
.nc-note-cal__day--note a[aria-current="page"] { background: var(--nc-charcoal); color: var(--nc-paper); }

/* ==========================================================================
   Writing page (0.7.32): introduction beside a latest-note panel, then the
   two lists with a one-line subtitle each.
   ========================================================================== */

.nc-writing__standfirst p { font-style: italic; }
.nc-writing__intro { margin-top: var(--nc-space-6); }
.nc-writing__intro p + p { margin-top: var(--nc-space-4); }

.nc-writing-panel {
  align-self: start;
  background: var(--nc-paper-raised);
  border: var(--nc-rule-width) solid var(--nc-rule-light);
  box-shadow: 0 1px 3px rgb(0 0 0 / 7%);
  padding: var(--nc-space-5);
}

.nc-writing-panel__title {
  font-family: var(--nc-font-editorial);
  font-size: var(--nc-size-h3);
  font-weight: 400;
  line-height: var(--nc-leading-heading);
  margin: var(--nc-space-2) 0 var(--nc-space-1);
}

.nc-writing-panel__title a { color: inherit; text-decoration: none; }
.nc-writing-panel__title a:hover { text-decoration: underline; }
.nc-writing-panel__date { margin: 0 0 var(--nc-space-3); font-size: var(--nc-size-small); color: var(--nc-ink-muted); }
.nc-writing-panel__excerpt { margin: 0 0 var(--nc-space-3); font-size: var(--nc-size-small); line-height: var(--nc-leading-body); }
.nc-writing-panel__more { margin: 0; }
.nc-writing-panel__rule { border: 0; border-top: var(--nc-rule-width) solid var(--nc-rule); margin: var(--nc-space-5) 0; }

.nc-writing-panel__list { list-style: none; margin: var(--nc-space-2) 0 0; padding: 0; }
.nc-writing-panel__list li { padding-block: var(--nc-space-2); }

.nc-writing-panel__link {
  color: var(--nc-ink);
  font-family: var(--nc-font-operational);
  font-size: var(--nc-size-small);
  text-decoration: underline;
}

.nc-writing-panel__link:hover { text-decoration: none; }
.nc-writing-panel__link:focus-visible { outline: var(--nc-focus-width) solid var(--nc-clay-text); outline-offset: var(--nc-focus-offset); }

.nc-writing__lists { margin-top: var(--nc-space-7); }
.nc-writing__lists .nc-writing-group:first-child { margin-top: 0; }
.nc-writing-group__sub {
  margin: calc(var(--nc-space-2) * -1) 0 var(--nc-space-5);
  font-family: var(--nc-font-editorial);
  font-style: italic;
  color: var(--nc-ink-muted);
}
